@codingame/monaco-vscode-typescript-language-features-default-extension 1.82.6 → 1.83.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extension.js +601 -248
- package/extension.js.map +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
- package/tsserver.web.js +1 -1
- package/tsserver.web.js.map +1 -1
package/extension.js
CHANGED
|
@@ -47,17 +47,17 @@ const experimentTelemetryReporter_1 = __webpack_require__(217);
|
|
|
47
47
|
const autoInstallerFs_1 = __webpack_require__(218);
|
|
48
48
|
const memFs_1 = __webpack_require__(219);
|
|
49
49
|
const lazyClientHost_1 = __webpack_require__(226);
|
|
50
|
-
const logger_1 = __webpack_require__(
|
|
51
|
-
const remoteRepositories_browser_1 = __importDefault(__webpack_require__(
|
|
50
|
+
const logger_1 = __webpack_require__(354);
|
|
51
|
+
const remoteRepositories_browser_1 = __importDefault(__webpack_require__(355));
|
|
52
52
|
const api_2 = __webpack_require__(229);
|
|
53
|
-
const cancellation_1 = __webpack_require__(
|
|
54
|
-
const logDirectoryProvider_1 = __webpack_require__(
|
|
55
|
-
const plugins_1 = __webpack_require__(
|
|
56
|
-
const serverProcess_browser_1 = __webpack_require__(
|
|
57
|
-
const versionProvider_1 = __webpack_require__(
|
|
58
|
-
const activeJsTsEditorTracker_1 = __webpack_require__(
|
|
53
|
+
const cancellation_1 = __webpack_require__(356);
|
|
54
|
+
const logDirectoryProvider_1 = __webpack_require__(357);
|
|
55
|
+
const plugins_1 = __webpack_require__(358);
|
|
56
|
+
const serverProcess_browser_1 = __webpack_require__(359);
|
|
57
|
+
const versionProvider_1 = __webpack_require__(373);
|
|
58
|
+
const activeJsTsEditorTracker_1 = __webpack_require__(374);
|
|
59
59
|
const dispose_1 = __webpack_require__(277);
|
|
60
|
-
const packageInfo_1 = __webpack_require__(
|
|
60
|
+
const packageInfo_1 = __webpack_require__(375);
|
|
61
61
|
const platform_1 = __webpack_require__(279);
|
|
62
62
|
class StaticVersionProvider {
|
|
63
63
|
constructor(_version) {
|
|
@@ -107,7 +107,7 @@ async function activate(context) {
|
|
|
107
107
|
});
|
|
108
108
|
(0, index_1.registerBaseCommands)(commandManager, lazyClientHost, pluginManager, activeJsTsEditorTracker);
|
|
109
109
|
// context.subscriptions.push(task.register(lazyClientHost.map(x => x.serviceClient)));
|
|
110
|
-
Promise.resolve().then(() => __importStar(__webpack_require__(
|
|
110
|
+
Promise.resolve().then(() => __importStar(__webpack_require__(376))).then(module => {
|
|
111
111
|
context.subscriptions.push(module.register());
|
|
112
112
|
});
|
|
113
113
|
context.subscriptions.push((0, lazyClientHost_1.lazilyActivateClient)(lazyClientHost, pluginManager, activeJsTsEditorTracker, async () => {
|
|
@@ -227,12 +227,11 @@ const webAppInsightsClientFactory = async (key, replacementOptions) => {
|
|
|
227
227
|
appInsightsClient?.flush(false);
|
|
228
228
|
},
|
|
229
229
|
dispose: async () => {
|
|
230
|
-
appInsightsClient?.flush(true);
|
|
231
230
|
const unloadPromise = new Promise((resolve) => {
|
|
232
231
|
appInsightsClient?.unload(true, () => {
|
|
233
232
|
resolve();
|
|
234
233
|
appInsightsClient = undefined;
|
|
235
|
-
});
|
|
234
|
+
}, 1000);
|
|
236
235
|
});
|
|
237
236
|
return unloadPromise;
|
|
238
237
|
}
|
|
@@ -338,7 +337,7 @@ class TelemetryUtil {
|
|
|
338
337
|
"common.nodeArch": osShim.architecture,
|
|
339
338
|
"common.platformversion": (osShim.release || "").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/, "$1$2$3"),
|
|
340
339
|
// Do not change this string as it gets found and replaced upon packaging
|
|
341
|
-
"common.telemetryclientversion": "0.8.
|
|
340
|
+
"common.telemetryclientversion": "0.8.5"
|
|
342
341
|
};
|
|
343
342
|
}
|
|
344
343
|
// Get singleton instance of TelemetryUtil
|
|
@@ -612,17 +611,16 @@ const oneDataSystemClientFactory = async (key, vscodeAPI, xhrOverride) => {
|
|
|
612
611
|
},
|
|
613
612
|
flush: flushOneDS,
|
|
614
613
|
dispose: async () => {
|
|
615
|
-
await flushOneDS();
|
|
616
614
|
const disposePromise = new Promise((resolve) => {
|
|
617
615
|
if (!appInsightsCore) {
|
|
618
616
|
resolve();
|
|
619
617
|
return;
|
|
620
618
|
}
|
|
621
|
-
appInsightsCore.unload(
|
|
619
|
+
appInsightsCore.unload(false, () => {
|
|
622
620
|
resolve();
|
|
623
621
|
appInsightsCore = undefined;
|
|
624
622
|
return;
|
|
625
|
-
});
|
|
623
|
+
}, 1000);
|
|
626
624
|
});
|
|
627
625
|
return disposePromise;
|
|
628
626
|
}
|
|
@@ -13554,7 +13552,6 @@ class BaseTelemetrySender {
|
|
|
13554
13552
|
return this._telemetryClient?.flush();
|
|
13555
13553
|
}
|
|
13556
13554
|
async dispose() {
|
|
13557
|
-
await this.flush();
|
|
13558
13555
|
if (this._telemetryClient) {
|
|
13559
13556
|
await this._telemetryClient.dispose();
|
|
13560
13557
|
this._telemetryClient = undefined;
|
|
@@ -33574,6 +33571,13 @@ class BrowserServiceConfigurationProvider extends configuration_1.BaseServiceCon
|
|
|
33574
33571
|
readLocalTsdk(_configuration) {
|
|
33575
33572
|
return null;
|
|
33576
33573
|
}
|
|
33574
|
+
// On browsers, we don't run TSServer on Node
|
|
33575
|
+
readLocalNodePath(_configuration) {
|
|
33576
|
+
return null;
|
|
33577
|
+
}
|
|
33578
|
+
readGlobalNodePath(_configuration) {
|
|
33579
|
+
return null;
|
|
33580
|
+
}
|
|
33577
33581
|
}
|
|
33578
33582
|
exports.BrowserServiceConfigurationProvider = BrowserServiceConfigurationProvider;
|
|
33579
33583
|
|
|
@@ -33713,6 +33717,9 @@ class BaseServiceConfigurationProvider {
|
|
|
33713
33717
|
watchOptions: this.readWatchOptions(configuration),
|
|
33714
33718
|
includePackageJsonAutoImports: this.readIncludePackageJsonAutoImports(configuration),
|
|
33715
33719
|
enableTsServerTracing: this.readEnableTsServerTracing(configuration),
|
|
33720
|
+
localNodePath: this.readLocalNodePath(configuration),
|
|
33721
|
+
globalNodePath: this.readGlobalNodePath(configuration),
|
|
33722
|
+
workspaceSymbolsExcludeLibrarySymbols: this.readWorkspaceSymbolsExcludeLibrarySymbols(configuration),
|
|
33716
33723
|
};
|
|
33717
33724
|
}
|
|
33718
33725
|
readTsServerLogLevel(configuration) {
|
|
@@ -33788,6 +33795,9 @@ class BaseServiceConfigurationProvider {
|
|
|
33788
33795
|
readWebProjectWideIntellisenseSuppressSemanticErrors(configuration) {
|
|
33789
33796
|
return configuration.get('typescript.tsserver.web.projectWideIntellisense.suppressSemanticErrors', true);
|
|
33790
33797
|
}
|
|
33798
|
+
readWorkspaceSymbolsExcludeLibrarySymbols(configuration) {
|
|
33799
|
+
return configuration.get('typescript.workspaceSymbols.excludeLibrarySymbols', true);
|
|
33800
|
+
}
|
|
33791
33801
|
}
|
|
33792
33802
|
exports.BaseServiceConfigurationProvider = BaseServiceConfigurationProvider;
|
|
33793
33803
|
|
|
@@ -36923,10 +36933,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
36923
36933
|
exports.lazilyActivateClient = exports.createLazyClientHost = void 0;
|
|
36924
36934
|
const vscode = __importStar(__webpack_require__(2));
|
|
36925
36935
|
const typeScriptServiceClientHost_1 = __importDefault(__webpack_require__(227));
|
|
36926
|
-
const managedFileContext_1 = __importDefault(__webpack_require__(
|
|
36936
|
+
const managedFileContext_1 = __importDefault(__webpack_require__(352));
|
|
36927
36937
|
const fileSchemes = __importStar(__webpack_require__(278));
|
|
36928
|
-
const languageDescription_1 = __webpack_require__(
|
|
36929
|
-
const lazy_1 = __webpack_require__(
|
|
36938
|
+
const languageDescription_1 = __webpack_require__(350);
|
|
36939
|
+
const lazy_1 = __webpack_require__(353);
|
|
36930
36940
|
function createLazyClientHost(context, onCaseInsensitiveFileSystem, services, onCompletionAccepted) {
|
|
36931
36941
|
return (0, lazy_1.lazy)(() => {
|
|
36932
36942
|
const clientHost = new typeScriptServiceClientHost_1.default(languageDescription_1.standardLanguageDescriptions, context, onCaseInsensitiveFileSystem, services, onCompletionAccepted);
|
|
@@ -37015,15 +37025,15 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
37015
37025
|
const vscode = __importStar(__webpack_require__(2));
|
|
37016
37026
|
const fileConfigurationManager_1 = __importDefault(__webpack_require__(228));
|
|
37017
37027
|
const languageProvider_1 = __importDefault(__webpack_require__(282));
|
|
37018
|
-
const logLevelMonitor_1 = __webpack_require__(
|
|
37028
|
+
const logLevelMonitor_1 = __webpack_require__(333);
|
|
37019
37029
|
const errorCodes = __importStar(__webpack_require__(310));
|
|
37020
37030
|
const PConst = __importStar(__webpack_require__(287));
|
|
37021
37031
|
const typeConverters = __importStar(__webpack_require__(288));
|
|
37022
|
-
const typescriptServiceClient_1 = __importDefault(__webpack_require__(
|
|
37023
|
-
const intellisenseStatus_1 = __webpack_require__(
|
|
37024
|
-
const LargeProjectStatus = __importStar(__webpack_require__(
|
|
37025
|
-
const typingsStatus_1 = __importStar(__webpack_require__(
|
|
37026
|
-
const versionStatus_1 = __webpack_require__(
|
|
37032
|
+
const typescriptServiceClient_1 = __importDefault(__webpack_require__(334));
|
|
37033
|
+
const intellisenseStatus_1 = __webpack_require__(345);
|
|
37034
|
+
const LargeProjectStatus = __importStar(__webpack_require__(346));
|
|
37035
|
+
const typingsStatus_1 = __importStar(__webpack_require__(347));
|
|
37036
|
+
const versionStatus_1 = __webpack_require__(348);
|
|
37027
37037
|
const arrays_1 = __webpack_require__(216);
|
|
37028
37038
|
const dispose_1 = __webpack_require__(277);
|
|
37029
37039
|
// Style check diagnostics that can be reported as warnings
|
|
@@ -37062,8 +37072,8 @@ class TypeScriptServiceClientHost extends dispose_1.Disposable {
|
|
|
37062
37072
|
this._register(manager);
|
|
37063
37073
|
this.languagePerId.set(description.id, manager);
|
|
37064
37074
|
}
|
|
37065
|
-
Promise.resolve().then(() => __importStar(__webpack_require__(
|
|
37066
|
-
Promise.resolve().then(() => __importStar(__webpack_require__(
|
|
37075
|
+
Promise.resolve().then(() => __importStar(__webpack_require__(349))).then(module => this._register(module.register(this.client, this.fileConfigurationManager, uri => this.handles(uri))));
|
|
37076
|
+
Promise.resolve().then(() => __importStar(__webpack_require__(351))).then(module => this._register(module.register(this.client, allModeIds)));
|
|
37067
37077
|
this.client.ensureServiceStarted();
|
|
37068
37078
|
this.client.onReady(() => {
|
|
37069
37079
|
const languages = new Set();
|
|
@@ -41225,15 +41235,15 @@ class LanguageProvider extends dispose_1.Disposable {
|
|
|
41225
41235
|
Promise.resolve().then(() => __importStar(__webpack_require__(318))).then(provider => this._register(provider.register(selector, this.client))),
|
|
41226
41236
|
Promise.resolve().then(() => __importStar(__webpack_require__(319))).then(provider => this._register(provider.register(selector, this.client, this.commandManager, this.fileConfigurationManager, this.telemetryReporter))),
|
|
41227
41237
|
Promise.resolve().then(() => __importStar(__webpack_require__(320))).then(provider => this._register(provider.register(selector, this.client, this.fileConfigurationManager, this.commandManager, this.client.diagnosticsManager, this.telemetryReporter))),
|
|
41228
|
-
Promise.resolve().then(() => __importStar(__webpack_require__(
|
|
41229
|
-
Promise.resolve().then(() => __importStar(__webpack_require__(
|
|
41230
|
-
Promise.resolve().then(() => __importStar(__webpack_require__(
|
|
41231
|
-
Promise.resolve().then(() => __importStar(__webpack_require__(326))).then(provider => this._register(provider.register(selector, this.client))),
|
|
41238
|
+
Promise.resolve().then(() => __importStar(__webpack_require__(323))).then(provider => this._register(provider.register(selector, this.client, this.fileConfigurationManager, this.commandManager, this.telemetryReporter))),
|
|
41239
|
+
Promise.resolve().then(() => __importStar(__webpack_require__(325))).then(provider => this._register(provider.register(selector, this.client))),
|
|
41240
|
+
Promise.resolve().then(() => __importStar(__webpack_require__(326))).then(provider => this._register(provider.register(selector, this.description, this.client, this.fileConfigurationManager))),
|
|
41232
41241
|
Promise.resolve().then(() => __importStar(__webpack_require__(327))).then(provider => this._register(provider.register(selector, this.client))),
|
|
41233
41242
|
Promise.resolve().then(() => __importStar(__webpack_require__(328))).then(provider => this._register(provider.register(selector, this.client))),
|
|
41234
|
-
Promise.resolve().then(() => __importStar(__webpack_require__(329))).then(provider => this._register(provider.register(
|
|
41235
|
-
Promise.resolve().then(() => __importStar(__webpack_require__(330))).then(provider => this._register(provider.register(
|
|
41236
|
-
Promise.resolve().then(() => __importStar(__webpack_require__(331))).then(provider => this._register(provider.register(selector, this.client))),
|
|
41243
|
+
Promise.resolve().then(() => __importStar(__webpack_require__(329))).then(provider => this._register(provider.register(selector, this.client))),
|
|
41244
|
+
Promise.resolve().then(() => __importStar(__webpack_require__(330))).then(provider => this._register(provider.register(this.client, this.commandManager))),
|
|
41245
|
+
Promise.resolve().then(() => __importStar(__webpack_require__(331))).then(provider => this._register(provider.register(selector, this.description, this.client))),
|
|
41246
|
+
Promise.resolve().then(() => __importStar(__webpack_require__(332))).then(provider => this._register(provider.register(selector, this.client))),
|
|
41237
41247
|
]);
|
|
41238
41248
|
}
|
|
41239
41249
|
configurationChanged() {
|
|
@@ -44141,7 +44151,7 @@ function convertLinkTags(parts, filePathConverter) {
|
|
|
44141
44151
|
if (currentLink.target) {
|
|
44142
44152
|
const file = filePathConverter.toResource(currentLink.target.file);
|
|
44143
44153
|
const args = {
|
|
44144
|
-
file: { ...file.toJSON(), $mid: undefined },
|
|
44154
|
+
file: { ...file.toJSON(), $mid: undefined }, // Prevent VS Code from trying to transform the uri,
|
|
44145
44155
|
position: typeConverters.Position.fromLocation(currentLink.target.start)
|
|
44146
44156
|
};
|
|
44147
44157
|
const command = `command:${openJsDocLink_1.OpenJsDocLinkCommand.id}?${encodeURIComponent(JSON.stringify([args]))}`;
|
|
@@ -45002,7 +45012,7 @@ exports.asyncOnlyAllowedInAsyncFunctions = new Set([1308]);
|
|
|
45002
45012
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
45003
45013
|
*--------------------------------------------------------------------------------------------*/
|
|
45004
45014
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
45005
|
-
exports.unusedIdentifier = exports.unreachableCode = exports.spelling = exports.removeUnnecessaryAwait = exports.forgottenThisPropertyAccess = exports.fixImport = exports.extendsInterfaceBecomesImplements = exports.constructorForDerivedNeedSuperCall = exports.classIncorrectlyImplementsInterface = exports.classDoesntImplementInheritedAbstractMember = exports.awaitInSyncFunction = exports.annotateWithTypeFromJSDoc = exports.addMissingOverride = exports.addMissingNewOperator = exports.addMissingAwait = void 0;
|
|
45015
|
+
exports.unusedIdentifier = exports.unreachableCode = exports.fixClassDoesntImplementInheritedAbstractMember = exports.fixMissingFunctionDeclaration = exports.addNameToNamelessParameter = exports.inferFromUsage = exports.spelling = exports.removeUnnecessaryAwait = exports.forgottenThisPropertyAccess = exports.fixImport = exports.extendsInterfaceBecomesImplements = exports.constructorForDerivedNeedSuperCall = exports.classIncorrectlyImplementsInterface = exports.classDoesntImplementInheritedAbstractMember = exports.awaitInSyncFunction = exports.annotateWithTypeFromJSDoc = exports.addMissingOverride = exports.addMissingNewOperator = exports.addMissingAwait = void 0;
|
|
45006
45016
|
exports.addMissingAwait = 'addMissingAwait';
|
|
45007
45017
|
exports.addMissingNewOperator = 'addMissingNewOperator';
|
|
45008
45018
|
exports.addMissingOverride = 'fixOverrideModifier';
|
|
@@ -45016,6 +45026,10 @@ exports.fixImport = 'import';
|
|
|
45016
45026
|
exports.forgottenThisPropertyAccess = 'forgottenThisPropertyAccess';
|
|
45017
45027
|
exports.removeUnnecessaryAwait = 'removeUnnecessaryAwait';
|
|
45018
45028
|
exports.spelling = 'spelling';
|
|
45029
|
+
exports.inferFromUsage = 'inferFromUsage';
|
|
45030
|
+
exports.addNameToNamelessParameter = 'addNameToNamelessParameter';
|
|
45031
|
+
exports.fixMissingFunctionDeclaration = 'fixMissingFunctionDeclaration';
|
|
45032
|
+
exports.fixClassDoesntImplementInheritedAbstractMember = 'fixClassDoesntImplementInheritedAbstractMember';
|
|
45019
45033
|
exports.unreachableCode = 'fixUnreachableCode';
|
|
45020
45034
|
exports.unusedIdentifier = 'unusedIdentifier';
|
|
45021
45035
|
|
|
@@ -45925,43 +45939,7 @@ const memoize_1 = __webpack_require__(321);
|
|
|
45925
45939
|
const objects_1 = __webpack_require__(215);
|
|
45926
45940
|
const codeAction_1 = __webpack_require__(300);
|
|
45927
45941
|
const dependentRegistration_1 = __webpack_require__(289);
|
|
45928
|
-
|
|
45929
|
-
constructor(prompt, document, range, client) {
|
|
45930
|
-
this.prompt = prompt;
|
|
45931
|
-
this.document = document;
|
|
45932
|
-
this.range = range;
|
|
45933
|
-
this.client = client;
|
|
45934
|
-
this.id = '_typescript.quickFix.editorChatFollowUp';
|
|
45935
|
-
}
|
|
45936
|
-
async execute() {
|
|
45937
|
-
const findScopeEndLineFromNavTree = (startLine, navigationTree) => {
|
|
45938
|
-
for (const node of navigationTree) {
|
|
45939
|
-
const range = typeConverters.Range.fromTextSpan(node.spans[0]);
|
|
45940
|
-
if (startLine === range.start.line) {
|
|
45941
|
-
return range;
|
|
45942
|
-
}
|
|
45943
|
-
else if (startLine > range.start.line && startLine <= range.end.line && node.childItems) {
|
|
45944
|
-
return findScopeEndLineFromNavTree(startLine, node.childItems);
|
|
45945
|
-
}
|
|
45946
|
-
}
|
|
45947
|
-
return undefined;
|
|
45948
|
-
};
|
|
45949
|
-
const filepath = this.client.toOpenTsFilePath(this.document);
|
|
45950
|
-
if (!filepath) {
|
|
45951
|
-
return;
|
|
45952
|
-
}
|
|
45953
|
-
const response = await this.client.execute('navtree', { file: filepath }, cancellation_1.nulToken);
|
|
45954
|
-
if (response.type !== 'response' || !response.body?.childItems) {
|
|
45955
|
-
return;
|
|
45956
|
-
}
|
|
45957
|
-
const startLine = this.range.start.line;
|
|
45958
|
-
const enclosingRange = findScopeEndLineFromNavTree(startLine, response.body.childItems);
|
|
45959
|
-
if (!enclosingRange) {
|
|
45960
|
-
return;
|
|
45961
|
-
}
|
|
45962
|
-
await vscode.commands.executeCommand('vscode.editorChat.start', { initialRange: enclosingRange, message: this.prompt, autoSend: true });
|
|
45963
|
-
}
|
|
45964
|
-
}
|
|
45942
|
+
const copilot_1 = __webpack_require__(322);
|
|
45965
45943
|
class ApplyCodeActionCommand {
|
|
45966
45944
|
constructor(client, diagnosticManager, telemetryReporter) {
|
|
45967
45945
|
this.client = client;
|
|
@@ -46110,8 +46088,10 @@ class TypeScriptQuickFixProvider {
|
|
|
46110
46088
|
this.client = client;
|
|
46111
46089
|
this.formattingConfigurationManager = formattingConfigurationManager;
|
|
46112
46090
|
this.diagnosticsManager = diagnosticsManager;
|
|
46091
|
+
commandManager.register(new copilot_1.CompositeCommand());
|
|
46113
46092
|
commandManager.register(new ApplyCodeActionCommand(client, diagnosticsManager, telemetryReporter));
|
|
46114
46093
|
commandManager.register(new ApplyFixAllCodeAction(client, telemetryReporter));
|
|
46094
|
+
commandManager.register(new copilot_1.EditorChatFollowUp(client));
|
|
46115
46095
|
this.supportedCodeActionProvider = new SupportedCodeActionProvider(client);
|
|
46116
46096
|
}
|
|
46117
46097
|
async provideCodeActions(document, _range, context, token) {
|
|
@@ -46171,30 +46151,84 @@ class TypeScriptQuickFixProvider {
|
|
|
46171
46151
|
return results;
|
|
46172
46152
|
}
|
|
46173
46153
|
for (const tsCodeFix of response.body) {
|
|
46174
|
-
this.
|
|
46154
|
+
for (const action of this.getFixesForTsCodeAction(document, diagnostic, tsCodeFix)) {
|
|
46155
|
+
results.addAction(action);
|
|
46156
|
+
}
|
|
46157
|
+
this.addFixAllForTsCodeAction(results, document.uri, file, diagnostic, tsCodeFix);
|
|
46175
46158
|
}
|
|
46176
46159
|
return results;
|
|
46177
46160
|
}
|
|
46178
|
-
|
|
46179
|
-
|
|
46180
|
-
|
|
46181
|
-
|
|
46182
|
-
|
|
46183
|
-
|
|
46184
|
-
|
|
46185
|
-
|
|
46186
|
-
|
|
46187
|
-
|
|
46161
|
+
getFixesForTsCodeAction(document, diagnostic, action) {
|
|
46162
|
+
const actions = [];
|
|
46163
|
+
let message;
|
|
46164
|
+
let expand;
|
|
46165
|
+
let title = action.description;
|
|
46166
|
+
if (vscode.workspace.getConfiguration('typescript').get('experimental.aiCodeActions')) {
|
|
46167
|
+
if (action.fixName === fixNames.classIncorrectlyImplementsInterface && vscode.workspace.getConfiguration('typescript').get('experimental.aiCodeActions.classIncorrectlyImplementsInterface')) {
|
|
46168
|
+
title += ' with Copilot';
|
|
46169
|
+
message = `Implement the stubbed-out class members for ${document.getText(diagnostic.range)} with a useful implementation.`;
|
|
46170
|
+
expand = { kind: 'code-action', action };
|
|
46171
|
+
}
|
|
46172
|
+
else if (action.fixName === fixNames.fixClassDoesntImplementInheritedAbstractMember && vscode.workspace.getConfiguration('typescript').get('experimental.aiCodeActions.classDoesntImplementInheritedAbstractMember')) {
|
|
46173
|
+
title += ' with Copilot';
|
|
46174
|
+
message = `Implement the stubbed-out class members for ${document.getText(diagnostic.range)} with a useful implementation.`;
|
|
46175
|
+
expand = { kind: 'code-action', action };
|
|
46176
|
+
}
|
|
46177
|
+
else if (action.fixName === fixNames.fixMissingFunctionDeclaration && vscode.workspace.getConfiguration('typescript').get('experimental.aiCodeActions.missingFunctionDeclaration')) {
|
|
46178
|
+
title += `Implement missing function declaration '${document.getText(diagnostic.range)}' using Copilot`;
|
|
46179
|
+
message = `Provide a reasonable implementation of the function ${document.getText(diagnostic.range)} given its type and the context it's called in.`;
|
|
46180
|
+
expand = { kind: 'code-action', action };
|
|
46181
|
+
}
|
|
46182
|
+
else if (action.fixName === fixNames.inferFromUsage && vscode.workspace.getConfiguration('typescript').get('experimental.aiCodeActions.inferAndAddTypes')) {
|
|
46183
|
+
const inferFromBody = new VsCodeCodeAction(action, 'Infer types using Copilot', vscode.CodeActionKind.QuickFix);
|
|
46184
|
+
inferFromBody.edit = new vscode.WorkspaceEdit();
|
|
46185
|
+
inferFromBody.diagnostics = [diagnostic];
|
|
46186
|
+
inferFromBody.command = {
|
|
46187
|
+
command: copilot_1.EditorChatFollowUp.ID,
|
|
46188
|
+
arguments: [{
|
|
46189
|
+
message: 'Add types to this code. Add separate interfaces when possible. Do not change the code except for adding types.',
|
|
46190
|
+
expand: { kind: 'navtree-function', pos: diagnostic.range.start },
|
|
46191
|
+
document
|
|
46192
|
+
}],
|
|
46193
|
+
title: ''
|
|
46194
|
+
};
|
|
46195
|
+
actions.push(inferFromBody);
|
|
46196
|
+
}
|
|
46197
|
+
else if (action.fixName === fixNames.addNameToNamelessParameter && vscode.workspace.getConfiguration('typescript').get('experimental.aiCodeActions.addNameToNamelessParameter')) {
|
|
46198
|
+
const newText = action.changes.map(change => change.textChanges.map(textChange => textChange.newText).join('')).join('');
|
|
46199
|
+
title = 'Add meaningful parameter name with Copilot';
|
|
46200
|
+
message = `Rename the parameter ${newText} with a more meaningful name.`;
|
|
46201
|
+
expand = {
|
|
46202
|
+
kind: 'navtree-function',
|
|
46203
|
+
pos: diagnostic.range.start
|
|
46204
|
+
};
|
|
46205
|
+
}
|
|
46188
46206
|
}
|
|
46189
|
-
const codeAction = new VsCodeCodeAction(
|
|
46190
|
-
codeAction.edit = (0, codeAction_1.getEditForCodeAction)(this.client,
|
|
46207
|
+
const codeAction = new VsCodeCodeAction(action, title, vscode.CodeActionKind.QuickFix);
|
|
46208
|
+
codeAction.edit = (0, codeAction_1.getEditForCodeAction)(this.client, action);
|
|
46191
46209
|
codeAction.diagnostics = [diagnostic];
|
|
46192
46210
|
codeAction.command = {
|
|
46193
46211
|
command: ApplyCodeActionCommand.ID,
|
|
46194
|
-
arguments: [{ action:
|
|
46212
|
+
arguments: [{ action: action, diagnostic, document }],
|
|
46195
46213
|
title: ''
|
|
46196
46214
|
};
|
|
46197
|
-
|
|
46215
|
+
if (expand && message !== undefined) {
|
|
46216
|
+
codeAction.command = {
|
|
46217
|
+
command: copilot_1.CompositeCommand.ID,
|
|
46218
|
+
title: '',
|
|
46219
|
+
arguments: [codeAction.command, {
|
|
46220
|
+
command: copilot_1.EditorChatFollowUp.ID,
|
|
46221
|
+
title: '',
|
|
46222
|
+
arguments: [{
|
|
46223
|
+
message,
|
|
46224
|
+
expand,
|
|
46225
|
+
document
|
|
46226
|
+
}],
|
|
46227
|
+
}],
|
|
46228
|
+
};
|
|
46229
|
+
}
|
|
46230
|
+
actions.push(codeAction);
|
|
46231
|
+
return actions;
|
|
46198
46232
|
}
|
|
46199
46233
|
addFixAllForTsCodeAction(results, resource, file, diagnostic, tsAction) {
|
|
46200
46234
|
if (!tsAction.fixId || results.hasFixAllAction(tsAction.fixId)) {
|
|
@@ -46334,6 +46368,132 @@ exports.memoize = memoize;
|
|
|
46334
46368
|
|
|
46335
46369
|
"use strict";
|
|
46336
46370
|
|
|
46371
|
+
/*---------------------------------------------------------------------------------------------
|
|
46372
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
46373
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
46374
|
+
*--------------------------------------------------------------------------------------------*/
|
|
46375
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
46376
|
+
if (k2 === undefined) k2 = k;
|
|
46377
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
46378
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
46379
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
46380
|
+
}
|
|
46381
|
+
Object.defineProperty(o, k2, desc);
|
|
46382
|
+
}) : (function(o, m, k, k2) {
|
|
46383
|
+
if (k2 === undefined) k2 = k;
|
|
46384
|
+
o[k2] = m[k];
|
|
46385
|
+
}));
|
|
46386
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
46387
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
46388
|
+
}) : function(o, v) {
|
|
46389
|
+
o["default"] = v;
|
|
46390
|
+
});
|
|
46391
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
46392
|
+
if (mod && mod.__esModule) return mod;
|
|
46393
|
+
var result = {};
|
|
46394
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
46395
|
+
__setModuleDefault(result, mod);
|
|
46396
|
+
return result;
|
|
46397
|
+
};
|
|
46398
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
46399
|
+
exports.CompositeCommand = exports.EditorChatFollowUp = void 0;
|
|
46400
|
+
const vscode = __importStar(__webpack_require__(2));
|
|
46401
|
+
const cancellation_1 = __webpack_require__(204);
|
|
46402
|
+
const typeConverters = __importStar(__webpack_require__(288));
|
|
46403
|
+
class EditorChatFollowUp {
|
|
46404
|
+
constructor(client) {
|
|
46405
|
+
this.client = client;
|
|
46406
|
+
this.id = EditorChatFollowUp.ID;
|
|
46407
|
+
}
|
|
46408
|
+
async execute({ message, document, expand }) {
|
|
46409
|
+
const initialRange = expand.kind === 'navtree-function'
|
|
46410
|
+
? await findScopeEndLineFromNavTree(this.client, document, expand.pos.line)
|
|
46411
|
+
: expand.kind === 'refactor-info'
|
|
46412
|
+
? await findEditScope(this.client, document, expand.refactor.edits.flatMap((e) => e.textChanges))
|
|
46413
|
+
: expand.kind === 'code-action'
|
|
46414
|
+
? await findEditScope(this.client, document, expand.action.changes.flatMap((c) => c.textChanges))
|
|
46415
|
+
: expand.range;
|
|
46416
|
+
await vscode.commands.executeCommand('vscode.editorChat.start', {
|
|
46417
|
+
initialRange,
|
|
46418
|
+
message,
|
|
46419
|
+
autoSend: true,
|
|
46420
|
+
});
|
|
46421
|
+
}
|
|
46422
|
+
}
|
|
46423
|
+
exports.EditorChatFollowUp = EditorChatFollowUp;
|
|
46424
|
+
EditorChatFollowUp.ID = '_typescript.quickFix.editorChatReplacement2';
|
|
46425
|
+
class CompositeCommand {
|
|
46426
|
+
constructor() {
|
|
46427
|
+
this.id = CompositeCommand.ID;
|
|
46428
|
+
}
|
|
46429
|
+
async execute(...commands) {
|
|
46430
|
+
for (const command of commands) {
|
|
46431
|
+
await vscode.commands.executeCommand(command.command, ...(command.arguments ?? []));
|
|
46432
|
+
}
|
|
46433
|
+
}
|
|
46434
|
+
}
|
|
46435
|
+
exports.CompositeCommand = CompositeCommand;
|
|
46436
|
+
CompositeCommand.ID = '_typescript.compositeCommand';
|
|
46437
|
+
function findScopeEndLineFromNavTreeWorker(startLine, navigationTree) {
|
|
46438
|
+
for (const node of navigationTree) {
|
|
46439
|
+
const range = typeConverters.Range.fromTextSpan(node.spans[0]);
|
|
46440
|
+
if (startLine === range.start.line) {
|
|
46441
|
+
return range;
|
|
46442
|
+
}
|
|
46443
|
+
else if (startLine > range.start.line &&
|
|
46444
|
+
startLine <= range.end.line &&
|
|
46445
|
+
node.childItems) {
|
|
46446
|
+
return findScopeEndLineFromNavTreeWorker(startLine, node.childItems);
|
|
46447
|
+
}
|
|
46448
|
+
}
|
|
46449
|
+
return undefined;
|
|
46450
|
+
}
|
|
46451
|
+
async function findScopeEndLineFromNavTree(client, document, startLine) {
|
|
46452
|
+
const filepath = client.toOpenTsFilePath(document);
|
|
46453
|
+
if (!filepath) {
|
|
46454
|
+
return;
|
|
46455
|
+
}
|
|
46456
|
+
const response = await client.execute('navtree', { file: filepath }, cancellation_1.nulToken);
|
|
46457
|
+
if (response.type !== 'response' || !response.body?.childItems) {
|
|
46458
|
+
return;
|
|
46459
|
+
}
|
|
46460
|
+
return findScopeEndLineFromNavTreeWorker(startLine, response.body.childItems);
|
|
46461
|
+
}
|
|
46462
|
+
async function findEditScope(client, document, edits) {
|
|
46463
|
+
let first = typeConverters.Position.fromLocation(edits[0].start);
|
|
46464
|
+
let firstEdit = edits[0];
|
|
46465
|
+
let lastEdit = edits[0];
|
|
46466
|
+
let last = typeConverters.Position.fromLocation(edits[0].start);
|
|
46467
|
+
for (const edit of edits) {
|
|
46468
|
+
const start = typeConverters.Position.fromLocation(edit.start);
|
|
46469
|
+
const end = typeConverters.Position.fromLocation(edit.end);
|
|
46470
|
+
if (start.compareTo(first) < 0) {
|
|
46471
|
+
first = start;
|
|
46472
|
+
firstEdit = edit;
|
|
46473
|
+
}
|
|
46474
|
+
if (end.compareTo(last) > 0) {
|
|
46475
|
+
last = end;
|
|
46476
|
+
lastEdit = edit;
|
|
46477
|
+
}
|
|
46478
|
+
}
|
|
46479
|
+
const text = document.getText();
|
|
46480
|
+
const startIndex = text.indexOf(firstEdit.newText);
|
|
46481
|
+
const start = startIndex > -1 ? document.positionAt(startIndex) : first;
|
|
46482
|
+
const endIndex = text.lastIndexOf(lastEdit.newText);
|
|
46483
|
+
const end = endIndex > -1
|
|
46484
|
+
? document.positionAt(endIndex + lastEdit.newText.length)
|
|
46485
|
+
: last;
|
|
46486
|
+
const expandEnd = await findScopeEndLineFromNavTree(client, document, end.line);
|
|
46487
|
+
return new vscode.Range(start, expandEnd?.end ?? end);
|
|
46488
|
+
}
|
|
46489
|
+
|
|
46490
|
+
|
|
46491
|
+
/***/ }),
|
|
46492
|
+
/* 323 */
|
|
46493
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
46494
|
+
|
|
46495
|
+
"use strict";
|
|
46496
|
+
|
|
46337
46497
|
/*---------------------------------------------------------------------------------------------
|
|
46338
46498
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
46339
46499
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
@@ -46368,13 +46528,14 @@ const vscode = __importStar(__webpack_require__(2));
|
|
|
46368
46528
|
const vscode_uri_1 = __webpack_require__(221);
|
|
46369
46529
|
const learnMoreAboutRefactorings_1 = __webpack_require__(205);
|
|
46370
46530
|
const fileSchemes = __importStar(__webpack_require__(278));
|
|
46371
|
-
const schemes_1 = __webpack_require__(
|
|
46531
|
+
const schemes_1 = __webpack_require__(324);
|
|
46372
46532
|
const api_1 = __webpack_require__(229);
|
|
46373
46533
|
const typeConverters = __importStar(__webpack_require__(288));
|
|
46374
46534
|
const typescriptService_1 = __webpack_require__(284);
|
|
46375
46535
|
const arrays_1 = __webpack_require__(216);
|
|
46376
46536
|
const cancellation_1 = __webpack_require__(204);
|
|
46377
46537
|
const dependentRegistration_1 = __webpack_require__(289);
|
|
46538
|
+
const copilot_1 = __webpack_require__(322);
|
|
46378
46539
|
function toWorkspaceEdit(client, edits) {
|
|
46379
46540
|
const workspaceEdit = new vscode.WorkspaceEdit();
|
|
46380
46541
|
for (const edit of edits) {
|
|
@@ -46386,17 +46547,6 @@ function toWorkspaceEdit(client, edits) {
|
|
|
46386
46547
|
typeConverters.WorkspaceEdit.withFileCodeEdits(workspaceEdit, client, edits);
|
|
46387
46548
|
return workspaceEdit;
|
|
46388
46549
|
}
|
|
46389
|
-
class CompositeCommand {
|
|
46390
|
-
constructor() {
|
|
46391
|
-
this.id = CompositeCommand.ID;
|
|
46392
|
-
}
|
|
46393
|
-
async execute(...commands) {
|
|
46394
|
-
for (const command of commands) {
|
|
46395
|
-
await vscode.commands.executeCommand(command.command, ...(command.arguments ?? []));
|
|
46396
|
-
}
|
|
46397
|
-
}
|
|
46398
|
-
}
|
|
46399
|
-
CompositeCommand.ID = '_typescript.compositeCommand';
|
|
46400
46550
|
class DidApplyRefactoringCommand {
|
|
46401
46551
|
constructor(telemetryReporter) {
|
|
46402
46552
|
this.telemetryReporter = telemetryReporter;
|
|
@@ -46640,18 +46790,20 @@ const allKnownCodeActionKinds = [
|
|
|
46640
46790
|
Rewrite_Property_GenerateAccessors
|
|
46641
46791
|
];
|
|
46642
46792
|
class InlinedCodeAction extends vscode.CodeAction {
|
|
46643
|
-
constructor(client, document, refactor, action, range) {
|
|
46644
|
-
|
|
46793
|
+
constructor(client, document, refactor, action, range, copilotRename) {
|
|
46794
|
+
const title = copilotRename ? action.description + ' and suggest a name with Copilot.' : action.description;
|
|
46795
|
+
super(title, InlinedCodeAction.getKind(action));
|
|
46645
46796
|
this.client = client;
|
|
46646
46797
|
this.document = document;
|
|
46647
46798
|
this.refactor = refactor;
|
|
46648
46799
|
this.action = action;
|
|
46649
46800
|
this.range = range;
|
|
46801
|
+
this.copilotRename = copilotRename;
|
|
46650
46802
|
if (action.notApplicableReason) {
|
|
46651
46803
|
this.disabled = { reason: action.notApplicableReason };
|
|
46652
46804
|
}
|
|
46653
46805
|
this.command = {
|
|
46654
|
-
title
|
|
46806
|
+
title,
|
|
46655
46807
|
command: DidApplyRefactoringCommand.ID,
|
|
46656
46808
|
arguments: [{ action: action.name }],
|
|
46657
46809
|
};
|
|
@@ -46678,18 +46830,21 @@ class InlinedCodeAction extends vscode.CodeAction {
|
|
|
46678
46830
|
if (response.body.renameLocation) {
|
|
46679
46831
|
// Disable renames in interactive playground https://github.com/microsoft/vscode/issues/75137
|
|
46680
46832
|
if (this.document.uri.scheme !== fileSchemes.walkThroughSnippet) {
|
|
46833
|
+
if (this.copilotRename && this.command) {
|
|
46834
|
+
this.command.title = 'Copilot: ' + this.command.title;
|
|
46835
|
+
}
|
|
46681
46836
|
this.command = {
|
|
46682
|
-
command: CompositeCommand.ID,
|
|
46837
|
+
command: copilot_1.CompositeCommand.ID,
|
|
46683
46838
|
title: '',
|
|
46684
46839
|
arguments: (0, arrays_1.coalesce)([
|
|
46685
46840
|
this.command,
|
|
46686
|
-
{
|
|
46841
|
+
this.copilotRename ? this.copilotRename(response.body) : {
|
|
46687
46842
|
command: 'editor.action.rename',
|
|
46688
46843
|
arguments: [[
|
|
46689
46844
|
this.document.uri,
|
|
46690
46845
|
typeConverters.Position.fromLocation(response.body.renameLocation)
|
|
46691
46846
|
]]
|
|
46692
|
-
}
|
|
46847
|
+
},
|
|
46693
46848
|
])
|
|
46694
46849
|
};
|
|
46695
46850
|
}
|
|
@@ -46731,9 +46886,10 @@ class TypeScriptRefactorProvider {
|
|
|
46731
46886
|
this.client = client;
|
|
46732
46887
|
this.formattingOptionsManager = formattingOptionsManager;
|
|
46733
46888
|
const didApplyRefactoringCommand = commandManager.register(new DidApplyRefactoringCommand(telemetryReporter));
|
|
46734
|
-
commandManager.register(new CompositeCommand());
|
|
46889
|
+
commandManager.register(new copilot_1.CompositeCommand());
|
|
46735
46890
|
commandManager.register(new SelectRefactorCommand(this.client));
|
|
46736
46891
|
commandManager.register(new MoveToFileRefactorCommand(this.client, didApplyRefactoringCommand));
|
|
46892
|
+
commandManager.register(new copilot_1.EditorChatFollowUp(this.client));
|
|
46737
46893
|
}
|
|
46738
46894
|
async provideCodeActions(document, rangeOrSelection, context, token) {
|
|
46739
46895
|
if (!this.shouldTrigger(context, rangeOrSelection)) {
|
|
@@ -46804,7 +46960,35 @@ class TypeScriptRefactorProvider {
|
|
|
46804
46960
|
codeAction = new MoveToFileCodeAction(document, action, rangeOrSelection);
|
|
46805
46961
|
}
|
|
46806
46962
|
else {
|
|
46807
|
-
|
|
46963
|
+
let copilotRename;
|
|
46964
|
+
if (vscode.workspace.getConfiguration('typescript', null).get('experimental.aiCodeActions')) {
|
|
46965
|
+
if (Extract_Constant.matches(action) && vscode.workspace.getConfiguration('typescript').get('experimental.aiCodeActions.extractConstant')
|
|
46966
|
+
|| Extract_Function.matches(action) && vscode.workspace.getConfiguration('typescript').get('experimental.aiCodeActions.extractFunction')
|
|
46967
|
+
|| Extract_Type.matches(action) && vscode.workspace.getConfiguration('typescript').get('experimental.aiCodeActions.extractType')
|
|
46968
|
+
|| Extract_Interface.matches(action) && vscode.workspace.getConfiguration('typescript').get('experimental.aiCodeActions.extractInterface')) {
|
|
46969
|
+
const newName = Extract_Constant.matches(action) ? 'newLocal'
|
|
46970
|
+
: Extract_Function.matches(action) ? 'newFunction'
|
|
46971
|
+
: Extract_Type.matches(action) ? 'NewType'
|
|
46972
|
+
: Extract_Interface.matches(action) ? 'NewInterface'
|
|
46973
|
+
: '';
|
|
46974
|
+
copilotRename = info => ({
|
|
46975
|
+
title: '',
|
|
46976
|
+
command: copilot_1.EditorChatFollowUp.ID,
|
|
46977
|
+
arguments: [{
|
|
46978
|
+
message: `Rename ${newName} to a better name based on usage.`,
|
|
46979
|
+
expand: Extract_Constant.matches(action) ? {
|
|
46980
|
+
kind: 'navtree-function',
|
|
46981
|
+
pos: typeConverters.Position.fromLocation(info.renameLocation),
|
|
46982
|
+
} : {
|
|
46983
|
+
kind: 'refactor-info',
|
|
46984
|
+
refactor: info,
|
|
46985
|
+
},
|
|
46986
|
+
document,
|
|
46987
|
+
}]
|
|
46988
|
+
});
|
|
46989
|
+
}
|
|
46990
|
+
}
|
|
46991
|
+
codeAction = new InlinedCodeAction(this.client, document, refactor, action, rangeOrSelection, copilotRename);
|
|
46808
46992
|
}
|
|
46809
46993
|
codeAction.isPreferred = TypeScriptRefactorProvider.isPreferred(action, allActions);
|
|
46810
46994
|
return codeAction;
|
|
@@ -46918,7 +47102,7 @@ exports.register = register;
|
|
|
46918
47102
|
|
|
46919
47103
|
|
|
46920
47104
|
/***/ }),
|
|
46921
|
-
/*
|
|
47105
|
+
/* 324 */
|
|
46922
47106
|
/***/ ((__unused_webpack_module, exports) => {
|
|
46923
47107
|
|
|
46924
47108
|
"use strict";
|
|
@@ -46944,7 +47128,7 @@ exports.isOfScheme = isOfScheme;
|
|
|
46944
47128
|
|
|
46945
47129
|
|
|
46946
47130
|
/***/ }),
|
|
46947
|
-
/*
|
|
47131
|
+
/* 325 */
|
|
46948
47132
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
46949
47133
|
|
|
46950
47134
|
"use strict";
|
|
@@ -47019,7 +47203,7 @@ exports.register = register;
|
|
|
47019
47203
|
|
|
47020
47204
|
|
|
47021
47205
|
/***/ }),
|
|
47022
|
-
/*
|
|
47206
|
+
/* 326 */
|
|
47023
47207
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
47024
47208
|
|
|
47025
47209
|
"use strict";
|
|
@@ -47202,7 +47386,7 @@ exports.register = register;
|
|
|
47202
47386
|
|
|
47203
47387
|
|
|
47204
47388
|
/***/ }),
|
|
47205
|
-
/*
|
|
47389
|
+
/* 327 */
|
|
47206
47390
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
47207
47391
|
|
|
47208
47392
|
"use strict";
|
|
@@ -47366,7 +47550,7 @@ tokenModifiers[4 /* TokenModifier.defaultLibrary */] = 'defaultLibrary';
|
|
|
47366
47550
|
|
|
47367
47551
|
|
|
47368
47552
|
/***/ }),
|
|
47369
|
-
/*
|
|
47553
|
+
/* 328 */
|
|
47370
47554
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
47371
47555
|
|
|
47372
47556
|
"use strict";
|
|
@@ -47503,7 +47687,7 @@ exports.register = register;
|
|
|
47503
47687
|
|
|
47504
47688
|
|
|
47505
47689
|
/***/ }),
|
|
47506
|
-
/*
|
|
47690
|
+
/* 329 */
|
|
47507
47691
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
47508
47692
|
|
|
47509
47693
|
"use strict";
|
|
@@ -47576,7 +47760,7 @@ exports.register = register;
|
|
|
47576
47760
|
|
|
47577
47761
|
|
|
47578
47762
|
/***/ }),
|
|
47579
|
-
/*
|
|
47763
|
+
/* 330 */
|
|
47580
47764
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
47581
47765
|
|
|
47582
47766
|
"use strict";
|
|
@@ -47679,7 +47863,7 @@ exports.register = register;
|
|
|
47679
47863
|
|
|
47680
47864
|
|
|
47681
47865
|
/***/ }),
|
|
47682
|
-
/*
|
|
47866
|
+
/* 331 */
|
|
47683
47867
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
47684
47868
|
|
|
47685
47869
|
"use strict";
|
|
@@ -47836,7 +48020,7 @@ exports.register = register;
|
|
|
47836
48020
|
|
|
47837
48021
|
|
|
47838
48022
|
/***/ }),
|
|
47839
|
-
/*
|
|
48023
|
+
/* 332 */
|
|
47840
48024
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
47841
48025
|
|
|
47842
48026
|
"use strict";
|
|
@@ -47894,7 +48078,7 @@ exports.register = register;
|
|
|
47894
48078
|
|
|
47895
48079
|
|
|
47896
48080
|
/***/ }),
|
|
47897
|
-
/*
|
|
48081
|
+
/* 333 */
|
|
47898
48082
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
47899
48083
|
|
|
47900
48084
|
"use strict";
|
|
@@ -48004,7 +48188,7 @@ LogLevelMonitor.doNotPromptLogLevelStorageKey = 'typescript.tsserver.doNotPrompt
|
|
|
48004
48188
|
|
|
48005
48189
|
|
|
48006
48190
|
/***/ }),
|
|
48007
|
-
/*
|
|
48191
|
+
/* 334 */
|
|
48008
48192
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
48009
48193
|
|
|
48010
48194
|
"use strict";
|
|
@@ -48043,23 +48227,24 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
48043
48227
|
exports.inMemoryResourcePrefix = exports.emptyAuthority = void 0;
|
|
48044
48228
|
const path = __importStar(__webpack_require__(220));
|
|
48045
48229
|
const vscode = __importStar(__webpack_require__(2));
|
|
48046
|
-
const diagnostics_1 = __webpack_require__(
|
|
48230
|
+
const diagnostics_1 = __webpack_require__(335);
|
|
48047
48231
|
const protocol_const_1 = __webpack_require__(287);
|
|
48048
48232
|
const api_1 = __webpack_require__(229);
|
|
48049
|
-
const bufferSyncSupport_1 = __importDefault(__webpack_require__(
|
|
48050
|
-
const pluginPathsProvider_1 = __webpack_require__(
|
|
48233
|
+
const bufferSyncSupport_1 = __importDefault(__webpack_require__(336));
|
|
48234
|
+
const pluginPathsProvider_1 = __webpack_require__(338);
|
|
48051
48235
|
const serverError_1 = __webpack_require__(298);
|
|
48052
|
-
const spawner_1 = __webpack_require__(
|
|
48053
|
-
const versionManager_1 = __webpack_require__(
|
|
48236
|
+
const spawner_1 = __webpack_require__(340);
|
|
48237
|
+
const versionManager_1 = __webpack_require__(341);
|
|
48054
48238
|
const typescriptService_1 = __webpack_require__(284);
|
|
48055
48239
|
const configuration_1 = __webpack_require__(214);
|
|
48056
48240
|
const dispose_1 = __webpack_require__(277);
|
|
48057
48241
|
const fileSchemes = __importStar(__webpack_require__(278));
|
|
48058
48242
|
const platform_1 = __webpack_require__(279);
|
|
48059
|
-
const telemetry_1 = __webpack_require__(
|
|
48060
|
-
const tracer_1 = __importDefault(__webpack_require__(
|
|
48243
|
+
const telemetry_1 = __webpack_require__(342);
|
|
48244
|
+
const tracer_1 = __importDefault(__webpack_require__(343));
|
|
48061
48245
|
const tsconfig_1 = __webpack_require__(203);
|
|
48062
|
-
const schemes_1 = __webpack_require__(
|
|
48246
|
+
const schemes_1 = __webpack_require__(324);
|
|
48247
|
+
const nodeManager_1 = __webpack_require__(344);
|
|
48063
48248
|
var ServerState;
|
|
48064
48249
|
(function (ServerState) {
|
|
48065
48250
|
ServerState.None = { type: 0 /* Type.None */ };
|
|
@@ -48152,6 +48337,10 @@ class TypeScriptServiceClient extends dispose_1.Disposable {
|
|
|
48152
48337
|
this._register(this._versionManager.onDidPickNewVersion(() => {
|
|
48153
48338
|
this.restartTsServer();
|
|
48154
48339
|
}));
|
|
48340
|
+
this._nodeVersionManager = this._register(new nodeManager_1.NodeVersionManager(this._configuration, context.workspaceState));
|
|
48341
|
+
this._register(this._nodeVersionManager.onDidPickNewVersion(() => {
|
|
48342
|
+
this.restartTsServer();
|
|
48343
|
+
}));
|
|
48155
48344
|
this.bufferSyncSupport = new bufferSyncSupport_1.default(this, allModeIds, onCaseInsenitiveFileSystem);
|
|
48156
48345
|
this.onReady(() => { this.bufferSyncSupport.listen(); });
|
|
48157
48346
|
this.bufferSyncSupport.onDelete(resource => {
|
|
@@ -48167,6 +48356,7 @@ class TypeScriptServiceClient extends dispose_1.Disposable {
|
|
|
48167
48356
|
this.versionProvider.updateConfiguration(this._configuration);
|
|
48168
48357
|
this._versionManager.updateConfiguration(this._configuration);
|
|
48169
48358
|
this.pluginPathsProvider.updateConfiguration(this._configuration);
|
|
48359
|
+
this._nodeVersionManager.updateConfiguration(this._configuration);
|
|
48170
48360
|
if (this.serverState.type === 1 /* ServerState.Type.Running */) {
|
|
48171
48361
|
if (!this._configuration.implicitProjectConfiguration.isEqualTo(oldConfiguration.implicitProjectConfiguration)) {
|
|
48172
48362
|
this.setCompilerOptionsForInferredProjects(this._configuration);
|
|
@@ -48185,7 +48375,7 @@ class TypeScriptServiceClient extends dispose_1.Disposable {
|
|
|
48185
48375
|
return this.apiVersion.fullVersionString;
|
|
48186
48376
|
});
|
|
48187
48377
|
this.diagnosticsManager = new diagnostics_1.DiagnosticsManager('typescript', this._configuration, this.telemetryReporter, onCaseInsenitiveFileSystem);
|
|
48188
|
-
this.typescriptServerSpawner = new spawner_1.TypeScriptServerSpawner(this.versionProvider, this._versionManager, this.logDirectoryProvider, this.pluginPathsProvider, this.logger, this.telemetryReporter, this.tracer, this.processFactory);
|
|
48378
|
+
this.typescriptServerSpawner = new spawner_1.TypeScriptServerSpawner(this.versionProvider, this._versionManager, this._nodeVersionManager, this.logDirectoryProvider, this.pluginPathsProvider, this.logger, this.telemetryReporter, this.tracer, this.processFactory);
|
|
48189
48379
|
this._register(this.pluginManager.onDidUpdateConfig(update => {
|
|
48190
48380
|
this.configurePlugin(update.pluginId, update.config);
|
|
48191
48381
|
}));
|
|
@@ -48288,6 +48478,10 @@ class TypeScriptServiceClient extends dispose_1.Disposable {
|
|
|
48288
48478
|
version = this._versionManager.currentVersion;
|
|
48289
48479
|
}
|
|
48290
48480
|
this.info(`Using tsserver from: ${version.path}`);
|
|
48481
|
+
const nodePath = this._nodeVersionManager.currentVersion;
|
|
48482
|
+
if (nodePath) {
|
|
48483
|
+
this.info(`Using Node installation from ${nodePath} to run TS Server`);
|
|
48484
|
+
}
|
|
48291
48485
|
const apiVersion = version.apiVersion || api_1.API.defaultVersion;
|
|
48292
48486
|
const mytoken = ++this.token;
|
|
48293
48487
|
const handle = this.typescriptServerSpawner.spawn(version, this.capabilities, this.configuration, this.pluginManager, this.cancellerFactory, {
|
|
@@ -48424,6 +48618,7 @@ class TypeScriptServiceClient extends dispose_1.Disposable {
|
|
|
48424
48618
|
providePrefixAndSuffixTextForRename: true,
|
|
48425
48619
|
allowRenameOfImportPath: true,
|
|
48426
48620
|
includePackageJsonAutoImports: this._configuration.includePackageJsonAutoImports,
|
|
48621
|
+
excludeLibrarySymbolsInNavTo: this._configuration.workspaceSymbolsExcludeLibrarySymbols,
|
|
48427
48622
|
},
|
|
48428
48623
|
watchOptions
|
|
48429
48624
|
};
|
|
@@ -48933,7 +49128,7 @@ class ServerInitializingIndicator extends dispose_1.Disposable {
|
|
|
48933
49128
|
|
|
48934
49129
|
|
|
48935
49130
|
/***/ }),
|
|
48936
|
-
/*
|
|
49131
|
+
/* 335 */
|
|
48937
49132
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
48938
49133
|
|
|
48939
49134
|
"use strict";
|
|
@@ -49122,7 +49317,7 @@ class DiagnosticsTelemetryManager extends dispose_1.Disposable {
|
|
|
49122
49317
|
this._diagnosticCodesMap.clear();
|
|
49123
49318
|
/* __GDPR__
|
|
49124
49319
|
"typescript.diagnostics" : {
|
|
49125
|
-
"owner": "
|
|
49320
|
+
"owner": "aiday-mar",
|
|
49126
49321
|
"diagnosticCodes" : { "classification": "PublicNonPersonalData", "purpose": "FeatureInsight" },
|
|
49127
49322
|
"${include}": [
|
|
49128
49323
|
"${TypeScriptCommonProperties}"
|
|
@@ -49130,7 +49325,7 @@ class DiagnosticsTelemetryManager extends dispose_1.Disposable {
|
|
|
49130
49325
|
}
|
|
49131
49326
|
*/
|
|
49132
49327
|
this._telemetryReporter.logTelemetry('typescript.diagnostics', {
|
|
49133
|
-
|
|
49328
|
+
diagnosticCodes: diagnosticCodes
|
|
49134
49329
|
});
|
|
49135
49330
|
}
|
|
49136
49331
|
}, 5 * 60 * 1000); // 5 minutes
|
|
@@ -49237,7 +49432,7 @@ exports.DiagnosticsManager = DiagnosticsManager;
|
|
|
49237
49432
|
|
|
49238
49433
|
|
|
49239
49434
|
/***/ }),
|
|
49240
|
-
/*
|
|
49435
|
+
/* 336 */
|
|
49241
49436
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
49242
49437
|
|
|
49243
49438
|
"use strict";
|
|
@@ -49275,9 +49470,9 @@ const fileSchemes_1 = __webpack_require__(278);
|
|
|
49275
49470
|
const languageModeIds = __importStar(__webpack_require__(206));
|
|
49276
49471
|
const typeConverters = __importStar(__webpack_require__(288));
|
|
49277
49472
|
const typescriptService_1 = __webpack_require__(284);
|
|
49278
|
-
const typescriptServiceClient_1 = __webpack_require__(
|
|
49473
|
+
const typescriptServiceClient_1 = __webpack_require__(334);
|
|
49279
49474
|
const arrays_1 = __webpack_require__(216);
|
|
49280
|
-
const async_1 = __webpack_require__(
|
|
49475
|
+
const async_1 = __webpack_require__(337);
|
|
49281
49476
|
const cancellation_1 = __webpack_require__(204);
|
|
49282
49477
|
const dispose_1 = __webpack_require__(277);
|
|
49283
49478
|
const resourceMap_1 = __webpack_require__(280);
|
|
@@ -49883,7 +50078,7 @@ exports["default"] = BufferSyncSupport;
|
|
|
49883
50078
|
|
|
49884
50079
|
|
|
49885
50080
|
/***/ }),
|
|
49886
|
-
/*
|
|
50081
|
+
/* 337 */
|
|
49887
50082
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
49888
50083
|
|
|
49889
50084
|
"use strict";
|
|
@@ -49948,7 +50143,7 @@ exports.setImmediate = setImmediate;
|
|
|
49948
50143
|
|
|
49949
50144
|
|
|
49950
50145
|
/***/ }),
|
|
49951
|
-
/*
|
|
50146
|
+
/* 338 */
|
|
49952
50147
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
49953
50148
|
|
|
49954
50149
|
"use strict";
|
|
@@ -49984,7 +50179,7 @@ exports.TypeScriptPluginPathsProvider = void 0;
|
|
|
49984
50179
|
*--------------------------------------------------------------------------------------------*/
|
|
49985
50180
|
const path = __importStar(__webpack_require__(220));
|
|
49986
50181
|
const vscode = __importStar(__webpack_require__(2));
|
|
49987
|
-
const relativePathResolver_1 = __webpack_require__(
|
|
50182
|
+
const relativePathResolver_1 = __webpack_require__(339);
|
|
49988
50183
|
class TypeScriptPluginPathsProvider {
|
|
49989
50184
|
constructor(configuration) {
|
|
49990
50185
|
this.configuration = configuration;
|
|
@@ -50015,7 +50210,7 @@ exports.TypeScriptPluginPathsProvider = TypeScriptPluginPathsProvider;
|
|
|
50015
50210
|
|
|
50016
50211
|
|
|
50017
50212
|
/***/ }),
|
|
50018
|
-
/*
|
|
50213
|
+
/* 339 */
|
|
50019
50214
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
50020
50215
|
|
|
50021
50216
|
"use strict";
|
|
@@ -50068,7 +50263,7 @@ exports.RelativeWorkspacePathResolver = RelativeWorkspacePathResolver;
|
|
|
50068
50263
|
|
|
50069
50264
|
|
|
50070
50265
|
/***/ }),
|
|
50071
|
-
/*
|
|
50266
|
+
/* 340 */
|
|
50072
50267
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
50073
50268
|
|
|
50074
50269
|
"use strict";
|
|
@@ -50119,9 +50314,10 @@ class TypeScriptServerSpawner {
|
|
|
50119
50314
|
static get tsServerLogOutputChannel() {
|
|
50120
50315
|
return vscode.window.createOutputChannel(vscode.l10n.t("TypeScript Server Log"));
|
|
50121
50316
|
}
|
|
50122
|
-
constructor(_versionProvider, _versionManager, _logDirectoryProvider, _pluginPathsProvider, _logger, _telemetryReporter, _tracer, _factory) {
|
|
50317
|
+
constructor(_versionProvider, _versionManager, _nodeVersionManager, _logDirectoryProvider, _pluginPathsProvider, _logger, _telemetryReporter, _tracer, _factory) {
|
|
50123
50318
|
this._versionProvider = _versionProvider;
|
|
50124
50319
|
this._versionManager = _versionManager;
|
|
50320
|
+
this._nodeVersionManager = _nodeVersionManager;
|
|
50125
50321
|
this._logDirectoryProvider = _logDirectoryProvider;
|
|
50126
50322
|
this._pluginPathsProvider = _pluginPathsProvider;
|
|
50127
50323
|
this._logger = _logger;
|
|
@@ -50208,7 +50404,7 @@ class TypeScriptServerSpawner {
|
|
|
50208
50404
|
}
|
|
50209
50405
|
}
|
|
50210
50406
|
this._logger.info(`<${kind}> Forking...`);
|
|
50211
|
-
const process = this._factory.fork(version, args, kind, configuration, this._versionManager, tsServerLog);
|
|
50407
|
+
const process = this._factory.fork(version, args, kind, configuration, this._versionManager, this._nodeVersionManager, tsServerLog);
|
|
50212
50408
|
this._logger.info(`<${kind}> Starting...`);
|
|
50213
50409
|
return new server_1.SingleTsServer(kind, this.kindToServerType(kind), process, tsServerLog, canceller, version, this._telemetryReporter, this._tracer);
|
|
50214
50410
|
}
|
|
@@ -50306,7 +50502,7 @@ __decorate([
|
|
|
50306
50502
|
|
|
50307
50503
|
|
|
50308
50504
|
/***/ }),
|
|
50309
|
-
/*
|
|
50505
|
+
/* 341 */
|
|
50310
50506
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
50311
50507
|
|
|
50312
50508
|
"use strict";
|
|
@@ -50341,7 +50537,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
50341
50537
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
50342
50538
|
exports.TypeScriptVersionManager = void 0;
|
|
50343
50539
|
const vscode = __importStar(__webpack_require__(2));
|
|
50344
|
-
const async_1 = __webpack_require__(
|
|
50540
|
+
const async_1 = __webpack_require__(337);
|
|
50345
50541
|
const dispose_1 = __webpack_require__(277);
|
|
50346
50542
|
const useWorkspaceTsdkStorageKey = 'typescript.useWorkspaceTsdk';
|
|
50347
50543
|
const suppressPromptWorkspaceTsdkStorageKey = 'typescript.suppressPromptWorkspaceTsdk';
|
|
@@ -50486,7 +50682,7 @@ const LearnMorePickItem = {
|
|
|
50486
50682
|
|
|
50487
50683
|
|
|
50488
50684
|
/***/ }),
|
|
50489
|
-
/*
|
|
50685
|
+
/* 342 */
|
|
50490
50686
|
/***/ ((__unused_webpack_module, exports) => {
|
|
50491
50687
|
|
|
50492
50688
|
"use strict";
|
|
@@ -50520,7 +50716,7 @@ exports.VSCodeTelemetryReporter = VSCodeTelemetryReporter;
|
|
|
50520
50716
|
|
|
50521
50717
|
|
|
50522
50718
|
/***/ }),
|
|
50523
|
-
/*
|
|
50719
|
+
/* 343 */
|
|
50524
50720
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
50525
50721
|
|
|
50526
50722
|
"use strict";
|
|
@@ -50588,7 +50784,163 @@ exports["default"] = Tracer;
|
|
|
50588
50784
|
|
|
50589
50785
|
|
|
50590
50786
|
/***/ }),
|
|
50591
|
-
/*
|
|
50787
|
+
/* 344 */
|
|
50788
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
50789
|
+
|
|
50790
|
+
"use strict";
|
|
50791
|
+
|
|
50792
|
+
/*---------------------------------------------------------------------------------------------
|
|
50793
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
50794
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
50795
|
+
*--------------------------------------------------------------------------------------------*/
|
|
50796
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
50797
|
+
if (k2 === undefined) k2 = k;
|
|
50798
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
50799
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
50800
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
50801
|
+
}
|
|
50802
|
+
Object.defineProperty(o, k2, desc);
|
|
50803
|
+
}) : (function(o, m, k, k2) {
|
|
50804
|
+
if (k2 === undefined) k2 = k;
|
|
50805
|
+
o[k2] = m[k];
|
|
50806
|
+
}));
|
|
50807
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
50808
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
50809
|
+
}) : function(o, v) {
|
|
50810
|
+
o["default"] = v;
|
|
50811
|
+
});
|
|
50812
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
50813
|
+
if (mod && mod.__esModule) return mod;
|
|
50814
|
+
var result = {};
|
|
50815
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
50816
|
+
__setModuleDefault(result, mod);
|
|
50817
|
+
return result;
|
|
50818
|
+
};
|
|
50819
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
50820
|
+
exports.NodeVersionManager = void 0;
|
|
50821
|
+
const vscode = __importStar(__webpack_require__(2));
|
|
50822
|
+
const async_1 = __webpack_require__(337);
|
|
50823
|
+
const dispose_1 = __webpack_require__(277);
|
|
50824
|
+
const useWorkspaceNodeStorageKey = 'typescript.useWorkspaceNode';
|
|
50825
|
+
const lastKnownWorkspaceNodeStorageKey = 'typescript.lastKnownWorkspaceNode';
|
|
50826
|
+
class NodeVersionManager extends dispose_1.Disposable {
|
|
50827
|
+
constructor(configuration, workspaceState) {
|
|
50828
|
+
super();
|
|
50829
|
+
this.configuration = configuration;
|
|
50830
|
+
this.workspaceState = workspaceState;
|
|
50831
|
+
this._onDidPickNewVersion = this._register(new vscode.EventEmitter());
|
|
50832
|
+
this.onDidPickNewVersion = this._onDidPickNewVersion.event;
|
|
50833
|
+
this._currentVersion = this.configuration.globalNodePath || undefined;
|
|
50834
|
+
if (vscode.workspace.isTrusted) {
|
|
50835
|
+
const workspaceVersion = this.configuration.localNodePath;
|
|
50836
|
+
if (workspaceVersion) {
|
|
50837
|
+
const useWorkspaceNode = this.canUseWorkspaceNode(workspaceVersion);
|
|
50838
|
+
if (useWorkspaceNode === undefined) {
|
|
50839
|
+
(0, async_1.setImmediate)(() => {
|
|
50840
|
+
this.promptAndSetWorkspaceNode();
|
|
50841
|
+
});
|
|
50842
|
+
}
|
|
50843
|
+
else if (useWorkspaceNode) {
|
|
50844
|
+
this._currentVersion = workspaceVersion;
|
|
50845
|
+
}
|
|
50846
|
+
}
|
|
50847
|
+
}
|
|
50848
|
+
else {
|
|
50849
|
+
this._disposables.push(vscode.workspace.onDidGrantWorkspaceTrust(() => {
|
|
50850
|
+
const workspaceVersion = this.configuration.localNodePath;
|
|
50851
|
+
if (workspaceVersion) {
|
|
50852
|
+
const useWorkspaceNode = this.canUseWorkspaceNode(workspaceVersion);
|
|
50853
|
+
if (useWorkspaceNode === undefined) {
|
|
50854
|
+
(0, async_1.setImmediate)(() => {
|
|
50855
|
+
this.promptAndSetWorkspaceNode();
|
|
50856
|
+
});
|
|
50857
|
+
}
|
|
50858
|
+
else if (useWorkspaceNode) {
|
|
50859
|
+
this.updateActiveVersion(workspaceVersion);
|
|
50860
|
+
}
|
|
50861
|
+
}
|
|
50862
|
+
}));
|
|
50863
|
+
}
|
|
50864
|
+
}
|
|
50865
|
+
get currentVersion() {
|
|
50866
|
+
return this._currentVersion;
|
|
50867
|
+
}
|
|
50868
|
+
async updateConfiguration(nextConfiguration) {
|
|
50869
|
+
const oldConfiguration = this.configuration;
|
|
50870
|
+
this.configuration = nextConfiguration;
|
|
50871
|
+
if (oldConfiguration.globalNodePath !== nextConfiguration.globalNodePath
|
|
50872
|
+
|| oldConfiguration.localNodePath !== nextConfiguration.localNodePath) {
|
|
50873
|
+
await this.computeNewVersion();
|
|
50874
|
+
}
|
|
50875
|
+
}
|
|
50876
|
+
async computeNewVersion() {
|
|
50877
|
+
let version = this.configuration.globalNodePath || undefined;
|
|
50878
|
+
const workspaceVersion = this.configuration.localNodePath;
|
|
50879
|
+
if (vscode.workspace.isTrusted && workspaceVersion) {
|
|
50880
|
+
const useWorkspaceNode = this.canUseWorkspaceNode(workspaceVersion);
|
|
50881
|
+
if (useWorkspaceNode === undefined) {
|
|
50882
|
+
version = await this.promptUseWorkspaceNode() || version;
|
|
50883
|
+
}
|
|
50884
|
+
else if (useWorkspaceNode) {
|
|
50885
|
+
version = workspaceVersion;
|
|
50886
|
+
}
|
|
50887
|
+
}
|
|
50888
|
+
this.updateActiveVersion(version);
|
|
50889
|
+
}
|
|
50890
|
+
async promptUseWorkspaceNode() {
|
|
50891
|
+
const workspaceVersion = this.configuration.localNodePath;
|
|
50892
|
+
if (workspaceVersion === null) {
|
|
50893
|
+
throw new Error('Could not prompt to use workspace Node installation because no workspace Node installation is specified');
|
|
50894
|
+
}
|
|
50895
|
+
const allow = vscode.l10n.t("Yes");
|
|
50896
|
+
const disallow = vscode.l10n.t("No");
|
|
50897
|
+
const dismiss = vscode.l10n.t("Not now");
|
|
50898
|
+
const result = await vscode.window.showInformationMessage(vscode.l10n.t("This workspace wants to use the Node installation at '{0}' to run TS Server. Would you like to use it?", workspaceVersion), allow, disallow, dismiss);
|
|
50899
|
+
let version = undefined;
|
|
50900
|
+
switch (result) {
|
|
50901
|
+
case allow:
|
|
50902
|
+
await this.setUseWorkspaceNodeState(true, workspaceVersion);
|
|
50903
|
+
version = workspaceVersion;
|
|
50904
|
+
break;
|
|
50905
|
+
case disallow:
|
|
50906
|
+
await this.setUseWorkspaceNodeState(false, workspaceVersion);
|
|
50907
|
+
break;
|
|
50908
|
+
case dismiss:
|
|
50909
|
+
await this.setUseWorkspaceNodeState(undefined, workspaceVersion);
|
|
50910
|
+
break;
|
|
50911
|
+
}
|
|
50912
|
+
return version;
|
|
50913
|
+
}
|
|
50914
|
+
async promptAndSetWorkspaceNode() {
|
|
50915
|
+
const version = await this.promptUseWorkspaceNode();
|
|
50916
|
+
if (version !== undefined) {
|
|
50917
|
+
this.updateActiveVersion(version);
|
|
50918
|
+
}
|
|
50919
|
+
}
|
|
50920
|
+
updateActiveVersion(pickedVersion) {
|
|
50921
|
+
const oldVersion = this.currentVersion;
|
|
50922
|
+
this._currentVersion = pickedVersion;
|
|
50923
|
+
if (oldVersion !== pickedVersion) {
|
|
50924
|
+
this._onDidPickNewVersion.fire();
|
|
50925
|
+
}
|
|
50926
|
+
}
|
|
50927
|
+
canUseWorkspaceNode(nodeVersion) {
|
|
50928
|
+
const lastKnownWorkspaceNode = this.workspaceState.get(lastKnownWorkspaceNodeStorageKey);
|
|
50929
|
+
if (lastKnownWorkspaceNode === nodeVersion) {
|
|
50930
|
+
return this.workspaceState.get(useWorkspaceNodeStorageKey);
|
|
50931
|
+
}
|
|
50932
|
+
return undefined;
|
|
50933
|
+
}
|
|
50934
|
+
async setUseWorkspaceNodeState(allow, nodeVersion) {
|
|
50935
|
+
await this.workspaceState.update(lastKnownWorkspaceNodeStorageKey, nodeVersion);
|
|
50936
|
+
await this.workspaceState.update(useWorkspaceNodeStorageKey, allow);
|
|
50937
|
+
}
|
|
50938
|
+
}
|
|
50939
|
+
exports.NodeVersionManager = NodeVersionManager;
|
|
50940
|
+
|
|
50941
|
+
|
|
50942
|
+
/***/ }),
|
|
50943
|
+
/* 345 */
|
|
50592
50944
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
50593
50945
|
|
|
50594
50946
|
"use strict";
|
|
@@ -50808,7 +51160,7 @@ exports.IntellisenseStatus = IntellisenseStatus;
|
|
|
50808
51160
|
|
|
50809
51161
|
|
|
50810
51162
|
/***/ }),
|
|
50811
|
-
/*
|
|
51163
|
+
/* 346 */
|
|
50812
51164
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
50813
51165
|
|
|
50814
51166
|
"use strict";
|
|
@@ -50930,7 +51282,7 @@ exports.create = create;
|
|
|
50930
51282
|
|
|
50931
51283
|
|
|
50932
51284
|
/***/ }),
|
|
50933
|
-
/*
|
|
51285
|
+
/* 347 */
|
|
50934
51286
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
50935
51287
|
|
|
50936
51288
|
"use strict";
|
|
@@ -51050,7 +51402,7 @@ exports.AtaProgressReporter = AtaProgressReporter;
|
|
|
51050
51402
|
|
|
51051
51403
|
|
|
51052
51404
|
/***/ }),
|
|
51053
|
-
/*
|
|
51405
|
+
/* 348 */
|
|
51054
51406
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
51055
51407
|
|
|
51056
51408
|
"use strict";
|
|
@@ -51110,7 +51462,7 @@ exports.VersionStatus = VersionStatus;
|
|
|
51110
51462
|
|
|
51111
51463
|
|
|
51112
51464
|
/***/ }),
|
|
51113
|
-
/*
|
|
51465
|
+
/* 349 */
|
|
51114
51466
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
51115
51467
|
|
|
51116
51468
|
"use strict";
|
|
@@ -51147,11 +51499,11 @@ exports.register = void 0;
|
|
|
51147
51499
|
const path = __importStar(__webpack_require__(220));
|
|
51148
51500
|
const vscode = __importStar(__webpack_require__(2));
|
|
51149
51501
|
const fileSchemes = __importStar(__webpack_require__(278));
|
|
51150
|
-
const languageDescription_1 = __webpack_require__(
|
|
51502
|
+
const languageDescription_1 = __webpack_require__(350);
|
|
51151
51503
|
const api_1 = __webpack_require__(229);
|
|
51152
51504
|
const typeConverters = __importStar(__webpack_require__(288));
|
|
51153
51505
|
const typescriptService_1 = __webpack_require__(284);
|
|
51154
|
-
const async_1 = __webpack_require__(
|
|
51506
|
+
const async_1 = __webpack_require__(337);
|
|
51155
51507
|
const cancellation_1 = __webpack_require__(204);
|
|
51156
51508
|
const dispose_1 = __webpack_require__(277);
|
|
51157
51509
|
const dependentRegistration_1 = __webpack_require__(289);
|
|
@@ -51173,33 +51525,34 @@ class UpdateImportsOnFileRenameHandler extends dispose_1.Disposable {
|
|
|
51173
51525
|
this._delayer = new async_1.Delayer(50);
|
|
51174
51526
|
this._pendingRenames = new Set();
|
|
51175
51527
|
this._register(vscode.workspace.onDidRenameFiles(async (e) => {
|
|
51176
|
-
const
|
|
51177
|
-
|
|
51178
|
-
|
|
51179
|
-
|
|
51180
|
-
|
|
51181
|
-
|
|
51182
|
-
|
|
51183
|
-
|
|
51184
|
-
|
|
51185
|
-
|
|
51186
|
-
|
|
51187
|
-
|
|
51188
|
-
|
|
51189
|
-
|
|
51190
|
-
|
|
51191
|
-
|
|
51192
|
-
|
|
51193
|
-
|
|
51194
|
-
|
|
51528
|
+
for (const { newUri, oldUri } of e.files) {
|
|
51529
|
+
const newFilePath = this.client.toTsFilePath(newUri);
|
|
51530
|
+
if (!newFilePath) {
|
|
51531
|
+
continue;
|
|
51532
|
+
}
|
|
51533
|
+
const oldFilePath = this.client.toTsFilePath(oldUri);
|
|
51534
|
+
if (!oldFilePath) {
|
|
51535
|
+
continue;
|
|
51536
|
+
}
|
|
51537
|
+
const config = this.getConfiguration(newUri);
|
|
51538
|
+
const setting = config.get(updateImportsOnFileMoveName);
|
|
51539
|
+
if (setting === "never" /* UpdateImportsOnFileMoveSetting.Never */) {
|
|
51540
|
+
continue;
|
|
51541
|
+
}
|
|
51542
|
+
// Try to get a js/ts file that is being moved
|
|
51543
|
+
// For directory moves, this returns a js/ts file under the directory.
|
|
51544
|
+
const jsTsFileThatIsBeingMoved = await this.getJsTsFileBeingMoved(newUri);
|
|
51545
|
+
if (!jsTsFileThatIsBeingMoved || !this.client.toTsFilePath(jsTsFileThatIsBeingMoved)) {
|
|
51546
|
+
continue;
|
|
51547
|
+
}
|
|
51548
|
+
this._pendingRenames.add({ oldUri, newUri, newFilePath, oldFilePath, jsTsFileThatIsBeingMoved });
|
|
51549
|
+
this._delayer.trigger(() => {
|
|
51550
|
+
vscode.window.withProgress({
|
|
51551
|
+
location: vscode.ProgressLocation.Window,
|
|
51552
|
+
title: vscode.l10n.t("Checking for update of JS/TS imports")
|
|
51553
|
+
}, () => this.flushRenames());
|
|
51554
|
+
});
|
|
51195
51555
|
}
|
|
51196
|
-
this._pendingRenames.add({ oldUri, newUri, newFilePath, oldFilePath, jsTsFileThatIsBeingMoved });
|
|
51197
|
-
this._delayer.trigger(() => {
|
|
51198
|
-
vscode.window.withProgress({
|
|
51199
|
-
location: vscode.ProgressLocation.Window,
|
|
51200
|
-
title: vscode.l10n.t("Checking for update of JS/TS imports")
|
|
51201
|
-
}, () => this.flushRenames());
|
|
51202
|
-
});
|
|
51203
51556
|
}));
|
|
51204
51557
|
}
|
|
51205
51558
|
async flushRenames() {
|
|
@@ -51364,7 +51717,7 @@ exports.register = register;
|
|
|
51364
51717
|
|
|
51365
51718
|
|
|
51366
51719
|
/***/ }),
|
|
51367
|
-
/*
|
|
51720
|
+
/* 350 */
|
|
51368
51721
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
51369
51722
|
|
|
51370
51723
|
"use strict";
|
|
@@ -51451,7 +51804,7 @@ exports.doesResourceLookLikeAJavaScriptFile = doesResourceLookLikeAJavaScriptFil
|
|
|
51451
51804
|
|
|
51452
51805
|
|
|
51453
51806
|
/***/ }),
|
|
51454
|
-
/*
|
|
51807
|
+
/* 351 */
|
|
51455
51808
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
51456
51809
|
|
|
51457
51810
|
"use strict";
|
|
@@ -51487,7 +51840,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
51487
51840
|
exports.register = void 0;
|
|
51488
51841
|
const vscode = __importStar(__webpack_require__(2));
|
|
51489
51842
|
const fileSchemes = __importStar(__webpack_require__(278));
|
|
51490
|
-
const languageDescription_1 = __webpack_require__(
|
|
51843
|
+
const languageDescription_1 = __webpack_require__(350);
|
|
51491
51844
|
const api_1 = __webpack_require__(229);
|
|
51492
51845
|
const modifiers_1 = __webpack_require__(286);
|
|
51493
51846
|
const PConst = __importStar(__webpack_require__(287));
|
|
@@ -51599,7 +51952,7 @@ exports.register = register;
|
|
|
51599
51952
|
|
|
51600
51953
|
|
|
51601
51954
|
/***/ }),
|
|
51602
|
-
/*
|
|
51955
|
+
/* 352 */
|
|
51603
51956
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
51604
51957
|
|
|
51605
51958
|
"use strict";
|
|
@@ -51634,7 +51987,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
51634
51987
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
51635
51988
|
const vscode = __importStar(__webpack_require__(2));
|
|
51636
51989
|
const fileSchemes_1 = __webpack_require__(278);
|
|
51637
|
-
const languageDescription_1 = __webpack_require__(
|
|
51990
|
+
const languageDescription_1 = __webpack_require__(350);
|
|
51638
51991
|
const languageIds_1 = __webpack_require__(206);
|
|
51639
51992
|
const dispose_1 = __webpack_require__(277);
|
|
51640
51993
|
/**E
|
|
@@ -51677,7 +52030,7 @@ exports["default"] = ManagedFileContextManager;
|
|
|
51677
52030
|
|
|
51678
52031
|
|
|
51679
52032
|
/***/ }),
|
|
51680
|
-
/*
|
|
52033
|
+
/* 353 */
|
|
51681
52034
|
/***/ ((__unused_webpack_module, exports) => {
|
|
51682
52035
|
|
|
51683
52036
|
"use strict";
|
|
@@ -51714,7 +52067,7 @@ exports.lazy = lazy;
|
|
|
51714
52067
|
|
|
51715
52068
|
|
|
51716
52069
|
/***/ }),
|
|
51717
|
-
/*
|
|
52070
|
+
/* 354 */
|
|
51718
52071
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
51719
52072
|
|
|
51720
52073
|
"use strict";
|
|
@@ -51784,7 +52137,7 @@ __decorate([
|
|
|
51784
52137
|
|
|
51785
52138
|
|
|
51786
52139
|
/***/ }),
|
|
51787
|
-
/*
|
|
52140
|
+
/* 355 */
|
|
51788
52141
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
51789
52142
|
|
|
51790
52143
|
"use strict";
|
|
@@ -51819,7 +52172,7 @@ exports["default"] = RemoteRepositories;
|
|
|
51819
52172
|
|
|
51820
52173
|
|
|
51821
52174
|
/***/ }),
|
|
51822
|
-
/*
|
|
52175
|
+
/* 356 */
|
|
51823
52176
|
/***/ ((__unused_webpack_module, exports) => {
|
|
51824
52177
|
|
|
51825
52178
|
"use strict";
|
|
@@ -51846,7 +52199,7 @@ exports.noopRequestCancellerFactory = new class {
|
|
|
51846
52199
|
|
|
51847
52200
|
|
|
51848
52201
|
/***/ }),
|
|
51849
|
-
/*
|
|
52202
|
+
/* 357 */
|
|
51850
52203
|
/***/ ((__unused_webpack_module, exports) => {
|
|
51851
52204
|
|
|
51852
52205
|
"use strict";
|
|
@@ -51865,7 +52218,7 @@ exports.noopLogDirectoryProvider = new class {
|
|
|
51865
52218
|
|
|
51866
52219
|
|
|
51867
52220
|
/***/ }),
|
|
51868
|
-
/*
|
|
52221
|
+
/* 358 */
|
|
51869
52222
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
51870
52223
|
|
|
51871
52224
|
"use strict";
|
|
@@ -51970,7 +52323,7 @@ exports.PluginManager = PluginManager;
|
|
|
51970
52323
|
|
|
51971
52324
|
|
|
51972
52325
|
/***/ }),
|
|
51973
|
-
/*
|
|
52326
|
+
/* 359 */
|
|
51974
52327
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
51975
52328
|
|
|
51976
52329
|
"use strict";
|
|
@@ -52005,16 +52358,16 @@ exports.WorkerServerProcessFactory = void 0;
|
|
|
52005
52358
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
52006
52359
|
*--------------------------------------------------------------------------------------------*/
|
|
52007
52360
|
/// <reference lib='webworker' />
|
|
52008
|
-
const browser_1 = __webpack_require__(
|
|
52009
|
-
const sync_api_service_1 = __webpack_require__(
|
|
52361
|
+
const browser_1 = __webpack_require__(360);
|
|
52362
|
+
const sync_api_service_1 = __webpack_require__(370);
|
|
52010
52363
|
const vscode = __importStar(__webpack_require__(2));
|
|
52011
|
-
const fileWatchingManager_1 = __webpack_require__(
|
|
52364
|
+
const fileWatchingManager_1 = __webpack_require__(372);
|
|
52012
52365
|
class WorkerServerProcessFactory {
|
|
52013
52366
|
constructor(_extensionUri, _logger) {
|
|
52014
52367
|
this._extensionUri = _extensionUri;
|
|
52015
52368
|
this._logger = _logger;
|
|
52016
52369
|
}
|
|
52017
|
-
fork(version, args, kind, _configuration, _versionManager, tsServerLog) {
|
|
52370
|
+
fork(version, args, kind, _configuration, _versionManager, _nodeVersionManager, tsServerLog) {
|
|
52018
52371
|
const tsServerPath = version.tsServerPath;
|
|
52019
52372
|
const launchArgs = [
|
|
52020
52373
|
...args,
|
|
@@ -52122,7 +52475,7 @@ WorkerServerProcess.idPool = 0;
|
|
|
52122
52475
|
|
|
52123
52476
|
|
|
52124
52477
|
/***/ }),
|
|
52125
|
-
/*
|
|
52478
|
+
/* 360 */
|
|
52126
52479
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
52127
52480
|
|
|
52128
52481
|
"use strict";
|
|
@@ -52132,13 +52485,13 @@ WorkerServerProcess.idPool = 0;
|
|
|
52132
52485
|
* ----------------------------------------------------------------------------------------- */
|
|
52133
52486
|
|
|
52134
52487
|
|
|
52135
|
-
const ral = __webpack_require__(
|
|
52488
|
+
const ral = __webpack_require__(361);
|
|
52136
52489
|
|
|
52137
|
-
module.exports = __webpack_require__(
|
|
52490
|
+
module.exports = __webpack_require__(362);
|
|
52138
52491
|
module.exports["default"] = ral.default;
|
|
52139
52492
|
|
|
52140
52493
|
/***/ }),
|
|
52141
|
-
/*
|
|
52494
|
+
/* 361 */
|
|
52142
52495
|
/***/ ((__unused_webpack_module, exports) => {
|
|
52143
52496
|
|
|
52144
52497
|
"use strict";
|
|
@@ -52175,7 +52528,7 @@ exports["default"] = RAL;
|
|
|
52175
52528
|
//# sourceMappingURL=ral.js.map
|
|
52176
52529
|
|
|
52177
52530
|
/***/ }),
|
|
52178
|
-
/*
|
|
52531
|
+
/* 362 */
|
|
52179
52532
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
52180
52533
|
|
|
52181
52534
|
"use strict";
|
|
@@ -52203,18 +52556,18 @@ exports.MessageConnection = exports.ClientConnection = exports.ServiceConnection
|
|
|
52203
52556
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
52204
52557
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
52205
52558
|
* ------------------------------------------------------------------------------------------ */
|
|
52206
|
-
const ril_1 = __importDefault(__webpack_require__(
|
|
52559
|
+
const ril_1 = __importDefault(__webpack_require__(363));
|
|
52207
52560
|
ril_1.default.install();
|
|
52208
|
-
__exportStar(__webpack_require__(
|
|
52209
|
-
var connection_1 = __webpack_require__(
|
|
52561
|
+
__exportStar(__webpack_require__(366), exports);
|
|
52562
|
+
var connection_1 = __webpack_require__(364);
|
|
52210
52563
|
Object.defineProperty(exports, "ServiceConnection", ({ enumerable: true, get: function () { return connection_1.ServiceConnection; } }));
|
|
52211
52564
|
Object.defineProperty(exports, "ClientConnection", ({ enumerable: true, get: function () { return connection_1.ClientConnection; } }));
|
|
52212
|
-
var messageConnection_1 = __webpack_require__(
|
|
52565
|
+
var messageConnection_1 = __webpack_require__(369);
|
|
52213
52566
|
Object.defineProperty(exports, "MessageConnection", ({ enumerable: true, get: function () { return messageConnection_1.MessageConnection; } }));
|
|
52214
52567
|
//# sourceMappingURL=main.js.map
|
|
52215
52568
|
|
|
52216
52569
|
/***/ }),
|
|
52217
|
-
/*
|
|
52570
|
+
/* 363 */
|
|
52218
52571
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
52219
52572
|
|
|
52220
52573
|
"use strict";
|
|
@@ -52227,8 +52580,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
52227
52580
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
52228
52581
|
};
|
|
52229
52582
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
52230
|
-
const ral_1 = __importDefault(__webpack_require__(
|
|
52231
|
-
const connection_1 = __webpack_require__(
|
|
52583
|
+
const ral_1 = __importDefault(__webpack_require__(361));
|
|
52584
|
+
const connection_1 = __webpack_require__(364);
|
|
52232
52585
|
// In Browser environments we can only encode / decode utf-8
|
|
52233
52586
|
const encoder = new TextEncoder();
|
|
52234
52587
|
const decoder = new TextDecoder();
|
|
@@ -52302,7 +52655,7 @@ exports["default"] = RIL;
|
|
|
52302
52655
|
//# sourceMappingURL=ril.js.map
|
|
52303
52656
|
|
|
52304
52657
|
/***/ }),
|
|
52305
|
-
/*
|
|
52658
|
+
/* 364 */
|
|
52306
52659
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
52307
52660
|
|
|
52308
52661
|
"use strict";
|
|
@@ -52316,8 +52669,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
52316
52669
|
};
|
|
52317
52670
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
52318
52671
|
exports.ServiceConnection = exports.ClientConnection = void 0;
|
|
52319
|
-
const ral_1 = __importDefault(__webpack_require__(
|
|
52320
|
-
const connection_1 = __webpack_require__(
|
|
52672
|
+
const ral_1 = __importDefault(__webpack_require__(361));
|
|
52673
|
+
const connection_1 = __webpack_require__(365);
|
|
52321
52674
|
class ClientConnection extends connection_1.BaseClientConnection {
|
|
52322
52675
|
constructor(port) {
|
|
52323
52676
|
super();
|
|
@@ -52352,7 +52705,7 @@ exports.ServiceConnection = ServiceConnection;
|
|
|
52352
52705
|
//# sourceMappingURL=connection.js.map
|
|
52353
52706
|
|
|
52354
52707
|
/***/ }),
|
|
52355
|
-
/*
|
|
52708
|
+
/* 365 */
|
|
52356
52709
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
52357
52710
|
|
|
52358
52711
|
"use strict";
|
|
@@ -52378,7 +52731,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
52378
52731
|
var _Uint8Result_length, _Int8Result_length, _Uint16Result_length, _Int16Result_length, _Uint32Result_length, _Int32Result_length, _Uint64Result_length, _Int64Result_length, _VariableResult_mode;
|
|
52379
52732
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
52380
52733
|
exports.BaseServiceConnection = exports.RequestResult = exports.BaseClientConnection = exports.RPCError = exports.RPCErrno = exports.VariableResult = exports.Int64Result = exports.Uint64Result = exports.Int32Result = exports.Uint32Result = exports.Int16Result = exports.Uint16Result = exports.Int8Result = exports.Uint8Result = exports.Notification = exports.Request = void 0;
|
|
52381
|
-
const ral_1 = __importDefault(__webpack_require__(
|
|
52734
|
+
const ral_1 = __importDefault(__webpack_require__(361));
|
|
52382
52735
|
var TypedArray;
|
|
52383
52736
|
(function (TypedArray) {
|
|
52384
52737
|
function is(value) {
|
|
@@ -53104,7 +53457,7 @@ exports.BaseServiceConnection = BaseServiceConnection;
|
|
|
53104
53457
|
//# sourceMappingURL=connection.js.map
|
|
53105
53458
|
|
|
53106
53459
|
/***/ }),
|
|
53107
|
-
/*
|
|
53460
|
+
/* 366 */
|
|
53108
53461
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
53109
53462
|
|
|
53110
53463
|
"use strict";
|
|
@@ -53132,18 +53485,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
53132
53485
|
};
|
|
53133
53486
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
53134
53487
|
exports.BaseMessageConnection = exports.Cancellation = exports.RAL = void 0;
|
|
53135
|
-
__exportStar(__webpack_require__(363), exports);
|
|
53136
53488
|
__exportStar(__webpack_require__(365), exports);
|
|
53137
|
-
|
|
53489
|
+
__exportStar(__webpack_require__(367), exports);
|
|
53490
|
+
const ral_1 = __importDefault(__webpack_require__(361));
|
|
53138
53491
|
exports.RAL = ral_1.default;
|
|
53139
53492
|
var messageCancellation_1 = __webpack_require__(295);
|
|
53140
53493
|
Object.defineProperty(exports, "Cancellation", ({ enumerable: true, get: function () { return messageCancellation_1.Cancellation; } }));
|
|
53141
|
-
var messageConnection_1 = __webpack_require__(
|
|
53494
|
+
var messageConnection_1 = __webpack_require__(368);
|
|
53142
53495
|
Object.defineProperty(exports, "BaseMessageConnection", ({ enumerable: true, get: function () { return messageConnection_1.BaseMessageConnection; } }));
|
|
53143
53496
|
//# sourceMappingURL=api.js.map
|
|
53144
53497
|
|
|
53145
53498
|
/***/ }),
|
|
53146
|
-
/*
|
|
53499
|
+
/* 367 */
|
|
53147
53500
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
53148
53501
|
|
|
53149
53502
|
"use strict";
|
|
@@ -53154,7 +53507,7 @@ Object.defineProperty(exports, "BaseMessageConnection", ({ enumerable: true, get
|
|
|
53154
53507
|
* ------------------------------------------------------------------------------------------ */
|
|
53155
53508
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
53156
53509
|
exports.DTOs = void 0;
|
|
53157
|
-
const connection_1 = __webpack_require__(
|
|
53510
|
+
const connection_1 = __webpack_require__(365);
|
|
53158
53511
|
var DTOs;
|
|
53159
53512
|
(function (DTOs) {
|
|
53160
53513
|
let FileSystemError;
|
|
@@ -53255,7 +53608,7 @@ var DTOs;
|
|
|
53255
53608
|
//# sourceMappingURL=protocol.js.map
|
|
53256
53609
|
|
|
53257
53610
|
/***/ }),
|
|
53258
|
-
/*
|
|
53611
|
+
/* 368 */
|
|
53259
53612
|
/***/ ((__unused_webpack_module, exports) => {
|
|
53260
53613
|
|
|
53261
53614
|
"use strict";
|
|
@@ -53392,7 +53745,7 @@ exports.BaseMessageConnection = BaseMessageConnection;
|
|
|
53392
53745
|
//# sourceMappingURL=messageConnection.js.map
|
|
53393
53746
|
|
|
53394
53747
|
/***/ }),
|
|
53395
|
-
/*
|
|
53748
|
+
/* 369 */
|
|
53396
53749
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
53397
53750
|
|
|
53398
53751
|
"use strict";
|
|
@@ -53406,8 +53759,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
53406
53759
|
};
|
|
53407
53760
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
53408
53761
|
exports.MessageConnection = void 0;
|
|
53409
|
-
const ral_1 = __importDefault(__webpack_require__(
|
|
53410
|
-
const messageConnection_1 = __webpack_require__(
|
|
53762
|
+
const ral_1 = __importDefault(__webpack_require__(361));
|
|
53763
|
+
const messageConnection_1 = __webpack_require__(368);
|
|
53411
53764
|
class MessageConnection extends messageConnection_1.BaseMessageConnection {
|
|
53412
53765
|
constructor(port) {
|
|
53413
53766
|
super();
|
|
@@ -53426,7 +53779,7 @@ exports.MessageConnection = MessageConnection;
|
|
|
53426
53779
|
//# sourceMappingURL=messageConnection.js.map
|
|
53427
53780
|
|
|
53428
53781
|
/***/ }),
|
|
53429
|
-
/*
|
|
53782
|
+
/* 370 */
|
|
53430
53783
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
53431
53784
|
|
|
53432
53785
|
"use strict";
|
|
@@ -53450,12 +53803,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
53450
53803
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
53451
53804
|
};
|
|
53452
53805
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
53453
|
-
__exportStar(__webpack_require__(
|
|
53454
|
-
__exportStar(__webpack_require__(
|
|
53806
|
+
__exportStar(__webpack_require__(362), exports);
|
|
53807
|
+
__exportStar(__webpack_require__(371), exports);
|
|
53455
53808
|
//# sourceMappingURL=main.js.map
|
|
53456
53809
|
|
|
53457
53810
|
/***/ }),
|
|
53458
|
-
/*
|
|
53811
|
+
/* 371 */
|
|
53459
53812
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
53460
53813
|
|
|
53461
53814
|
"use strict";
|
|
@@ -53490,7 +53843,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
53490
53843
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
53491
53844
|
exports.ApiService = exports.ServicePseudoTerminal = exports.TerminalMode = void 0;
|
|
53492
53845
|
const vscode = __importStar(__webpack_require__(2));
|
|
53493
|
-
const sync_api_common_1 = __webpack_require__(
|
|
53846
|
+
const sync_api_common_1 = __webpack_require__(362);
|
|
53494
53847
|
const terminalRegExp = /(\r\n)|(\n)/gm;
|
|
53495
53848
|
class LineBuffer {
|
|
53496
53849
|
constructor() {
|
|
@@ -53951,7 +54304,7 @@ exports.ApiService = ApiService;
|
|
|
53951
54304
|
//# sourceMappingURL=apiService.js.map
|
|
53952
54305
|
|
|
53953
54306
|
/***/ }),
|
|
53954
|
-
/*
|
|
54307
|
+
/* 372 */
|
|
53955
54308
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
53956
54309
|
|
|
53957
54310
|
"use strict";
|
|
@@ -53987,7 +54340,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
53987
54340
|
exports.FileWatcherManager = void 0;
|
|
53988
54341
|
const vscode = __importStar(__webpack_require__(2));
|
|
53989
54342
|
const vscode_uri_1 = __webpack_require__(221);
|
|
53990
|
-
const schemes_1 = __webpack_require__(
|
|
54343
|
+
const schemes_1 = __webpack_require__(324);
|
|
53991
54344
|
const dispose_1 = __webpack_require__(277);
|
|
53992
54345
|
const resourceMap_1 = __webpack_require__(280);
|
|
53993
54346
|
class FileWatcherManager {
|
|
@@ -54080,7 +54433,7 @@ exports.FileWatcherManager = FileWatcherManager;
|
|
|
54080
54433
|
|
|
54081
54434
|
|
|
54082
54435
|
/***/ }),
|
|
54083
|
-
/*
|
|
54436
|
+
/* 373 */
|
|
54084
54437
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
54085
54438
|
|
|
54086
54439
|
"use strict";
|
|
@@ -54152,7 +54505,7 @@ exports.TypeScriptVersion = TypeScriptVersion;
|
|
|
54152
54505
|
|
|
54153
54506
|
|
|
54154
54507
|
/***/ }),
|
|
54155
|
-
/*
|
|
54508
|
+
/* 374 */
|
|
54156
54509
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
54157
54510
|
|
|
54158
54511
|
"use strict";
|
|
@@ -54187,7 +54540,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
54187
54540
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
54188
54541
|
exports.ActiveJsTsEditorTracker = void 0;
|
|
54189
54542
|
const vscode = __importStar(__webpack_require__(2));
|
|
54190
|
-
const languageDescription_1 = __webpack_require__(
|
|
54543
|
+
const languageDescription_1 = __webpack_require__(350);
|
|
54191
54544
|
const languageIds_1 = __webpack_require__(206);
|
|
54192
54545
|
const dispose_1 = __webpack_require__(277);
|
|
54193
54546
|
/**
|
|
@@ -54248,7 +54601,7 @@ exports.ActiveJsTsEditorTracker = ActiveJsTsEditorTracker;
|
|
|
54248
54601
|
|
|
54249
54602
|
|
|
54250
54603
|
/***/ }),
|
|
54251
|
-
/*
|
|
54604
|
+
/* 375 */
|
|
54252
54605
|
/***/ ((__unused_webpack_module, exports) => {
|
|
54253
54606
|
|
|
54254
54607
|
"use strict";
|
|
@@ -54274,7 +54627,7 @@ exports.getPackageInfo = getPackageInfo;
|
|
|
54274
54627
|
|
|
54275
54628
|
|
|
54276
54629
|
/***/ }),
|
|
54277
|
-
/*
|
|
54630
|
+
/* 376 */
|
|
54278
54631
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
54279
54632
|
|
|
54280
54633
|
"use strict";
|
|
@@ -54308,7 +54661,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
54308
54661
|
};
|
|
54309
54662
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
54310
54663
|
exports.register = void 0;
|
|
54311
|
-
const jsonc = __importStar(__webpack_require__(
|
|
54664
|
+
const jsonc = __importStar(__webpack_require__(377));
|
|
54312
54665
|
const path_1 = __webpack_require__(220);
|
|
54313
54666
|
const vscode = __importStar(__webpack_require__(2));
|
|
54314
54667
|
const vscode_uri_1 = __webpack_require__(221);
|
|
@@ -54463,7 +54816,7 @@ exports.register = register;
|
|
|
54463
54816
|
|
|
54464
54817
|
|
|
54465
54818
|
/***/ }),
|
|
54466
|
-
/*
|
|
54819
|
+
/* 377 */
|
|
54467
54820
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
54468
54821
|
|
|
54469
54822
|
"use strict";
|
|
@@ -54487,10 +54840,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
54487
54840
|
/* harmony export */ "stripComments": () => (/* binding */ stripComments),
|
|
54488
54841
|
/* harmony export */ "visit": () => (/* binding */ visit)
|
|
54489
54842
|
/* harmony export */ });
|
|
54490
|
-
/* harmony import */ var _impl_format__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
54491
|
-
/* harmony import */ var _impl_edit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
54492
|
-
/* harmony import */ var _impl_scanner__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
54493
|
-
/* harmony import */ var _impl_parser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
54843
|
+
/* harmony import */ var _impl_format__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(378);
|
|
54844
|
+
/* harmony import */ var _impl_edit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(380);
|
|
54845
|
+
/* harmony import */ var _impl_scanner__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(379);
|
|
54846
|
+
/* harmony import */ var _impl_parser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(381);
|
|
54494
54847
|
/*---------------------------------------------------------------------------------------------
|
|
54495
54848
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
54496
54849
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
@@ -54672,7 +55025,7 @@ function applyEdits(text, edits) {
|
|
|
54672
55025
|
|
|
54673
55026
|
|
|
54674
55027
|
/***/ }),
|
|
54675
|
-
/*
|
|
55028
|
+
/* 378 */
|
|
54676
55029
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
54677
55030
|
|
|
54678
55031
|
"use strict";
|
|
@@ -54681,7 +55034,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
54681
55034
|
/* harmony export */ "format": () => (/* binding */ format),
|
|
54682
55035
|
/* harmony export */ "isEOL": () => (/* binding */ isEOL)
|
|
54683
55036
|
/* harmony export */ });
|
|
54684
|
-
/* harmony import */ var _scanner__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
55037
|
+
/* harmony import */ var _scanner__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(379);
|
|
54685
55038
|
/*---------------------------------------------------------------------------------------------
|
|
54686
55039
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
54687
55040
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
@@ -54936,7 +55289,7 @@ function isEOL(text, offset) {
|
|
|
54936
55289
|
|
|
54937
55290
|
|
|
54938
55291
|
/***/ }),
|
|
54939
|
-
/*
|
|
55292
|
+
/* 379 */
|
|
54940
55293
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
54941
55294
|
|
|
54942
55295
|
"use strict";
|
|
@@ -55390,7 +55743,7 @@ var CharacterCodes;
|
|
|
55390
55743
|
|
|
55391
55744
|
|
|
55392
55745
|
/***/ }),
|
|
55393
|
-
/*
|
|
55746
|
+
/* 380 */
|
|
55394
55747
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
55395
55748
|
|
|
55396
55749
|
"use strict";
|
|
@@ -55401,8 +55754,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
55401
55754
|
/* harmony export */ "removeProperty": () => (/* binding */ removeProperty),
|
|
55402
55755
|
/* harmony export */ "setProperty": () => (/* binding */ setProperty)
|
|
55403
55756
|
/* harmony export */ });
|
|
55404
|
-
/* harmony import */ var _format__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
55405
|
-
/* harmony import */ var _parser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
55757
|
+
/* harmony import */ var _format__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(378);
|
|
55758
|
+
/* harmony import */ var _parser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(381);
|
|
55406
55759
|
/*---------------------------------------------------------------------------------------------
|
|
55407
55760
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
55408
55761
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
@@ -55591,7 +55944,7 @@ function isWS(text, offset) {
|
|
|
55591
55944
|
|
|
55592
55945
|
|
|
55593
55946
|
/***/ }),
|
|
55594
|
-
/*
|
|
55947
|
+
/* 381 */
|
|
55595
55948
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
55596
55949
|
|
|
55597
55950
|
"use strict";
|
|
@@ -55609,7 +55962,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
55609
55962
|
/* harmony export */ "stripComments": () => (/* binding */ stripComments),
|
|
55610
55963
|
/* harmony export */ "visit": () => (/* binding */ visit)
|
|
55611
55964
|
/* harmony export */ });
|
|
55612
|
-
/* harmony import */ var _scanner__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
55965
|
+
/* harmony import */ var _scanner__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(379);
|
|
55613
55966
|
/*---------------------------------------------------------------------------------------------
|
|
55614
55967
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
55615
55968
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|