@difizen/libro-language-client 0.2.27 → 0.2.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CellUri } from '@difizen/libro-common';
|
|
2
2
|
import { ExecutableNotebookModel } from '@difizen/libro-kernel';
|
|
3
3
|
import { unsupported } from "./util.js";
|
|
4
4
|
import { EndOfLine, NotebookCellKind, Uri } from "./vscodeAdaptor.js";
|
|
@@ -36,7 +36,7 @@ export var l2c = {
|
|
|
36
36
|
notebook: l2c.asNotebookDocument(cell.parent),
|
|
37
37
|
kind: cell.model.type === 'code' ? NotebookCellKind.Code : NotebookCellKind.Markup,
|
|
38
38
|
document: {
|
|
39
|
-
uri: Uri.parse(
|
|
39
|
+
uri: Uri.parse(CellUri.from(filePath, cell.model.id).toString()),
|
|
40
40
|
fileName: filePath,
|
|
41
41
|
isUntitled: false,
|
|
42
42
|
languageId: 'python',
|
|
@@ -14,7 +14,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
14
14
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
15
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
16
16
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
17
|
-
import {
|
|
17
|
+
import { CellUri } from '@difizen/libro-common';
|
|
18
18
|
import { EditorCellView, ILibroWorkspaceService, LibroService } from '@difizen/libro-core';
|
|
19
19
|
import { ExecutableNotebookModel } from '@difizen/libro-kernel';
|
|
20
20
|
import { ApplicationContribution, inject, singleton } from '@difizen/mana-app';
|
|
@@ -161,7 +161,7 @@ export var LibroLanguageClientContribution = (_dec = singleton({
|
|
|
161
161
|
return false;
|
|
162
162
|
}
|
|
163
163
|
var cell = libroView.model.cells.find(function (item) {
|
|
164
|
-
return ExecutableNotebookModel.is(libroView.model) &&
|
|
164
|
+
return ExecutableNotebookModel.is(libroView.model) && CellUri.from(libroView.model.filePath, item.model.id).toString() === decodeURIComponent(resource.toString());
|
|
165
165
|
});
|
|
166
166
|
if (EditorCellView.is(cell)) {
|
|
167
167
|
var _cell$editor, _line;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-language-client",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.29",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"src"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@difizen/libro-core": "^0.2.
|
|
36
|
-
"@difizen/libro-code-editor": "^0.2.
|
|
37
|
-
"@difizen/libro-kernel": "^0.2.
|
|
38
|
-
"@difizen/libro-common": "^0.2.
|
|
39
|
-
"@difizen/libro-lsp": "^0.2.
|
|
35
|
+
"@difizen/libro-core": "^0.2.29",
|
|
36
|
+
"@difizen/libro-code-editor": "^0.2.29",
|
|
37
|
+
"@difizen/libro-kernel": "^0.2.29",
|
|
38
|
+
"@difizen/libro-common": "^0.2.29",
|
|
39
|
+
"@difizen/libro-lsp": "^0.2.29",
|
|
40
40
|
"@difizen/mana-app": "latest",
|
|
41
41
|
"@difizen/mana-common": "latest",
|
|
42
42
|
"uuid": "^9.0.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CellUri } from '@difizen/libro-common';
|
|
2
2
|
import type { CellView, LibroView } from '@difizen/libro-core';
|
|
3
3
|
import { ExecutableNotebookModel } from '@difizen/libro-kernel';
|
|
4
4
|
import type { NotebookCell, NotebookDocument, NotebookRange } from 'vscode';
|
|
@@ -42,7 +42,7 @@ export const l2c = {
|
|
|
42
42
|
kind:
|
|
43
43
|
cell.model.type === 'code' ? NotebookCellKind.Code : NotebookCellKind.Markup,
|
|
44
44
|
document: {
|
|
45
|
-
uri: Uri.parse(
|
|
45
|
+
uri: Uri.parse(CellUri.from(filePath, cell.model.id).toString()),
|
|
46
46
|
fileName: filePath,
|
|
47
47
|
isUntitled: false,
|
|
48
48
|
languageId: 'python',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CellUri } from '@difizen/libro-common';
|
|
2
2
|
import {
|
|
3
3
|
EditorCellView,
|
|
4
4
|
ILibroWorkspaceService,
|
|
@@ -93,7 +93,7 @@ export class LibroLanguageClientContribution implements ApplicationContribution
|
|
|
93
93
|
const cell = libroView.model.cells.find((item) => {
|
|
94
94
|
return (
|
|
95
95
|
ExecutableNotebookModel.is(libroView.model) &&
|
|
96
|
-
|
|
96
|
+
CellUri.from(libroView.model.filePath, item.model.id).toString() ===
|
|
97
97
|
decodeURIComponent(resource.toString())
|
|
98
98
|
);
|
|
99
99
|
});
|