1
1
import type { CodeMapping } from '@volar/language-core' ;
2
2
import type { DocumentDropEdit } from '@volar/language-service' ;
3
- import * as vscode from 'vscode-languageserver-protocol' ;
3
+ import * as protocol from 'vscode-languageserver-protocol' ;
4
4
5
5
export * from 'vscode-languageserver-protocol' ;
6
6
@@ -10,24 +10,24 @@ export * from 'vscode-languageserver-protocol';
10
10
11
11
export namespace FindFileReferenceRequest {
12
12
export type ParamsType = {
13
- textDocument : vscode . TextDocumentIdentifier ;
13
+ textDocument : protocol . TextDocumentIdentifier ;
14
14
} ;
15
- export type ResponseType = vscode . Location [ ] | null | undefined ;
15
+ export type ResponseType = protocol . Location [ ] | null | undefined ;
16
16
export type ErrorType = never ;
17
- export const type = new vscode . RequestType < ParamsType , ResponseType , ErrorType > ( 'volar/client/findFileReference' ) ;
17
+ export const type = new protocol . RequestType < ParamsType , ResponseType , ErrorType > ( 'volar/client/findFileReference' ) ;
18
18
}
19
19
20
20
export namespace GetMatchTsConfigRequest {
21
- export type ParamsType = vscode . TextDocumentIdentifier ;
21
+ export type ParamsType = protocol . TextDocumentIdentifier ;
22
22
export type ResponseType = { uri : string ; } | null | undefined ;
23
23
export type ErrorType = never ;
24
- export const type = new vscode . RequestType < ParamsType , ResponseType , ErrorType > ( 'volar/client/tsconfig' ) ;
24
+ export const type = new protocol . RequestType < ParamsType , ResponseType , ErrorType > ( 'volar/client/tsconfig' ) ;
25
25
}
26
26
27
27
export namespace AutoInsertRequest {
28
28
export type ParamsType = {
29
- textDocument : vscode . TextDocumentIdentifier ;
30
- selection : vscode . Position ;
29
+ textDocument : protocol . TextDocumentIdentifier ;
30
+ selection : protocol . Position ;
31
31
change : {
32
32
rangeOffset : number ;
33
33
rangeLength : number ;
@@ -36,23 +36,23 @@ export namespace AutoInsertRequest {
36
36
} ;
37
37
export type ResponseType = string | null | undefined ;
38
38
export type ErrorType = never ;
39
- export const type = new vscode . RequestType < ParamsType , ResponseType , ErrorType > ( 'volar/client/autoInsert' ) ;
39
+ export const type = new protocol . RequestType < ParamsType , ResponseType , ErrorType > ( 'volar/client/autoInsert' ) ;
40
40
}
41
41
42
42
export namespace WriteVirtualFilesNotification {
43
- export const type = new vscode . NotificationType < vscode . TextDocumentIdentifier > ( 'volar/client/writeVirtualFiles' ) ;
43
+ export const type = new protocol . NotificationType < protocol . TextDocumentIdentifier > ( 'volar/client/writeVirtualFiles' ) ;
44
44
}
45
45
46
46
export namespace ReloadProjectNotification {
47
- export const type = new vscode . NotificationType < vscode . TextDocumentIdentifier > ( 'volar/client/reloadProject' ) ;
47
+ export const type = new protocol . NotificationType < protocol . TextDocumentIdentifier > ( 'volar/client/reloadProject' ) ;
48
48
}
49
49
50
50
/**
51
51
* Document Drop
52
52
*/
53
53
54
54
export namespace DocumentDropRequest {
55
- export type ParamsType = vscode . TextDocumentPositionParams & {
55
+ export type ParamsType = protocol . TextDocumentPositionParams & {
56
56
dataTransfer : {
57
57
mimeType : string ;
58
58
value : any ;
@@ -64,7 +64,7 @@ export namespace DocumentDropRequest {
64
64
} ;
65
65
export type ResponseType = DocumentDropEdit | null | undefined ;
66
66
export type ErrorType = never ;
67
- export const type = new vscode . RequestType < ParamsType , ResponseType , ErrorType > ( 'volar/client/documentDrop' ) ;
67
+ export const type = new protocol . RequestType < ParamsType , ResponseType , ErrorType > ( 'volar/client/documentDrop' ) ;
68
68
}
69
69
70
70
export namespace DocumentDrop_DataTransferItemAsStringRequest {
@@ -73,7 +73,7 @@ export namespace DocumentDrop_DataTransferItemAsStringRequest {
73
73
} ;
74
74
export type ResponseType = string ;
75
75
export type ErrorType = never ;
76
- export const type = new vscode . RequestType < ParamsType , ResponseType , ErrorType > ( 'volar/client/documentDrop/asString' ) ;
76
+ export const type = new protocol . RequestType < ParamsType , ResponseType , ErrorType > ( 'volar/client/documentDrop/asString' ) ;
77
77
}
78
78
79
79
export namespace DocumentDrop_DataTransferItemFileDataRequest {
@@ -82,7 +82,7 @@ export namespace DocumentDrop_DataTransferItemFileDataRequest {
82
82
} ;
83
83
export type ResponseType = Uint8Array ;
84
84
export type ErrorType = never ;
85
- export const type = new vscode . RequestType < ParamsType , ResponseType , ErrorType > ( 'volar/client/documentDrop/fileData' ) ;
85
+ export const type = new protocol . RequestType < ParamsType , ResponseType , ErrorType > ( 'volar/client/documentDrop/fileData' ) ;
86
86
}
87
87
88
88
/**
@@ -95,7 +95,7 @@ export namespace UpdateVirtualCodeStateNotification {
95
95
virtualCodeId : string ;
96
96
disabled : boolean ;
97
97
} ;
98
- export const type = new vscode . NotificationType < ParamsType > ( 'volar/client/labs/updateVirtualFileState' ) ;
98
+ export const type = new protocol . NotificationType < ParamsType > ( 'volar/client/labs/updateVirtualFileState' ) ;
99
99
}
100
100
101
101
export namespace UpdateServicePluginStateNotification {
@@ -104,19 +104,19 @@ export namespace UpdateServicePluginStateNotification {
104
104
serviceId : number ;
105
105
disabled : boolean ;
106
106
} ;
107
- export const type = new vscode . NotificationType < ParamsType > ( 'volar/client/labs/updateServicePluginState' ) ;
107
+ export const type = new protocol . NotificationType < ParamsType > ( 'volar/client/labs/updateServicePluginState' ) ;
108
108
}
109
109
110
110
export namespace GetServicePluginsRequest {
111
- export type ParamsType = vscode . TextDocumentIdentifier ;
111
+ export type ParamsType = protocol . TextDocumentIdentifier ;
112
112
export type ResponseType = {
113
113
id : number ;
114
114
name ?: string ;
115
115
features : string [ ] ;
116
116
disabled : boolean ;
117
117
} [ ] | null | undefined ;
118
118
export type ErrorType = never ;
119
- export const type = new vscode . RequestType < ParamsType , ResponseType , ErrorType > ( 'volar/client/servicePlugins' ) ;
119
+ export const type = new protocol . RequestType < ParamsType , ResponseType , ErrorType > ( 'volar/client/servicePlugins' ) ;
120
120
}
121
121
122
122
export namespace GetVirtualFileRequest {
@@ -128,10 +128,10 @@ export namespace GetVirtualFileRequest {
128
128
disabled : boolean ;
129
129
embeddedCodes : VirtualCodeInfo [ ] ;
130
130
} ;
131
- export type ParamsType = vscode . TextDocumentIdentifier ;
131
+ export type ParamsType = protocol . TextDocumentIdentifier ;
132
132
export type ResponseType = VirtualCodeInfo | null | undefined ;
133
133
export type ErrorType = never ;
134
- export const type = new vscode . RequestType < ParamsType , ResponseType , ErrorType > ( 'volar/client/virtualFiles' ) ;
134
+ export const type = new protocol . RequestType < ParamsType , ResponseType , ErrorType > ( 'volar/client/virtualFiles' ) ;
135
135
}
136
136
137
137
export namespace GetVirtualCodeRequest {
@@ -144,9 +144,9 @@ export namespace GetVirtualCodeRequest {
144
144
mappings : Record < string , CodeMapping [ ] > ;
145
145
} ;
146
146
export type ErrorType = never ;
147
- export const type = new vscode . RequestType < ParamsType , ResponseType , ErrorType > ( 'volar/client/virtualFile' ) ;
147
+ export const type = new protocol . RequestType < ParamsType , ResponseType , ErrorType > ( 'volar/client/virtualFile' ) ;
148
148
}
149
149
150
150
export namespace LoadedTSFilesMetaRequest {
151
- export const type = new vscode . RequestType0 ( 'volar/client/loadedTsFiles' ) ;
151
+ export const type = new protocol . RequestType0 ( 'volar/client/loadedTsFiles' ) ;
152
152
}
0 commit comments