@jupyterlab/fileeditor 4.0.0-alpha.10 → 4.0.0-alpha.13
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/lib/fileeditorlspadapter.d.ts +90 -0
- package/lib/fileeditorlspadapter.js +154 -0
- package/lib/fileeditorlspadapter.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/searchprovider.js +2 -3
- package/lib/searchprovider.js.map +1 -1
- package/package.json +16 -15
- package/style/base.css +8 -0
- package/style/index.css +1 -0
- package/style/index.js +1 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { CodeEditor } from '@jupyterlab/codeeditor';
|
|
2
|
+
import { CodeMirrorEditor } from '@jupyterlab/codemirror';
|
|
3
|
+
import { DocumentRegistry, IDocumentWidget } from '@jupyterlab/docregistry';
|
|
4
|
+
import { IAdapterOptions, IVirtualPosition, VirtualDocument, WidgetLSPAdapter } from '@jupyterlab/lsp';
|
|
5
|
+
import { FileEditor } from './widget';
|
|
6
|
+
export interface IFileEditorAdapterOptions extends IAdapterOptions {
|
|
7
|
+
/**
|
|
8
|
+
* The document registry instance.
|
|
9
|
+
*/
|
|
10
|
+
docRegistry: DocumentRegistry;
|
|
11
|
+
}
|
|
12
|
+
export declare class FileEditorAdapter extends WidgetLSPAdapter<IDocumentWidget<FileEditor>> {
|
|
13
|
+
constructor(editorWidget: IDocumentWidget<FileEditor>, options: IFileEditorAdapterOptions);
|
|
14
|
+
/**
|
|
15
|
+
* The wrapped `FileEditor` widget.
|
|
16
|
+
*/
|
|
17
|
+
readonly editor: FileEditor;
|
|
18
|
+
/**
|
|
19
|
+
* Get current path of the document.
|
|
20
|
+
*/
|
|
21
|
+
get documentPath(): string;
|
|
22
|
+
/**
|
|
23
|
+
* Get the mime type of the document.
|
|
24
|
+
*/
|
|
25
|
+
get mimeType(): string;
|
|
26
|
+
/**
|
|
27
|
+
* Get the file extension of the document.
|
|
28
|
+
*/
|
|
29
|
+
get languageFileExtension(): string;
|
|
30
|
+
/**
|
|
31
|
+
* Get the CM editor
|
|
32
|
+
*/
|
|
33
|
+
get ceEditor(): CodeMirrorEditor;
|
|
34
|
+
/**
|
|
35
|
+
* Get the activated CM editor.
|
|
36
|
+
*/
|
|
37
|
+
get activeEditor(): CodeEditor.IEditor;
|
|
38
|
+
/**
|
|
39
|
+
* Get the inner HTMLElement of the document widget.
|
|
40
|
+
*/
|
|
41
|
+
get wrapperElement(): HTMLElement;
|
|
42
|
+
/**
|
|
43
|
+
* Get current path of the document.
|
|
44
|
+
*/
|
|
45
|
+
get path(): string;
|
|
46
|
+
/**
|
|
47
|
+
* Get the list of CM editors in the document, there is only one editor
|
|
48
|
+
* in the case of file editor.
|
|
49
|
+
*/
|
|
50
|
+
get editors(): {
|
|
51
|
+
ceEditor: CodeEditor.IEditor;
|
|
52
|
+
type: string;
|
|
53
|
+
}[];
|
|
54
|
+
/**
|
|
55
|
+
* Generate the virtual document associated with the document.
|
|
56
|
+
*/
|
|
57
|
+
createVirtualDocument(): VirtualDocument;
|
|
58
|
+
/**
|
|
59
|
+
* Get the index of editor from the cursor position in the virtual
|
|
60
|
+
* document. Since there is only one editor, this method always return
|
|
61
|
+
* 0
|
|
62
|
+
*
|
|
63
|
+
* @param position - the position of cursor in the virtual document.
|
|
64
|
+
* @return {number} - index of the virtual editor
|
|
65
|
+
*/
|
|
66
|
+
getEditorIndexAt(position: IVirtualPosition): number;
|
|
67
|
+
/**
|
|
68
|
+
* Get the index of input editor
|
|
69
|
+
*
|
|
70
|
+
* @param ceEditor - instance of the code editor
|
|
71
|
+
*/
|
|
72
|
+
getEditorIndex(ceEditor: CodeEditor.IEditor): number;
|
|
73
|
+
/**
|
|
74
|
+
* Get the wrapper of input editor.
|
|
75
|
+
*
|
|
76
|
+
* @param ceEditor
|
|
77
|
+
* @return {HTMLElement}
|
|
78
|
+
*/
|
|
79
|
+
getEditorWrapper(ceEditor: CodeEditor.IEditor): HTMLElement;
|
|
80
|
+
/**
|
|
81
|
+
* Initialization function called once the editor and the LSP connection
|
|
82
|
+
* manager is ready. This function will create the virtual document and
|
|
83
|
+
* connect various signals.
|
|
84
|
+
*/
|
|
85
|
+
protected initOnceReady(): Promise<void>;
|
|
86
|
+
/**
|
|
87
|
+
* The document registry instance.
|
|
88
|
+
*/
|
|
89
|
+
private readonly _docRegistry;
|
|
90
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
// Copyright (c) Jupyter Development Team.
|
|
2
|
+
// Distributed under the terms of the Modified BSD License.
|
|
3
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
4
|
+
var t = {};
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
8
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
9
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
10
|
+
t[p[i]] = s[p[i]];
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
};
|
|
14
|
+
import { VirtualDocument, WidgetLSPAdapter } from '@jupyterlab/lsp';
|
|
15
|
+
export class FileEditorAdapter extends WidgetLSPAdapter {
|
|
16
|
+
constructor(editorWidget, options) {
|
|
17
|
+
const { docRegistry } = options, others = __rest(options, ["docRegistry"]);
|
|
18
|
+
super(editorWidget, others);
|
|
19
|
+
this.editor = editorWidget.content;
|
|
20
|
+
this._docRegistry = docRegistry;
|
|
21
|
+
this.ready = new Promise((resolve, reject) => {
|
|
22
|
+
this.initOnceReady().then(resolve).catch(reject);
|
|
23
|
+
});
|
|
24
|
+
// Dispose the adapter when the editor is disposed.
|
|
25
|
+
editorWidget.disposed.connect(() => this.dispose());
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get current path of the document.
|
|
29
|
+
*/
|
|
30
|
+
get documentPath() {
|
|
31
|
+
return this.widget.context.path;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Get the mime type of the document.
|
|
35
|
+
*/
|
|
36
|
+
get mimeType() {
|
|
37
|
+
const codeMirrorMimeType = this.editor.model.mimeType;
|
|
38
|
+
const contentsModel = this.editor.context.contentsModel;
|
|
39
|
+
// when MIME type is not known it defaults to 'text/plain',
|
|
40
|
+
// so if it is different we can accept it as it is
|
|
41
|
+
if (codeMirrorMimeType != 'text/plain') {
|
|
42
|
+
return codeMirrorMimeType;
|
|
43
|
+
}
|
|
44
|
+
else if (contentsModel) {
|
|
45
|
+
// a script that does not have a MIME type known by the editor
|
|
46
|
+
// (no syntax highlight mode), can still be known by the document
|
|
47
|
+
// registry (and this is arguably easier to extend).
|
|
48
|
+
let fileType = this._docRegistry.getFileTypeForModel(contentsModel);
|
|
49
|
+
return fileType.mimeTypes[0];
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
// "text/plain" this is
|
|
53
|
+
return codeMirrorMimeType;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Get the file extension of the document.
|
|
58
|
+
*/
|
|
59
|
+
get languageFileExtension() {
|
|
60
|
+
let parts = this.documentPath.split('.');
|
|
61
|
+
return parts[parts.length - 1];
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Get the CM editor
|
|
65
|
+
*/
|
|
66
|
+
get ceEditor() {
|
|
67
|
+
return this.editor.editor;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Get the activated CM editor.
|
|
71
|
+
*/
|
|
72
|
+
get activeEditor() {
|
|
73
|
+
return this.editor.editor;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Get the inner HTMLElement of the document widget.
|
|
77
|
+
*/
|
|
78
|
+
get wrapperElement() {
|
|
79
|
+
return this.widget.node;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Get current path of the document.
|
|
83
|
+
*/
|
|
84
|
+
get path() {
|
|
85
|
+
return this.widget.context.path;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Get the list of CM editors in the document, there is only one editor
|
|
89
|
+
* in the case of file editor.
|
|
90
|
+
*/
|
|
91
|
+
get editors() {
|
|
92
|
+
return [{ ceEditor: this.editor.editor, type: 'code' }];
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Generate the virtual document associated with the document.
|
|
96
|
+
*/
|
|
97
|
+
createVirtualDocument() {
|
|
98
|
+
return new VirtualDocument({
|
|
99
|
+
language: this.language,
|
|
100
|
+
foreignCodeExtractors: this.options.foreignCodeExtractorsManager,
|
|
101
|
+
path: this.documentPath,
|
|
102
|
+
fileExtension: this.languageFileExtension,
|
|
103
|
+
// notebooks are continuous, each cell is dependent on the previous one
|
|
104
|
+
standalone: true,
|
|
105
|
+
// notebooks are not supported by LSP servers
|
|
106
|
+
hasLspSupportedFile: true
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Get the index of editor from the cursor position in the virtual
|
|
111
|
+
* document. Since there is only one editor, this method always return
|
|
112
|
+
* 0
|
|
113
|
+
*
|
|
114
|
+
* @param position - the position of cursor in the virtual document.
|
|
115
|
+
* @return {number} - index of the virtual editor
|
|
116
|
+
*/
|
|
117
|
+
getEditorIndexAt(position) {
|
|
118
|
+
return 0;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Get the index of input editor
|
|
122
|
+
*
|
|
123
|
+
* @param ceEditor - instance of the code editor
|
|
124
|
+
*/
|
|
125
|
+
getEditorIndex(ceEditor) {
|
|
126
|
+
return 0;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Get the wrapper of input editor.
|
|
130
|
+
*
|
|
131
|
+
* @param ceEditor
|
|
132
|
+
* @return {HTMLElement}
|
|
133
|
+
*/
|
|
134
|
+
getEditorWrapper(ceEditor) {
|
|
135
|
+
return this.wrapperElement;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Initialization function called once the editor and the LSP connection
|
|
139
|
+
* manager is ready. This function will create the virtual document and
|
|
140
|
+
* connect various signals.
|
|
141
|
+
*/
|
|
142
|
+
async initOnceReady() {
|
|
143
|
+
if (!this.editor.context.isReady) {
|
|
144
|
+
await this.editor.context.ready;
|
|
145
|
+
}
|
|
146
|
+
await this.connectionManager.ready;
|
|
147
|
+
this.initVirtual();
|
|
148
|
+
// connect the document, but do not open it as the adapter will handle this
|
|
149
|
+
// after registering all features
|
|
150
|
+
this.connectDocument(this.virtualDocument, false).catch(console.warn);
|
|
151
|
+
this.editor.model.mimeTypeChanged.connect(this.reloadConnection, this);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
//# sourceMappingURL=fileeditorlspadapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fileeditorlspadapter.js","sourceRoot":"","sources":["../src/fileeditorlspadapter.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;;;;;;;;;;;;AAK3D,OAAO,EAGL,eAAe,EACf,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AAWzB,MAAM,OAAO,iBAAkB,SAAQ,gBAEtC;IACC,YACE,YAAyC,EACzC,OAAkC;QAElC,MAAM,EAAE,WAAW,KAAgB,OAAO,EAAlB,MAAM,UAAK,OAAO,EAApC,eAA0B,CAAU,CAAC;QAC3C,KAAK,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;QAC5B,IAAI,CAAC,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC;QACnC,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,KAAK,GAAG,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACjD,IAAI,CAAC,aAAa,EAAE,CAAC,IAAI,CAAC,OAAO,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AAe,EAAE,KAAK,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAEtE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;CAMF"}
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAC3D;;;GAGG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAC3D;;;GAGG;AAEH,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
package/lib/searchprovider.js
CHANGED
|
@@ -12,8 +12,7 @@ export class FileEditorSearchProvider extends CodeMirrorSearchProvider {
|
|
|
12
12
|
* @param widget File editor panel
|
|
13
13
|
*/
|
|
14
14
|
constructor(widget) {
|
|
15
|
-
super();
|
|
16
|
-
this.editor = widget.content.editor;
|
|
15
|
+
super(widget.content.editor);
|
|
17
16
|
}
|
|
18
17
|
/**
|
|
19
18
|
* Instantiate a search provider for the widget.
|
|
@@ -46,7 +45,7 @@ export class FileEditorSearchProvider extends CodeMirrorSearchProvider {
|
|
|
46
45
|
*/
|
|
47
46
|
getInitialQuery() {
|
|
48
47
|
const cm = this.editor;
|
|
49
|
-
const selection = cm.
|
|
48
|
+
const selection = cm.state.sliceDoc(cm.state.selection.main.from, cm.state.selection.main.to);
|
|
50
49
|
// if there are newlines, just return empty string
|
|
51
50
|
return selection.search(/\r?\n|\r/g) === -1 ? selection : '';
|
|
52
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchprovider.js","sourceRoot":"","sources":["../src/searchprovider.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACzB,MAAM,wBAAwB,CAAC;AAIhC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAOtC;;GAEG;AACH,MAAM,OAAO,wBACX,SAAQ,wBAAwB;IAGhC;;;OAGG;IACH,YAAY,MAAuB;QACjC,KAAK,
|
|
1
|
+
{"version":3,"file":"searchprovider.js","sourceRoot":"","sources":["../src/searchprovider.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACzB,MAAM,wBAAwB,CAAC;AAIhC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAOtC;;GAEG;AACH,MAAM,OAAO,wBACX,SAAQ,wBAAwB;IAGhC;;;OAGG;IACH,YAAY,MAAuB;QACjC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,MAA0B,CAAC,CAAC;IACnD,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,SAAS,CACd,MAAuB,EACvB,UAAwB;QAExB,OAAO,IAAI,wBAAwB,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,YAAY,CAAC,MAAc;QAChC,OAAO,CACL,MAAM,YAAY,cAAc;YAChC,MAAM,CAAC,OAAO,YAAY,UAAU;YACpC,MAAM,CAAC,OAAO,CAAC,MAAM,YAAY,gBAAgB,CAClD,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,eAAe;QACb,MAAM,EAAE,GAAG,IAAI,CAAC,MAA0B,CAAC;QAC3C,MAAM,SAAS,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CACjC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,EAC5B,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAC3B,CAAC;QACF,kDAAkD;QAClD,OAAO,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/D,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/fileeditor",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.13",
|
|
4
4
|
"description": "JupyterLab - Editor Widget",
|
|
5
5
|
"homepage": "https://github.com/jupyterlab/jupyterlab",
|
|
6
6
|
"bugs": {
|
|
@@ -39,29 +39,30 @@
|
|
|
39
39
|
"watch": "tsc -b --watch"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@jupyterlab/apputils": "^4.0.0-alpha.
|
|
43
|
-
"@jupyterlab/codeeditor": "^4.0.0-alpha.
|
|
44
|
-
"@jupyterlab/codemirror": "^4.0.0-alpha.
|
|
45
|
-
"@jupyterlab/docregistry": "^4.0.0-alpha.
|
|
46
|
-
"@jupyterlab/documentsearch": "^4.0.0-alpha.
|
|
47
|
-
"@jupyterlab/
|
|
48
|
-
"@jupyterlab/
|
|
49
|
-
"@jupyterlab/
|
|
50
|
-
"@jupyterlab/
|
|
51
|
-
"@
|
|
52
|
-
"@lumino/
|
|
53
|
-
"@lumino/
|
|
42
|
+
"@jupyterlab/apputils": "^4.0.0-alpha.13",
|
|
43
|
+
"@jupyterlab/codeeditor": "^4.0.0-alpha.13",
|
|
44
|
+
"@jupyterlab/codemirror": "^4.0.0-alpha.13",
|
|
45
|
+
"@jupyterlab/docregistry": "^4.0.0-alpha.13",
|
|
46
|
+
"@jupyterlab/documentsearch": "^4.0.0-alpha.13",
|
|
47
|
+
"@jupyterlab/lsp": "^4.0.0-alpha.13",
|
|
48
|
+
"@jupyterlab/statusbar": "^4.0.0-alpha.13",
|
|
49
|
+
"@jupyterlab/toc": "^6.0.0-alpha.13",
|
|
50
|
+
"@jupyterlab/translation": "^4.0.0-alpha.13",
|
|
51
|
+
"@jupyterlab/ui-components": "^4.0.0-alpha.28",
|
|
52
|
+
"@lumino/coreutils": "^2.0.0-alpha.1",
|
|
53
|
+
"@lumino/messaging": "^2.0.0-alpha.1",
|
|
54
|
+
"@lumino/widgets": "^2.0.0-alpha.1",
|
|
54
55
|
"react": "^17.0.1",
|
|
55
56
|
"regexp-match-indices": "^1.0.2"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
58
|
-
"@jupyterlab/testutils": "^4.0.0-alpha.
|
|
59
|
+
"@jupyterlab/testutils": "^4.0.0-alpha.13",
|
|
59
60
|
"@types/jest": "^26.0.10",
|
|
60
61
|
"jest": "^26.4.2",
|
|
61
62
|
"rimraf": "~3.0.0",
|
|
62
63
|
"ts-jest": "^26.3.0",
|
|
63
64
|
"typedoc": "~0.22.10",
|
|
64
|
-
"typescript": "~4.
|
|
65
|
+
"typescript": "~4.7.3"
|
|
65
66
|
},
|
|
66
67
|
"publishConfig": {
|
|
67
68
|
"access": "public"
|
package/style/base.css
CHANGED
package/style/index.css
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
@import url('~@jupyterlab/documentsearch/style/index.css');
|
|
12
12
|
@import url('~@jupyterlab/codemirror/style/index.css');
|
|
13
13
|
@import url('~@jupyterlab/docregistry/style/index.css');
|
|
14
|
+
@import url('~@jupyterlab/lsp/style/index.css');
|
|
14
15
|
@import url('~@jupyterlab/toc/style/index.css');
|
|
15
16
|
|
|
16
17
|
@import url('./base.css');
|
package/style/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import '@jupyterlab/codeeditor/style/index.js';
|
|
|
11
11
|
import '@jupyterlab/documentsearch/style/index.js';
|
|
12
12
|
import '@jupyterlab/codemirror/style/index.js';
|
|
13
13
|
import '@jupyterlab/docregistry/style/index.js';
|
|
14
|
+
import '@jupyterlab/lsp/style/index.js';
|
|
14
15
|
import '@jupyterlab/toc/style/index.js';
|
|
15
16
|
|
|
16
17
|
import './base.css';
|