vscode-languageclient
Advanced tools
Comparing version 10.0.0-next.8 to 10.0.0-next.9
@@ -27,2 +27,3 @@ "use strict"; | ||
class LanguageClient extends api_1.BaseLanguageClient { | ||
serverOptions; | ||
constructor(id, name, serverOptions, clientOptions) { | ||
@@ -29,0 +30,0 @@ super(id, name, clientOptions); |
@@ -12,2 +12,4 @@ "use strict"; | ||
class CallHierarchyProvider { | ||
client; | ||
middleware; | ||
constructor(client) { | ||
@@ -14,0 +16,0 @@ this.client = client; |
@@ -5,3 +5,3 @@ import { TextDocument, Disposable, OutputChannel, DiagnosticCollection, Diagnostic as VDiagnostic, Uri, CancellationToken, WorkspaceFolder as VWorkspaceFolder, FileCreateEvent, FileRenameEvent, FileDeleteEvent, FileWillCreateEvent, FileWillRenameEvent, FileWillDeleteEvent, CompletionItemProvider, HoverProvider, SignatureHelpProvider, DefinitionProvider, ReferenceProvider, DocumentHighlightProvider, CodeActionProvider, DocumentFormattingEditProvider, DocumentRangeFormattingEditProvider, OnTypeFormattingEditProvider, RenameProvider, DocumentSymbolProvider, DocumentLinkProvider, DeclarationProvider, ImplementationProvider, DocumentColorProvider, SelectionRangeProvider, TypeDefinitionProvider, CallHierarchyProvider, LinkedEditingRangeProvider, TypeHierarchyProvider, WorkspaceSymbolProvider, ProviderResult, TextEdit as VTextEdit, InlineCompletionItemProvider } from 'vscode'; | ||
import * as p2c from './protocolConverter'; | ||
import { DynamicFeature, FeatureClient, TextDocumentSendFeature, StaticFeature, TextDocumentProviderFeature, WorkspaceProviderFeature } from './features'; | ||
import { DynamicFeature, FeatureClient, TextDocumentSendFeature, StaticFeature, TextDocumentProviderFeature, WorkspaceProviderFeature, type TabsModel } from './features'; | ||
import { DiagnosticProviderMiddleware, DiagnosticProviderShape, $DiagnosticPullOptions, DiagnosticFeatureShape } from './diagnostic'; | ||
@@ -270,3 +270,14 @@ import { NotebookDocumentMiddleware, $NotebookDocumentOptions, NotebookDocumentProviderShape } from './notebook'; | ||
supportHtml?: boolean; | ||
supportThemeIcons?: boolean; | ||
}; | ||
textSynchronization?: { | ||
/** | ||
* Delays sending the open notification until one of the following | ||
* conditions becomes `true`: | ||
* - document is visible in the editor. | ||
* - any of the other notifications or requests is sent to the server, except | ||
* a closed notification for the pending document. | ||
*/ | ||
delayOpenNotifications?: boolean; | ||
}; | ||
} & $NotebookDocumentOptions & $DiagnosticPullOptions & $ConfigurationOptions; | ||
@@ -314,5 +325,6 @@ export interface MessageTransports { | ||
private _didChangeTextDocumentFeature; | ||
private readonly _pendingOpenNotifications; | ||
private readonly _inFlightOpenNotifications; | ||
private readonly _pendingChangeSemaphore; | ||
private readonly _pendingChangeDelayer; | ||
private _didOpenTextDocumentFeature; | ||
private _fileEvents; | ||
@@ -327,3 +339,5 @@ private _fileEventDelayer; | ||
private readonly _p2c; | ||
private _tabsModel; | ||
constructor(id: string, name: string, clientOptions: LanguageClientOptions); | ||
private createTextSynchronizationOptions; | ||
get name(): string; | ||
@@ -334,2 +348,3 @@ get middleware(): Middleware; | ||
get code2ProtocolConverter(): c2p.Converter; | ||
get tabsModel(): TabsModel; | ||
get onTelemetry(): Event<any>; | ||
@@ -336,0 +351,0 @@ get onDidChangeState(): Event<StateChangeEvent>; |
@@ -6,2 +6,25 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -11,3 +34,3 @@ exports.CodeActionFeature = void 0; | ||
const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol"); | ||
const UUID = require("./utils/uuid"); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
const features_1 = require("./features"); | ||
@@ -14,0 +37,0 @@ class CodeActionFeature extends features_1.TextDocumentLanguageFeature { |
@@ -6,17 +6,43 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createConverter = void 0; | ||
const code = require("vscode"); | ||
const proto = require("vscode-languageserver-protocol"); | ||
const Is = require("./utils/is"); | ||
const async = require("./utils/async"); | ||
const protocolCompletionItem_1 = require("./protocolCompletionItem"); | ||
const protocolCodeLens_1 = require("./protocolCodeLens"); | ||
const protocolDocumentLink_1 = require("./protocolDocumentLink"); | ||
const protocolCodeAction_1 = require("./protocolCodeAction"); | ||
const code = __importStar(require("vscode")); | ||
const proto = __importStar(require("vscode-languageserver-protocol")); | ||
const Is = __importStar(require("./utils/is")); | ||
const async = __importStar(require("./utils/async")); | ||
const protocolCompletionItem_1 = __importDefault(require("./protocolCompletionItem")); | ||
const protocolCodeLens_1 = __importDefault(require("./protocolCodeLens")); | ||
const protocolDocumentLink_1 = __importDefault(require("./protocolDocumentLink")); | ||
const protocolCodeAction_1 = __importDefault(require("./protocolCodeAction")); | ||
const protocolDiagnostic_1 = require("./protocolDiagnostic"); | ||
const protocolCallHierarchyItem_1 = require("./protocolCallHierarchyItem"); | ||
const protocolTypeHierarchyItem_1 = require("./protocolTypeHierarchyItem"); | ||
const protocolWorkspaceSymbol_1 = require("./protocolWorkspaceSymbol"); | ||
const protocolInlayHint_1 = require("./protocolInlayHint"); | ||
const protocolCallHierarchyItem_1 = __importDefault(require("./protocolCallHierarchyItem")); | ||
const protocolTypeHierarchyItem_1 = __importDefault(require("./protocolTypeHierarchyItem")); | ||
const protocolWorkspaceSymbol_1 = __importDefault(require("./protocolWorkspaceSymbol")); | ||
const protocolInlayHint_1 = __importDefault(require("./protocolInlayHint")); | ||
var InsertReplaceRange; | ||
@@ -23,0 +49,0 @@ (function (InsertReplaceRange) { |
@@ -6,2 +6,25 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -11,3 +34,3 @@ exports.CodeLensFeature = void 0; | ||
const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol"); | ||
const UUID = require("./utils/uuid"); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
const features_1 = require("./features"); | ||
@@ -14,0 +37,0 @@ class CodeLensFeature extends features_1.TextDocumentLanguageFeature { |
@@ -6,2 +6,25 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -12,3 +35,3 @@ exports.CompletionItemFeature = void 0; | ||
const features_1 = require("./features"); | ||
const UUID = require("./utils/uuid"); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
const SupportedCompletionItemKinds = [ | ||
@@ -42,2 +65,3 @@ vscode_languageserver_protocol_1.CompletionItemKind.Text, | ||
class CompletionItemFeature extends features_1.TextDocumentLanguageFeature { | ||
labelDetailsSupport; | ||
constructor(client) { | ||
@@ -44,0 +68,0 @@ super(client, vscode_languageserver_protocol_1.CompletionRequest.type); |
@@ -6,2 +6,25 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -11,4 +34,4 @@ exports.SyncConfigurationFeature = exports.toJSONObject = exports.ConfigurationFeature = void 0; | ||
const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol"); | ||
const Is = require("./utils/is"); | ||
const UUID = require("./utils/uuid"); | ||
const Is = __importStar(require("./utils/is")); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
const features_1 = require("./features"); | ||
@@ -19,2 +42,3 @@ /** | ||
class ConfigurationFeature { | ||
_client; | ||
constructor(client) { | ||
@@ -98,2 +122,5 @@ this._client = client; | ||
class SyncConfigurationFeature { | ||
_client; | ||
isCleared; | ||
_listeners; | ||
constructor(_client) { | ||
@@ -100,0 +127,0 @@ this._client = _client; |
@@ -6,2 +6,25 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -12,3 +35,3 @@ exports.DefinitionFeature = void 0; | ||
const features_1 = require("./features"); | ||
const UUID = require("./utils/uuid"); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
class DefinitionFeature extends features_1.TextDocumentLanguageFeature { | ||
@@ -15,0 +38,0 @@ constructor(client) { |
@@ -138,3 +138,2 @@ import { Disposable, CancellationToken, ProviderResult, Diagnostic as VDiagnostic, TextDocument, Event as VEvent, EventEmitter, Uri } from 'vscode'; | ||
export declare class DiagnosticFeature extends TextDocumentLanguageFeature<DiagnosticOptions, DiagnosticRegistrationOptions, DiagnosticProviderShape, DiagnosticProviderMiddleware, $DiagnosticPullOptions> implements DiagnosticFeatureShape { | ||
private tabs; | ||
constructor(client: FeatureClient<DiagnosticProviderMiddleware, $DiagnosticPullOptions>); | ||
@@ -141,0 +140,0 @@ fillClientCapabilities(capabilities: ClientCapabilities): void; |
@@ -6,5 +6,28 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DiagnosticFeature = exports.DiagnosticPullMode = exports.vsdiag = void 0; | ||
const minimatch = require("minimatch"); | ||
const minimatch = __importStar(require("minimatch")); | ||
const vscode_1 = require("vscode"); | ||
@@ -14,3 +37,2 @@ const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol"); | ||
const features_1 = require("./features"); | ||
const notebook_1 = require("./notebook"); | ||
function ensure(target, key) { | ||
@@ -42,112 +64,2 @@ if (target[key] === void 0) { | ||
})(RequestStateKind || (RequestStateKind = {})); | ||
/** | ||
* Manages the open tabs. We don't directly use the tab API since for | ||
* diagnostics we need to de-dupe tabs that show the same resources since | ||
* we pull on the model not the UI. | ||
*/ | ||
class Tabs { | ||
constructor() { | ||
this.open = new Set(); | ||
this._onOpen = new vscode_1.EventEmitter(); | ||
this._onClose = new vscode_1.EventEmitter(); | ||
Tabs.fillTabResources(this.open); | ||
const openTabsHandler = (event) => { | ||
if (event.closed.length === 0 && event.opened.length === 0) { | ||
return; | ||
} | ||
const oldTabs = this.open; | ||
const currentTabs = new Set(); | ||
Tabs.fillTabResources(currentTabs); | ||
const closed = new Set(); | ||
const opened = new Set(currentTabs); | ||
for (const tab of oldTabs.values()) { | ||
if (currentTabs.has(tab)) { | ||
opened.delete(tab); | ||
} | ||
else { | ||
closed.add(tab); | ||
} | ||
} | ||
this.open = currentTabs; | ||
if (closed.size > 0) { | ||
const toFire = new Set(); | ||
for (const item of closed) { | ||
toFire.add(vscode_1.Uri.parse(item)); | ||
} | ||
this._onClose.fire(toFire); | ||
} | ||
if (opened.size > 0) { | ||
const toFire = new Set(); | ||
for (const item of opened) { | ||
toFire.add(vscode_1.Uri.parse(item)); | ||
} | ||
this._onOpen.fire(toFire); | ||
} | ||
}; | ||
if (vscode_1.window.tabGroups.onDidChangeTabs !== undefined) { | ||
this.disposable = vscode_1.window.tabGroups.onDidChangeTabs(openTabsHandler); | ||
} | ||
else { | ||
this.disposable = { dispose: () => { } }; | ||
} | ||
} | ||
get onClose() { | ||
return this._onClose.event; | ||
} | ||
get onOpen() { | ||
return this._onOpen.event; | ||
} | ||
dispose() { | ||
this.disposable.dispose(); | ||
} | ||
isActive(document) { | ||
return document instanceof vscode_1.Uri | ||
? vscode_1.window.activeTextEditor?.document.uri === document | ||
: vscode_1.window.activeTextEditor?.document === document; | ||
} | ||
isVisible(document) { | ||
const uri = document instanceof vscode_1.Uri ? document : document.uri; | ||
if (uri.scheme === notebook_1.NotebookDocumentSyncFeature.CellScheme) { | ||
// Notebook cells aren't in the list of tabs, but the notebook should be. | ||
return vscode_1.workspace.notebookDocuments.some(notebook => { | ||
if (this.open.has(notebook.uri.toString())) { | ||
const cell = notebook.getCells().find(cell => cell.document.uri.toString() === uri.toString()); | ||
return cell !== undefined; | ||
} | ||
return false; | ||
}); | ||
} | ||
return this.open.has(uri.toString()); | ||
} | ||
getTabResources() { | ||
const result = new Set(); | ||
Tabs.fillTabResources(new Set(), result); | ||
return result; | ||
} | ||
static fillTabResources(strings, uris) { | ||
const seen = strings ?? new Set(); | ||
for (const group of vscode_1.window.tabGroups.all) { | ||
for (const tab of group.tabs) { | ||
const input = tab.input; | ||
let uri; | ||
if (input instanceof vscode_1.TabInputText) { | ||
uri = input.uri; | ||
} | ||
else if (input instanceof vscode_1.TabInputTextDiff) { | ||
uri = input.modified; | ||
} | ||
else if (input instanceof vscode_1.TabInputCustom) { | ||
uri = input.uri; | ||
} | ||
else if (input instanceof vscode_1.TabInputNotebook) { | ||
uri = input.uri; | ||
} | ||
if (uri !== undefined && !seen.has(uri.toString())) { | ||
seen.add(uri.toString()); | ||
uris !== undefined && uris.add(uri); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
var PullState; | ||
@@ -166,2 +78,4 @@ (function (PullState) { | ||
class DocumentPullStateTracker { | ||
documentPullStates; | ||
workspacePullStates; | ||
constructor() { | ||
@@ -227,2 +141,14 @@ this.documentPullStates = new Map(); | ||
class DiagnosticRequestor { | ||
isDisposed; | ||
client; | ||
tabs; | ||
options; | ||
onDidChangeDiagnosticsEmitter; | ||
provider; | ||
diagnostics; | ||
openRequests; | ||
documentStates; | ||
workspaceErrorCounter; | ||
workspaceCancellation; | ||
workspaceTimeout; | ||
constructor(client, tabs, options) { | ||
@@ -542,2 +468,12 @@ this.client = client; | ||
class BackgroundScheduler { | ||
client; | ||
diagnosticRequestor; | ||
lastDocumentToPull; | ||
documents; | ||
timeoutHandle; | ||
// The problem is that there could be outstanding diagnostic requests | ||
// when we shutdown which when we receive the result will trigger a | ||
// reschedule. So we remember if the background scheduler got disposed | ||
// and ignore those re-schedules | ||
isDisposed; | ||
constructor(client, diagnosticRequestor) { | ||
@@ -640,2 +576,6 @@ this.client = client; | ||
class DiagnosticFeatureProviderImpl { | ||
disposable; | ||
diagnosticRequestor; | ||
activeTextDocument; | ||
backgroundScheduler; | ||
constructor(client, tabs, options) { | ||
@@ -922,6 +862,2 @@ const diagnosticPullOptions = Object.assign({ onChange: false, onSave: false, onFocus: false }, client.clientOptions.diagnosticPullOptions); | ||
clear() { | ||
if (this.tabs !== undefined) { | ||
this.tabs.dispose(); | ||
this.tabs = undefined; | ||
} | ||
super.clear(); | ||
@@ -935,6 +871,3 @@ } | ||
registerLanguageProvider(options) { | ||
if (this.tabs === undefined) { | ||
this.tabs = new Tabs(); | ||
} | ||
const provider = new DiagnosticFeatureProviderImpl(this._client, this.tabs, options); | ||
const provider = new DiagnosticFeatureProviderImpl(this._client, this._client.tabsModel, options); | ||
return [provider.disposable, provider]; | ||
@@ -941,0 +874,0 @@ } |
@@ -6,2 +6,25 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -12,3 +35,3 @@ exports.DocumentHighlightFeature = void 0; | ||
const features_1 = require("./features"); | ||
const UUID = require("./utils/uuid"); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
class DocumentHighlightFeature extends features_1.TextDocumentLanguageFeature { | ||
@@ -15,0 +38,0 @@ constructor(client) { |
@@ -6,2 +6,25 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -12,3 +35,3 @@ exports.DocumentLinkFeature = void 0; | ||
const features_1 = require("./features"); | ||
const UUID = require("./utils/uuid"); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
class DocumentLinkFeature extends features_1.TextDocumentLanguageFeature { | ||
@@ -15,0 +38,0 @@ constructor(client) { |
@@ -6,2 +6,25 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -12,3 +35,3 @@ exports.DocumentSymbolFeature = exports.SupportedSymbolTags = exports.SupportedSymbolKinds = void 0; | ||
const features_1 = require("./features"); | ||
const UUID = require("./utils/uuid"); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
exports.SupportedSymbolKinds = [ | ||
@@ -15,0 +38,0 @@ vscode_languageserver_protocol_1.SymbolKind.File, |
@@ -6,2 +6,25 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -11,5 +34,7 @@ exports.ExecuteCommandFeature = void 0; | ||
const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol"); | ||
const UUID = require("./utils/uuid"); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
const features_1 = require("./features"); | ||
class ExecuteCommandFeature { | ||
_client; | ||
_commands; | ||
constructor(client) { | ||
@@ -16,0 +41,0 @@ this._client = client; |
@@ -1,2 +0,2 @@ | ||
import { TextDocument, Event as VEvent, DocumentSelector as VDocumentSelector, Event, Disposable, CancellationToken, ProviderResult, TextEdit as VTextEdit, ReferenceProvider, DefinitionProvider, SignatureHelpProvider, HoverProvider, CompletionItemProvider, WorkspaceSymbolProvider, DocumentHighlightProvider, CodeActionProvider, DocumentFormattingEditProvider, DocumentRangeFormattingEditProvider, OnTypeFormattingEditProvider, RenameProvider, DocumentSymbolProvider, DocumentLinkProvider, DocumentColorProvider, DeclarationProvider, ImplementationProvider, SelectionRangeProvider, TypeDefinitionProvider, CallHierarchyProvider, LinkedEditingRangeProvider, TypeHierarchyProvider, FileCreateEvent, FileRenameEvent, FileDeleteEvent, FileWillCreateEvent, FileWillRenameEvent, FileWillDeleteEvent, CancellationError, InlineCompletionItemProvider } from 'vscode'; | ||
import { TextDocument, Event as VEvent, DocumentSelector as VDocumentSelector, Event, Disposable, CancellationToken, ProviderResult, TextEdit as VTextEdit, ReferenceProvider, DefinitionProvider, SignatureHelpProvider, HoverProvider, CompletionItemProvider, WorkspaceSymbolProvider, DocumentHighlightProvider, CodeActionProvider, DocumentFormattingEditProvider, DocumentRangeFormattingEditProvider, OnTypeFormattingEditProvider, RenameProvider, DocumentSymbolProvider, DocumentLinkProvider, DocumentColorProvider, DeclarationProvider, ImplementationProvider, SelectionRangeProvider, TypeDefinitionProvider, CallHierarchyProvider, LinkedEditingRangeProvider, TypeHierarchyProvider, FileCreateEvent, FileRenameEvent, FileDeleteEvent, FileWillCreateEvent, FileWillRenameEvent, FileWillDeleteEvent, CancellationError, InlineCompletionItemProvider, type Uri } from 'vscode'; | ||
import { CallHierarchyPrepareRequest, ClientCapabilities, CodeActionRequest, CodeLensRequest, CompletionRequest, DeclarationRequest, DefinitionRequest, DidChangeTextDocumentNotification, DidCloseTextDocumentNotification, DidCreateFilesNotification, DidDeleteFilesNotification, DidOpenTextDocumentNotification, DidRenameFilesNotification, DidSaveTextDocumentNotification, DocumentColorRequest, DocumentDiagnosticRequest, DocumentFormattingRequest, DocumentHighlightRequest, DocumentLinkRequest, DocumentOnTypeFormattingRequest, DocumentRangeFormattingRequest, DocumentSelector, DocumentSymbolRequest, ExecuteCommandOptions, ExecuteCommandRequest, FileOperationRegistrationOptions, FoldingRangeRequest, GenericNotificationHandler, GenericRequestHandler, HoverRequest, ImplementationRequest, InitializeParams, InlayHintRequest, InlineCompletionRegistrationOptions, InlineCompletionRequest, InlineValueRequest, LinkedEditingRangeRequest, MessageSignature, NotebookDocumentSyncRegistrationOptions, NotebookDocumentSyncRegistrationType, NotificationHandler, NotificationHandler0, NotificationType, NotificationType0, ProgressType, ProtocolNotificationType, ProtocolNotificationType0, ProtocolRequestType, ProtocolRequestType0, ReferencesRequest, RegistrationType, RenameRequest, RequestHandler, RequestHandler0, RequestType, RequestType0, SelectionRangeRequest, SemanticTokensRegistrationType, ServerCapabilities, SignatureHelpRequest, StaticRegistrationOptions, TextDocumentIdentifier, TextDocumentRegistrationOptions, TypeDefinitionRequest, TypeHierarchyPrepareRequest, WillCreateFilesRequest, WillDeleteFilesRequest, WillRenameFilesRequest, WillSaveTextDocumentNotification, WillSaveTextDocumentWaitUntilRequest, WorkspaceSymbolRequest } from 'vscode-languageserver-protocol'; | ||
@@ -245,3 +245,3 @@ import type * as c2p from './codeConverter'; | ||
protected callback(data: E): Promise<void>; | ||
private matches; | ||
protected matches(data: E): boolean; | ||
get onNotificationSent(): VEvent<NotificationSendEvent<P>>; | ||
@@ -319,2 +319,9 @@ protected notificationSent(textDocument: TextDocument, type: ProtocolNotificationType<P, TextDocumentRegistrationOptions>, params: P): void; | ||
} | ||
export interface TabsModel { | ||
onClose: Event<Set<Uri>>; | ||
onOpen: Event<Set<Uri>>; | ||
isActive(document: TextDocument | Uri): boolean; | ||
isVisible(document: TextDocument | Uri): boolean; | ||
getTabResources(): Set<Uri>; | ||
} | ||
import type { SemanticTokensProviderShape } from './semanticTokens'; | ||
@@ -333,2 +340,3 @@ import type { DidChangeTextDocumentFeatureShape, DidCloseTextDocumentFeatureShape, DidOpenTextDocumentFeatureShape, DidSaveTextDocumentFeatureShape } from './textSynchronization'; | ||
middleware: M; | ||
tabsModel: TabsModel; | ||
start(): Promise<void>; | ||
@@ -335,0 +343,0 @@ isRunning(): boolean; |
@@ -6,2 +6,25 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -11,5 +34,6 @@ exports.WorkspaceFeature = exports.TextDocumentLanguageFeature = exports.TextDocumentEventFeature = exports.DynamicDocumentFeature = exports.DynamicFeature = exports.StaticFeature = exports.ensure = exports.LSPCancellationError = void 0; | ||
const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol"); | ||
const Is = require("./utils/is"); | ||
const UUID = require("./utils/uuid"); | ||
const Is = __importStar(require("./utils/is")); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
class LSPCancellationError extends vscode_1.CancellationError { | ||
data; | ||
constructor(data) { | ||
@@ -54,2 +78,3 @@ super(); | ||
class DynamicDocumentFeature { | ||
_client; | ||
constructor(client) { | ||
@@ -82,2 +107,11 @@ this._client = client; | ||
class TextDocumentEventFeature extends DynamicDocumentFeature { | ||
_event; | ||
_type; | ||
_middleware; | ||
_createParams; | ||
_textDocument; | ||
_selectorFilter; | ||
_listener; | ||
_selectors; | ||
_onNotificationSent; | ||
static textDocumentFilter(selectors, textDocument) { | ||
@@ -179,2 +213,4 @@ for (const selector of selectors) { | ||
class TextDocumentLanguageFeature extends DynamicDocumentFeature { | ||
_registrationType; | ||
_registrations; | ||
constructor(client, registrationType) { | ||
@@ -262,2 +298,5 @@ super(client); | ||
class WorkspaceFeature { | ||
_client; | ||
_registrationType; | ||
_registrations; | ||
constructor(client, registrationType) { | ||
@@ -264,0 +303,0 @@ this._client = client; |
@@ -6,8 +6,31 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.WillDeleteFilesFeature = exports.WillRenameFilesFeature = exports.WillCreateFilesFeature = exports.DidDeleteFilesFeature = exports.DidRenameFilesFeature = exports.DidCreateFilesFeature = void 0; | ||
const code = require("vscode"); | ||
const minimatch = require("minimatch"); | ||
const proto = require("vscode-languageserver-protocol"); | ||
const UUID = require("./utils/uuid"); | ||
const code = __importStar(require("vscode")); | ||
const minimatch = __importStar(require("minimatch")); | ||
const proto = __importStar(require("vscode-languageserver-protocol")); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
function ensure(target, key) { | ||
@@ -26,2 +49,11 @@ if (target[key] === void 0) { | ||
class FileOperationFeature { | ||
_client; | ||
_event; | ||
_registrationType; | ||
_clientCapability; | ||
_serverCapability; | ||
_listener; | ||
// This property must stay private. Otherwise the type `minimatch.IMinimatch` becomes public and as a consequence we would need to | ||
// ship the d.ts files for minimatch to make the compiler happy when compiling against the vscode-languageclient library | ||
_filters; | ||
constructor(client, event, registrationType, clientCapability, serverCapability) { | ||
@@ -157,2 +189,5 @@ this._client = client; | ||
class NotificationFileOperationFeature extends FileOperationFeature { | ||
_notificationType; | ||
_accessUri; | ||
_createParams; | ||
constructor(client, event, notificationType, clientCapability, serverCapability, accessUri, createParams) { | ||
@@ -177,6 +212,4 @@ super(client, event, notificationType, clientCapability, serverCapability); | ||
class CachingNotificationFileOperationFeature extends NotificationFileOperationFeature { | ||
constructor() { | ||
super(...arguments); | ||
this._fsPathFileTypes = new Map(); | ||
} | ||
_willListener; | ||
_fsPathFileTypes = new Map(); | ||
async getFileType(uri) { | ||
@@ -276,2 +309,5 @@ const fsPath = uri.fsPath; | ||
class RequestFileOperationFeature extends FileOperationFeature { | ||
_requestType; | ||
_accessUri; | ||
_createParams; | ||
constructor(client, event, requestType, clientCapability, serverCapability, accessUri, createParams) { | ||
@@ -278,0 +314,0 @@ super(client, event, requestType, clientCapability, serverCapability); |
@@ -12,2 +12,5 @@ "use strict"; | ||
class FileSystemWatcherFeature { | ||
_client; | ||
_notifyFileEvent; | ||
_watchers; | ||
constructor(client, notifyFileEvent) { | ||
@@ -14,0 +17,0 @@ this._client = client; |
@@ -6,2 +6,25 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -11,3 +34,3 @@ exports.DocumentOnTypeFormattingFeature = exports.DocumentRangeFormattingFeature = exports.DocumentFormattingFeature = void 0; | ||
const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol"); | ||
const UUID = require("./utils/uuid"); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
const features_1 = require("./features"); | ||
@@ -14,0 +37,0 @@ var FileFormattingOptions; |
@@ -6,2 +6,25 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -12,3 +35,3 @@ exports.HoverFeature = void 0; | ||
const features_1 = require("./features"); | ||
const UUID = require("./utils/uuid"); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
class HoverFeature extends features_1.TextDocumentLanguageFeature { | ||
@@ -15,0 +38,0 @@ constructor(client) { |
@@ -6,2 +6,25 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -12,3 +35,3 @@ exports.InlineCompletionItemFeature = void 0; | ||
const features_1 = require("./features"); | ||
const UUID = require("./utils/uuid"); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
class InlineCompletionItemFeature extends features_1.TextDocumentLanguageFeature { | ||
@@ -15,0 +38,0 @@ constructor(client) { |
@@ -6,6 +6,29 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LinkedEditingFeature = void 0; | ||
const code = require("vscode"); | ||
const proto = require("vscode-languageserver-protocol"); | ||
const code = __importStar(require("vscode")); | ||
const proto = __importStar(require("vscode-languageserver-protocol")); | ||
const features_1 = require("./features"); | ||
@@ -12,0 +35,0 @@ class LinkedEditingFeature extends features_1.TextDocumentLanguageFeature { |
@@ -6,9 +6,32 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.NotebookDocumentSyncFeature = void 0; | ||
const vscode = require("vscode"); | ||
const minimatch = require("minimatch"); | ||
const proto = require("vscode-languageserver-protocol"); | ||
const UUID = require("./utils/uuid"); | ||
const Is = require("./utils/is"); | ||
const vscode = __importStar(require("vscode")); | ||
const minimatch = __importStar(require("minimatch")); | ||
const proto = __importStar(require("vscode-languageserver-protocol")); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
const Is = __importStar(require("./utils/is")); | ||
function ensure(target, key) { | ||
@@ -328,2 +351,12 @@ if (target[key] === void 0) { | ||
class NotebookDocumentSyncFeatureProvider { | ||
client; | ||
options; | ||
notebookSyncInfo; | ||
notebookDidOpen; | ||
disposables; | ||
selector; | ||
onChangeNotificationSent; | ||
onOpenNotificationSent; | ||
onCloseNotificationSent; | ||
onSaveNotificationSent; | ||
constructor(client, options, onChangeNotificationSent, onOpenNotificationSent, onCloseNotificationSent, onSaveNotificationSent) { | ||
@@ -841,2 +874,10 @@ this.client = client; | ||
class NotebookDocumentSyncFeature { | ||
static CellScheme = 'vscode-notebook-cell'; | ||
client; | ||
registrations; | ||
dedicatedChannel; | ||
_onChangeNotificationSent; | ||
_onOpenNotificationSent; | ||
_onCloseNotificationSent; | ||
_onSaveNotificationSent; | ||
constructor(client) { | ||
@@ -915,2 +956,3 @@ this.client = client; | ||
} | ||
registrationType; | ||
get onOpenNotificationSent() { | ||
@@ -1008,2 +1050,1 @@ return this._onOpenNotificationSent.event; | ||
exports.NotebookDocumentSyncFeature = NotebookDocumentSyncFeature; | ||
NotebookDocumentSyncFeature.CellScheme = 'vscode-notebook-cell'; |
@@ -17,2 +17,4 @@ "use strict"; | ||
class ProgressFeature { | ||
_client; | ||
activeParts; | ||
constructor(_client) { | ||
@@ -19,0 +21,0 @@ this._client = _client; |
@@ -6,2 +6,25 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -11,4 +34,16 @@ exports.ProgressPart = void 0; | ||
const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol"); | ||
const Is = require("./utils/is"); | ||
const Is = __importStar(require("./utils/is")); | ||
class ProgressPart { | ||
_client; | ||
_token; | ||
_infinite; | ||
_reported; | ||
// listener for LSP progress messages. Set in constructor. | ||
_lspProgressDisposable; | ||
// VS Code progress state. Set in Window.withProgress callback. | ||
_progress; | ||
_cancellationToken; | ||
_tokenDisposable; | ||
_resolve; | ||
_reject; | ||
constructor(_client, _token, done) { | ||
@@ -15,0 +50,0 @@ this._client = _client; |
@@ -6,5 +6,29 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const code = require("vscode"); | ||
const code = __importStar(require("vscode")); | ||
class ProtocolCallHierarchyItem extends code.CallHierarchyItem { | ||
data; | ||
constructor(kind, name, detail, uri, range, selectionRange, data) { | ||
@@ -11,0 +35,0 @@ super(kind, name, detail, uri, range, selectionRange); |
@@ -6,5 +6,29 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const vscode = require("vscode"); | ||
const vscode = __importStar(require("vscode")); | ||
class ProtocolCodeAction extends vscode.CodeAction { | ||
data; | ||
constructor(title, data) { | ||
@@ -11,0 +35,0 @@ super(title); |
@@ -6,5 +6,29 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const code = require("vscode"); | ||
const code = __importStar(require("vscode")); | ||
class ProtocolCodeLens extends code.CodeLens { | ||
data; | ||
constructor(range) { | ||
@@ -11,0 +35,0 @@ super(range); |
@@ -6,5 +6,34 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const code = require("vscode"); | ||
const code = __importStar(require("vscode")); | ||
class ProtocolCompletionItem extends code.CompletionItem { | ||
data; | ||
fromEdit; | ||
documentationFormat; | ||
originalItemKind; | ||
deprecated; | ||
insertTextMode; | ||
constructor(label) { | ||
@@ -11,0 +40,0 @@ super(label); |
@@ -170,2 +170,2 @@ import * as code from 'vscode'; | ||
readonly enabledCommands: readonly string[]; | ||
}, supportHtml: boolean): Converter; | ||
}, supportHtml: boolean, supportThemeIcons: boolean): Converter; |
@@ -6,17 +6,43 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createConverter = void 0; | ||
const code = require("vscode"); | ||
const ls = require("vscode-languageserver-protocol"); | ||
const Is = require("./utils/is"); | ||
const async = require("./utils/async"); | ||
const protocolCompletionItem_1 = require("./protocolCompletionItem"); | ||
const protocolCodeLens_1 = require("./protocolCodeLens"); | ||
const protocolDocumentLink_1 = require("./protocolDocumentLink"); | ||
const protocolCodeAction_1 = require("./protocolCodeAction"); | ||
const code = __importStar(require("vscode")); | ||
const ls = __importStar(require("vscode-languageserver-protocol")); | ||
const Is = __importStar(require("./utils/is")); | ||
const async = __importStar(require("./utils/async")); | ||
const protocolCompletionItem_1 = __importDefault(require("./protocolCompletionItem")); | ||
const protocolCodeLens_1 = __importDefault(require("./protocolCodeLens")); | ||
const protocolDocumentLink_1 = __importDefault(require("./protocolDocumentLink")); | ||
const protocolCodeAction_1 = __importDefault(require("./protocolCodeAction")); | ||
const protocolDiagnostic_1 = require("./protocolDiagnostic"); | ||
const protocolCallHierarchyItem_1 = require("./protocolCallHierarchyItem"); | ||
const protocolTypeHierarchyItem_1 = require("./protocolTypeHierarchyItem"); | ||
const protocolWorkspaceSymbol_1 = require("./protocolWorkspaceSymbol"); | ||
const protocolInlayHint_1 = require("./protocolInlayHint"); | ||
const protocolCallHierarchyItem_1 = __importDefault(require("./protocolCallHierarchyItem")); | ||
const protocolTypeHierarchyItem_1 = __importDefault(require("./protocolTypeHierarchyItem")); | ||
const protocolWorkspaceSymbol_1 = __importDefault(require("./protocolWorkspaceSymbol")); | ||
const protocolInlayHint_1 = __importDefault(require("./protocolInlayHint")); | ||
const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol"); | ||
@@ -31,3 +57,3 @@ var CodeBlock; | ||
})(CodeBlock || (CodeBlock = {})); | ||
function createConverter(uriConverter, trustMarkdown, supportHtml) { | ||
function createConverter(uriConverter, trustMarkdown, supportHtml, supportThemeIcons) { | ||
const nullConverter = (value) => code.Uri.parse(value); | ||
@@ -228,2 +254,3 @@ const _uriConverter = uriConverter || nullConverter; | ||
result.supportHtml = supportHtml; | ||
result.supportThemeIcons = supportThemeIcons; | ||
return result; | ||
@@ -230,0 +257,0 @@ } |
@@ -6,6 +6,29 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ProtocolDiagnostic = exports.DiagnosticCode = void 0; | ||
const vscode = require("vscode"); | ||
const Is = require("./utils/is"); | ||
const vscode = __importStar(require("vscode")); | ||
const Is = __importStar(require("./utils/is")); | ||
var DiagnosticCode; | ||
@@ -20,2 +43,4 @@ (function (DiagnosticCode) { | ||
class ProtocolDiagnostic extends vscode.Diagnostic { | ||
data; | ||
hasDiagnosticCode; | ||
constructor(range, message, severity, data) { | ||
@@ -22,0 +47,0 @@ super(range, message, severity); |
@@ -6,5 +6,29 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const code = require("vscode"); | ||
const code = __importStar(require("vscode")); | ||
class ProtocolDocumentLink extends code.DocumentLink { | ||
data; | ||
constructor(range, target) { | ||
@@ -11,0 +35,0 @@ super(range, target); |
@@ -6,5 +6,29 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const code = require("vscode"); | ||
const code = __importStar(require("vscode")); | ||
class ProtocolInlayHint extends code.InlayHint { | ||
data; | ||
constructor(position, label, kind) { | ||
@@ -11,0 +35,0 @@ super(position, label, kind); |
@@ -6,5 +6,29 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const code = require("vscode"); | ||
const code = __importStar(require("vscode")); | ||
class ProtocolTypeHierarchyItem extends code.TypeHierarchyItem { | ||
data; | ||
constructor(kind, name, detail, uri, range, selectionRange, data) { | ||
@@ -11,0 +35,0 @@ super(kind, name, detail, uri, range, selectionRange); |
@@ -6,5 +6,30 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const code = require("vscode"); | ||
const code = __importStar(require("vscode")); | ||
class WorkspaceSymbol extends code.SymbolInformation { | ||
data; | ||
hasRange; | ||
constructor(name, kind, containerName, locationOrUri, data) { | ||
@@ -11,0 +36,0 @@ const hasRange = !(locationOrUri instanceof code.Uri); |
@@ -6,2 +6,25 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -12,3 +35,3 @@ exports.ReferencesFeature = void 0; | ||
const features_1 = require("./features"); | ||
const UUID = require("./utils/uuid"); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
class ReferencesFeature extends features_1.TextDocumentLanguageFeature { | ||
@@ -15,0 +38,0 @@ constructor(client) { |
@@ -6,2 +6,25 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -11,4 +34,4 @@ exports.RenameFeature = void 0; | ||
const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol"); | ||
const UUID = require("./utils/uuid"); | ||
const Is = require("./utils/is"); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
const Is = __importStar(require("./utils/is")); | ||
const features_1 = require("./features"); | ||
@@ -15,0 +38,0 @@ class RenameFeature extends features_1.TextDocumentLanguageFeature { |
@@ -6,8 +6,31 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SemanticTokensFeature = void 0; | ||
const vscode = require("vscode"); | ||
const vscode = __importStar(require("vscode")); | ||
const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol"); | ||
const features_1 = require("./features"); | ||
const Is = require("./utils/is"); | ||
const Is = __importStar(require("./utils/is")); | ||
class SemanticTokensFeature extends features_1.TextDocumentLanguageFeature { | ||
@@ -14,0 +37,0 @@ constructor(client) { |
@@ -6,2 +6,25 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -12,3 +35,3 @@ exports.SignatureHelpFeature = void 0; | ||
const features_1 = require("./features"); | ||
const UUID = require("./utils/uuid"); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
class SignatureHelpFeature extends features_1.TextDocumentLanguageFeature { | ||
@@ -15,0 +38,0 @@ constructor(client) { |
@@ -18,5 +18,14 @@ import { TextDocument, TextDocumentChangeEvent, TextDocumentWillSaveEvent, TextEdit as VTextEdit, DocumentSelector as VDocumentSelector, Event } from 'vscode'; | ||
}; | ||
type $ConfigurationOptions = { | ||
textSynchronization?: { | ||
delayOpenNotifications?: boolean; | ||
}; | ||
}; | ||
export declare class DidOpenTextDocumentFeature extends TextDocumentEventFeature<DidOpenTextDocumentParams, TextDocument, TextDocumentSynchronizationMiddleware> implements DidOpenTextDocumentFeatureShape { | ||
private readonly _syncedDocuments; | ||
constructor(client: FeatureClient<TextDocumentSynchronizationMiddleware>, syncedDocuments: Map<string, TextDocument>); | ||
private readonly _pendingOpenNotifications; | ||
private readonly _delayOpen; | ||
private _pendingOpenListeners; | ||
constructor(client: FeatureClient<TextDocumentSynchronizationMiddleware, $ConfigurationOptions>, syncedDocuments: Map<string, TextDocument>); | ||
protected callback(document: TextDocument): Promise<void>; | ||
get openDocuments(): IterableIterator<TextDocument>; | ||
@@ -27,4 +36,6 @@ fillClientCapabilities(capabilities: ClientCapabilities): void; | ||
register(data: RegistrationData<TextDocumentRegistrationOptions>): void; | ||
sendPendingOpenNotifications(closingDocument?: string): Promise<void>; | ||
protected getTextDocument(data: TextDocument): TextDocument; | ||
protected notificationSent(textDocument: TextDocument, type: ProtocolNotificationType<DidOpenTextDocumentParams, TextDocumentRegistrationOptions>, params: DidOpenTextDocumentParams): void; | ||
clear(): void; | ||
} | ||
@@ -104,1 +115,2 @@ export interface DidCloseTextDocumentFeatureShape extends DynamicFeature<TextDocumentRegistrationOptions>, TextDocumentSendFeature<(textDocument: TextDocument) => Promise<void>>, NotifyingFeature<DidCloseTextDocumentParams> { | ||
} | ||
export {}; |
@@ -6,2 +6,25 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -12,8 +35,31 @@ exports.DidSaveTextDocumentFeature = exports.WillSaveWaitUntilFeature = exports.WillSaveFeature = exports.DidChangeTextDocumentFeature = exports.DidCloseTextDocumentFeature = exports.DidOpenTextDocumentFeature = void 0; | ||
const features_1 = require("./features"); | ||
const UUID = require("./utils/uuid"); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
class DidOpenTextDocumentFeature extends features_1.TextDocumentEventFeature { | ||
_syncedDocuments; | ||
_pendingOpenNotifications; | ||
_delayOpen; | ||
_pendingOpenListeners; | ||
constructor(client, syncedDocuments) { | ||
super(client, vscode_1.workspace.onDidOpenTextDocument, vscode_languageserver_protocol_1.DidOpenTextDocumentNotification.type, () => client.middleware.didOpen, (textDocument) => client.code2ProtocolConverter.asOpenTextDocumentParams(textDocument), (data) => data, features_1.TextDocumentEventFeature.textDocumentFilter); | ||
this._syncedDocuments = syncedDocuments; | ||
this._pendingOpenNotifications = new Map(); | ||
this._delayOpen = client.clientOptions.textSynchronization?.delayOpenNotifications ?? false; | ||
} | ||
async callback(document) { | ||
if (!this._delayOpen) { | ||
return super.callback(document); | ||
} | ||
else { | ||
if (!this.matches(document)) { | ||
return; | ||
} | ||
const tabsModel = this._client.tabsModel; | ||
if (tabsModel.isVisible(document)) { | ||
return super.callback(document); | ||
} | ||
else { | ||
this._pendingOpenNotifications.set(document.uri.toString(), document); | ||
} | ||
} | ||
} | ||
get openDocuments() { | ||
@@ -46,13 +92,52 @@ return this._syncedDocuments.values(); | ||
if (vscode_1.languages.match(documentSelector, textDocument) > 0 && !this._client.hasDedicatedTextSynchronizationFeature(textDocument)) { | ||
const middleware = this._client.middleware; | ||
const didOpen = (textDocument) => { | ||
return this._client.sendNotification(this._type, this._createParams(textDocument)); | ||
}; | ||
(middleware.didOpen ? middleware.didOpen(textDocument, didOpen) : didOpen(textDocument)).catch((error) => { | ||
this._client.error(`Sending document notification ${this._type.method} failed`, error); | ||
}); | ||
this._syncedDocuments.set(uri, textDocument); | ||
const tabsModel = this._client.tabsModel; | ||
if (tabsModel.isVisible(textDocument)) { | ||
const middleware = this._client.middleware; | ||
const didOpen = (textDocument) => { | ||
return this._client.sendNotification(this._type, this._createParams(textDocument)); | ||
}; | ||
(middleware.didOpen ? middleware.didOpen(textDocument, didOpen) : didOpen(textDocument)).catch((error) => { | ||
this._client.error(`Sending document notification ${this._type.method} failed`, error); | ||
}); | ||
this._syncedDocuments.set(uri, textDocument); | ||
} | ||
else { | ||
this._pendingOpenNotifications.set(uri, textDocument); | ||
} | ||
} | ||
}); | ||
if (this._delayOpen && this._pendingOpenListeners === undefined) { | ||
this._pendingOpenListeners = []; | ||
const tabsModel = this._client.tabsModel; | ||
this._pendingOpenListeners.push(tabsModel.onClose((closed) => { | ||
for (const uri of closed) { | ||
this._pendingOpenNotifications.delete(uri.toString()); | ||
} | ||
})); | ||
this._pendingOpenListeners.push(tabsModel.onOpen((opened) => { | ||
for (const uri of opened) { | ||
const document = this._pendingOpenNotifications.get(uri.toString()); | ||
if (document !== undefined) { | ||
super.callback(document).catch(((error) => { | ||
this._client.error(`Sending document notification ${this._type.method} failed`, error); | ||
})); | ||
this._pendingOpenNotifications.delete(uri.toString()); | ||
} | ||
} | ||
})); | ||
this._pendingOpenListeners.push(vscode_1.workspace.onDidCloseTextDocument((document) => { | ||
this._pendingOpenNotifications.delete(document.uri.toString()); | ||
})); | ||
} | ||
} | ||
async sendPendingOpenNotifications(closingDocument) { | ||
const notifications = Array.from(this._pendingOpenNotifications.values()); | ||
this._pendingOpenNotifications.clear(); | ||
for (const notification of notifications) { | ||
if (closingDocument !== undefined && notification.uri.toString() === closingDocument) { | ||
continue; | ||
} | ||
await super.callback(notification); | ||
} | ||
} | ||
getTextDocument(data) { | ||
@@ -65,5 +150,17 @@ return data; | ||
} | ||
clear() { | ||
this._pendingOpenNotifications.clear(); | ||
if (this._pendingOpenListeners !== undefined) { | ||
for (const listener of this._pendingOpenListeners) { | ||
listener.dispose(); | ||
} | ||
this._pendingOpenListeners = undefined; | ||
} | ||
super.clear(); | ||
} | ||
} | ||
exports.DidOpenTextDocumentFeature = DidOpenTextDocumentFeature; | ||
class DidCloseTextDocumentFeature extends features_1.TextDocumentEventFeature { | ||
_syncedDocuments; | ||
_pendingTextDocumentChanges; | ||
constructor(client, syncedDocuments, pendingTextDocumentChanges) { | ||
@@ -122,2 +219,8 @@ super(client, vscode_1.workspace.onDidCloseTextDocument, vscode_languageserver_protocol_1.DidCloseTextDocumentNotification.type, () => client.middleware.didClose, (textDocument) => client.code2ProtocolConverter.asCloseTextDocumentParams(textDocument), (data) => data, features_1.TextDocumentEventFeature.textDocumentFilter); | ||
class DidChangeTextDocumentFeature extends features_1.DynamicDocumentFeature { | ||
_listener; | ||
_changeData; | ||
_onNotificationSent; | ||
_onPendingChangeAdded; | ||
_pendingTextDocumentChanges; | ||
_syncKind; | ||
constructor(client, pendingTextDocumentChanges) { | ||
@@ -317,2 +420,4 @@ super(client); | ||
class WillSaveWaitUntilFeature extends features_1.DynamicDocumentFeature { | ||
_listener; | ||
_selectors; | ||
constructor(client) { | ||
@@ -381,2 +486,3 @@ super(client); | ||
class DidSaveTextDocumentFeature extends features_1.TextDocumentEventFeature { | ||
_includeText; | ||
constructor(client) { | ||
@@ -383,0 +489,0 @@ super(client, vscode_1.workspace.onDidSaveTextDocument, vscode_languageserver_protocol_1.DidSaveTextDocumentNotification.type, () => client.middleware.didSave, (textDocument) => client.code2ProtocolConverter.asSaveTextDocumentParams(textDocument, this._includeText), (data) => data, features_1.TextDocumentEventFeature.textDocumentFilter); |
@@ -12,2 +12,4 @@ "use strict"; | ||
class TypeHierarchyProvider { | ||
client; | ||
middleware; | ||
constructor(client) { | ||
@@ -14,0 +16,0 @@ this.client = client; |
@@ -10,2 +10,7 @@ "use strict"; | ||
class Delayer { | ||
defaultDelay; | ||
timeout; | ||
completionPromise; | ||
onSuccess; | ||
task; | ||
constructor(defaultDelay) { | ||
@@ -69,2 +74,5 @@ this.defaultDelay = defaultDelay; | ||
class Semaphore { | ||
_capacity; | ||
_active; | ||
_waiting; | ||
constructor(capacity = 1) { | ||
@@ -140,2 +148,7 @@ if (capacity <= 0) { | ||
class Timer { | ||
yieldAfter; | ||
startTime; | ||
counter; | ||
total; | ||
counterInterval; | ||
constructor(yieldAfter = defaultYieldTimeout) { | ||
@@ -142,0 +155,0 @@ this.yieldAfter = $test === true ? Math.max(yieldAfter, 2) : Math.max(yieldAfter, defaultYieldTimeout); |
@@ -9,2 +9,3 @@ "use strict"; | ||
class ValueUUID { | ||
_value; | ||
constructor(_value) { | ||
@@ -22,2 +23,4 @@ this._value = _value; | ||
class V4UUID extends ValueUUID { | ||
static _chars = ['0', '1', '2', '3', '4', '5', '6', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f']; | ||
static _timeHighBits = ['8', '9', 'a', 'b']; | ||
static _oneOf(array) { | ||
@@ -70,4 +73,2 @@ return array[Math.floor(array.length * Math.random())]; | ||
} | ||
V4UUID._chars = ['0', '1', '2', '3', '4', '5', '6', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f']; | ||
V4UUID._timeHighBits = ['8', '9', 'a', 'b']; | ||
/** | ||
@@ -74,0 +75,0 @@ * An empty UUID that contains only zeros. |
@@ -6,5 +6,28 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.WorkspaceFoldersFeature = exports.arrayDiff = void 0; | ||
const UUID = require("./utils/uuid"); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
const vscode_1 = require("vscode"); | ||
@@ -23,2 +46,5 @@ const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol"); | ||
class WorkspaceFoldersFeature { | ||
_client; | ||
_listeners; | ||
_initialFolders; | ||
constructor(client) { | ||
@@ -25,0 +51,0 @@ this._client = client; |
@@ -6,2 +6,25 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -13,3 +36,3 @@ exports.WorkspaceSymbolFeature = void 0; | ||
const documentSymbol_1 = require("./documentSymbol"); | ||
const UUID = require("./utils/uuid"); | ||
const UUID = __importStar(require("./utils/uuid")); | ||
class WorkspaceSymbolFeature extends features_1.WorkspaceFeature { | ||
@@ -16,0 +39,0 @@ constructor(client) { |
@@ -17,2 +17,14 @@ "use strict"; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
@@ -23,7 +35,7 @@ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
exports.SettingMonitor = exports.LanguageClient = exports.TransportKind = void 0; | ||
const cp = require("child_process"); | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
const cp = __importStar(require("child_process")); | ||
const fs = __importStar(require("fs")); | ||
const path = __importStar(require("path")); | ||
const vscode_1 = require("vscode"); | ||
const Is = require("../common/utils/is"); | ||
const Is = __importStar(require("../common/utils/is")); | ||
const client_1 = require("../common/client"); | ||
@@ -37,3 +49,3 @@ const processes_1 = require("./processes"); | ||
__exportStar(require("../common/api"), exports); | ||
const REQUIRED_VSCODE_VERSION = '^1.89.0'; // do not change format, updated by `updateVSCode` script | ||
const REQUIRED_VSCODE_VERSION = '^1.91.0'; // do not change format, updated by `updateVSCode` script | ||
var TransportKind; | ||
@@ -85,2 +97,7 @@ (function (TransportKind) { | ||
class LanguageClient extends client_1.BaseLanguageClient { | ||
_serverOptions; | ||
_forceDebug; | ||
_serverProcess; | ||
_isDetached; | ||
_isInDebugMode; | ||
constructor(arg1, arg2, arg3, arg4, arg5) { | ||
@@ -537,2 +554,5 @@ let id; | ||
class SettingMonitor { | ||
_client; | ||
_setting; | ||
_listeners; | ||
constructor(_client, _setting) { | ||
@@ -539,0 +559,0 @@ this._client = _client; |
@@ -6,5 +6,28 @@ "use strict"; | ||
* ------------------------------------------------------------------------------------------ */ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.terminate = void 0; | ||
const cp = require("child_process"); | ||
const cp = __importStar(require("child_process")); | ||
const path_1 = require("path"); | ||
@@ -11,0 +34,0 @@ const isWindows = (process.platform === 'win32'); |
{ | ||
"name": "vscode-languageclient", | ||
"description": "VSCode Language client implementation", | ||
"version": "10.0.0-next.8", | ||
"version": "10.0.0-next.9", | ||
"author": "Microsoft Corporation", | ||
"license": "MIT", | ||
"engines": { | ||
"vscode": "^1.89.0" | ||
"vscode": "^1.91.0" | ||
}, | ||
@@ -19,11 +19,24 @@ "repository": { | ||
"enabledApiProposals": [], | ||
"main": "./lib/node/main.js", | ||
"browser": { | ||
"./lib/node/main.js": "./lib/browser/main.js" | ||
"exports": { | ||
".": { | ||
"types": "./lib/common/api.d.ts", | ||
"default": "./lib/common/api.js" | ||
}, | ||
"./node": { | ||
"types": "./lib/node/main.d.ts", | ||
"node": "./lib/node/main.js" | ||
}, | ||
"./browser": { | ||
"types": "./lib/browser/main.d.ts", | ||
"browser": "./lib/browser/main.js" | ||
}, | ||
"./$test/common/*": { | ||
"types": "./lib/common/*.d.ts", | ||
"node": "./lib/common/*.js" | ||
} | ||
}, | ||
"typings": "./lib/common/api.d.ts", | ||
"devDependencies": { | ||
"@types/minimatch": "^5.1.2", | ||
"@types/semver": "^7.5.8", | ||
"@types/vscode": "1.89.0", | ||
"@types/vscode": "1.91.0", | ||
"shx": "^0.3.4" | ||
@@ -34,3 +47,3 @@ }, | ||
"semver": "^7.6.0", | ||
"vscode-languageserver-protocol": "3.17.6-next.6" | ||
"vscode-languageserver-protocol": "3.17.6-next.7" | ||
}, | ||
@@ -40,14 +53,15 @@ "scripts": { | ||
"prepack": "npm run all:publish", | ||
"compile": "node ../build/bin/tsc -b ./tsconfig.json && shx cp src/node/terminateProcess.sh lib/node/terminateProcess.sh", | ||
"compile": "tsc -b ./tsconfig.json && shx cp src/node/terminateProcess.sh lib/node/terminateProcess.sh", | ||
"compile:clean": "git clean -xfd . && npm install && npm run clean && npm run compile", | ||
"watch": "node ../build/bin/tsc -b ./tsconfig.watch.json -w", | ||
"lint": "node ../node_modules/eslint/bin/eslint.js --ext ts src", | ||
"watch": "tsc -b ./tsconfig.watch.json -w", | ||
"lint": "eslint --ext ts src", | ||
"test": "cd ../client-node-tests && npm test && cd ../client", | ||
"clean": "node ../node_modules/rimraf/dist/esm/bin.mjs lib", | ||
"clean": "rimraf lib", | ||
"all": "npm run clean && npm run compile && npm run lint && npm test", | ||
"compile:publish": "node ../build/bin/tsc -b ./tsconfig.publish.json && shx cp src/node/terminateProcess.sh lib/node/terminateProcess.sh", | ||
"compile:publish": "tsc -b ./tsconfig.publish.json && shx cp src/node/terminateProcess.sh lib/node/terminateProcess.sh", | ||
"all:publish": "git clean -xfd . && npm install && npm run updateVSCodeVersion && npm run compile:publish && npm run lint && cd ../client-node-tests && npm run all:publish && cd ..", | ||
"preversion": "npm test", | ||
"updateVSCodeVersion": "node ./bin/updateVSCode.js" | ||
"updateVSCodeVersion": "node ./bin/updateVSCode.js", | ||
"update:vscode-version": "node ./bin/updateVSCode.js" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
723062
14655
116
+ Addedvscode-jsonrpc@9.0.0-next.5(transitive)
+ Addedvscode-languageserver-protocol@3.17.6-next.7(transitive)
- Removedvscode-jsonrpc@9.0.0-next.4(transitive)
- Removedvscode-languageserver-protocol@3.17.6-next.6(transitive)