vscode-languageserver
Advanced tools
Comparing version 7.1.0-next.3 to 7.1.0-next.4
@@ -9,9 +9,16 @@ import { Proposed, Diagnostic } from 'vscode-languageserver-protocol'; | ||
export interface DiagnosticsFeatureShape { | ||
/** | ||
* Installs a handler for the linked editing range request. | ||
* | ||
* @param handler The corresponding handler. | ||
*/ | ||
onDiagnostic(handler: ServerRequestHandler<Proposed.DiagnosticParams, Proposed.DiagnosticList, Diagnostic[], Proposed.DiagnosticServerCancellationData>): void; | ||
diagnostics: { | ||
/** | ||
* Asks the client to refresh all diagnostics provided by this server by | ||
* pull for the corresponding documents again. | ||
*/ | ||
refresh(): void; | ||
/** | ||
* Installs a handler for the diagnostic request. | ||
* | ||
* @param handler The corresponding handler. | ||
*/ | ||
on(handler: ServerRequestHandler<Proposed.DiagnosticParams, Proposed.DiagnosticList, Diagnostic[], Proposed.DiagnosticServerCancellationData>): void; | ||
}; | ||
} | ||
export declare const DiagnosticFeature: Feature<_Languages, DiagnosticsFeatureShape>; |
@@ -11,6 +11,13 @@ "use strict"; | ||
return class extends Base { | ||
onDiagnostic(handler) { | ||
this.connection.onRequest(vscode_languageserver_protocol_1.Proposed.DiagnosticRequest.type, (params, cancel) => { | ||
return handler(params, cancel, this.attachWorkDoneProgress(params), undefined); | ||
}); | ||
get diagnostics() { | ||
return { | ||
refresh: () => { | ||
return this.connection.sendRequest(vscode_languageserver_protocol_1.Proposed.DiagnosticRefreshRequest.type); | ||
}, | ||
on: (handler) => { | ||
this.connection.onRequest(vscode_languageserver_protocol_1.Proposed.DiagnosticRequest.type, (params, cancel) => { | ||
return handler(params, cancel, this.attachWorkDoneProgress(params), undefined); | ||
}); | ||
} | ||
}; | ||
} | ||
@@ -17,0 +24,0 @@ }; |
@@ -10,2 +10,3 @@ import { SemanticTokens, SemanticTokensPartialResult, SemanticTokensDelta, SemanticTokensDeltaPartialResult, SemanticTokensParams, SemanticTokensDeltaParams, SemanticTokensRangeParams } from 'vscode-languageserver-protocol'; | ||
semanticTokens: { | ||
refresh(): void; | ||
on(handler: ServerRequestHandler<SemanticTokensParams, SemanticTokens, SemanticTokensPartialResult, void>): void; | ||
@@ -12,0 +13,0 @@ onDelta(handler: ServerRequestHandler<SemanticTokensDeltaParams, SemanticTokensDelta | SemanticTokens, SemanticTokensDeltaPartialResult | SemanticTokensDeltaPartialResult, void>): void; |
@@ -13,2 +13,5 @@ "use strict"; | ||
return { | ||
refresh: () => { | ||
return this.connection.sendRequest(vscode_languageserver_protocol_1.SemanticTokensRefreshRequest.type); | ||
}, | ||
on: (handler) => { | ||
@@ -15,0 +18,0 @@ const type = vscode_languageserver_protocol_1.SemanticTokensRequest.type; |
{ | ||
"name": "vscode-languageserver", | ||
"description": "Language server implementation for node", | ||
"version": "7.1.0-next.3", | ||
"version": "7.1.0-next.4", | ||
"author": "Microsoft Corporation", | ||
@@ -24,3 +24,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"vscode-languageserver-protocol": "3.17.0-next.4" | ||
"vscode-languageserver-protocol": "3.17.0-next.5" | ||
}, | ||
@@ -27,0 +27,0 @@ "scripts": { |
154391
3286
+ Addedvscode-languageserver-protocol@3.17.0-next.5(transitive)
- Removedvscode-languageserver-protocol@3.17.0-next.4(transitive)