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.0.0-next.8 to 7.0.0-next.9

53

lib/common/server.d.ts

@@ -1,2 +0,2 @@

import { CancellationToken, RequestType0, RequestHandler0, RequestType, RequestHandler, GenericRequestHandler, StarRequestHandler, HandlerResult, NotificationType0, NotificationHandler0, NotificationType, NotificationHandler, GenericNotificationHandler, StarNotificationHandler, ProgressType, Disposable, InitializeParams, InitializeResult, InitializeError, InitializedParams, DidChangeConfigurationParams, DidChangeWatchedFilesParams, DidOpenTextDocumentParams, DidChangeTextDocumentParams, DidCloseTextDocumentParams, WillSaveTextDocumentParams, TextEdit, DidSaveTextDocumentParams, PublishDiagnosticsParams, HoverParams, Hover, CompletionParams, CompletionItem, CompletionList, SignatureHelpParams, SignatureHelp, DeclarationParams, Declaration, DeclarationLink, Location, DefinitionParams, Definition, DefinitionLink, TypeDefinitionParams, ImplementationParams, ReferenceParams, DocumentHighlightParams, DocumentHighlight, DocumentSymbolParams, SymbolInformation, DocumentSymbol, WorkspaceSymbolParams, CodeActionParams, Command, CodeAction, CodeLensParams, CodeLens, DocumentFormattingParams, DocumentRangeFormattingParams, DocumentOnTypeFormattingParams, RenameParams, WorkspaceEdit, PrepareRenameParams, Range, DocumentLinkParams, DocumentLink, DocumentColorParams, ColorInformation, ColorPresentationParams, ColorPresentation, FoldingRangeParams, FoldingRange, SelectionRangeParams, SelectionRange, ExecuteCommandParams, MessageActionItem, ClientCapabilities, ServerCapabilities, Logger, ProtocolConnection, TextDocumentContentChangeEvent, TextDocumentSaveReason, Event, MessageSignature, ApplyWorkspaceEditParams, ApplyWorkspaceEditResponse, WorkDoneProgressParams, PartialResultParams } from 'vscode-languageserver-protocol';
import { CancellationToken, ProtocolRequestType0, RequestHandler0, ProtocolRequestType, RequestHandler, GenericRequestHandler, StarRequestHandler, HandlerResult, ProtocolNotificationType0, NotificationHandler0, ProtocolNotificationType, NotificationHandler, GenericNotificationHandler, StarNotificationHandler, ProgressType, Disposable, InitializeParams, InitializeResult, InitializeError, InitializedParams, DidChangeConfigurationParams, DidChangeWatchedFilesParams, DidOpenTextDocumentParams, DidChangeTextDocumentParams, DidCloseTextDocumentParams, WillSaveTextDocumentParams, TextEdit, DidSaveTextDocumentParams, PublishDiagnosticsParams, HoverParams, Hover, CompletionParams, CompletionItem, CompletionList, SignatureHelpParams, SignatureHelp, DeclarationParams, Declaration, DeclarationLink, Location, DefinitionParams, Definition, DefinitionLink, TypeDefinitionParams, ImplementationParams, ReferenceParams, DocumentHighlightParams, DocumentHighlight, DocumentSymbolParams, SymbolInformation, DocumentSymbol, WorkspaceSymbolParams, CodeActionParams, Command, CodeAction, CodeLensParams, CodeLens, DocumentFormattingParams, DocumentRangeFormattingParams, DocumentOnTypeFormattingParams, RenameParams, WorkspaceEdit, PrepareRenameParams, Range, DocumentLinkParams, DocumentLink, DocumentColorParams, ColorInformation, ColorPresentationParams, ColorPresentation, FoldingRangeParams, FoldingRange, SelectionRangeParams, SelectionRange, ExecuteCommandParams, MessageActionItem, ClientCapabilities, ServerCapabilities, Logger, ProtocolConnection, TextDocumentContentChangeEvent, TextDocumentSaveReason, Event, MessageSignature, ApplyWorkspaceEditParams, ApplyWorkspaceEditResponse, WorkDoneProgressParams, PartialResultParams, RegistrationType } from 'vscode-languageserver-protocol';
import { WorkDoneProgressReporter, ResultProgressReporter, WindowProgress } from './progress';

@@ -252,11 +252,3 @@ import { Configuration } from './configuration';

*/
add<RO>(type: NotificationType0<RO>, registerParams: RO): void;
add<P, RO>(type: NotificationType<P, RO>, registerParams: RO): void;
/**
* Adds a single registration.
* @param type the request type to register for.
* @param registerParams special registration parameters.
*/
add<R, E, RO>(type: RequestType0<R, E, RO>, registerParams: RO): void;
add<P, R, E, RO>(type: RequestType<P, R, E, RO>, registerParams: RO): void;
add<RO>(type: RegistrationType<RO>, registerParams: RO): void;
}

@@ -292,19 +284,2 @@ export declare namespace BulkRegistration {

/**
* Registers a listener for the given notification.
* @param type the notification type to register for.
* @param registerParams special registration parameters.
* @return a `Disposable` to unregister the listener again.
*/
register<RO>(type: NotificationType0<RO>, registerParams?: RO): Promise<Disposable>;
register<P, RO>(type: NotificationType<P, RO>, registerParams?: RO): Promise<Disposable>;
/**
* Registers a listener for the given notification.
* @param unregisteration the unregistration to add a corresponding unregister action to.
* @param type the notification type to register for.
* @param registerParams special registration parameters.
* @return the updated unregistration.
*/
register<RO>(unregisteration: BulkUnregistration, type: NotificationType0<RO>, registerParams?: RO): Promise<BulkUnregistration>;
register<P, RO>(unregisteration: BulkUnregistration, type: NotificationType<P, RO>, registerParams?: RO): Promise<BulkUnregistration>;
/**
* Registers a listener for the given request.

@@ -315,4 +290,4 @@ * @param type the request type to register for.

*/
register<R, E, RO>(type: RequestType0<R, E, RO>, registerParams?: RO): Promise<Disposable>;
register<P, R, E, RO>(type: RequestType<P, R, E, RO>, registerParams?: RO): Promise<Disposable>;
register<RO>(type: RegistrationType<RO>, registerParams?: RO): Promise<Disposable>;
register<RO>(type: RegistrationType<RO>, registerParams?: RO): Promise<Disposable>;
/**

@@ -325,4 +300,4 @@ * Registers a listener for the given request.

*/
register<R, E, RO>(unregisteration: BulkUnregistration, type: RequestType0<R, E, RO>, registerParams?: RO): Promise<BulkUnregistration>;
register<P, R, E, RO>(unregisteration: BulkUnregistration, type: RequestType<P, R, E, RO>, registerParams?: RO): Promise<BulkUnregistration>;
register<RO>(unregisteration: BulkUnregistration, type: RegistrationType<RO>, registerParams?: RO): Promise<BulkUnregistration>;
register<RO>(unregisteration: BulkUnregistration, type: RegistrationType<RO>, registerParams?: RO): Promise<BulkUnregistration>;
/**

@@ -419,4 +394,4 @@ * Registers a set of listeners.

*/
onRequest<R, E, RO>(type: RequestType0<R, E, RO>, handler: RequestHandler0<R, E>): void;
onRequest<P, R, E, RO>(type: RequestType<P, R, E, RO>, handler: RequestHandler<P, R, E>): void;
onRequest<R, PR, E, RO>(type: ProtocolRequestType0<R, PR, E, RO>, handler: RequestHandler0<R, E>): void;
onRequest<P, R, PR, E, RO>(type: ProtocolRequestType<P, R, PR, E, RO>, handler: RequestHandler<P, R, E>): void;
/**

@@ -441,4 +416,4 @@ * Installs a request handler for the given method.

*/
sendRequest<R, E, RO>(type: RequestType0<R, E, RO>, token?: CancellationToken): Promise<R>;
sendRequest<P, R, E, RO>(type: RequestType<P, R, E, RO>, params: P, token?: CancellationToken): Promise<R>;
sendRequest<R, PR, E, RO>(type: ProtocolRequestType0<R, PR, E, RO>, token?: CancellationToken): Promise<R>;
sendRequest<P, R, PR, E, RO>(type: ProtocolRequestType<P, R, PR, E, RO>, params: P, token?: CancellationToken): Promise<R>;
/**

@@ -458,4 +433,4 @@ * Send a request to the client.

*/
onNotification<RO>(type: NotificationType0<RO>, handler: NotificationHandler0): void;
onNotification<P, RO>(type: NotificationType<P, RO>, handler: NotificationHandler<P>): void;
onNotification<RO>(type: ProtocolNotificationType0<RO>, handler: NotificationHandler0): void;
onNotification<P, RO>(type: ProtocolNotificationType<P, RO>, handler: NotificationHandler<P>): void;
/**

@@ -480,4 +455,4 @@ * Installs a notification handler for the given method.

*/
sendNotification<RO>(type: NotificationType0<RO>): void;
sendNotification<P, RO>(type: NotificationType<P, RO>, params: P): void;
sendNotification<RO>(type: ProtocolNotificationType0<RO>): void;
sendNotification<P, RO>(type: ProtocolNotificationType<P, RO>, params: P): void;
/**

@@ -484,0 +459,0 @@ * Send a notification to the client.

@@ -33,2 +33,15 @@ "use strict";

})(Files = exports.Files || (exports.Files = {}));
let _protocolConnection;
function endProtocolConnection() {
if (_protocolConnection === undefined) {
return;
}
try {
_protocolConnection.end();
}
catch (_err) {
// Ignore. The client process could have already
// did and we can't send an end into the connection.
}
}
let _shutdownReceived = false;

@@ -48,2 +61,3 @@ let exitTimer = undefined;

// Parent process doesn't exist anymore. Exit the server.
endProtocolConnection();
process.exit(_shutdownReceived ? 0 : 1);

@@ -97,2 +111,3 @@ }

exit: (code) => {
endProtocolConnection();
process.exit(code);

@@ -182,5 +197,7 @@ }

inputStream.on('end', () => {
endProtocolConnection();
process.exit(_shutdownReceived ? 0 : 1);
});
inputStream.on('close', () => {
endProtocolConnection();
process.exit(_shutdownReceived ? 0 : 1);

@@ -190,3 +207,4 @@ });

const connectionFactory = (logger) => {
return node_1.createProtocolConnection(input, output, logger, options);
const result = node_1.createProtocolConnection(input, output, logger, options);
return result;
};

@@ -193,0 +211,0 @@ return server_1.createConnection(connectionFactory, watchDog, factories);

{
"name": "vscode-languageserver",
"description": "Language server implementation for node",
"version": "7.0.0-next.8",
"version": "7.0.0-next.9",
"author": "Microsoft Corporation",

@@ -24,3 +24,3 @@ "license": "MIT",

"dependencies": {
"vscode-languageserver-protocol": "3.16.0-next.8"
"vscode-languageserver-protocol": "3.16.0-next.9"
},

@@ -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