@difizen/libro-jupyter 0.3.16 → 0.3.18
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.
- package/es/contents/content-contribution.d.ts.map +1 -1
- package/es/contents/content-contribution.js +3 -2
- package/es/file/file-view/index.js +2 -2
- package/es/file/navigatable-view.d.ts +1 -0
- package/es/file/navigatable-view.d.ts.map +1 -1
- package/package.json +17 -17
- package/src/contents/content-contribution.ts +1 -0
- package/src/file/file-view/index.tsx +1 -1
- package/src/file/navigatable-view.tsx +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-contribution.d.ts","sourceRoot":"","sources":["../../src/contents/content-contribution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAM1D,qBACa,+BAAgC,YAAW,mBAAmB;IACzE,SAAS,eAEP;IACI,WAAW,CAAC,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,aAAa;
|
|
1
|
+
{"version":3,"file":"content-contribution.d.ts","sourceRoot":"","sources":["../../src/contents/content-contribution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAM1D,qBACa,+BAAgC,YAAW,mBAAmB;IACzE,SAAS,eAEP;IACI,WAAW,CAAC,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,aAAa;CAgBhE"}
|
|
@@ -36,15 +36,16 @@ export var LibroJupyterContentContribution = (_dec = singleton({
|
|
|
36
36
|
case 5:
|
|
37
37
|
currentFileContents = _context.sent;
|
|
38
38
|
if (!currentFileContents) {
|
|
39
|
-
_context.next =
|
|
39
|
+
_context.next = 13;
|
|
40
40
|
break;
|
|
41
41
|
}
|
|
42
|
+
model.options['fileSize'] = currentFileContents.size;
|
|
42
43
|
currentFileContents.content.nbformat_minor = 5;
|
|
43
44
|
jupyterModel.currentFileContents = currentFileContents;
|
|
44
45
|
jupyterModel.filePath = currentFileContents.path;
|
|
45
46
|
jupyterModel.lastModified = jupyterModel.currentFileContents.last_modified;
|
|
46
47
|
return _context.abrupt("return", jupyterModel.currentFileContents.content);
|
|
47
|
-
case
|
|
48
|
+
case 13:
|
|
48
49
|
case "end":
|
|
49
50
|
return _context.stop();
|
|
50
51
|
}
|
|
@@ -100,8 +100,8 @@ export var FileView = (_dec = singleton(), _dec2 = view(FileTreeViewFactory, Fil
|
|
|
100
100
|
if (opener) {
|
|
101
101
|
opener.open(treeNode.uri, {
|
|
102
102
|
viewOptions: {
|
|
103
|
-
name: treeNode.fileStat.name
|
|
104
|
-
|
|
103
|
+
name: treeNode.fileStat.name,
|
|
104
|
+
fileSize: treeNode.fileStat.size
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
}
|
|
@@ -24,6 +24,7 @@ export declare class LibroNavigatableView extends BaseView implements Navigatabl
|
|
|
24
24
|
get ready(): Promise<void>;
|
|
25
25
|
constructor(options: {
|
|
26
26
|
path: string;
|
|
27
|
+
[key: string]: any;
|
|
27
28
|
}, labelProvider: LabelProvider, configurationService: ConfigurationService);
|
|
28
29
|
onViewMount(): Promise<void>;
|
|
29
30
|
save: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigatable-view.d.ts","sourceRoot":"","sources":["../../src/file/navigatable-view.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAoB,MAAM,qBAAqB,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAc,oBA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
|
38
38
|
"@ant-design/colors": "^7.0.0",
|
|
39
39
|
"@ant-design/icons": "^5.1.0",
|
|
40
|
-
"@difizen/libro-code-cell": "^0.3.
|
|
41
|
-
"@difizen/libro-code-editor": "^0.3.
|
|
42
|
-
"@difizen/libro-codemirror": "^0.3.
|
|
43
|
-
"@difizen/libro-cofine-editor": "^0.3.
|
|
44
|
-
"@difizen/libro-common": "^0.3.
|
|
45
|
-
"@difizen/libro-core": "^0.3.
|
|
46
|
-
"@difizen/libro-kernel": "^0.3.
|
|
47
|
-
"@difizen/libro-l10n": "^0.3.
|
|
48
|
-
"@difizen/libro-language-client": "^0.3.
|
|
49
|
-
"@difizen/libro-lsp": "^0.3.
|
|
50
|
-
"@difizen/libro-markdown-cell": "^0.3.
|
|
51
|
-
"@difizen/libro-output": "^0.3.
|
|
52
|
-
"@difizen/libro-raw-cell": "^0.3.
|
|
53
|
-
"@difizen/libro-rendermime": "^0.3.
|
|
54
|
-
"@difizen/libro-search": "^0.3.
|
|
55
|
-
"@difizen/libro-search-code-cell": "^0.3.
|
|
40
|
+
"@difizen/libro-code-cell": "^0.3.18",
|
|
41
|
+
"@difizen/libro-code-editor": "^0.3.18",
|
|
42
|
+
"@difizen/libro-codemirror": "^0.3.18",
|
|
43
|
+
"@difizen/libro-cofine-editor": "^0.3.18",
|
|
44
|
+
"@difizen/libro-common": "^0.3.18",
|
|
45
|
+
"@difizen/libro-core": "^0.3.18",
|
|
46
|
+
"@difizen/libro-kernel": "^0.3.18",
|
|
47
|
+
"@difizen/libro-l10n": "^0.3.18",
|
|
48
|
+
"@difizen/libro-language-client": "^0.3.18",
|
|
49
|
+
"@difizen/libro-lsp": "^0.3.18",
|
|
50
|
+
"@difizen/libro-markdown-cell": "^0.3.18",
|
|
51
|
+
"@difizen/libro-output": "^0.3.18",
|
|
52
|
+
"@difizen/libro-raw-cell": "^0.3.18",
|
|
53
|
+
"@difizen/libro-rendermime": "^0.3.18",
|
|
54
|
+
"@difizen/libro-search": "^0.3.18",
|
|
55
|
+
"@difizen/libro-search-code-cell": "^0.3.18",
|
|
56
56
|
"@difizen/mana-app": "latest",
|
|
57
57
|
"@difizen/mana-l10n": "latest",
|
|
58
58
|
"uuid": "^9.0.0",
|
|
@@ -17,6 +17,7 @@ export class LibroJupyterContentContribution implements ContentContribution {
|
|
|
17
17
|
|
|
18
18
|
const currentFileContents = await jupyterModel.fileService.read(filePath);
|
|
19
19
|
if (currentFileContents) {
|
|
20
|
+
model.options['fileSize'] = currentFileContents.size;
|
|
20
21
|
currentFileContents.content.nbformat_minor = 5;
|
|
21
22
|
jupyterModel.currentFileContents = currentFileContents;
|
|
22
23
|
jupyterModel.filePath = currentFileContents.path;
|
|
@@ -77,7 +77,7 @@ export class LibroNavigatableView
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
constructor(
|
|
80
|
-
@inject(ViewOption) options: { path: string },
|
|
80
|
+
@inject(ViewOption) options: { path: string; [key: string]: any },
|
|
81
81
|
@inject(LabelProvider) labelProvider: LabelProvider,
|
|
82
82
|
@inject(ConfigurationService) configurationService: ConfigurationService,
|
|
83
83
|
) {
|