@difizen/libro-jupyter 0.3.16 → 0.3.17
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.
|
@@ -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
|
}
|
|
@@ -18,12 +18,14 @@ export declare class LibroNavigatableView extends BaseView implements Navigatabl
|
|
|
18
18
|
autoSaveDelay: number;
|
|
19
19
|
get onDirtyChanged(): import("@difizen/mana-app").Event<void>;
|
|
20
20
|
autoSave: 'on' | 'off';
|
|
21
|
+
fileSize?: number;
|
|
21
22
|
dirty: boolean;
|
|
22
23
|
libroView?: LibroView;
|
|
23
24
|
protected defer: Deferred<void>;
|
|
24
25
|
get ready(): Promise<void>;
|
|
25
26
|
constructor(options: {
|
|
26
27
|
path: string;
|
|
28
|
+
[key: string]: any;
|
|
27
29
|
}, labelProvider: LabelProvider, configurationService: ConfigurationService);
|
|
28
30
|
onViewMount(): Promise<void>;
|
|
29
31
|
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,oBAAoB,EAAE,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,YAAY,CAAC;IAElC,eAAe,EAAE,eAAe,CAAC;IAE1D,SAAS,CAAC,QAAQ,CAAC,mBAAmB,uBAA8B;IAE3D,IAAI,oFAAwB;IAErC,OAAO,4CAA+B;IAE9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAE1B,YAAY,gBAAuB;IAEnC,aAAa,SAAQ;IAErB,IAAI,cAAc,4CAEjB;IAED,QAAQ,EAAE,IAAI,GAAG,KAAK,CAAS;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,KAAK,EAAE,OAAO,CAAC;IAGf,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,SAAS,CAAC,KAAK,iBAAwB;IAEvC,IAAI,KAAK,kBAER;gBAGqB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,EAC1C,aAAa,EAAE,aAAa,EACrB,oBAAoB,EAAE,oBAAoB;IA4B3D,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3C,IAAI,aAQF;IAEF,SAAS,CAAC,UAAU,IAAI,IAAI;cAYZ,oBAAoB;IA0BpC,cAAc,IAAI,GAAG,GAAG,SAAS;IAIjC,eAAe,CAAC,WAAW,EAAE,GAAG,GAAG,GAAG,GAAG,SAAS;CAKnD"}
|
|
@@ -51,6 +51,7 @@ export var LibroNavigatableView = (_dec = transient(), _dec2 = view(LibroNavigat
|
|
|
51
51
|
_this.dirtyEmitter = new Emitter();
|
|
52
52
|
_this.autoSaveDelay = 1000;
|
|
53
53
|
_this.autoSave = 'off';
|
|
54
|
+
_this.fileSize = void 0;
|
|
54
55
|
_initializerDefineProperty(_this, "dirty", _descriptor4, _assertThisInitialized(_this));
|
|
55
56
|
_initializerDefineProperty(_this, "libroView", _descriptor5, _assertThisInitialized(_this));
|
|
56
57
|
_this.defer = new Deferred();
|
|
@@ -62,6 +63,7 @@ export var LibroNavigatableView = (_dec = transient(), _dec2 = view(LibroNavigat
|
|
|
62
63
|
_this.filePath = options.path;
|
|
63
64
|
_this.dirty = false;
|
|
64
65
|
_this.title.caption = options.path;
|
|
66
|
+
_this.fileSize = options['fileSize'];
|
|
65
67
|
var uri = new URI(options.path);
|
|
66
68
|
var uriRef = URIIconReference.create('file', new VScodeURI(options.path));
|
|
67
69
|
var iconClass = labelProvider.getIcon(uriRef);
|
|
@@ -141,7 +143,8 @@ export var LibroNavigatableView = (_dec = transient(), _dec2 = view(LibroNavigat
|
|
|
141
143
|
_context2.next = 2;
|
|
142
144
|
return this.libroService.getOrCreateView({
|
|
143
145
|
id: this.filePath,
|
|
144
|
-
resource: this.filePath
|
|
146
|
+
resource: this.filePath,
|
|
147
|
+
fileSize: this.fileSize
|
|
145
148
|
});
|
|
146
149
|
case 2:
|
|
147
150
|
libroView = _context2.sent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-jupyter",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.17",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro"
|
|
@@ -37,22 +37,22 @@
|
|
|
37
37
|
"dependencies": {
|
|
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.17",
|
|
41
|
+
"@difizen/libro-code-editor": "^0.3.17",
|
|
42
|
+
"@difizen/libro-codemirror": "^0.3.17",
|
|
43
|
+
"@difizen/libro-cofine-editor": "^0.3.17",
|
|
44
|
+
"@difizen/libro-common": "^0.3.17",
|
|
45
|
+
"@difizen/libro-core": "^0.3.17",
|
|
46
|
+
"@difizen/libro-kernel": "^0.3.17",
|
|
47
|
+
"@difizen/libro-l10n": "^0.3.17",
|
|
48
|
+
"@difizen/libro-language-client": "^0.3.17",
|
|
49
|
+
"@difizen/libro-lsp": "^0.3.17",
|
|
50
|
+
"@difizen/libro-markdown-cell": "^0.3.17",
|
|
51
|
+
"@difizen/libro-output": "^0.3.17",
|
|
52
|
+
"@difizen/libro-raw-cell": "^0.3.17",
|
|
53
|
+
"@difizen/libro-rendermime": "^0.3.17",
|
|
54
|
+
"@difizen/libro-search": "^0.3.17",
|
|
55
|
+
"@difizen/libro-search-code-cell": "^0.3.17",
|
|
56
56
|
"@difizen/mana-app": "latest",
|
|
57
57
|
"@difizen/mana-l10n": "latest",
|
|
58
58
|
"uuid": "^9.0.0",
|
|
@@ -63,6 +63,7 @@ export class LibroNavigatableView
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
autoSave: 'on' | 'off' = 'off';
|
|
66
|
+
fileSize?: number;
|
|
66
67
|
|
|
67
68
|
@prop()
|
|
68
69
|
dirty: boolean;
|
|
@@ -77,7 +78,7 @@ export class LibroNavigatableView
|
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
constructor(
|
|
80
|
-
@inject(ViewOption) options: { path: string },
|
|
81
|
+
@inject(ViewOption) options: { path: string; [key: string]: any },
|
|
81
82
|
@inject(LabelProvider) labelProvider: LabelProvider,
|
|
82
83
|
@inject(ConfigurationService) configurationService: ConfigurationService,
|
|
83
84
|
) {
|
|
@@ -85,6 +86,7 @@ export class LibroNavigatableView
|
|
|
85
86
|
this.filePath = options.path;
|
|
86
87
|
this.dirty = false;
|
|
87
88
|
this.title.caption = options.path;
|
|
89
|
+
this.fileSize = options['fileSize'];
|
|
88
90
|
const uri = new URI(options.path);
|
|
89
91
|
const uriRef = URIIconReference.create('file', new VScodeURI(options.path));
|
|
90
92
|
const iconClass = labelProvider.getIcon(uriRef);
|
|
@@ -136,6 +138,7 @@ export class LibroNavigatableView
|
|
|
136
138
|
const libroView = await this.libroService.getOrCreateView({
|
|
137
139
|
id: this.filePath,
|
|
138
140
|
resource: this.filePath,
|
|
141
|
+
fileSize: this.fileSize,
|
|
139
142
|
});
|
|
140
143
|
if (!libroView) {
|
|
141
144
|
return;
|