;
+ /**
+ * Listens for `low level` notification on the given connection to
+ * update the notebook documents managed by this instance.
+ *
+ * Please note that the connection only provides handlers not an event model. Therefore
+ * listening on a connection will overwrite the following handlers on a connection:
+ * `onDidOpenNotebookDocument`, `onDidChangeNotebookDocument`, `onDidSaveNotebookDocument`,
+ * and `onDidCloseNotebookDocument`.
+ *
+ * @param connection The connection to listen on.
+ */
+ listen(connection: Connection): Disposable;
+ private updateCellMap;
+}
diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/notebook.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/notebook.js"
index 756466867fc88902a2e9122322bbec792dfe373c..c9cab909748f2671262178c036b75125d08d8838 100644
--- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/notebook.js"
+++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/notebook.js"
@@ -1,3 +1,252 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:3646fd9a4cc1408ba82b3c9de59303999d60b589ac4df5f81c643b1670514f65
-size 11869
+/* --------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for license information.
+ * ------------------------------------------------------------------------------------------ */
+'use strict';
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.NotebookDocuments = exports.NotebookSyncFeature = void 0;
+const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol");
+const textDocuments_1 = require("./textDocuments");
+const NotebookSyncFeature = (Base) => {
+ return class extends Base {
+ get synchronization() {
+ return {
+ onDidOpenNotebookDocument: (handler) => {
+ return this.connection.onNotification(vscode_languageserver_protocol_1.DidOpenNotebookDocumentNotification.type, (params) => {
+ handler(params);
+ });
+ },
+ onDidChangeNotebookDocument: (handler) => {
+ return this.connection.onNotification(vscode_languageserver_protocol_1.DidChangeNotebookDocumentNotification.type, (params) => {
+ handler(params);
+ });
+ },
+ onDidSaveNotebookDocument: (handler) => {
+ return this.connection.onNotification(vscode_languageserver_protocol_1.DidSaveNotebookDocumentNotification.type, (params) => {
+ handler(params);
+ });
+ },
+ onDidCloseNotebookDocument: (handler) => {
+ return this.connection.onNotification(vscode_languageserver_protocol_1.DidCloseNotebookDocumentNotification.type, (params) => {
+ handler(params);
+ });
+ }
+ };
+ }
+ };
+};
+exports.NotebookSyncFeature = NotebookSyncFeature;
+class CellTextDocumentConnection {
+ onDidOpenTextDocument(handler) {
+ this.openHandler = handler;
+ return vscode_languageserver_protocol_1.Disposable.create(() => { this.openHandler = undefined; });
+ }
+ openTextDocument(params) {
+ this.openHandler && this.openHandler(params);
+ }
+ onDidChangeTextDocument(handler) {
+ this.changeHandler = handler;
+ return vscode_languageserver_protocol_1.Disposable.create(() => { this.changeHandler = handler; });
+ }
+ changeTextDocument(params) {
+ this.changeHandler && this.changeHandler(params);
+ }
+ onDidCloseTextDocument(handler) {
+ this.closeHandler = handler;
+ return vscode_languageserver_protocol_1.Disposable.create(() => { this.closeHandler = undefined; });
+ }
+ closeTextDocument(params) {
+ this.closeHandler && this.closeHandler(params);
+ }
+ onWillSaveTextDocument() {
+ return CellTextDocumentConnection.NULL_DISPOSE;
+ }
+ onWillSaveTextDocumentWaitUntil() {
+ return CellTextDocumentConnection.NULL_DISPOSE;
+ }
+ onDidSaveTextDocument() {
+ return CellTextDocumentConnection.NULL_DISPOSE;
+ }
+}
+CellTextDocumentConnection.NULL_DISPOSE = Object.freeze({ dispose: () => { } });
+class NotebookDocuments {
+ constructor(configurationOrTextDocuments) {
+ if (configurationOrTextDocuments instanceof textDocuments_1.TextDocuments) {
+ this._cellTextDocuments = configurationOrTextDocuments;
+ }
+ else {
+ this._cellTextDocuments = new textDocuments_1.TextDocuments(configurationOrTextDocuments);
+ }
+ this.notebookDocuments = new Map();
+ this.notebookCellMap = new Map();
+ this._onDidOpen = new vscode_languageserver_protocol_1.Emitter();
+ this._onDidChange = new vscode_languageserver_protocol_1.Emitter();
+ this._onDidSave = new vscode_languageserver_protocol_1.Emitter();
+ this._onDidClose = new vscode_languageserver_protocol_1.Emitter();
+ }
+ get cellTextDocuments() {
+ return this._cellTextDocuments;
+ }
+ getCellTextDocument(cell) {
+ return this._cellTextDocuments.get(cell.document);
+ }
+ getNotebookDocument(uri) {
+ return this.notebookDocuments.get(uri);
+ }
+ getNotebookCell(uri) {
+ const value = this.notebookCellMap.get(uri);
+ return value && value[0];
+ }
+ findNotebookDocumentForCell(cell) {
+ const key = typeof cell === 'string' ? cell : cell.document;
+ const value = this.notebookCellMap.get(key);
+ return value && value[1];
+ }
+ get onDidOpen() {
+ return this._onDidOpen.event;
+ }
+ get onDidSave() {
+ return this._onDidSave.event;
+ }
+ get onDidChange() {
+ return this._onDidChange.event;
+ }
+ get onDidClose() {
+ return this._onDidClose.event;
+ }
+ /**
+ * Listens for `low level` notification on the given connection to
+ * update the notebook documents managed by this instance.
+ *
+ * Please note that the connection only provides handlers not an event model. Therefore
+ * listening on a connection will overwrite the following handlers on a connection:
+ * `onDidOpenNotebookDocument`, `onDidChangeNotebookDocument`, `onDidSaveNotebookDocument`,
+ * and `onDidCloseNotebookDocument`.
+ *
+ * @param connection The connection to listen on.
+ */
+ listen(connection) {
+ const cellTextDocumentConnection = new CellTextDocumentConnection();
+ const disposables = [];
+ disposables.push(this.cellTextDocuments.listen(cellTextDocumentConnection));
+ disposables.push(connection.notebooks.synchronization.onDidOpenNotebookDocument((params) => {
+ this.notebookDocuments.set(params.notebookDocument.uri, params.notebookDocument);
+ for (const cellTextDocument of params.cellTextDocuments) {
+ cellTextDocumentConnection.openTextDocument({ textDocument: cellTextDocument });
+ }
+ this.updateCellMap(params.notebookDocument);
+ this._onDidOpen.fire(params.notebookDocument);
+ }));
+ disposables.push(connection.notebooks.synchronization.onDidChangeNotebookDocument((params) => {
+ const notebookDocument = this.notebookDocuments.get(params.notebookDocument.uri);
+ if (notebookDocument === undefined) {
+ return;
+ }
+ notebookDocument.version = params.notebookDocument.version;
+ const oldMetadata = notebookDocument.metadata;
+ let metadataChanged = false;
+ const change = params.change;
+ if (change.metadata !== undefined) {
+ metadataChanged = true;
+ notebookDocument.metadata = change.metadata;
+ }
+ const opened = [];
+ const closed = [];
+ const data = [];
+ const text = [];
+ if (change.cells !== undefined) {
+ const changedCells = change.cells;
+ if (changedCells.structure !== undefined) {
+ const array = changedCells.structure.array;
+ notebookDocument.cells.splice(array.start, array.deleteCount, ...(array.cells !== undefined ? array.cells : []));
+ // Additional open cell text documents.
+ if (changedCells.structure.didOpen !== undefined) {
+ for (const open of changedCells.structure.didOpen) {
+ cellTextDocumentConnection.openTextDocument({ textDocument: open });
+ opened.push(open.uri);
+ }
+ }
+ // Additional closed cell test documents.
+ if (changedCells.structure.didClose) {
+ for (const close of changedCells.structure.didClose) {
+ cellTextDocumentConnection.closeTextDocument({ textDocument: close });
+ closed.push(close.uri);
+ }
+ }
+ }
+ if (changedCells.data !== undefined) {
+ const cellUpdates = new Map(changedCells.data.map(cell => [cell.document, cell]));
+ for (let i = 0; i <= notebookDocument.cells.length; i++) {
+ const change = cellUpdates.get(notebookDocument.cells[i].document);
+ if (change !== undefined) {
+ const old = notebookDocument.cells.splice(i, 1, change);
+ data.push({ old: old[0], new: change });
+ cellUpdates.delete(change.document);
+ if (cellUpdates.size === 0) {
+ break;
+ }
+ }
+ }
+ }
+ if (changedCells.textContent !== undefined) {
+ for (const cellTextDocument of changedCells.textContent) {
+ cellTextDocumentConnection.changeTextDocument({ textDocument: cellTextDocument.document, contentChanges: cellTextDocument.changes });
+ text.push(cellTextDocument.document.uri);
+ }
+ }
+ }
+ // Update internal data structure.
+ this.updateCellMap(notebookDocument);
+ const changeEvent = { notebookDocument };
+ if (metadataChanged) {
+ changeEvent.metadata = { old: oldMetadata, new: notebookDocument.metadata };
+ }
+ const added = [];
+ for (const open of opened) {
+ added.push(this.getNotebookCell(open));
+ }
+ const removed = [];
+ for (const close of closed) {
+ removed.push(this.getNotebookCell(close));
+ }
+ const textContent = [];
+ for (const change of text) {
+ textContent.push(this.getNotebookCell(change));
+ }
+ if (added.length > 0 || removed.length > 0 || data.length > 0 || textContent.length > 0) {
+ changeEvent.cells = { added, removed, changed: { data, textContent } };
+ }
+ if (changeEvent.metadata !== undefined || changeEvent.cells !== undefined) {
+ this._onDidChange.fire(changeEvent);
+ }
+ }));
+ disposables.push(connection.notebooks.synchronization.onDidSaveNotebookDocument((params) => {
+ const notebookDocument = this.notebookDocuments.get(params.notebookDocument.uri);
+ if (notebookDocument === undefined) {
+ return;
+ }
+ this._onDidSave.fire(notebookDocument);
+ }));
+ disposables.push(connection.notebooks.synchronization.onDidCloseNotebookDocument((params) => {
+ const notebookDocument = this.notebookDocuments.get(params.notebookDocument.uri);
+ if (notebookDocument === undefined) {
+ return;
+ }
+ this._onDidClose.fire(notebookDocument);
+ for (const cellTextDocument of params.cellTextDocuments) {
+ cellTextDocumentConnection.closeTextDocument({ textDocument: cellTextDocument });
+ }
+ this.notebookDocuments.delete(params.notebookDocument.uri);
+ for (const cell of notebookDocument.cells) {
+ this.notebookCellMap.delete(cell.document);
+ }
+ }));
+ return vscode_languageserver_protocol_1.Disposable.create(() => { disposables.forEach(disposable => disposable.dispose()); });
+ }
+ updateCellMap(notebookDocument) {
+ for (const cell of notebookDocument.cells) {
+ this.notebookCellMap.set(cell.document, [cell, notebookDocument]);
+ }
+ }
+}
+exports.NotebookDocuments = NotebookDocuments;
diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/progress.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/progress.d.ts"
index b094e5d3f5794c985efd42a18714b2a968778c20..b74a64e8d15914f2df530f7eae86d207e1f318f8 100644
--- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/progress.d.ts"
+++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/progress.d.ts"
@@ -1,3 +1,25 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:f1f23acd4a8193453749f69d4432f5f122d6d572b793a8b630dd12fe80b0c3d3
-size 1358
+import { CancellationToken, ProgressToken, ProgressType, WorkDoneProgressParams, PartialResultParams } from 'vscode-languageserver-protocol';
+import type { Feature, _RemoteWindow } from './server';
+export interface ProgressContext {
+ sendProgress(type: ProgressType
, token: ProgressToken, value: P): void;
+}
+export interface WorkDoneProgressReporter {
+ begin(title: string, percentage?: number, message?: string, cancellable?: boolean): void;
+ report(percentage: number): void;
+ report(message: string): void;
+ report(percentage: number, message: string): void;
+ done(): void;
+}
+export interface WorkDoneProgressServerReporter extends WorkDoneProgressReporter {
+ readonly token: CancellationToken;
+}
+export interface WindowProgress {
+ attachWorkDoneProgress(token: ProgressToken | undefined): WorkDoneProgressReporter;
+ createWorkDoneProgress(): Promise;
+}
+export declare function attachWorkDone(connection: ProgressContext, params: WorkDoneProgressParams | undefined): WorkDoneProgressReporter;
+export declare const ProgressFeature: Feature<_RemoteWindow, WindowProgress>;
+export interface ResultProgressReporter {
+ report(data: R): void;
+}
+export declare function attachPartialResult(connection: ProgressContext, params: PartialResultParams): ResultProgressReporter | undefined;
diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/progress.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/progress.js"
index a87363765c5bc1183cf96cefc365e8903819d7fd..d220fef4f5e30392cea3895705d9f8ae75b64682 100644
--- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/progress.js"
+++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/progress.js"
@@ -1,3 +1,159 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:f10d29a9b1400f67f7dcfe4968220d7b829e0122d29c14cc46d7c0c56c2a4647
-size 5645
+"use strict";
+/* --------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for license information.
+ * ------------------------------------------------------------------------------------------ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.attachPartialResult = exports.ProgressFeature = exports.attachWorkDone = void 0;
+const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol");
+const uuid_1 = require("./utils/uuid");
+class WorkDoneProgressReporterImpl {
+ constructor(_connection, _token) {
+ this._connection = _connection;
+ this._token = _token;
+ WorkDoneProgressReporterImpl.Instances.set(this._token, this);
+ }
+ begin(title, percentage, message, cancellable) {
+ let param = {
+ kind: 'begin',
+ title,
+ percentage,
+ message,
+ cancellable
+ };
+ this._connection.sendProgress(vscode_languageserver_protocol_1.WorkDoneProgress.type, this._token, param);
+ }
+ report(arg0, arg1) {
+ let param = {
+ kind: 'report'
+ };
+ if (typeof arg0 === 'number') {
+ param.percentage = arg0;
+ if (arg1 !== undefined) {
+ param.message = arg1;
+ }
+ }
+ else {
+ param.message = arg0;
+ }
+ this._connection.sendProgress(vscode_languageserver_protocol_1.WorkDoneProgress.type, this._token, param);
+ }
+ done() {
+ WorkDoneProgressReporterImpl.Instances.delete(this._token);
+ this._connection.sendProgress(vscode_languageserver_protocol_1.WorkDoneProgress.type, this._token, { kind: 'end' });
+ }
+}
+WorkDoneProgressReporterImpl.Instances = new Map();
+class WorkDoneProgressServerReporterImpl extends WorkDoneProgressReporterImpl {
+ constructor(connection, token) {
+ super(connection, token);
+ this._source = new vscode_languageserver_protocol_1.CancellationTokenSource();
+ }
+ get token() {
+ return this._source.token;
+ }
+ done() {
+ this._source.dispose();
+ super.done();
+ }
+ cancel() {
+ this._source.cancel();
+ }
+}
+class NullProgressReporter {
+ constructor() {
+ }
+ begin() {
+ }
+ report() {
+ }
+ done() {
+ }
+}
+class NullProgressServerReporter extends NullProgressReporter {
+ constructor() {
+ super();
+ this._source = new vscode_languageserver_protocol_1.CancellationTokenSource();
+ }
+ get token() {
+ return this._source.token;
+ }
+ done() {
+ this._source.dispose();
+ }
+ cancel() {
+ this._source.cancel();
+ }
+}
+function attachWorkDone(connection, params) {
+ if (params === undefined || params.workDoneToken === undefined) {
+ return new NullProgressReporter();
+ }
+ const token = params.workDoneToken;
+ delete params.workDoneToken;
+ return new WorkDoneProgressReporterImpl(connection, token);
+}
+exports.attachWorkDone = attachWorkDone;
+const ProgressFeature = (Base) => {
+ return class extends Base {
+ constructor() {
+ super();
+ this._progressSupported = false;
+ }
+ initialize(capabilities) {
+ super.initialize(capabilities);
+ if (capabilities?.window?.workDoneProgress === true) {
+ this._progressSupported = true;
+ this.connection.onNotification(vscode_languageserver_protocol_1.WorkDoneProgressCancelNotification.type, (params) => {
+ let progress = WorkDoneProgressReporterImpl.Instances.get(params.token);
+ if (progress instanceof WorkDoneProgressServerReporterImpl || progress instanceof NullProgressServerReporter) {
+ progress.cancel();
+ }
+ });
+ }
+ }
+ attachWorkDoneProgress(token) {
+ if (token === undefined) {
+ return new NullProgressReporter();
+ }
+ else {
+ return new WorkDoneProgressReporterImpl(this.connection, token);
+ }
+ }
+ createWorkDoneProgress() {
+ if (this._progressSupported) {
+ const token = (0, uuid_1.generateUuid)();
+ return this.connection.sendRequest(vscode_languageserver_protocol_1.WorkDoneProgressCreateRequest.type, { token }).then(() => {
+ const result = new WorkDoneProgressServerReporterImpl(this.connection, token);
+ return result;
+ });
+ }
+ else {
+ return Promise.resolve(new NullProgressServerReporter());
+ }
+ }
+ };
+};
+exports.ProgressFeature = ProgressFeature;
+var ResultProgress;
+(function (ResultProgress) {
+ ResultProgress.type = new vscode_languageserver_protocol_1.ProgressType();
+})(ResultProgress || (ResultProgress = {}));
+class ResultProgressReporterImpl {
+ constructor(_connection, _token) {
+ this._connection = _connection;
+ this._token = _token;
+ }
+ report(data) {
+ this._connection.sendProgress(ResultProgress.type, this._token, data);
+ }
+}
+function attachPartialResult(connection, params) {
+ if (params === undefined || params.partialResultToken === undefined) {
+ return undefined;
+ }
+ const token = params.partialResultToken;
+ delete params.partialResultToken;
+ return new ResultProgressReporterImpl(connection, token);
+}
+exports.attachPartialResult = attachPartialResult;
diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/semanticTokens.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/semanticTokens.d.ts"
index 4bb84c4e6a5afb6b743f7cd6882dea030680fca5..9ef1bbab5e43efc0f8fece0c96c3462f4aa19205 100644
--- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/semanticTokens.d.ts"
+++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/semanticTokens.d.ts"
@@ -1,3 +1,38 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:5a9a4741aa510bdee406441f77186c6d2005be78e78c2e0da8201d9991950164
-size 1786
+import { SemanticTokens, SemanticTokensPartialResult, SemanticTokensDelta, SemanticTokensDeltaPartialResult, SemanticTokensParams, SemanticTokensDeltaParams, SemanticTokensRangeParams, SemanticTokensEdit, Disposable } from 'vscode-languageserver-protocol';
+import type { Feature, _Languages, ServerRequestHandler } from './server';
+/**
+ * Shape of the semantic token feature
+ *
+ * @since 3.16.0
+ */
+export interface SemanticTokensFeatureShape {
+ semanticTokens: {
+ refresh(): void;
+ on(handler: ServerRequestHandler): Disposable;
+ onDelta(handler: ServerRequestHandler): Disposable;
+ onRange(handler: ServerRequestHandler): Disposable;
+ };
+}
+export declare const SemanticTokensFeature: Feature<_Languages, SemanticTokensFeatureShape>;
+export declare class SemanticTokensDiff {
+ private readonly originalSequence;
+ private readonly modifiedSequence;
+ constructor(originalSequence: number[], modifiedSequence: number[]);
+ computeDiff(): SemanticTokensEdit[];
+}
+export declare class SemanticTokensBuilder {
+ private _id;
+ private _prevLine;
+ private _prevChar;
+ private _data;
+ private _dataLen;
+ private _prevData;
+ constructor();
+ private initialize;
+ push(line: number, char: number, length: number, tokenType: number, tokenModifiers: number): void;
+ get id(): string;
+ previousResult(id: string): void;
+ build(): SemanticTokens;
+ canBuildEdits(): boolean;
+ buildEdits(): SemanticTokens | SemanticTokensDelta;
+}
diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/semanticTokens.js" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/semanticTokens.js"
index 1dc21b2957af25d8e09676d056a42c266d156a41..0718a008318e1298d62307cb7e8290d708dad907 100644
--- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/semanticTokens.js"
+++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/semanticTokens.js"
@@ -1,3 +1,154 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:3943d65bd62867181147e0c0b07a42282c2edebbcf827a52ed75d3220ca764dc
-size 6241
+"use strict";
+/* --------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for license information.
+ * ------------------------------------------------------------------------------------------ */
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.SemanticTokensBuilder = exports.SemanticTokensDiff = exports.SemanticTokensFeature = void 0;
+const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol");
+const SemanticTokensFeature = (Base) => {
+ return class extends Base {
+ get semanticTokens() {
+ return {
+ refresh: () => {
+ return this.connection.sendRequest(vscode_languageserver_protocol_1.SemanticTokensRefreshRequest.type);
+ },
+ on: (handler) => {
+ const type = vscode_languageserver_protocol_1.SemanticTokensRequest.type;
+ return this.connection.onRequest(type, (params, cancel) => {
+ return handler(params, cancel, this.attachWorkDoneProgress(params), this.attachPartialResultProgress(type, params));
+ });
+ },
+ onDelta: (handler) => {
+ const type = vscode_languageserver_protocol_1.SemanticTokensDeltaRequest.type;
+ return this.connection.onRequest(type, (params, cancel) => {
+ return handler(params, cancel, this.attachWorkDoneProgress(params), this.attachPartialResultProgress(type, params));
+ });
+ },
+ onRange: (handler) => {
+ const type = vscode_languageserver_protocol_1.SemanticTokensRangeRequest.type;
+ return this.connection.onRequest(type, (params, cancel) => {
+ return handler(params, cancel, this.attachWorkDoneProgress(params), this.attachPartialResultProgress(type, params));
+ });
+ }
+ };
+ }
+ };
+};
+exports.SemanticTokensFeature = SemanticTokensFeature;
+class SemanticTokensDiff {
+ constructor(originalSequence, modifiedSequence) {
+ this.originalSequence = originalSequence;
+ this.modifiedSequence = modifiedSequence;
+ }
+ computeDiff() {
+ const originalLength = this.originalSequence.length;
+ const modifiedLength = this.modifiedSequence.length;
+ let startIndex = 0;
+ while (startIndex < modifiedLength && startIndex < originalLength && this.originalSequence[startIndex] === this.modifiedSequence[startIndex]) {
+ startIndex++;
+ }
+ if (startIndex < modifiedLength && startIndex < originalLength) {
+ let originalEndIndex = originalLength - 1;
+ let modifiedEndIndex = modifiedLength - 1;
+ while (originalEndIndex >= startIndex && modifiedEndIndex >= startIndex && this.originalSequence[originalEndIndex] === this.modifiedSequence[modifiedEndIndex]) {
+ originalEndIndex--;
+ modifiedEndIndex--;
+ }
+ // if one moved behind the start index move them forward again
+ if (originalEndIndex < startIndex || modifiedEndIndex < startIndex) {
+ originalEndIndex++;
+ modifiedEndIndex++;
+ }
+ const deleteCount = originalEndIndex - startIndex + 1;
+ const newData = this.modifiedSequence.slice(startIndex, modifiedEndIndex + 1);
+ // If we moved behind the start index we could have missed a simple delete.
+ if (newData.length === 1 && newData[0] === this.originalSequence[originalEndIndex]) {
+ return [
+ { start: startIndex, deleteCount: deleteCount - 1 }
+ ];
+ }
+ else {
+ return [
+ { start: startIndex, deleteCount, data: newData }
+ ];
+ }
+ }
+ else if (startIndex < modifiedLength) {
+ return [
+ { start: startIndex, deleteCount: 0, data: this.modifiedSequence.slice(startIndex) }
+ ];
+ }
+ else if (startIndex < originalLength) {
+ return [
+ { start: startIndex, deleteCount: originalLength - startIndex }
+ ];
+ }
+ else {
+ // The two arrays are the same.
+ return [];
+ }
+ }
+}
+exports.SemanticTokensDiff = SemanticTokensDiff;
+class SemanticTokensBuilder {
+ constructor() {
+ this._prevData = undefined;
+ this.initialize();
+ }
+ initialize() {
+ this._id = Date.now();
+ this._prevLine = 0;
+ this._prevChar = 0;
+ this._data = [];
+ this._dataLen = 0;
+ }
+ push(line, char, length, tokenType, tokenModifiers) {
+ let pushLine = line;
+ let pushChar = char;
+ if (this._dataLen > 0) {
+ pushLine -= this._prevLine;
+ if (pushLine === 0) {
+ pushChar -= this._prevChar;
+ }
+ }
+ this._data[this._dataLen++] = pushLine;
+ this._data[this._dataLen++] = pushChar;
+ this._data[this._dataLen++] = length;
+ this._data[this._dataLen++] = tokenType;
+ this._data[this._dataLen++] = tokenModifiers;
+ this._prevLine = line;
+ this._prevChar = char;
+ }
+ get id() {
+ return this._id.toString();
+ }
+ previousResult(id) {
+ if (this.id === id) {
+ this._prevData = this._data;
+ }
+ this.initialize();
+ }
+ build() {
+ this._prevData = undefined;
+ return {
+ resultId: this.id,
+ data: this._data
+ };
+ }
+ canBuildEdits() {
+ return this._prevData !== undefined;
+ }
+ buildEdits() {
+ if (this._prevData !== undefined) {
+ return {
+ resultId: this.id,
+ edits: (new SemanticTokensDiff(this._prevData, this._data)).computeDiff()
+ };
+ }
+ else {
+ return this.build();
+ }
+ }
+}
+exports.SemanticTokensBuilder = SemanticTokensBuilder;
diff --git "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/server.d.ts" "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/server.d.ts"
index 760fbc51ddbab72ed0c41c3c9f142a2695549cb2..b924b50bc7576cc69c53540239cdc1210ed58cb1 100644
--- "a/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/server.d.ts"
+++ "b/Java\345\274\200\345\217\221\347\216\257\345\242\203\345\256\211\350\243\205/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/eslint-server/node_modules/vscode-languageserver/lib/common/server.d.ts"
@@ -1,3 +1,804 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:72a33e518e5b98cd9c9dc8ee294f7507bf2a8938f491b0cf49c8ae582b966b3a
-size 37158
+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, MessageSignature, ApplyWorkspaceEditParams, ApplyWorkspaceEditResponse, WorkDoneProgressParams, PartialResultParams, RegistrationType, RequestType0, RequestType, NotificationType0, NotificationType, WorkspaceSymbol } from 'vscode-languageserver-protocol';
+import { WorkDoneProgressReporter, ResultProgressReporter, WindowProgress } from './progress';
+import { Configuration } from './configuration';
+import { WorkspaceFolders } from './workspaceFolder';
+import { CallHierarchy } from './callHierarchy';
+import { SemanticTokensFeatureShape } from './semanticTokens';
+import { ShowDocumentFeatureShape } from './showDocument';
+import { FileOperationsFeatureShape } from './fileOperations';
+import { LinkedEditingRangeFeatureShape } from './linkedEditingRange';
+import { TypeHierarchyFeatureShape } from './typeHierarchy';
+import { InlineValueFeatureShape } from './inlineValue';
+import { FoldingRangeFeatureShape } from './foldingRange';
+import { InlayHintFeatureShape } from './inlayHint';
+import { DiagnosticFeatureShape } from './diagnostic';
+import { NotebookSyncFeatureShape } from './notebook';
+import { MonikerFeatureShape } from './moniker';
+/**
+ * Helps tracking error message. Equal occurrences of the same
+ * message are only stored once. This class is for example
+ * useful if text documents are validated in a loop and equal
+ * error message should be folded into one.
+ */
+export declare class ErrorMessageTracker {
+ private _messages;
+ constructor();
+ /**
+ * Add a message to the tracker.
+ *
+ * @param message The message to add.
+ */
+ add(message: string): void;
+ /**
+ * Send all tracked messages to the connection's window.
+ *
+ * @param connection The connection established between client and server.
+ */
+ sendErrors(connection: {
+ window: RemoteWindow;
+ }): void;
+}
+export interface FeatureBase {
+ /**
+ * Called to initialize the remote with the given
+ * client capabilities
+ *
+ * @param capabilities The client capabilities
+ */
+ initialize(capabilities: ClientCapabilities): void;
+ /**
+ * Called to fill in the server capabilities this feature implements.
+ *
+ * @param capabilities The server capabilities to fill.
+ */
+ fillServerCapabilities(capabilities: ServerCapabilities): void;
+}
+interface Remote extends FeatureBase {
+ /**
+ * Attach the remote to the given connection.
+ *
+ * @param connection The connection this remote is operating on.
+ */
+ attach(connection: Connection): void;
+ /**
+ * The connection this remote is attached to.
+ */
+ connection: Connection;
+}
+/**
+ * The RemoteConsole interface contains all functions to interact with
+ * the tools / clients console or log system. Internally it used `window/logMessage`
+ * notifications.
+ */
+export interface RemoteConsole extends FeatureBase {
+ /**
+ * The connection this remote is attached to.
+ */
+ connection: Connection;
+ /**
+ * Show an error message.
+ *
+ * @param message The message to show.
+ */
+ error(message: string): void;
+ /**
+ * Show a warning message.
+ *
+ * @param message The message to show.
+ */
+ warn(message: string): void;
+ /**
+ * Show an information message.
+ *
+ * @param message The message to show.
+ */
+ info(message: string): void;
+ /**
+ * Log a message.
+ *
+ * @param message The message to log.
+ */
+ log(message: string): void;
+ /**
+ * Log a debug message.
+ *
+ * @param message The message to log.
+ *
+ * @since 3.18.0
+ */
+ debug(message: string): void;
+}
+/**
+ * The RemoteWindow interface contains all functions to interact with
+ * the visual window of VS Code.
+ */
+export interface _RemoteWindow extends FeatureBase {
+ /**
+ * The connection this remote is attached to.
+ */
+ connection: Connection;
+ /**
+ * Shows an error message in the client's user interface. Depending on the client this might
+ * be a modal dialog with a confirmation button or a notification in a notification center
+ *
+ * @param message The message to show.
+ * @param actions Possible additional actions presented in the user interface. The selected action
+ * will be the value of the resolved promise
+ */
+ showErrorMessage(message: string): void;
+ showErrorMessage(message: string, ...actions: T[]): Promise;
+ /**
+ * Shows a warning message in the client's user interface. Depending on the client this might
+ * be a modal dialog with a confirmation button or a notification in a notification center
+ *
+ * @param message The message to show.
+ * @param actions Possible additional actions presented in the user interface. The selected action
+ * will be the value of the resolved promise
+ */
+ showWarningMessage(message: string): void;
+ showWarningMessage(message: string, ...actions: T[]): Promise;
+ /**
+ * Shows an information message in the client's user interface. Depending on the client this might
+ * be a modal dialog with a confirmation button or a notification in a notification center
+ *
+ * @param message The message to show.
+ * @param actions Possible additional actions presented in the user interface. The selected action
+ * will be the value of the resolved promise
+ */
+ showInformationMessage(message: string): void;
+ showInformationMessage(message: string, ...actions: T[]): Promise;
+}
+export type RemoteWindow = _RemoteWindow & WindowProgress & ShowDocumentFeatureShape;
+/**
+ * A bulk registration manages n single registration to be able to register
+ * for n notifications or requests using one register request.
+ */
+export interface BulkRegistration {
+ /**
+ * Adds a single registration.
+ * @param type the notification type to register for.
+ * @param registerParams special registration parameters.
+ */
+ add(type: ProtocolNotificationType0, registerParams: RO): void;
+ add(type: ProtocolNotificationType
, registerParams: RO): void;
+ /**
+ * Adds a single registration.
+ * @param type the request type to register for.
+ * @param registerParams special registration parameters.
+ */
+ add(type: ProtocolRequestType0, registerParams: RO): void;
+ add(type: ProtocolRequestType
, registerParams: RO): void;
+ /**
+ * Adds a single registration.
+ * @param type the notification type to register for.
+ * @param registerParams special registration parameters.
+ */
+ add(type: RegistrationType, registerParams: RO): void;
+}
+export declare namespace BulkRegistration {
+ /**
+ * Creates a new bulk registration.
+ * @return an empty bulk registration.
+ */
+ function create(): BulkRegistration;
+}
+/**
+ * A `BulkUnregistration` manages n unregistrations.
+ */
+export interface BulkUnregistration extends Disposable {
+ /**
+ * Disposes a single registration. It will be removed from the
+ * `BulkUnregistration`.
+ */
+ disposeSingle(arg: string | MessageSignature): boolean;
+}
+export declare namespace BulkUnregistration {
+ function create(): BulkUnregistration;
+}
+/**
+ * Interface to register and unregister `listeners` on the client / tools side.
+ */
+export interface RemoteClient extends FeatureBase {
+ /**
+ * The connection this remote is attached to.
+ */
+ connection: Connection;
+ /**
+ * Registers a listener for the given request.
+ *
+ * @param type the request type to register for.
+ * @param registerParams special registration parameters.
+ * @return a `Disposable` to unregister the listener again.
+ */
+ register(type: ProtocolNotificationType
, registerParams?: RO): Promise;
+ register(type: ProtocolNotificationType0, registerParams?: RO): Promise;
+ /**
+ * Registers a listener for the given request.
+ *
+ * @param unregisteration the unregistration to add a corresponding unregister action to.
+ * @param type the request type to register for.
+ * @param registerParams special registration parameters.
+ * @return the updated unregistration.
+ */
+ register(unregisteration: BulkUnregistration, type: ProtocolNotificationType
, registerParams?: RO): Promise;
+ register(unregisteration: BulkUnregistration, type: ProtocolNotificationType0, registerParams?: RO): Promise;
+ /**
+ * Registers a listener for the given request.
+ *
+ * @param type the request type to register for.
+ * @param registerParams special registration parameters.
+ * @return a `Disposable` to unregister the listener again.
+ */
+ register(type: ProtocolRequestType
, registerParams?: RO): Promise;
+ register(type: ProtocolRequestType0, registerParams?: RO): Promise;
+ /**
+ * Registers a listener for the given request.
+ *
+ * @param unregisteration the unregistration to add a corresponding unregister action to.
+ * @param type the request type to register for.
+ * @param registerParams special registration parameters.
+ * @return the updated unregistration.
+ */
+ register(unregisteration: BulkUnregistration, type: ProtocolRequestType
, registerParams?: RO): Promise;
+ register(unregisteration: BulkUnregistration, type: ProtocolRequestType0, registerParams?: RO): Promise;
+ /**
+ * Registers a listener for the given registration type.
+ *
+ * @param type the registration type.
+ * @param registerParams special registration parameters.
+ * @return a `Disposable` to unregister the listener again.
+ */
+ register(type: RegistrationType, registerParams?: RO): Promise;
+ /**
+ * Registers a listener for the given registration type.
+ *
+ * @param unregisteration the unregistration to add a corresponding unregister action to.
+ * @param type the registration type.
+ * @param registerParams special registration parameters.
+ * @return the updated unregistration.
+ */
+ register(unregisteration: BulkUnregistration, type: RegistrationType, registerParams?: RO): Promise;
+ /**
+ * Registers a set of listeners.
+ * @param registrations the bulk registration
+ * @return a `Disposable` to unregister the listeners again.
+ */
+ register(registrations: BulkRegistration): Promise;
+}
+/**
+ * Represents the workspace managed by the client.
+ */
+export interface _RemoteWorkspace extends FeatureBase {
+ /**
+ * The connection this remote is attached to.
+ */
+ connection: Connection;
+ /**
+ * Applies a `WorkspaceEdit` to the workspace
+ * @param param the workspace edit params.
+ * @return a thenable that resolves to the `ApplyWorkspaceEditResponse`.
+ */
+ applyEdit(paramOrEdit: ApplyWorkspaceEditParams | WorkspaceEdit): Promise;
+}
+export type RemoteWorkspace = _RemoteWorkspace & Configuration & WorkspaceFolders & FileOperationsFeatureShape;
+/**
+ * Interface to log telemetry events. The events are actually send to the client
+ * and the client needs to feed the event into a proper telemetry system.
+ */
+export interface Telemetry extends FeatureBase {
+ /**
+ * The connection this remote is attached to.
+ */
+ connection: Connection;
+ /**
+ * Log the given data to telemetry.
+ *
+ * @param data The data to log. Must be a JSON serializable object.
+ */
+ logEvent(data: any): void;
+}
+/**
+ * Interface to log traces to the client. The events are sent to the client and the
+ * client needs to log the trace events.
+ */
+export interface RemoteTracer extends FeatureBase {
+ /**
+ * The connection this remote is attached to.
+ */
+ connection: Connection;
+ /**
+ * Log the given data to the trace Log
+ */
+ log(message: string, verbose?: string): void;
+}
+export interface _Languages extends FeatureBase {
+ connection: Connection;
+ attachWorkDoneProgress(params: WorkDoneProgressParams): WorkDoneProgressReporter;
+ attachPartialResultProgress(type: ProgressType, params: PartialResultParams): ResultProgressReporter | undefined;
+}
+export declare class _LanguagesImpl implements Remote, _Languages {
+ private _connection;
+ constructor();
+ attach(connection: Connection): void;
+ get connection(): Connection;
+ initialize(_capabilities: ClientCapabilities): void;
+ fillServerCapabilities(_capabilities: ServerCapabilities): void;
+ attachWorkDoneProgress(params: WorkDoneProgressParams): WorkDoneProgressReporter;
+ attachPartialResultProgress(_type: ProgressType, params: PartialResultParams): ResultProgressReporter | undefined;
+}
+export type Languages = _Languages & CallHierarchy & SemanticTokensFeatureShape & LinkedEditingRangeFeatureShape & TypeHierarchyFeatureShape & InlineValueFeatureShape & InlayHintFeatureShape & DiagnosticFeatureShape & MonikerFeatureShape & FoldingRangeFeatureShape;
+export interface _Notebooks extends FeatureBase {
+ connection: Connection;
+ attachWorkDoneProgress(params: WorkDoneProgressParams): WorkDoneProgressReporter;
+ attachPartialResultProgress(type: ProgressType, params: PartialResultParams): ResultProgressReporter | undefined;
+}
+export declare class _NotebooksImpl implements Remote, _Notebooks {
+ private _connection;
+ constructor();
+ attach(connection: Connection): void;
+ get connection(): Connection;
+ initialize(_capabilities: ClientCapabilities): void;
+ fillServerCapabilities(_capabilities: ServerCapabilities): void;
+ attachWorkDoneProgress(params: WorkDoneProgressParams): WorkDoneProgressReporter;
+ attachPartialResultProgress(_type: ProgressType, params: PartialResultParams): ResultProgressReporter | undefined;
+}
+export type Notebooks = _Notebooks & NotebookSyncFeatureShape;
+/**
+ * An empty interface for new proposed API.
+ */
+export interface _ {
+}
+export interface ServerRequestHandler {
+ (params: P, token: CancellationToken, workDoneProgress: WorkDoneProgressReporter, resultProgress?: ResultProgressReporter): HandlerResult;
+}
+/**
+ * Interface to describe the shape of the server connection.
+ */
+export interface _Connection {
+ /**
+ * Start listening on the input stream for messages to process.
+ */
+ listen(): void;
+ /**
+ * Installs a request handler described by the given {@link RequestType}.
+ *
+ * @param type The {@link RequestType} describing the request.
+ * @param handler The handler to install
+ */
+ onRequest(type: ProtocolRequestType0, handler: RequestHandler0): Disposable;
+ onRequest(type: ProtocolRequestType
, handler: RequestHandler
): Disposable;
+ onRequest(type: RequestType0, handler: RequestHandler0): Disposable;
+ onRequest(type: RequestType
, handler: RequestHandler
): Disposable;
+ /**
+ * Installs a request handler for the given method.
+ *
+ * @param method The method to register a request handler for.
+ * @param handler The handler to install.
+ */
+ onRequest(method: string, handler: GenericRequestHandler): Disposable;
+ /**
+ * Installs a request handler that is invoked if no specific request handler can be found.
+ *
+ * @param handler a handler that handles all requests.
+ */
+ onRequest(handler: StarRequestHandler): Disposable;
+ /**
+ * Send a request to the client.
+ *
+ * @param type The {@link RequestType} describing the request.
+ * @param params The request's parameters.
+ */
+ sendRequest(type: ProtocolRequestType0, token?: CancellationToken): Promise;
+ sendRequest(type: ProtocolRequestType
, params: P, token?: CancellationToken): Promise;
+ sendRequest(type: RequestType0, token?: CancellationToken): Promise;
+ sendRequest(type: RequestType
, params: P, token?: CancellationToken): Promise;
+ /**
+ * Send a request to the client.
+ *
+ * @param method The method to invoke on the client.
+ * @param params The request's parameters.
+ */
+ sendRequest(method: string, token?: CancellationToken): Promise;
+ sendRequest(method: string, params: any, token?: CancellationToken): Promise;
+ /**
+ * Installs a notification handler described by the given {@link NotificationType}.
+ *
+ * @param type The {@link NotificationType} describing the notification.
+ * @param handler The handler to install.
+ */
+ onNotification(type: ProtocolNotificationType0, handler: NotificationHandler0): Disposable;
+ onNotification(type: ProtocolNotificationType
, handler: NotificationHandler
): Disposable;
+ onNotification(type: NotificationType0, handler: NotificationHandler0): Disposable;
+ onNotification
(type: NotificationType
, handler: NotificationHandler
): Disposable;
+ /**
+ * Installs a notification handler for the given method.
+ *
+ * @param method The method to register a request handler for.
+ * @param handler The handler to install.
+ */
+ onNotification(method: string, handler: GenericNotificationHandler): Disposable;
+ /**
+ * Installs a notification handler that is invoked if no specific notification handler can be found.
+ *
+ * @param handler a handler that handles all notifications.
+ */
+ onNotification(handler: StarNotificationHandler): Disposable;
+ /**
+ * Send a notification to the client.
+ *
+ * @param type The {@link NotificationType} describing the notification.
+ * @param params The notification's parameters.
+ */
+ sendNotification(type: ProtocolNotificationType0): Promise;
+ sendNotification(type: ProtocolNotificationType
, params: P): Promise