Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codingame/monaco-languageclient

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codingame/monaco-languageclient - npm Package Compare versions

Comparing version 0.17.0 to 0.17.1

46

dist/amd/connection.d.ts

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

import { Message, RequestType, RequestType0, RequestHandler, RequestHandler0, GenericRequestHandler, NotificationType, NotificationType0, NotificationHandler, NotificationHandler0, GenericNotificationHandler, Trace, Tracer, CancellationToken, MessageConnection, MessageSignature } from 'vscode-jsonrpc';
import { Message, RequestType, RequestType0, RequestHandler, RequestHandler0, GenericRequestHandler, NotificationType, NotificationType0, NotificationHandler, NotificationHandler0, GenericNotificationHandler, Trace, Tracer, CancellationToken, MessageConnection, MessageSignature, Disposable, ProgressType } from 'vscode-jsonrpc';
import { InitializeParams, InitializeResult, LogMessageParams, ShowMessageParams, DidChangeConfigurationParams, DidOpenTextDocumentParams, DidChangeTextDocumentParams, DidCloseTextDocumentParams, DidSaveTextDocumentParams, DidChangeWatchedFilesParams, PublishDiagnosticsParams } from 'vscode-languageserver-protocol';

@@ -11,31 +11,33 @@ import { OutputChannel } from "./services";

sendRequest<R>(type: string | MessageSignature, ...params: any[]): Thenable<R>;
onRequest<R, E>(type: RequestType0<R, E>, handler: RequestHandler0<R, E>): void;
onRequest<P, R, E>(type: RequestType<P, R, E>, handler: RequestHandler<P, R, E>): void;
onRequest<R, E>(method: string, handler: GenericRequestHandler<R, E>): void;
onRequest<R, E>(method: string | MessageSignature, handler: GenericRequestHandler<R, E>): void;
sendNotification<RO>(type: NotificationType0): void;
sendNotification<P>(type: NotificationType<P>, params?: P): void;
sendNotification(method: string): void;
sendNotification(method: string, params: any): void;
sendNotification(method: string | MessageSignature, params?: any): void;
onNotification<RO>(type: NotificationType0, handler: NotificationHandler0): void;
onNotification<P>(type: NotificationType<P>, handler: NotificationHandler<P>): void;
onNotification(method: string, handler: GenericNotificationHandler): void;
onNotification(method: string | MessageSignature, handler: GenericNotificationHandler): void;
onRequest<R, E>(type: RequestType0<R, E>, handler: RequestHandler0<R, E>): Disposable;
onRequest<P, R, E>(type: RequestType<P, R, E>, handler: RequestHandler<P, R, E>): Disposable;
onRequest<R, E>(method: string, handler: GenericRequestHandler<R, E>): Disposable;
onRequest<R, E>(method: string | MessageSignature, handler: GenericRequestHandler<R, E>): Disposable;
sendNotification(type: NotificationType0): Thenable<void>;
sendNotification<P>(type: NotificationType<P>, params?: P): Thenable<void>;
sendNotification(method: string): Thenable<void>;
sendNotification(method: string, params: any): Thenable<void>;
sendNotification(method: string | MessageSignature, params?: any): Thenable<void>;
onNotification(type: NotificationType0, handler: NotificationHandler0): Disposable;
onNotification<P>(type: NotificationType<P>, handler: NotificationHandler<P>): Disposable;
onNotification(method: string, handler: GenericNotificationHandler): Disposable;
onNotification(method: string | MessageSignature, handler: GenericNotificationHandler): Disposable;
onProgress<P>(type: ProgressType<P>, token: string | number, handler: NotificationHandler<P>): Disposable;
sendProgress<P>(type: ProgressType<P>, token: string | number, value: P): Thenable<void>;
trace(value: Trace, tracer: Tracer, sendNotification?: boolean): void;
initialize(params: InitializeParams): Thenable<InitializeResult>;
shutdown(): Thenable<void>;
exit(): void;
exit(): Thenable<void>;
onLogMessage(handle: NotificationHandler<LogMessageParams>): void;
onShowMessage(handler: NotificationHandler<ShowMessageParams>): void;
onTelemetry(handler: NotificationHandler<any>): void;
didChangeConfiguration(params: DidChangeConfigurationParams): void;
didChangeWatchedFiles(params: DidChangeWatchedFilesParams): void;
didOpenTextDocument(params: DidOpenTextDocumentParams): void;
didChangeTextDocument(params: DidChangeTextDocumentParams): void;
didCloseTextDocument(params: DidCloseTextDocumentParams): void;
didSaveTextDocument(params: DidSaveTextDocumentParams): void;
didChangeConfiguration(params: DidChangeConfigurationParams): Thenable<void>;
didChangeWatchedFiles(params: DidChangeWatchedFilesParams): Thenable<void>;
didOpenTextDocument(params: DidOpenTextDocumentParams): Thenable<void>;
didChangeTextDocument(params: DidChangeTextDocumentParams): Thenable<void>;
didCloseTextDocument(params: DidCloseTextDocumentParams): Thenable<void>;
didSaveTextDocument(params: DidSaveTextDocumentParams): Thenable<void>;
onDiagnostics(handler: NotificationHandler<PublishDiagnosticsParams>): void;
end(): void;
dispose(): void;
end(): void;
}

@@ -42,0 +44,0 @@ export interface ConnectionErrorHandler {

@@ -0,1 +1,10 @@

var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
define(["require", "exports", "vscode-languageserver-protocol", "vscode-languageserver-protocol/lib/common/utils/is"], function (require, exports, vscode_languageserver_protocol_1, Is) {

@@ -16,17 +25,19 @@ /* --------------------------------------------------------------------------------------------

onRequest: (type, handler) => connection.onRequest(Is.string(type) ? type : type.method, handler),
sendNotification: (type, params) => connection.sendNotification(Is.string(type) ? type : type.method, params),
sendNotification: (type, params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(Is.string(type) ? type : type.method, params); }),
onNotification: (type, handler) => connection.onNotification(Is.string(type) ? type : type.method, handler),
onProgress: (type, token, handler) => connection.onProgress(type, token, handler),
sendProgress: (type, token, value) => __awaiter(this, void 0, void 0, function* () { return connection.sendProgress(type, token, value); }),
trace: (value, tracer, sendNotification = false) => connection.trace(value, tracer, sendNotification),
initialize: (params) => connection.sendRequest(vscode_languageserver_protocol_1.InitializeRequest.type, params),
shutdown: () => connection.sendRequest(vscode_languageserver_protocol_1.ShutdownRequest.type, undefined),
exit: () => connection.sendNotification(vscode_languageserver_protocol_1.ExitNotification.type),
exit: () => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.ExitNotification.type); }),
onLogMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1.LogMessageNotification.type, handler),
onShowMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1.ShowMessageNotification.type, handler),
onTelemetry: (handler) => connection.onNotification(vscode_languageserver_protocol_1.TelemetryEventNotification.type, handler),
didChangeConfiguration: (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidChangeConfigurationNotification.type, params),
didChangeWatchedFiles: (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidChangeWatchedFilesNotification.type, params),
didOpenTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidOpenTextDocumentNotification.type, params),
didChangeTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidChangeTextDocumentNotification.type, params),
didCloseTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidCloseTextDocumentNotification.type, params),
didSaveTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidSaveTextDocumentNotification.type, params),
didChangeConfiguration: (params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.DidChangeConfigurationNotification.type, params); }),
didChangeWatchedFiles: (params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.DidChangeWatchedFilesNotification.type, params); }),
didOpenTextDocument: (params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.DidOpenTextDocumentNotification.type, params); }),
didChangeTextDocument: (params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.DidChangeTextDocumentNotification.type, params); }),
didCloseTextDocument: (params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.DidCloseTextDocumentNotification.type, params); }),
didSaveTextDocument: (params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.DidSaveTextDocumentNotification.type, params); }),
onDiagnostics: (handler) => connection.onNotification(vscode_languageserver_protocol_1.PublishDiagnosticsNotification.type, handler),

@@ -33,0 +44,0 @@ dispose: () => connection.dispose(),

@@ -11,3 +11,3 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

};
define(["require", "exports", "vscode-languageclient/lib/common/client", "vscode-languageclient/lib/common/typeDefinition", "vscode-languageclient/lib/common/configuration", "vscode-languageclient/lib/common/implementation", "vscode-languageclient/lib/common/colorProvider", "vscode-languageclient/lib/common/workspaceFolders", "vscode-languageclient/lib/common/foldingRange", "vscode-languageclient/lib/common/callHierarchy", "vscode-languageclient/lib/common/semanticTokens", "vscode-languageclient/lib/common/declaration", "vscode-languageclient/lib/common/client"], function (require, exports, client_1, typeDefinition_1, configuration_1, implementation_1, colorProvider_1, workspaceFolders_1, foldingRange_1, callHierarchy_1, semanticTokens_1, declaration_1, client_2) {
define(["require", "exports", "vscode-languageclient/lib/common/client", "vscode-languageclient/lib/common/typeDefinition", "vscode-languageclient/lib/common/configuration", "vscode-languageclient/lib/common/implementation", "vscode-languageclient/lib/common/colorProvider", "vscode-languageclient/lib/common/workspaceFolders", "vscode-languageclient/lib/common/foldingRange", "vscode-languageclient/lib/common/callHierarchy", "vscode-languageclient/lib/common/progress", "vscode-languageclient/lib/common/semanticTokens", "vscode-languageclient/lib/common/declaration", "vscode-languageclient/lib/common/client"], function (require, exports, client_1, typeDefinition_1, configuration_1, implementation_1, colorProvider_1, workspaceFolders_1, foldingRange_1, callHierarchy_1, progress_1, semanticTokens_1, declaration_1, client_2) {
"use strict";

@@ -81,2 +81,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

this.registerFeature(new callHierarchy_1.CallHierarchyFeature(this));
this.registerFeature(new progress_1.ProgressFeature(this));
const features = this['_features'];

@@ -83,0 +84,0 @@ for (const feature of features) {

@@ -491,2 +491,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

},
onDidChange: provider.onDidChange,
provideDocumentSemanticTokens: (model, lastResultId, token) => __awaiter(this, void 0, void 0, function* () {

@@ -560,2 +561,5 @@ if (!this.matchModel(selector, MonacoModelIdentifier.fromModel(model))) {

}
if (languages.has('*')) {
return new Set(['*']);
}
return languages;

@@ -562,0 +566,0 @@ }

@@ -119,2 +119,3 @@ import { DocumentSelector, MessageActionItem, MessageType, TextDocumentPositionParams, ReferenceParams, CodeActionParams, CodeLensParams, DocumentFormattingParams, DocumentRangeFormattingParams, DocumentOnTypeFormattingParams, RenameParams, DocumentLinkParams, WorkspaceClientCapabilities, Diagnostic, CompletionItem, CompletionList, Hover, SignatureHelp, Definition, Location, DocumentHighlight, SymbolInformation, Command, CodeLens, TextEdit, WorkspaceEdit, DocumentLink, TextDocumentSaveReason, DocumentSymbolParams, WorkspaceSymbolParams, TextDocumentContentChangeEvent, CompletionParams, ColorInformation, ColorPresentation, DocumentColorParams, ColorPresentationParams, FoldingRange, FoldingRangeParams, DocumentSymbol, CodeAction, Declaration, SelectionRangeParams, SelectionRange, SemanticTokensParams, SemanticTokens, SemanticTokensEdit, SemanticTokensLegend, SemanticTokensRangeParams, SemanticTokensDeltaParams } from 'vscode-languageserver-protocol';

export interface DocumentSemanticTokensProvider {
onDidChange?: Event<void>;
provideDocumentSemanticTokens(params: SemanticTokensParams, token: CancellationToken): ProviderResult<SemanticTokens>;

@@ -121,0 +122,0 @@ provideDocumentSemanticTokensEdits?(params: SemanticTokensDeltaParams, token: CancellationToken): ProviderResult<SemanticTokens | SemanticTokensEdit>;

@@ -363,3 +363,3 @@ /* --------------------------------------------------------------------------------------------

match(selector, document) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -385,3 +385,3 @@ }

registerCompletionItemProvider(selector, provider, ...triggerCharacters) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -406,3 +406,3 @@ }

registerCodeActionsProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -424,3 +424,3 @@ }

registerCodeLensProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -443,3 +443,3 @@ }

registerDefinitionProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -458,3 +458,3 @@ }

registerImplementationProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -473,3 +473,3 @@ }

registerTypeDefinitionProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -488,3 +488,3 @@ }

registerDeclarationProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -503,3 +503,3 @@ }

registerHoverProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -518,3 +518,3 @@ }

registerDocumentHighlightProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -533,3 +533,3 @@ }

registerDocumentSymbolProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -559,3 +559,3 @@ }

registerReferenceProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -574,3 +574,3 @@ }

registerRenameProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -589,3 +589,3 @@ }

registerDocumentFormattingEditProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -604,3 +604,3 @@ }

registerDocumentRangeFormattingEditProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -619,3 +619,3 @@ }

registerOnTypeFormattingEditProvider(selector, provider, firstTriggerCharacter, ...moreTriggerCharacter) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -634,3 +634,3 @@ }

registerSignatureHelpProvider(selector, provider, firstItem, ...remaining) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -660,3 +660,3 @@ }

registerDocumentLinkProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -679,3 +679,3 @@ }

registerColorProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -700,3 +700,3 @@ }

registerFoldingRangeProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -715,3 +715,3 @@ }

registerSelectionRangeProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -731,3 +731,3 @@ }

registerDocumentSemanticTokensProvider(selector, provider, legend) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -740,2 +740,3 @@ }

return languages.registerDocumentSemanticTokensProvider(selector, {
onDidChange: provider.onDidChangeSemanticTokens,
provideDocumentSemanticTokens({ textDocument }, token) {

@@ -750,3 +751,3 @@ return provider.provideDocumentSemanticTokens(textDocument, token);

registerDocumentRangeSemanticTokensProvider(selector, provider, legend) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -941,3 +942,5 @@ }

DiagnosticSeverity: ServicesModule.DiagnosticSeverity,
EventEmitter: ServicesModule.Emitter
EventEmitter: ServicesModule.Emitter,
CancellationTokenSource: vscode_languageserver_protocol_1.CancellationTokenSource,
ProgressLocation: vscode.ProgressLocation
};

@@ -944,0 +947,0 @@ return partialApi;

define(["require", "exports", "./vscode-api", "./services"], function (require, exports, vscode_api_1, services_1) {
"use strict";
return vscode_api_1.createVSCodeApi(services_1.Services.get);
return (0, vscode_api_1.createVSCodeApi)(services_1.Services.get);
});
//# sourceMappingURL=vscode-compatibility.js.map

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

import { Message, RequestType, RequestType0, RequestHandler, RequestHandler0, GenericRequestHandler, NotificationType, NotificationType0, NotificationHandler, NotificationHandler0, GenericNotificationHandler, Trace, Tracer, CancellationToken, MessageConnection, MessageSignature } from 'vscode-jsonrpc';
import { Message, RequestType, RequestType0, RequestHandler, RequestHandler0, GenericRequestHandler, NotificationType, NotificationType0, NotificationHandler, NotificationHandler0, GenericNotificationHandler, Trace, Tracer, CancellationToken, MessageConnection, MessageSignature, Disposable, ProgressType } from 'vscode-jsonrpc';
import { InitializeParams, InitializeResult, LogMessageParams, ShowMessageParams, DidChangeConfigurationParams, DidOpenTextDocumentParams, DidChangeTextDocumentParams, DidCloseTextDocumentParams, DidSaveTextDocumentParams, DidChangeWatchedFilesParams, PublishDiagnosticsParams } from 'vscode-languageserver-protocol';

@@ -11,31 +11,33 @@ import { OutputChannel } from "./services";

sendRequest<R>(type: string | MessageSignature, ...params: any[]): Thenable<R>;
onRequest<R, E>(type: RequestType0<R, E>, handler: RequestHandler0<R, E>): void;
onRequest<P, R, E>(type: RequestType<P, R, E>, handler: RequestHandler<P, R, E>): void;
onRequest<R, E>(method: string, handler: GenericRequestHandler<R, E>): void;
onRequest<R, E>(method: string | MessageSignature, handler: GenericRequestHandler<R, E>): void;
sendNotification<RO>(type: NotificationType0): void;
sendNotification<P>(type: NotificationType<P>, params?: P): void;
sendNotification(method: string): void;
sendNotification(method: string, params: any): void;
sendNotification(method: string | MessageSignature, params?: any): void;
onNotification<RO>(type: NotificationType0, handler: NotificationHandler0): void;
onNotification<P>(type: NotificationType<P>, handler: NotificationHandler<P>): void;
onNotification(method: string, handler: GenericNotificationHandler): void;
onNotification(method: string | MessageSignature, handler: GenericNotificationHandler): void;
onRequest<R, E>(type: RequestType0<R, E>, handler: RequestHandler0<R, E>): Disposable;
onRequest<P, R, E>(type: RequestType<P, R, E>, handler: RequestHandler<P, R, E>): Disposable;
onRequest<R, E>(method: string, handler: GenericRequestHandler<R, E>): Disposable;
onRequest<R, E>(method: string | MessageSignature, handler: GenericRequestHandler<R, E>): Disposable;
sendNotification(type: NotificationType0): Thenable<void>;
sendNotification<P>(type: NotificationType<P>, params?: P): Thenable<void>;
sendNotification(method: string): Thenable<void>;
sendNotification(method: string, params: any): Thenable<void>;
sendNotification(method: string | MessageSignature, params?: any): Thenable<void>;
onNotification(type: NotificationType0, handler: NotificationHandler0): Disposable;
onNotification<P>(type: NotificationType<P>, handler: NotificationHandler<P>): Disposable;
onNotification(method: string, handler: GenericNotificationHandler): Disposable;
onNotification(method: string | MessageSignature, handler: GenericNotificationHandler): Disposable;
onProgress<P>(type: ProgressType<P>, token: string | number, handler: NotificationHandler<P>): Disposable;
sendProgress<P>(type: ProgressType<P>, token: string | number, value: P): Thenable<void>;
trace(value: Trace, tracer: Tracer, sendNotification?: boolean): void;
initialize(params: InitializeParams): Thenable<InitializeResult>;
shutdown(): Thenable<void>;
exit(): void;
exit(): Thenable<void>;
onLogMessage(handle: NotificationHandler<LogMessageParams>): void;
onShowMessage(handler: NotificationHandler<ShowMessageParams>): void;
onTelemetry(handler: NotificationHandler<any>): void;
didChangeConfiguration(params: DidChangeConfigurationParams): void;
didChangeWatchedFiles(params: DidChangeWatchedFilesParams): void;
didOpenTextDocument(params: DidOpenTextDocumentParams): void;
didChangeTextDocument(params: DidChangeTextDocumentParams): void;
didCloseTextDocument(params: DidCloseTextDocumentParams): void;
didSaveTextDocument(params: DidSaveTextDocumentParams): void;
didChangeConfiguration(params: DidChangeConfigurationParams): Thenable<void>;
didChangeWatchedFiles(params: DidChangeWatchedFilesParams): Thenable<void>;
didOpenTextDocument(params: DidOpenTextDocumentParams): Thenable<void>;
didChangeTextDocument(params: DidChangeTextDocumentParams): Thenable<void>;
didCloseTextDocument(params: DidCloseTextDocumentParams): Thenable<void>;
didSaveTextDocument(params: DidSaveTextDocumentParams): Thenable<void>;
onDiagnostics(handler: NotificationHandler<PublishDiagnosticsParams>): void;
end(): void;
dispose(): void;
end(): void;
}

@@ -42,0 +44,0 @@ export interface ConnectionErrorHandler {

@@ -6,2 +6,11 @@ /* --------------------------------------------------------------------------------------------

'use strict';
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -18,17 +27,19 @@ exports.createConnection = void 0;

onRequest: (type, handler) => connection.onRequest(Is.string(type) ? type : type.method, handler),
sendNotification: (type, params) => connection.sendNotification(Is.string(type) ? type : type.method, params),
sendNotification: (type, params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(Is.string(type) ? type : type.method, params); }),
onNotification: (type, handler) => connection.onNotification(Is.string(type) ? type : type.method, handler),
onProgress: (type, token, handler) => connection.onProgress(type, token, handler),
sendProgress: (type, token, value) => __awaiter(this, void 0, void 0, function* () { return connection.sendProgress(type, token, value); }),
trace: (value, tracer, sendNotification = false) => connection.trace(value, tracer, sendNotification),
initialize: (params) => connection.sendRequest(vscode_languageserver_protocol_1.InitializeRequest.type, params),
shutdown: () => connection.sendRequest(vscode_languageserver_protocol_1.ShutdownRequest.type, undefined),
exit: () => connection.sendNotification(vscode_languageserver_protocol_1.ExitNotification.type),
exit: () => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.ExitNotification.type); }),
onLogMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1.LogMessageNotification.type, handler),
onShowMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1.ShowMessageNotification.type, handler),
onTelemetry: (handler) => connection.onNotification(vscode_languageserver_protocol_1.TelemetryEventNotification.type, handler),
didChangeConfiguration: (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidChangeConfigurationNotification.type, params),
didChangeWatchedFiles: (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidChangeWatchedFilesNotification.type, params),
didOpenTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidOpenTextDocumentNotification.type, params),
didChangeTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidChangeTextDocumentNotification.type, params),
didCloseTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidCloseTextDocumentNotification.type, params),
didSaveTextDocument: (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidSaveTextDocumentNotification.type, params),
didChangeConfiguration: (params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.DidChangeConfigurationNotification.type, params); }),
didChangeWatchedFiles: (params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.DidChangeWatchedFilesNotification.type, params); }),
didOpenTextDocument: (params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.DidOpenTextDocumentNotification.type, params); }),
didChangeTextDocument: (params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.DidChangeTextDocumentNotification.type, params); }),
didCloseTextDocument: (params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.DidCloseTextDocumentNotification.type, params); }),
didSaveTextDocument: (params) => __awaiter(this, void 0, void 0, function* () { return connection.sendNotification(vscode_languageserver_protocol_1.DidSaveTextDocumentNotification.type, params); }),
onDiagnostics: (handler) => connection.onNotification(vscode_languageserver_protocol_1.PublishDiagnosticsNotification.type, handler),

@@ -35,0 +46,0 @@ dispose: () => connection.dispose(),

@@ -26,2 +26,3 @@ "use strict";

const callHierarchy_1 = require("vscode-languageclient/lib/common/callHierarchy");
const progress_1 = require("vscode-languageclient/lib/common/progress");
const semanticTokens_1 = require("vscode-languageclient/lib/common/semanticTokens");

@@ -94,2 +95,3 @@ const declaration_1 = require("vscode-languageclient/lib/common/declaration");

this.registerFeature(new callHierarchy_1.CallHierarchyFeature(this));
this.registerFeature(new progress_1.ProgressFeature(this));
const features = this['_features'];

@@ -96,0 +98,0 @@ for (const feature of features) {

@@ -494,2 +494,3 @@ "use strict";

},
onDidChange: provider.onDidChange,
provideDocumentSemanticTokens: (model, lastResultId, token) => __awaiter(this, void 0, void 0, function* () {

@@ -563,2 +564,5 @@ if (!this.matchModel(selector, MonacoModelIdentifier.fromModel(model))) {

}
if (languages.has('*')) {
return new Set(['*']);
}
return languages;

@@ -565,0 +569,0 @@ }

@@ -119,2 +119,3 @@ import { DocumentSelector, MessageActionItem, MessageType, TextDocumentPositionParams, ReferenceParams, CodeActionParams, CodeLensParams, DocumentFormattingParams, DocumentRangeFormattingParams, DocumentOnTypeFormattingParams, RenameParams, DocumentLinkParams, WorkspaceClientCapabilities, Diagnostic, CompletionItem, CompletionList, Hover, SignatureHelp, Definition, Location, DocumentHighlight, SymbolInformation, Command, CodeLens, TextEdit, WorkspaceEdit, DocumentLink, TextDocumentSaveReason, DocumentSymbolParams, WorkspaceSymbolParams, TextDocumentContentChangeEvent, CompletionParams, ColorInformation, ColorPresentation, DocumentColorParams, ColorPresentationParams, FoldingRange, FoldingRangeParams, DocumentSymbol, CodeAction, Declaration, SelectionRangeParams, SelectionRange, SemanticTokensParams, SemanticTokens, SemanticTokensEdit, SemanticTokensLegend, SemanticTokensRangeParams, SemanticTokensDeltaParams } from 'vscode-languageserver-protocol';

export interface DocumentSemanticTokensProvider {
onDidChange?: Event<void>;
provideDocumentSemanticTokens(params: SemanticTokensParams, token: CancellationToken): ProviderResult<SemanticTokens>;

@@ -121,0 +122,0 @@ provideDocumentSemanticTokensEdits?(params: SemanticTokensDeltaParams, token: CancellationToken): ProviderResult<SemanticTokens | SemanticTokensEdit>;

@@ -368,3 +368,3 @@ "use strict";

match(selector, document) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -390,3 +390,3 @@ }

registerCompletionItemProvider(selector, provider, ...triggerCharacters) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -411,3 +411,3 @@ }

registerCodeActionsProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -429,3 +429,3 @@ }

registerCodeLensProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -448,3 +448,3 @@ }

registerDefinitionProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -463,3 +463,3 @@ }

registerImplementationProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -478,3 +478,3 @@ }

registerTypeDefinitionProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -493,3 +493,3 @@ }

registerDeclarationProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -508,3 +508,3 @@ }

registerHoverProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -523,3 +523,3 @@ }

registerDocumentHighlightProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -538,3 +538,3 @@ }

registerDocumentSymbolProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -564,3 +564,3 @@ }

registerReferenceProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -579,3 +579,3 @@ }

registerRenameProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -594,3 +594,3 @@ }

registerDocumentFormattingEditProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -609,3 +609,3 @@ }

registerDocumentRangeFormattingEditProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -624,3 +624,3 @@ }

registerOnTypeFormattingEditProvider(selector, provider, firstTriggerCharacter, ...moreTriggerCharacter) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -639,3 +639,3 @@ }

registerSignatureHelpProvider(selector, provider, firstItem, ...remaining) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -665,3 +665,3 @@ }

registerDocumentLinkProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -684,3 +684,3 @@ }

registerColorProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -705,3 +705,3 @@ }

registerFoldingRangeProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -720,3 +720,3 @@ }

registerSelectionRangeProvider(selector, provider) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -736,3 +736,3 @@ }

registerDocumentSemanticTokensProvider(selector, provider, legend) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -745,2 +745,3 @@ }

return languages.registerDocumentSemanticTokensProvider(selector, {
onDidChange: provider.onDidChangeSemanticTokens,
provideDocumentSemanticTokens({ textDocument }, token) {

@@ -755,3 +756,3 @@ return provider.provideDocumentSemanticTokens(textDocument, token);

registerDocumentRangeSemanticTokensProvider(selector, provider, legend) {
if (!services_1.isDocumentSelector(selector)) {
if (!(0, services_1.isDocumentSelector)(selector)) {
throw new Error('unexpected selector: ' + JSON.stringify(selector));

@@ -946,3 +947,5 @@ }

DiagnosticSeverity: ServicesModule.DiagnosticSeverity,
EventEmitter: ServicesModule.Emitter
EventEmitter: ServicesModule.Emitter,
CancellationTokenSource: vscode_languageserver_protocol_1.CancellationTokenSource,
ProgressLocation: vscode.ProgressLocation
};

@@ -949,0 +952,0 @@ return partialApi;

@@ -8,3 +8,3 @@ "use strict";

const services_1 = require("./services");
module.exports = vscode_api_1.createVSCodeApi(services_1.Services.get);
module.exports = (0, vscode_api_1.createVSCodeApi)(services_1.Services.get);
//# sourceMappingURL=vscode-compatibility.js.map
{
"name": "@codingame/monaco-languageclient",
"version": "0.17.0",
"version": "0.17.1",
"description": "Monaco Language client implementation",

@@ -5,0 +5,0 @@ "author": "TypeFox GmbH (http://www.typefox.io)",

@@ -12,3 +12,3 @@ /* --------------------------------------------------------------------------------------------

NotificationHandler, NotificationHandler0, GenericNotificationHandler,
Trace, Tracer, CancellationToken, MessageConnection, MessageSignature, Disposable
Trace, Tracer, CancellationToken, MessageConnection, MessageSignature, Disposable, ProgressType
} from 'vscode-jsonrpc';

@@ -45,18 +45,21 @@

onRequest<R, E>(type: RequestType0<R, E>, handler: RequestHandler0<R, E>): void;
onRequest<P, R, E>(type: RequestType<P, R, E>, handler: RequestHandler<P, R, E>): void;
onRequest<R, E>(method: string, handler: GenericRequestHandler<R, E>): void;
onRequest<R, E>(method: string | MessageSignature, handler: GenericRequestHandler<R, E>): void;
onRequest<R, E>(type: RequestType0<R, E>, handler: RequestHandler0<R, E>): Disposable;
onRequest<P, R, E>(type: RequestType<P, R, E>, handler: RequestHandler<P, R, E>): Disposable;
onRequest<R, E>(method: string, handler: GenericRequestHandler<R, E>): Disposable;
onRequest<R, E>(method: string | MessageSignature, handler: GenericRequestHandler<R, E>): Disposable;
sendNotification<RO>(type: NotificationType0): void;
sendNotification<P>(type: NotificationType<P>, params?: P): void;
sendNotification(method: string): void;
sendNotification(method: string, params: any): void;
sendNotification(method: string | MessageSignature, params?: any): void;
sendNotification(type: NotificationType0): Thenable<void>;
sendNotification<P>(type: NotificationType<P>, params?: P): Thenable<void>;
sendNotification(method: string): Thenable<void>;
sendNotification(method: string, params: any): Thenable<void>;
sendNotification(method: string | MessageSignature, params?: any): Thenable<void>;
onNotification<RO>(type: NotificationType0, handler: NotificationHandler0): void;
onNotification<P>(type: NotificationType<P>, handler: NotificationHandler<P>): void;
onNotification(method: string, handler: GenericNotificationHandler): void;
onNotification(method: string | MessageSignature, handler: GenericNotificationHandler): void;
onNotification(type: NotificationType0, handler: NotificationHandler0): Disposable;
onNotification<P>(type: NotificationType<P>, handler: NotificationHandler<P>): Disposable;
onNotification(method: string, handler: GenericNotificationHandler): Disposable;
onNotification(method: string | MessageSignature, handler: GenericNotificationHandler): Disposable;
onProgress<P>(type: ProgressType<P>, token: string | number, handler: NotificationHandler<P>): Disposable;
sendProgress<P>(type: ProgressType<P>, token: string | number, value: P): Thenable<void>;
trace(value: Trace, tracer: Tracer, sendNotification?: boolean): void;

@@ -66,3 +69,3 @@

shutdown(): Thenable<void>;
exit(): void;
exit(): Thenable<void>;

@@ -73,13 +76,13 @@ onLogMessage(handle: NotificationHandler<LogMessageParams>): void;

didChangeConfiguration(params: DidChangeConfigurationParams): void;
didChangeWatchedFiles(params: DidChangeWatchedFilesParams): void;
didChangeConfiguration(params: DidChangeConfigurationParams): Thenable<void>;
didChangeWatchedFiles(params: DidChangeWatchedFilesParams): Thenable<void>;
didOpenTextDocument(params: DidOpenTextDocumentParams): void;
didChangeTextDocument(params: DidChangeTextDocumentParams): void;
didCloseTextDocument(params: DidCloseTextDocumentParams): void;
didSaveTextDocument(params: DidSaveTextDocumentParams): void;
didOpenTextDocument(params: DidOpenTextDocumentParams): Thenable<void>;
didChangeTextDocument(params: DidChangeTextDocumentParams): Thenable<void>;
didCloseTextDocument(params: DidCloseTextDocumentParams): Thenable<void>;
didSaveTextDocument(params: DidSaveTextDocumentParams): Thenable<void>;
onDiagnostics(handler: NotificationHandler<PublishDiagnosticsParams>): void;
end(): void;
dispose(): void;
end(): void
}

@@ -106,5 +109,8 @@

sendNotification: (type: string | MessageSignature, params?: any): void => connection.sendNotification(Is.string(type) ? type : type.method, params),
sendNotification: async (type: string | MessageSignature, params?: any): Promise<void> => connection.sendNotification(Is.string(type) ? type : type.method, params),
onNotification: (type: string | MessageSignature, handler: GenericNotificationHandler): Disposable => connection.onNotification(Is.string(type) ? type : type.method, handler),
onProgress: <P>(type: ProgressType<P>, token: string | number, handler: NotificationHandler<P>): Disposable => connection.onProgress(type, token, handler),
sendProgress: async <P>(type: ProgressType<P>, token: string | number, value: P) => connection.sendProgress(type, token, value),
trace: (value: Trace, tracer: Tracer, sendNotification: boolean = false): void => connection.trace(value, tracer, sendNotification),

@@ -114,3 +120,3 @@

shutdown: () => connection.sendRequest(ShutdownRequest.type, undefined),
exit: () => connection.sendNotification(ExitNotification.type),
exit: async () => connection.sendNotification(ExitNotification.type),

@@ -121,9 +127,9 @@ onLogMessage: (handler: NotificationHandler<LogMessageParams>) => connection.onNotification(LogMessageNotification.type, handler),

didChangeConfiguration: (params: DidChangeConfigurationParams) => connection.sendNotification(DidChangeConfigurationNotification.type, params),
didChangeWatchedFiles: (params: DidChangeWatchedFilesParams) => connection.sendNotification(DidChangeWatchedFilesNotification.type, params),
didChangeConfiguration: async (params: DidChangeConfigurationParams) => connection.sendNotification(DidChangeConfigurationNotification.type, params),
didChangeWatchedFiles: async (params: DidChangeWatchedFilesParams) => connection.sendNotification(DidChangeWatchedFilesNotification.type, params),
didOpenTextDocument: (params: DidOpenTextDocumentParams) => connection.sendNotification(DidOpenTextDocumentNotification.type, params),
didChangeTextDocument: (params: DidChangeTextDocumentParams) => connection.sendNotification(DidChangeTextDocumentNotification.type, params),
didCloseTextDocument: (params: DidCloseTextDocumentParams) => connection.sendNotification(DidCloseTextDocumentNotification.type, params),
didSaveTextDocument: (params: DidSaveTextDocumentParams) => connection.sendNotification(DidSaveTextDocumentNotification.type, params),
didOpenTextDocument: async (params: DidOpenTextDocumentParams) => connection.sendNotification(DidOpenTextDocumentNotification.type, params),
didChangeTextDocument: async (params: DidChangeTextDocumentParams) => connection.sendNotification(DidChangeTextDocumentNotification.type, params),
didCloseTextDocument: async (params: DidCloseTextDocumentParams) => connection.sendNotification(DidCloseTextDocumentNotification.type, params),
didSaveTextDocument: async (params: DidSaveTextDocumentParams) => connection.sendNotification(DidSaveTextDocumentNotification.type, params),

@@ -130,0 +136,0 @@ onDiagnostics: (handler: NotificationHandler<PublishDiagnosticsParams>) => connection.onNotification(PublishDiagnosticsNotification.type, handler),

@@ -16,2 +16,3 @@ /* --------------------------------------------------------------------------------------------

import { CallHierarchyFeature } from "vscode-languageclient/lib/common/callHierarchy";
import { ProgressFeature } from "vscode-languageclient/lib/common/progress";
import { SemanticTokensFeature } from "vscode-languageclient/lib/common/semanticTokens";

@@ -102,2 +103,3 @@ import * as p2c from 'vscode-languageclient/lib/common/protocolConverter';

this.registerFeature(new CallHierarchyFeature(this));
this.registerFeature(new ProgressFeature(this));

@@ -104,0 +106,0 @@ const features = this['_features'] as ((StaticFeature | DynamicFeature<any>)[]);

@@ -541,2 +541,3 @@ /* --------------------------------------------------------------------------------------------

},
onDidChange: provider.onDidChange,
provideDocumentSemanticTokens: async (model, lastResultId, token) => {

@@ -613,2 +614,5 @@ if (!this.matchModel(selector, MonacoModelIdentifier.fromModel(model))) {

}
if (languages.has('*')) {
return new Set(['*'])
}
return languages;

@@ -615,0 +619,0 @@ }

@@ -203,2 +203,3 @@ /* --------------------------------------------------------------------------------------------

export interface DocumentSemanticTokensProvider {
onDidChange?: Event<void>;
provideDocumentSemanticTokens(params: SemanticTokensParams, token: CancellationToken): ProviderResult<SemanticTokens>;

@@ -205,0 +206,0 @@ provideDocumentSemanticTokensEdits?(params: SemanticTokensDeltaParams, token: CancellationToken): ProviderResult<SemanticTokens | SemanticTokensEdit>;

@@ -16,3 +16,3 @@ /* --------------------------------------------------------------------------------------------

import * as ServicesModule from "./services";
import { DiagnosticSeverity } from "vscode-languageserver-protocol";
import { CancellationTokenSource, DiagnosticSeverity } from "vscode-languageserver-protocol";

@@ -742,2 +742,3 @@ export function createVSCodeApi(servicesProvider: Services.Provider): typeof vscode {

return languages.registerDocumentSemanticTokensProvider(selector, {
onDidChange: provider.onDidChangeSemanticTokens,
provideDocumentSemanticTokens({ textDocument }, token) {

@@ -945,3 +946,5 @@ return provider.provideDocumentSemanticTokens(<any>textDocument, token) as any;

DiagnosticSeverity: ServicesModule.DiagnosticSeverity,
EventEmitter: ServicesModule.Emitter
EventEmitter: ServicesModule.Emitter,
CancellationTokenSource,
ProgressLocation: vscode.ProgressLocation
};

@@ -948,0 +951,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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