@volar/language-server 1.2.0-alpha.11 → 1.2.0-alpha.12
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/out/common/documents.js
CHANGED
|
@@ -153,12 +153,16 @@ function createDocuments(connection) {
|
|
|
153
153
|
const onDidChangeContents = new Set();
|
|
154
154
|
const onDidCloses = new Set();
|
|
155
155
|
connection.onDidOpenTextDocument(params => {
|
|
156
|
+
if (params.textDocument.uri.startsWith('git:/'))
|
|
157
|
+
return;
|
|
156
158
|
snapshots.uriSet(params.textDocument.uri, new IncrementalScriptSnapshot(params.textDocument.uri, params.textDocument.languageId, params.textDocument.version, params.textDocument.text));
|
|
157
159
|
for (const cb of onDidChangeContents) {
|
|
158
160
|
cb({ textDocument: params.textDocument, contentChanges: [{ text: params.textDocument.text }] });
|
|
159
161
|
}
|
|
160
162
|
});
|
|
161
163
|
connection.onDidChangeTextDocument(params => {
|
|
164
|
+
if (params.textDocument.uri.startsWith('git:/'))
|
|
165
|
+
return;
|
|
162
166
|
const incrementalSnapshot = snapshots.uriGet(params.textDocument.uri);
|
|
163
167
|
if (incrementalSnapshot) {
|
|
164
168
|
if (params.contentChanges.every(vscode.TextDocumentContentChangeEvent.isIncremental)) {
|
|
@@ -181,6 +185,8 @@ function createDocuments(connection) {
|
|
|
181
185
|
}
|
|
182
186
|
});
|
|
183
187
|
connection.onDidCloseTextDocument(params => {
|
|
188
|
+
if (params.textDocument.uri.startsWith('git:/'))
|
|
189
|
+
return;
|
|
184
190
|
snapshots.uriDelete(params.textDocument.uri);
|
|
185
191
|
for (const cb of onDidCloses) {
|
|
186
192
|
cb(params);
|
package/out/common/project.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface ProjectContext {
|
|
|
14
14
|
}
|
|
15
15
|
export type Project = ReturnType<typeof createProject>;
|
|
16
16
|
export declare function createProject(context: ProjectContext): Promise<{
|
|
17
|
-
tsConfig:
|
|
17
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
18
18
|
scripts: {
|
|
19
19
|
clear: () => void;
|
|
20
20
|
values: () => IterableIterator<{
|
|
@@ -12,7 +12,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
12
12
|
projects: {
|
|
13
13
|
clear: () => void;
|
|
14
14
|
values: () => IterableIterator<Promise<{
|
|
15
|
-
tsConfig:
|
|
15
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
16
16
|
scripts: {
|
|
17
17
|
clear: () => void;
|
|
18
18
|
values: () => IterableIterator<{
|
|
@@ -160,7 +160,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
160
160
|
}>>;
|
|
161
161
|
uriDelete: (_uri: string) => boolean;
|
|
162
162
|
uriGet: (_uri: string) => Promise<{
|
|
163
|
-
tsConfig:
|
|
163
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
164
164
|
scripts: {
|
|
165
165
|
clear: () => void;
|
|
166
166
|
values: () => IterableIterator<{
|
|
@@ -308,7 +308,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
308
308
|
}> | undefined;
|
|
309
309
|
uriHas: (_uri: string) => boolean;
|
|
310
310
|
uriSet: (_uri: string, item: Promise<{
|
|
311
|
-
tsConfig:
|
|
311
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
312
312
|
scripts: {
|
|
313
313
|
clear: () => void;
|
|
314
314
|
values: () => IterableIterator<{
|
|
@@ -456,7 +456,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
456
456
|
}>) => void;
|
|
457
457
|
pathDelete: (path: string) => boolean;
|
|
458
458
|
pathGet: (path: string) => Promise<{
|
|
459
|
-
tsConfig:
|
|
459
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
460
460
|
scripts: {
|
|
461
461
|
clear: () => void;
|
|
462
462
|
values: () => IterableIterator<{
|
|
@@ -603,7 +603,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
603
603
|
dispose: () => void;
|
|
604
604
|
}> | undefined;
|
|
605
605
|
pathHas: (path: string) => Promise<{
|
|
606
|
-
tsConfig:
|
|
606
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
607
607
|
scripts: {
|
|
608
608
|
clear: () => void;
|
|
609
609
|
values: () => IterableIterator<{
|
|
@@ -750,7 +750,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
750
750
|
dispose: () => void;
|
|
751
751
|
}> | undefined;
|
|
752
752
|
pathSet: (path: string, item: Promise<{
|
|
753
|
-
tsConfig:
|
|
753
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
754
754
|
scripts: {
|
|
755
755
|
clear: () => void;
|
|
756
756
|
values: () => IterableIterator<{
|
|
@@ -901,7 +901,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
901
901
|
getProjectAndTsConfig: (uri: string) => Promise<{
|
|
902
902
|
tsconfig: string;
|
|
903
903
|
project: {
|
|
904
|
-
tsConfig:
|
|
904
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
905
905
|
scripts: {
|
|
906
906
|
clear: () => void;
|
|
907
907
|
values: () => IterableIterator<{
|
|
@@ -1049,7 +1049,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1049
1049
|
} | undefined;
|
|
1050
1050
|
} | undefined>;
|
|
1051
1051
|
getInferredProject: () => Promise<{
|
|
1052
|
-
tsConfig:
|
|
1052
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
1053
1053
|
scripts: {
|
|
1054
1054
|
clear: () => void;
|
|
1055
1055
|
values: () => IterableIterator<{
|
|
@@ -1196,7 +1196,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1196
1196
|
dispose: () => void;
|
|
1197
1197
|
}>;
|
|
1198
1198
|
getInferredProjectDontCreate: () => Promise<{
|
|
1199
|
-
tsConfig:
|
|
1199
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
1200
1200
|
scripts: {
|
|
1201
1201
|
clear: () => void;
|
|
1202
1202
|
values: () => IterableIterator<{
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node_modules/.pnpm/typesafe-path@0.2.2/node_modules/typesafe-path" />
|
|
2
1
|
import { ConfigurationHost } from '@volar/language-service';
|
|
3
2
|
import type * as ts from 'typescript/lib/tsserverlibrary';
|
|
4
3
|
import * as vscode from 'vscode-languageserver';
|
|
@@ -26,7 +25,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
26
25
|
projects: {
|
|
27
26
|
clear: () => void;
|
|
28
27
|
values: () => IterableIterator<Promise<{
|
|
29
|
-
tsConfig:
|
|
28
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
30
29
|
scripts: {
|
|
31
30
|
clear: () => void;
|
|
32
31
|
values: () => IterableIterator<{
|
|
@@ -174,7 +173,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
174
173
|
}>>;
|
|
175
174
|
uriDelete: (_uri: string) => boolean;
|
|
176
175
|
uriGet: (_uri: string) => Promise<{
|
|
177
|
-
tsConfig:
|
|
176
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
178
177
|
scripts: {
|
|
179
178
|
clear: () => void;
|
|
180
179
|
values: () => IterableIterator<{
|
|
@@ -322,7 +321,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
322
321
|
}> | undefined;
|
|
323
322
|
uriHas: (_uri: string) => boolean;
|
|
324
323
|
uriSet: (_uri: string, item: Promise<{
|
|
325
|
-
tsConfig:
|
|
324
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
326
325
|
scripts: {
|
|
327
326
|
clear: () => void;
|
|
328
327
|
values: () => IterableIterator<{
|
|
@@ -470,7 +469,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
470
469
|
}>) => void;
|
|
471
470
|
pathDelete: (path: string) => boolean;
|
|
472
471
|
pathGet: (path: string) => Promise<{
|
|
473
|
-
tsConfig:
|
|
472
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
474
473
|
scripts: {
|
|
475
474
|
clear: () => void;
|
|
476
475
|
values: () => IterableIterator<{
|
|
@@ -617,7 +616,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
617
616
|
dispose: () => void;
|
|
618
617
|
}> | undefined;
|
|
619
618
|
pathHas: (path: string) => Promise<{
|
|
620
|
-
tsConfig:
|
|
619
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
621
620
|
scripts: {
|
|
622
621
|
clear: () => void;
|
|
623
622
|
values: () => IterableIterator<{
|
|
@@ -764,7 +763,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
764
763
|
dispose: () => void;
|
|
765
764
|
}> | undefined;
|
|
766
765
|
pathSet: (path: string, item: Promise<{
|
|
767
|
-
tsConfig:
|
|
766
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
768
767
|
scripts: {
|
|
769
768
|
clear: () => void;
|
|
770
769
|
values: () => IterableIterator<{
|
|
@@ -915,7 +914,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
915
914
|
getProjectAndTsConfig: (uri: string) => Promise<{
|
|
916
915
|
tsconfig: string;
|
|
917
916
|
project: {
|
|
918
|
-
tsConfig:
|
|
917
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
919
918
|
scripts: {
|
|
920
919
|
clear: () => void;
|
|
921
920
|
values: () => IterableIterator<{
|
|
@@ -1063,7 +1062,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1063
1062
|
} | undefined;
|
|
1064
1063
|
} | undefined>;
|
|
1065
1064
|
getInferredProject: () => Promise<{
|
|
1066
|
-
tsConfig:
|
|
1065
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
1067
1066
|
scripts: {
|
|
1068
1067
|
clear: () => void;
|
|
1069
1068
|
values: () => IterableIterator<{
|
|
@@ -1210,7 +1209,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1210
1209
|
dispose: () => void;
|
|
1211
1210
|
}>;
|
|
1212
1211
|
getInferredProjectDontCreate: () => Promise<{
|
|
1213
|
-
tsConfig:
|
|
1212
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
1214
1213
|
scripts: {
|
|
1215
1214
|
clear: () => void;
|
|
1216
1215
|
values: () => IterableIterator<{
|
|
@@ -1362,7 +1361,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1362
1361
|
getProject: (uri: string) => Promise<{
|
|
1363
1362
|
tsconfig: string;
|
|
1364
1363
|
project: {
|
|
1365
|
-
tsConfig:
|
|
1364
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
1366
1365
|
scripts: {
|
|
1367
1366
|
clear: () => void;
|
|
1368
1367
|
values: () => IterableIterator<{
|
|
@@ -1511,7 +1510,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1511
1510
|
} | {
|
|
1512
1511
|
tsconfig: undefined;
|
|
1513
1512
|
project: {
|
|
1514
|
-
tsConfig:
|
|
1513
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
1515
1514
|
scripts: {
|
|
1516
1515
|
clear: () => void;
|
|
1517
1516
|
values: () => IterableIterator<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/language-server",
|
|
3
|
-
"version": "1.2.0-alpha.
|
|
3
|
+
"version": "1.2.0-alpha.12",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"directory": "packages/language-server"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@volar/language-core": "1.2.0-alpha.
|
|
21
|
-
"@volar/language-service": "1.2.0-alpha.
|
|
22
|
-
"@volar/shared": "1.2.0-alpha.
|
|
20
|
+
"@volar/language-core": "1.2.0-alpha.12",
|
|
21
|
+
"@volar/language-service": "1.2.0-alpha.12",
|
|
22
|
+
"@volar/shared": "1.2.0-alpha.12",
|
|
23
23
|
"@vscode/l10n": "^0.0.11",
|
|
24
24
|
"request-light": "^0.7.0",
|
|
25
25
|
"typesafe-path": "^0.2.2",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"vscode-languageserver-textdocument": "^1.0.8",
|
|
30
30
|
"vscode-uri": "^3.0.7"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "cac0a7e75c45bd217f98b8d2f66a03860cc89e0c"
|
|
33
33
|
}
|