New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vscode-languageserver

Package Overview
Dependencies
Maintainers
11
Versions
268
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-languageserver - npm Package Compare versions

Comparing version 7.1.0-next.3 to 7.1.0-next.4

19

lib/common/proposed.diagnostic.d.ts

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc