@jupyterlab/lsp 4.0.0-beta.1 → 4.0.0-rc.0
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/schema.d.ts +4 -0
- package/lib/tokens.js +3 -3
- package/lib/tokens.js.map +1 -1
- package/package.json +14 -14
- package/src/schema.ts +4 -0
- package/src/tokens.ts +6 -3
package/lib/schema.d.ts
CHANGED
|
@@ -141,6 +141,10 @@ export interface ServerSpecProperties {
|
|
|
141
141
|
display_name?: DisplayName;
|
|
142
142
|
env?: EnvironmentVariables;
|
|
143
143
|
extend?: Extensions;
|
|
144
|
+
/**
|
|
145
|
+
* Whether to write un-saved documents to disk in a transient `.virtual_documents` directory. Well-behaved language servers that work against in-memory files should set this to `false`, which will become the default in the future.
|
|
146
|
+
*/
|
|
147
|
+
requires_documents_on_disk?: boolean;
|
|
144
148
|
install?: Installation1;
|
|
145
149
|
languages?: LanguageList;
|
|
146
150
|
mime_types?: MIMETypes;
|
package/lib/tokens.js
CHANGED
|
@@ -16,7 +16,7 @@ export var ILanguageServerManager;
|
|
|
16
16
|
* document and LS connection of opened documents.
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
|
-
export const ILSPDocumentConnectionManager = new Token('@jupyterlab/lsp:ILSPDocumentConnectionManager');
|
|
19
|
+
export const ILSPDocumentConnectionManager = new Token('@jupyterlab/lsp:ILSPDocumentConnectionManager', 'Provides the virtual documents and language server connections service.');
|
|
20
20
|
/**
|
|
21
21
|
* @alpha
|
|
22
22
|
*
|
|
@@ -24,7 +24,7 @@ export const ILSPDocumentConnectionManager = new Token('@jupyterlab/lsp:ILSPDocu
|
|
|
24
24
|
* to register the client capabilities implemented by your extension.
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
|
-
export const ILSPFeatureManager = new Token('@jupyterlab/lsp:ILSPFeatureManager');
|
|
27
|
+
export const ILSPFeatureManager = new Token('@jupyterlab/lsp:ILSPFeatureManager', 'Provides the language server feature manager. This token is required to register new client capabilities.');
|
|
28
28
|
/**
|
|
29
29
|
* @alpha
|
|
30
30
|
*
|
|
@@ -33,7 +33,7 @@ export const ILSPFeatureManager = new Token('@jupyterlab/lsp:ILSPFeatureManager'
|
|
|
33
33
|
* virtual documents from an opened document.
|
|
34
34
|
*
|
|
35
35
|
*/
|
|
36
|
-
export const ILSPCodeExtractorsManager = new Token('@jupyterlab/lsp:ILSPCodeExtractorsManager');
|
|
36
|
+
export const ILSPCodeExtractorsManager = new Token('@jupyterlab/lsp:ILSPCodeExtractorsManager', 'Provides the code extractor manager. This token is required in your extension to register code extractor allowing the creation of multiple virtual document from an opened document.');
|
|
37
37
|
/**
|
|
38
38
|
* Method strings are reproduced here because a non-typing import of
|
|
39
39
|
* `vscode-languageserver-protocol` is ridiculously expensive.
|
package/lib/tokens.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAI3D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AA6P1C,MAAM,KAAW,sBAAsB,CA0CtC;AA1CD,WAAiB,sBAAsB;IACrC;;OAEG;IACU,6BAAM,GAAG,KAAK,CAAC;AAsC9B,CAAC,EA1CgB,sBAAsB,KAAtB,sBAAsB,QA0CtC;AA4OD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,6BAA6B,GACxC,IAAI,KAAK,CACP,+CAA+C,
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAI3D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AA6P1C,MAAM,KAAW,sBAAsB,CA0CtC;AA1CD,WAAiB,sBAAsB;IACrC;;OAEG;IACU,6BAAM,GAAG,KAAK,CAAC;AAsC9B,CAAC,EA1CgB,sBAAsB,K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AC5B,+DAA8C,CAAA;QAC9C,0CAAyB,CAAA;QACzB,uDAAsC,CAAA;QACtC,+CAA8B,CAAA;QAC9B,8DAA6C,CAAA;QAC7C,gEAA+C,CAAA;IACjD,CAAC,EAbW,aAAa,GAAb,oBAAa,KAAb,oBAAa,QAaxB;AACH,CAAC,EA1CgB,MAAM,KAAN,MAAM,QA0CtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/lsp",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-rc.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://github.com/jupyterlab/jupyterlab",
|
|
6
6
|
"bugs": {
|
|
@@ -36,36 +36,36 @@
|
|
|
36
36
|
"clean": "rimraf lib && rimraf tsconfig.tsbuildinfo",
|
|
37
37
|
"test": "jest",
|
|
38
38
|
"test:cov": "jest --collect-coverage",
|
|
39
|
-
"test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand",
|
|
40
|
-
"test:debug:watch": "node --inspect-brk node_modules/.bin/jest --runInBand --watch",
|
|
39
|
+
"test:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand",
|
|
40
|
+
"test:debug:watch": "node --inspect-brk ../../node_modules/.bin/jest --runInBand --watch",
|
|
41
41
|
"watch": "tsc -b --watch"
|
|
42
42
|
},
|
|
43
43
|
"resolutions": {
|
|
44
44
|
"vscode-languageserver-protocol": "^3.17.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@jupyterlab/apputils": "^4.0.0-
|
|
48
|
-
"@jupyterlab/codeeditor": "^4.0.0-
|
|
49
|
-
"@jupyterlab/coreutils": "^6.0.0-
|
|
50
|
-
"@jupyterlab/docregistry": "^4.0.0-
|
|
51
|
-
"@jupyterlab/services": "^7.0.0-
|
|
52
|
-
"@jupyterlab/translation": "^4.0.0-
|
|
53
|
-
"@lumino/coreutils": "^2.
|
|
54
|
-
"@lumino/disposable": "^2.
|
|
55
|
-
"@lumino/signaling": "^2.
|
|
47
|
+
"@jupyterlab/apputils": "^4.0.0-rc.0",
|
|
48
|
+
"@jupyterlab/codeeditor": "^4.0.0-rc.0",
|
|
49
|
+
"@jupyterlab/coreutils": "^6.0.0-rc.0",
|
|
50
|
+
"@jupyterlab/docregistry": "^4.0.0-rc.0",
|
|
51
|
+
"@jupyterlab/services": "^7.0.0-rc.0",
|
|
52
|
+
"@jupyterlab/translation": "^4.0.0-rc.0",
|
|
53
|
+
"@lumino/coreutils": "^2.1.1",
|
|
54
|
+
"@lumino/disposable": "^2.1.1",
|
|
55
|
+
"@lumino/signaling": "^2.1.1",
|
|
56
56
|
"lodash.mergewith": "^4.6.1",
|
|
57
57
|
"vscode-jsonrpc": "^6.0.0",
|
|
58
58
|
"vscode-languageserver-protocol": "^3.17.0",
|
|
59
59
|
"vscode-ws-jsonrpc": "~1.0.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@jupyterlab/testing": "^4.0.0-
|
|
62
|
+
"@jupyterlab/testing": "^4.0.0-rc.0",
|
|
63
63
|
"@types/jest": "^29.2.0",
|
|
64
64
|
"@types/lodash.mergewith": "^4.6.1",
|
|
65
65
|
"jest": "^29.2.0",
|
|
66
66
|
"json-schema-to-typescript": "^8.0.0",
|
|
67
67
|
"rimraf": "~3.0.0",
|
|
68
|
-
"typescript": "~5.0.
|
|
68
|
+
"typescript": "~5.0.4"
|
|
69
69
|
},
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
package/src/schema.ts
CHANGED
|
@@ -149,6 +149,10 @@ export interface ServerSpecProperties {
|
|
|
149
149
|
display_name?: DisplayName;
|
|
150
150
|
env?: EnvironmentVariables;
|
|
151
151
|
extend?: Extensions;
|
|
152
|
+
/**
|
|
153
|
+
* Whether to write un-saved documents to disk in a transient `.virtual_documents` directory. Well-behaved language servers that work against in-memory files should set this to `false`, which will become the default in the future.
|
|
154
|
+
*/
|
|
155
|
+
requires_documents_on_disk?: boolean;
|
|
152
156
|
install?: Installation1;
|
|
153
157
|
languages?: LanguageList;
|
|
154
158
|
mime_types?: MIMETypes;
|
package/src/tokens.ts
CHANGED
|
@@ -544,7 +544,8 @@ export interface ILSPCodeExtractorsManager {
|
|
|
544
544
|
*/
|
|
545
545
|
export const ILSPDocumentConnectionManager =
|
|
546
546
|
new Token<ILSPDocumentConnectionManager>(
|
|
547
|
-
'@jupyterlab/lsp:ILSPDocumentConnectionManager'
|
|
547
|
+
'@jupyterlab/lsp:ILSPDocumentConnectionManager',
|
|
548
|
+
'Provides the virtual documents and language server connections service.'
|
|
548
549
|
);
|
|
549
550
|
|
|
550
551
|
/**
|
|
@@ -555,7 +556,8 @@ export const ILSPDocumentConnectionManager =
|
|
|
555
556
|
*
|
|
556
557
|
*/
|
|
557
558
|
export const ILSPFeatureManager = new Token<ILSPFeatureManager>(
|
|
558
|
-
'@jupyterlab/lsp:ILSPFeatureManager'
|
|
559
|
+
'@jupyterlab/lsp:ILSPFeatureManager',
|
|
560
|
+
'Provides the language server feature manager. This token is required to register new client capabilities.'
|
|
559
561
|
);
|
|
560
562
|
|
|
561
563
|
/**
|
|
@@ -567,7 +569,8 @@ export const ILSPFeatureManager = new Token<ILSPFeatureManager>(
|
|
|
567
569
|
*
|
|
568
570
|
*/
|
|
569
571
|
export const ILSPCodeExtractorsManager = new Token<ILSPCodeExtractorsManager>(
|
|
570
|
-
'@jupyterlab/lsp:ILSPCodeExtractorsManager'
|
|
572
|
+
'@jupyterlab/lsp:ILSPCodeExtractorsManager',
|
|
573
|
+
'Provides the code extractor manager. This token is required in your extension to register code extractor allowing the creation of multiple virtual document from an opened document.'
|
|
571
574
|
);
|
|
572
575
|
|
|
573
576
|
/**
|