11import type { CodeMapping } from '@volar/language-core' ;
22import type { DocumentDropEdit } from '@volar/language-service' ;
3- import * as vscode from 'vscode-languageserver-protocol' ;
3+ import * as protocol from 'vscode-languageserver-protocol' ;
44
55export * from 'vscode-languageserver-protocol' ;
66
@@ -10,24 +10,24 @@ export * from 'vscode-languageserver-protocol';
1010
1111export namespace FindFileReferenceRequest {
1212 export type ParamsType = {
13- textDocument : vscode . TextDocumentIdentifier ;
13+ textDocument : protocol . TextDocumentIdentifier ;
1414 } ;
15- export type ResponseType = vscode . Location [ ] | null | undefined ;
15+ export type ResponseType = protocol . Location [ ] | null | undefined ;
1616 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' ) ;
1818}
1919
2020export namespace GetMatchTsConfigRequest {
21- export type ParamsType = vscode . TextDocumentIdentifier ;
21+ export type ParamsType = protocol . TextDocumentIdentifier ;
2222 export type ResponseType = { uri : string ; } | null | undefined ;
2323 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' ) ;
2525}
2626
2727export namespace AutoInsertRequest {
2828 export type ParamsType = {
29- textDocument : vscode . TextDocumentIdentifier ;
30- selection : vscode . Position ;
29+ textDocument : protocol . TextDocumentIdentifier ;
30+ selection : protocol . Position ;
3131 change : {
3232 rangeOffset : number ;
3333 rangeLength : number ;
@@ -36,23 +36,23 @@ export namespace AutoInsertRequest {
3636 } ;
3737 export type ResponseType = string | null | undefined ;
3838 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' ) ;
4040}
4141
4242export 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' ) ;
4444}
4545
4646export 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' ) ;
4848}
4949
5050/**
5151 * Document Drop
5252 */
5353
5454export namespace DocumentDropRequest {
55- export type ParamsType = vscode . TextDocumentPositionParams & {
55+ export type ParamsType = protocol . TextDocumentPositionParams & {
5656 dataTransfer : {
5757 mimeType : string ;
5858 value : any ;
@@ -64,7 +64,7 @@ export namespace DocumentDropRequest {
6464 } ;
6565 export type ResponseType = DocumentDropEdit | null | undefined ;
6666 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' ) ;
6868}
6969
7070export namespace DocumentDrop_DataTransferItemAsStringRequest {
@@ -73,7 +73,7 @@ export namespace DocumentDrop_DataTransferItemAsStringRequest {
7373 } ;
7474 export type ResponseType = string ;
7575 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' ) ;
7777}
7878
7979export namespace DocumentDrop_DataTransferItemFileDataRequest {
@@ -82,7 +82,7 @@ export namespace DocumentDrop_DataTransferItemFileDataRequest {
8282 } ;
8383 export type ResponseType = Uint8Array ;
8484 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' ) ;
8686}
8787
8888/**
@@ -95,7 +95,7 @@ export namespace UpdateVirtualCodeStateNotification {
9595 virtualCodeId : string ;
9696 disabled : boolean ;
9797 } ;
98- export const type = new vscode . NotificationType < ParamsType > ( 'volar/client/labs/updateVirtualFileState' ) ;
98+ export const type = new protocol . NotificationType < ParamsType > ( 'volar/client/labs/updateVirtualFileState' ) ;
9999}
100100
101101export namespace UpdateServicePluginStateNotification {
@@ -104,19 +104,19 @@ export namespace UpdateServicePluginStateNotification {
104104 serviceId : number ;
105105 disabled : boolean ;
106106 } ;
107- export const type = new vscode . NotificationType < ParamsType > ( 'volar/client/labs/updateServicePluginState' ) ;
107+ export const type = new protocol . NotificationType < ParamsType > ( 'volar/client/labs/updateServicePluginState' ) ;
108108}
109109
110110export namespace GetServicePluginsRequest {
111- export type ParamsType = vscode . TextDocumentIdentifier ;
111+ export type ParamsType = protocol . TextDocumentIdentifier ;
112112 export type ResponseType = {
113113 id : number ;
114114 name ?: string ;
115115 features : string [ ] ;
116116 disabled : boolean ;
117117 } [ ] | null | undefined ;
118118 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' ) ;
120120}
121121
122122export namespace GetVirtualFileRequest {
@@ -128,10 +128,10 @@ export namespace GetVirtualFileRequest {
128128 disabled : boolean ;
129129 embeddedCodes : VirtualCodeInfo [ ] ;
130130 } ;
131- export type ParamsType = vscode . TextDocumentIdentifier ;
131+ export type ParamsType = protocol . TextDocumentIdentifier ;
132132 export type ResponseType = VirtualCodeInfo | null | undefined ;
133133 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' ) ;
135135}
136136
137137export namespace GetVirtualCodeRequest {
@@ -144,9 +144,9 @@ export namespace GetVirtualCodeRequest {
144144 mappings : Record < string , CodeMapping [ ] > ;
145145 } ;
146146 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' ) ;
148148}
149149
150150export namespace LoadedTSFilesMetaRequest {
151- export const type = new vscode . RequestType0 ( 'volar/client/loadedTsFiles' ) ;
151+ export const type = new protocol . RequestType0 ( 'volar/client/loadedTsFiles' ) ;
152152}
0 commit comments