@codingame/monaco-vscode-debug-service-override 4.5.0 → 4.5.2
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/index.d.ts +1 -1
- package/package.json +2 -2
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +105 -150
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +258 -529
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +28 -48
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +44 -71
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +84 -163
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +116 -120
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +7 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +78 -140
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +72 -75
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +25 -28
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +16 -48
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +140 -132
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +218 -175
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +5 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +9 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +69 -110
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +68 -53
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +77 -56
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +50 -75
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +13 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +22 -51
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +47 -73
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +60 -76
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +14 -43
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +23 -42
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +17 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +56 -94
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +40 -79
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +55 -57
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +14 -28
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +12 -15
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +71 -146
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +92 -111
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +5 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +5 -12
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +42 -22
- package/debug.d.ts +0 -5
|
@@ -32,7 +32,8 @@ import { IHistoryService } from 'vscode/vscode/vs/workbench/services/history/com
|
|
|
32
32
|
import { IPreferencesService } from 'vscode/vscode/vs/workbench/services/preferences/common/preferences.service';
|
|
33
33
|
import { ITextFileService } from 'vscode/vscode/vs/workbench/services/textfile/common/textfiles.service';
|
|
34
34
|
|
|
35
|
-
const
|
|
35
|
+
const _moduleId = "vs/workbench/contrib/debug/browser/debugConfigurationManager";
|
|
36
|
+
const jsonRegistry = ( (Registry.as(Extensions.JSONContribution)));
|
|
36
37
|
jsonRegistry.registerSchema(launchSchemaId, launchSchema);
|
|
37
38
|
const DEBUG_SELECTED_CONFIG_NAME_KEY = 'debug.selectedconfigname';
|
|
38
39
|
const DEBUG_SELECTED_ROOT = 'debug.selectedroot';
|
|
@@ -51,8 +52,8 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
51
52
|
this.uriIdentityService = uriIdentityService;
|
|
52
53
|
this.getSelectedConfig = () => Promise.resolve(undefined);
|
|
53
54
|
this.selectedDynamic = false;
|
|
54
|
-
this._onDidSelectConfigurationName = ( new Emitter());
|
|
55
|
-
this._onDidChangeConfigurationProviders = ( new Emitter());
|
|
55
|
+
this._onDidSelectConfigurationName = ( (new Emitter()));
|
|
56
|
+
this._onDidChangeConfigurationProviders = ( (new Emitter()));
|
|
56
57
|
this.onDidChangeConfigurationProviders = this._onDidChangeConfigurationProviders.event;
|
|
57
58
|
this.configProviders = [];
|
|
58
59
|
this.toDispose = [this._onDidChangeConfigurationProviders];
|
|
@@ -61,7 +62,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
61
62
|
this.registerListeners();
|
|
62
63
|
const previousSelectedRoot = this.storageService.get(DEBUG_SELECTED_ROOT, 1 );
|
|
63
64
|
const previousSelectedType = this.storageService.get(DEBUG_SELECTED_TYPE, 1 );
|
|
64
|
-
const previousSelectedLaunch = this.launches.find(l => ( l.uri.toString()) === previousSelectedRoot);
|
|
65
|
+
const previousSelectedLaunch = this.launches.find(l => ( (l.uri.toString())) === previousSelectedRoot);
|
|
65
66
|
const previousSelectedName = this.storageService.get(DEBUG_SELECTED_CONFIG_NAME_KEY, 1 );
|
|
66
67
|
this.debugConfigurationTypeContext = CONTEXT_DEBUG_CONFIGURATION_TYPE.bindTo(contextKeyService);
|
|
67
68
|
const dynamicConfig = previousSelectedType ? { type: previousSelectedType } : undefined;
|
|
@@ -109,7 +110,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
109
110
|
};
|
|
110
111
|
let resolvedType = config.type ?? type;
|
|
111
112
|
let result = config;
|
|
112
|
-
for (let seen = ( new Set()); result && !( seen.has(resolvedType));) {
|
|
113
|
+
for (let seen = ( (new Set())); result && !( (seen.has(resolvedType)));) {
|
|
113
114
|
seen.add(resolvedType);
|
|
114
115
|
result = await resolveDebugConfigurationForType(resolvedType, result);
|
|
115
116
|
result = await resolveDebugConfigurationForType('*', result);
|
|
@@ -121,16 +122,16 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
121
122
|
const providers = this.configProviders.filter(p => p.type === type && p.resolveDebugConfigurationWithSubstitutedVariables)
|
|
122
123
|
.concat(this.configProviders.filter(p => p.type === '*' && p.resolveDebugConfigurationWithSubstitutedVariables));
|
|
123
124
|
let result = config;
|
|
124
|
-
await sequence(( providers.map(provider => async () => {
|
|
125
|
+
await sequence(( (providers.map(provider => async () => {
|
|
125
126
|
if (result) {
|
|
126
127
|
result = await provider.resolveDebugConfigurationWithSubstitutedVariables(folderUri, result, token);
|
|
127
128
|
}
|
|
128
|
-
})));
|
|
129
|
+
}))));
|
|
129
130
|
return result;
|
|
130
131
|
}
|
|
131
132
|
async provideDebugConfigurations(folderUri, type, token) {
|
|
132
133
|
await this.adapterManager.activateDebuggers('onDebugInitialConfigurations');
|
|
133
|
-
const results = await Promise.all(( this.configProviders.filter(p => p.type === type && p.triggerKind === DebugConfigurationProviderTriggerKind.Initial && p.provideDebugConfigurations).map(p => p.provideDebugConfigurations(folderUri, token))));
|
|
134
|
+
const results = await Promise.all(( (this.configProviders.filter(p => p.type === type && p.triggerKind === DebugConfigurationProviderTriggerKind.Initial && p.provideDebugConfigurations).map(p => p.provideDebugConfigurations(folderUri, token)))));
|
|
134
135
|
return results.reduce((first, second) => first.concat(second), []);
|
|
135
136
|
}
|
|
136
137
|
async getDynamicProviders() {
|
|
@@ -160,78 +161,72 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
160
161
|
}
|
|
161
162
|
}
|
|
162
163
|
return acc;
|
|
163
|
-
}, ( new Set()));
|
|
164
|
+
}, ( (new Set())));
|
|
164
165
|
for (const configProvider of this.configProviders) {
|
|
165
166
|
if (configProvider.triggerKind === DebugConfigurationProviderTriggerKind.Dynamic) {
|
|
166
167
|
debugDynamicExtensionsTypes.add(configProvider.type);
|
|
167
168
|
}
|
|
168
169
|
}
|
|
169
|
-
return (
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
170
|
+
return (
|
|
171
|
+
([...debugDynamicExtensionsTypes].map(type => {
|
|
172
|
+
return {
|
|
173
|
+
label: this.adapterManager.getDebuggerLabel(type),
|
|
174
|
+
getProvider: async () => {
|
|
175
|
+
await this.adapterManager.activateDebuggers(onDebugDynamicConfigurationsName, type);
|
|
176
|
+
return this.configProviders.find(p => p.type === type && p.triggerKind === DebugConfigurationProviderTriggerKind.Dynamic && p.provideDebugConfigurations);
|
|
177
|
+
},
|
|
178
|
+
type,
|
|
179
|
+
pick: async () => {
|
|
180
|
+
await this.adapterManager.activateDebuggers(onDebugDynamicConfigurationsName, type);
|
|
181
|
+
const token = ( (new CancellationTokenSource()));
|
|
182
|
+
const picks = [];
|
|
183
|
+
const provider = this.configProviders.find(p => p.type === type && p.triggerKind === DebugConfigurationProviderTriggerKind.Dynamic && p.provideDebugConfigurations);
|
|
184
|
+
this.getLaunches().forEach(launch => {
|
|
185
|
+
if (launch.workspace && provider) {
|
|
186
|
+
picks.push(provider.provideDebugConfigurations(launch.workspace.uri, token.token).then(configurations => ( (configurations.map(config => ({
|
|
187
|
+
label: config.name,
|
|
188
|
+
description: launch.name,
|
|
189
|
+
config,
|
|
190
|
+
buttons: [{
|
|
191
|
+
iconClass: ThemeIcon.asClassName(debugConfigure),
|
|
192
|
+
tooltip: ( localizeWithPath(_moduleId, 0, "Edit Debug Configuration in launch.json"))
|
|
193
|
+
}],
|
|
194
|
+
launch
|
|
195
|
+
}))))));
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
const disposables = ( (new DisposableStore()));
|
|
199
|
+
const input = disposables.add(this.quickInputService.createQuickPick());
|
|
200
|
+
input.busy = true;
|
|
201
|
+
input.placeholder = ( localizeWithPath(_moduleId, 1, "Select Launch Configuration"));
|
|
202
|
+
const chosenPromise = ( (new Promise(resolve => {
|
|
203
|
+
disposables.add(input.onDidAccept(() => resolve(input.activeItems[0])));
|
|
204
|
+
disposables.add(input.onDidTriggerItemButton(async (context) => {
|
|
205
|
+
resolve(undefined);
|
|
206
|
+
const { launch, config } = context.item;
|
|
207
|
+
await launch.openConfigFile({ preserveFocus: false, type: config.type, suppressInitialConfigs: true });
|
|
208
|
+
await launch.writeConfiguration(config);
|
|
209
|
+
await this.selectConfiguration(launch, config.name);
|
|
210
|
+
this.removeRecentDynamicConfigurations(config.name, config.type);
|
|
211
|
+
}));
|
|
212
|
+
disposables.add(input.onDidHide(() => resolve(undefined)));
|
|
213
|
+
})));
|
|
214
|
+
const nestedPicks = await Promise.all(picks);
|
|
215
|
+
const items = flatten(nestedPicks);
|
|
216
|
+
input.items = items;
|
|
217
|
+
input.busy = false;
|
|
218
|
+
input.show();
|
|
219
|
+
const chosen = await chosenPromise;
|
|
220
|
+
disposables.dispose();
|
|
221
|
+
if (!chosen) {
|
|
222
|
+
token.cancel();
|
|
223
|
+
return;
|
|
198
224
|
}
|
|
199
|
-
|
|
200
|
-
const disposables = ( new DisposableStore());
|
|
201
|
-
const input = disposables.add(this.quickInputService.createQuickPick());
|
|
202
|
-
input.busy = true;
|
|
203
|
-
input.placeholder = ( localizeWithPath(
|
|
204
|
-
'vs/workbench/contrib/debug/browser/debugConfigurationManager',
|
|
205
|
-
'selectConfiguration',
|
|
206
|
-
"Select Launch Configuration"
|
|
207
|
-
));
|
|
208
|
-
const chosenPromise = ( new Promise(resolve => {
|
|
209
|
-
disposables.add(input.onDidAccept(() => resolve(input.activeItems[0])));
|
|
210
|
-
disposables.add(input.onDidTriggerItemButton(async (context) => {
|
|
211
|
-
resolve(undefined);
|
|
212
|
-
const { launch, config } = context.item;
|
|
213
|
-
await launch.openConfigFile({ preserveFocus: false, type: config.type, suppressInitialConfigs: true });
|
|
214
|
-
await launch.writeConfiguration(config);
|
|
215
|
-
await this.selectConfiguration(launch, config.name);
|
|
216
|
-
this.removeRecentDynamicConfigurations(config.name, config.type);
|
|
217
|
-
}));
|
|
218
|
-
disposables.add(input.onDidHide(() => resolve(undefined)));
|
|
219
|
-
}));
|
|
220
|
-
const nestedPicks = await Promise.all(picks);
|
|
221
|
-
const items = flatten(nestedPicks);
|
|
222
|
-
input.items = items;
|
|
223
|
-
input.busy = false;
|
|
224
|
-
input.show();
|
|
225
|
-
const chosen = await chosenPromise;
|
|
226
|
-
disposables.dispose();
|
|
227
|
-
if (!chosen) {
|
|
228
|
-
token.cancel();
|
|
229
|
-
return;
|
|
225
|
+
return chosen;
|
|
230
226
|
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}));
|
|
227
|
+
};
|
|
228
|
+
}))
|
|
229
|
+
);
|
|
235
230
|
}
|
|
236
231
|
getAllConfigurations() {
|
|
237
232
|
const all = [];
|
|
@@ -275,9 +270,9 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
275
270
|
}));
|
|
276
271
|
}
|
|
277
272
|
initLaunches() {
|
|
278
|
-
this.launches = ( this.contextService.getWorkspace().folders.map(
|
|
273
|
+
this.launches = ( (this.contextService.getWorkspace().folders.map(
|
|
279
274
|
folder => this.instantiationService.createInstance(Launch, this, this.adapterManager, folder)
|
|
280
|
-
));
|
|
275
|
+
)));
|
|
281
276
|
if (this.contextService.getWorkbenchState() === 3 ) {
|
|
282
277
|
this.launches.push(this.instantiationService.createInstance(WorkspaceLaunch, this, this.adapterManager));
|
|
283
278
|
}
|
|
@@ -288,10 +283,10 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
288
283
|
}
|
|
289
284
|
setCompoundSchemaValues() {
|
|
290
285
|
const compoundConfigurationsSchema = launchSchema.properties['compounds'].items.properties['configurations'];
|
|
291
|
-
const launchNames = ( this.launches.map(l => l.getConfigurationNames(true))).reduce((first, second) => first.concat(second), []);
|
|
286
|
+
const launchNames = ( (this.launches.map(l => l.getConfigurationNames(true)))).reduce((first, second) => first.concat(second), []);
|
|
292
287
|
compoundConfigurationsSchema.items.oneOf[0].enum = launchNames;
|
|
293
288
|
compoundConfigurationsSchema.items.oneOf[1].properties.name.enum = launchNames;
|
|
294
|
-
const folderNames = ( this.contextService.getWorkspace().folders.map(f => f.name));
|
|
289
|
+
const folderNames = ( (this.contextService.getWorkspace().folders.map(f => f.name)));
|
|
295
290
|
compoundConfigurationsSchema.items.oneOf[1].properties.folder.enum = folderNames;
|
|
296
291
|
jsonRegistry.registerSchema(launchSchemaId, launchSchema);
|
|
297
292
|
}
|
|
@@ -334,7 +329,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
334
329
|
const previousSelectedDynamic = this.selectedDynamic;
|
|
335
330
|
this.selectedLaunch = launch;
|
|
336
331
|
if (this.selectedLaunch) {
|
|
337
|
-
this.storageService.store(DEBUG_SELECTED_ROOT, ( this.selectedLaunch.uri.toString()), 1 , 1 );
|
|
332
|
+
this.storageService.store(DEBUG_SELECTED_ROOT, ( (this.selectedLaunch.uri.toString())), 1 , 1 );
|
|
338
333
|
}
|
|
339
334
|
else {
|
|
340
335
|
this.storageService.remove(DEBUG_SELECTED_ROOT, 1 );
|
|
@@ -353,10 +348,10 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
353
348
|
if (!config) {
|
|
354
349
|
const providers = (await this.getDynamicProviders()).filter(p => p.type === type);
|
|
355
350
|
this.getSelectedConfig = async () => {
|
|
356
|
-
const activatedProviders = await Promise.all(( providers.map(p => p.getProvider())));
|
|
351
|
+
const activatedProviders = await Promise.all(( (providers.map(p => p.getProvider()))));
|
|
357
352
|
const provider = activatedProviders.length > 0 ? activatedProviders[0] : undefined;
|
|
358
353
|
if (provider && launch && launch.workspace) {
|
|
359
|
-
const token = ( new CancellationTokenSource());
|
|
354
|
+
const token = ( (new CancellationTokenSource()));
|
|
360
355
|
const dynamicConfigs = await provider.provideDebugConfigurations(launch.workspace.uri, token.token);
|
|
361
356
|
const dynamicConfig = dynamicConfigs.find(c => c.name === name);
|
|
362
357
|
if (dynamicConfig) {
|
|
@@ -408,17 +403,17 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
408
403
|
this.toDispose = dispose(this.toDispose);
|
|
409
404
|
}
|
|
410
405
|
};
|
|
411
|
-
ConfigurationManager = ( __decorate([
|
|
412
|
-
( __param(1, IWorkspaceContextService)),
|
|
413
|
-
( __param(2, IConfigurationService)),
|
|
414
|
-
( __param(3, IQuickInputService)),
|
|
415
|
-
( __param(4, IInstantiationService)),
|
|
416
|
-
( __param(5, IStorageService)),
|
|
417
|
-
( __param(6, IExtensionService)),
|
|
418
|
-
( __param(7, IHistoryService)),
|
|
419
|
-
( __param(8, IUriIdentityService)),
|
|
420
|
-
( __param(9, IContextKeyService))
|
|
421
|
-
], ConfigurationManager));
|
|
406
|
+
ConfigurationManager = ( (__decorate([
|
|
407
|
+
( (__param(1, IWorkspaceContextService))),
|
|
408
|
+
( (__param(2, IConfigurationService))),
|
|
409
|
+
( (__param(3, IQuickInputService))),
|
|
410
|
+
( (__param(4, IInstantiationService))),
|
|
411
|
+
( (__param(5, IStorageService))),
|
|
412
|
+
( (__param(6, IExtensionService))),
|
|
413
|
+
( (__param(7, IHistoryService))),
|
|
414
|
+
( (__param(8, IUriIdentityService))),
|
|
415
|
+
( (__param(9, IContextKeyService)))
|
|
416
|
+
], ConfigurationManager)));
|
|
422
417
|
class AbstractLaunch {
|
|
423
418
|
constructor(configurationManager, adapterManager) {
|
|
424
419
|
this.configurationManager = configurationManager;
|
|
@@ -442,12 +437,16 @@ class AbstractLaunch {
|
|
|
442
437
|
configurations.push(...config.configurations.filter(cfg => cfg && typeof cfg.name === 'string'));
|
|
443
438
|
}
|
|
444
439
|
if (ignoreCompoundsAndPresentation) {
|
|
445
|
-
return (
|
|
440
|
+
return (
|
|
441
|
+
(configurations.map(c => c.name))
|
|
442
|
+
);
|
|
446
443
|
}
|
|
447
444
|
if (config.compounds) {
|
|
448
445
|
configurations.push(...config.compounds.filter(compound => typeof compound.name === 'string' && compound.configurations && compound.configurations.length));
|
|
449
446
|
}
|
|
450
|
-
return (
|
|
447
|
+
return (
|
|
448
|
+
(getVisibleAndSorted(configurations).map(c => c.name))
|
|
449
|
+
);
|
|
451
450
|
}
|
|
452
451
|
}
|
|
453
452
|
getConfiguration(name) {
|
|
@@ -508,7 +507,7 @@ let Launch = class Launch extends AbstractLaunch {
|
|
|
508
507
|
let content = '';
|
|
509
508
|
try {
|
|
510
509
|
const fileContent = await this.fileService.readFile(resource);
|
|
511
|
-
content = ( fileContent.value.toString());
|
|
510
|
+
content = ( (fileContent.value.toString()));
|
|
512
511
|
}
|
|
513
512
|
catch {
|
|
514
513
|
content = await this.getInitialConfigurationContent(this.workspace.uri, type, !suppressInitialConfigs, token);
|
|
@@ -520,7 +519,12 @@ let Launch = class Launch extends AbstractLaunch {
|
|
|
520
519
|
await this.textFileService.write(resource, content);
|
|
521
520
|
}
|
|
522
521
|
catch (error) {
|
|
523
|
-
throw new Error(localizeWithPath(
|
|
522
|
+
throw ( (new Error(localizeWithPath(
|
|
523
|
+
_moduleId,
|
|
524
|
+
2,
|
|
525
|
+
"Unable to create 'launch.json' file inside the '.vscode' folder ({0}).",
|
|
526
|
+
error.message
|
|
527
|
+
))));
|
|
524
528
|
}
|
|
525
529
|
}
|
|
526
530
|
const index = content.indexOf(`"${this.configurationManager.selectedConfiguration.name}"`);
|
|
@@ -554,12 +558,12 @@ let Launch = class Launch extends AbstractLaunch {
|
|
|
554
558
|
await this.configurationService.updateValue('launch', fullConfig, { resource: this.workspace.uri }, 6 );
|
|
555
559
|
}
|
|
556
560
|
};
|
|
557
|
-
Launch = ( __decorate([
|
|
558
|
-
( __param(3, IFileService)),
|
|
559
|
-
( __param(4, ITextFileService)),
|
|
560
|
-
( __param(5, IEditorService)),
|
|
561
|
-
( __param(6, IConfigurationService))
|
|
562
|
-
], Launch));
|
|
561
|
+
Launch = ( (__decorate([
|
|
562
|
+
( (__param(3, IFileService))),
|
|
563
|
+
( (__param(4, ITextFileService))),
|
|
564
|
+
( (__param(5, IEditorService))),
|
|
565
|
+
( (__param(6, IConfigurationService)))
|
|
566
|
+
], Launch)));
|
|
563
567
|
let WorkspaceLaunch = class WorkspaceLaunch extends AbstractLaunch {
|
|
564
568
|
constructor(configurationManager, adapterManager, editorService, configurationService, contextService) {
|
|
565
569
|
super(configurationManager, adapterManager);
|
|
@@ -574,11 +578,7 @@ let WorkspaceLaunch = class WorkspaceLaunch extends AbstractLaunch {
|
|
|
574
578
|
return this.contextService.getWorkspace().configuration;
|
|
575
579
|
}
|
|
576
580
|
get name() {
|
|
577
|
-
return ( localizeWithPath(
|
|
578
|
-
'vs/workbench/contrib/debug/browser/debugConfigurationManager',
|
|
579
|
-
'workspace',
|
|
580
|
-
"workspace"
|
|
581
|
-
));
|
|
581
|
+
return ( localizeWithPath(_moduleId, 3, "workspace"));
|
|
582
582
|
}
|
|
583
583
|
getConfig() {
|
|
584
584
|
return this.configurationService.inspect('launch').workspaceValue;
|
|
@@ -604,11 +604,11 @@ let WorkspaceLaunch = class WorkspaceLaunch extends AbstractLaunch {
|
|
|
604
604
|
});
|
|
605
605
|
}
|
|
606
606
|
};
|
|
607
|
-
WorkspaceLaunch = ( __decorate([
|
|
608
|
-
( __param(2, IEditorService)),
|
|
609
|
-
( __param(3, IConfigurationService)),
|
|
610
|
-
( __param(4, IWorkspaceContextService))
|
|
611
|
-
], WorkspaceLaunch));
|
|
607
|
+
WorkspaceLaunch = ( (__decorate([
|
|
608
|
+
( (__param(2, IEditorService))),
|
|
609
|
+
( (__param(3, IConfigurationService))),
|
|
610
|
+
( (__param(4, IWorkspaceContextService)))
|
|
611
|
+
], WorkspaceLaunch)));
|
|
612
612
|
let UserLaunch = class UserLaunch extends AbstractLaunch {
|
|
613
613
|
constructor(configurationManager, adapterManager, configurationService, preferencesService) {
|
|
614
614
|
super(configurationManager, adapterManager);
|
|
@@ -622,11 +622,7 @@ let UserLaunch = class UserLaunch extends AbstractLaunch {
|
|
|
622
622
|
return this.preferencesService.userSettingsResource;
|
|
623
623
|
}
|
|
624
624
|
get name() {
|
|
625
|
-
return ( localizeWithPath(
|
|
626
|
-
'vs/workbench/contrib/debug/browser/debugConfigurationManager',
|
|
627
|
-
'user settings',
|
|
628
|
-
"user settings"
|
|
629
|
-
));
|
|
625
|
+
return ( localizeWithPath(_moduleId, 4, "user settings"));
|
|
630
626
|
}
|
|
631
627
|
get hidden() {
|
|
632
628
|
return true;
|
|
@@ -642,9 +638,9 @@ let UserLaunch = class UserLaunch extends AbstractLaunch {
|
|
|
642
638
|
});
|
|
643
639
|
}
|
|
644
640
|
};
|
|
645
|
-
UserLaunch = ( __decorate([
|
|
646
|
-
( __param(2, IConfigurationService)),
|
|
647
|
-
( __param(3, IPreferencesService))
|
|
648
|
-
], UserLaunch));
|
|
641
|
+
UserLaunch = ( (__decorate([
|
|
642
|
+
( (__param(2, IConfigurationService))),
|
|
643
|
+
( (__param(3, IPreferencesService)))
|
|
644
|
+
], UserLaunch)));
|
|
649
645
|
|
|
650
646
|
export { ConfigurationManager };
|
|
@@ -8,6 +8,7 @@ import { DEBUG_CONSOLE_QUICK_ACCESS_PREFIX, SELECT_AND_START_ID } from './debugC
|
|
|
8
8
|
import { REPL_VIEW_ID } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
9
9
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
10
10
|
|
|
11
|
+
const _moduleId = "vs/workbench/contrib/debug/browser/debugConsoleQuickAccess";
|
|
11
12
|
let DebugConsoleQuickAccess = class DebugConsoleQuickAccess extends PickerQuickAccessProvider {
|
|
12
13
|
constructor(_debugService, _viewsService, _commandService) {
|
|
13
14
|
super(DEBUG_CONSOLE_QUICK_ACCESS_PREFIX, { canAcceptInBackground: true });
|
|
@@ -26,11 +27,7 @@ let DebugConsoleQuickAccess = class DebugConsoleQuickAccess extends PickerQuickA
|
|
|
26
27
|
if (debugConsolePicks.length > 0) {
|
|
27
28
|
debugConsolePicks.push({ type: 'separator' });
|
|
28
29
|
}
|
|
29
|
-
const createTerminalLabel = ( localizeWithPath(
|
|
30
|
-
'vs/workbench/contrib/debug/browser/debugConsoleQuickAccess',
|
|
31
|
-
"workbench.action.debug.startDebug",
|
|
32
|
-
"Start a New Debug Session"
|
|
33
|
-
));
|
|
30
|
+
const createTerminalLabel = ( localizeWithPath(_moduleId, 0, "Start a New Debug Session"));
|
|
34
31
|
debugConsolePicks.push({
|
|
35
32
|
label: `$(plus) ${createTerminalLabel}`,
|
|
36
33
|
ariaLabel: createTerminalLabel,
|
|
@@ -56,10 +53,10 @@ let DebugConsoleQuickAccess = class DebugConsoleQuickAccess extends PickerQuickA
|
|
|
56
53
|
return undefined;
|
|
57
54
|
}
|
|
58
55
|
};
|
|
59
|
-
DebugConsoleQuickAccess = ( __decorate([
|
|
60
|
-
( __param(0, IDebugService)),
|
|
61
|
-
( __param(1, IViewsService)),
|
|
62
|
-
( __param(2, ICommandService))
|
|
63
|
-
], DebugConsoleQuickAccess));
|
|
56
|
+
DebugConsoleQuickAccess = ( (__decorate([
|
|
57
|
+
( (__param(0, IDebugService))),
|
|
58
|
+
( (__param(1, IViewsService))),
|
|
59
|
+
( (__param(2, ICommandService)))
|
|
60
|
+
], DebugConsoleQuickAccess)));
|
|
64
61
|
|
|
65
62
|
export { DebugConsoleQuickAccess };
|