@codingame/monaco-vscode-debug-service-override 3.2.3 → 4.1.0
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/debug.js +4 -4
- package/package.json +2 -2
- package/external/rollup-plugin-styles/dist/runtime/inject-css.js +0 -3
- package/external/tslib/tslib.es6.js +0 -11
- package/override/vs/platform/dialogs/common/dialogs.js +0 -8
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +0 -73
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +0 -1011
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +0 -970
- package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +0 -347
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +0 -324
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +0 -432
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +0 -1039
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +0 -649
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +0 -64
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +0 -636
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +0 -725
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +0 -398
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +0 -206
- package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +0 -80
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +0 -169
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +0 -1271
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +0 -1305
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +0 -115
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +0 -77
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +0 -307
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +0 -31
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +0 -378
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +0 -267
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +0 -808
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +0 -121
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +0 -141
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +0 -262
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +0 -669
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +0 -709
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +0 -992
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +0 -48
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +0 -348
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +0 -119
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +0 -763
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +0 -501
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +0 -162
- package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +0 -21
- package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +0 -17
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +0 -110
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +0 -62
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +0 -460
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +0 -162
- package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +0 -36
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +0 -148
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +0 -289
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +0 -87
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +0 -64
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +0 -311
- package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +0 -28
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { ContextKeyExpr, IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
3
|
-
|
|
4
|
-
let Breakpoints = class Breakpoints {
|
|
5
|
-
constructor(breakpointContribution, contextKeyService) {
|
|
6
|
-
this.breakpointContribution = breakpointContribution;
|
|
7
|
-
this.contextKeyService = contextKeyService;
|
|
8
|
-
this.breakpointsWhen = typeof breakpointContribution.when === 'string' ? ContextKeyExpr.deserialize(breakpointContribution.when) : undefined;
|
|
9
|
-
}
|
|
10
|
-
get language() {
|
|
11
|
-
return this.breakpointContribution.language;
|
|
12
|
-
}
|
|
13
|
-
get enabled() {
|
|
14
|
-
return !this.breakpointsWhen || this.contextKeyService.contextMatchesRules(this.breakpointsWhen);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
Breakpoints = ( __decorate([
|
|
18
|
-
( __param(1, IContextKeyService))
|
|
19
|
-
], Breakpoints));
|
|
20
|
-
|
|
21
|
-
export { Breakpoints };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
2
|
-
|
|
3
|
-
class DebugCompoundRoot {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.stopped = false;
|
|
6
|
-
this.stopEmitter = ( new Emitter());
|
|
7
|
-
this.onDidSessionStop = this.stopEmitter.event;
|
|
8
|
-
}
|
|
9
|
-
sessionStopped() {
|
|
10
|
-
if (!this.stopped) {
|
|
11
|
-
this.stopped = true;
|
|
12
|
-
this.stopEmitter.fire();
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { DebugCompoundRoot };
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
-
import { getMimeTypes } from 'vscode/vscode/vs/editor/common/services/languagesAssociations';
|
|
4
|
-
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
5
|
-
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
6
|
-
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
7
|
-
import { DEBUG_SCHEME, IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
8
|
-
import { Source } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugSource';
|
|
9
|
-
import { IEditorWorkerService } from 'vscode/vscode/vs/editor/common/services/editorWorker';
|
|
10
|
-
import { EditOperation } from 'vscode/vscode/vs/editor/common/core/editOperation';
|
|
11
|
-
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
12
|
-
import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
|
|
13
|
-
import { PLAINTEXT_LANGUAGE_ID } from 'vscode/vscode/vs/editor/common/languages/modesRegistry';
|
|
14
|
-
import { ErrorNoTelemetry } from 'vscode/vscode/vs/base/common/errors';
|
|
15
|
-
|
|
16
|
-
var DebugContentProvider_1;
|
|
17
|
-
let DebugContentProvider = class DebugContentProvider {
|
|
18
|
-
static { DebugContentProvider_1 = this; }
|
|
19
|
-
constructor(textModelResolverService, debugService, modelService, languageService, editorWorkerService) {
|
|
20
|
-
this.debugService = debugService;
|
|
21
|
-
this.modelService = modelService;
|
|
22
|
-
this.languageService = languageService;
|
|
23
|
-
this.editorWorkerService = editorWorkerService;
|
|
24
|
-
this.pendingUpdates = ( new Map());
|
|
25
|
-
textModelResolverService.registerTextModelContentProvider(DEBUG_SCHEME, this);
|
|
26
|
-
DebugContentProvider_1.INSTANCE = this;
|
|
27
|
-
}
|
|
28
|
-
dispose() {
|
|
29
|
-
this.pendingUpdates.forEach(cancellationSource => cancellationSource.dispose());
|
|
30
|
-
}
|
|
31
|
-
provideTextContent(resource) {
|
|
32
|
-
return this.createOrUpdateContentModel(resource, true);
|
|
33
|
-
}
|
|
34
|
-
static refreshDebugContent(resource) {
|
|
35
|
-
DebugContentProvider_1.INSTANCE?.createOrUpdateContentModel(resource, false);
|
|
36
|
-
}
|
|
37
|
-
createOrUpdateContentModel(resource, createIfNotExists) {
|
|
38
|
-
const model = this.modelService.getModel(resource);
|
|
39
|
-
if (!model && !createIfNotExists) {
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
let session;
|
|
43
|
-
if (resource.query) {
|
|
44
|
-
const data = Source.getEncodedDebugData(resource);
|
|
45
|
-
session = this.debugService.getModel().getSession(data.sessionId);
|
|
46
|
-
}
|
|
47
|
-
if (!session) {
|
|
48
|
-
session = this.debugService.getViewModel().focusedSession;
|
|
49
|
-
}
|
|
50
|
-
if (!session) {
|
|
51
|
-
return Promise.reject(( new ErrorNoTelemetry(( localizeWithPath(
|
|
52
|
-
'vs/workbench/contrib/debug/common/debugContentProvider',
|
|
53
|
-
'unable',
|
|
54
|
-
"Unable to resolve the resource without a debug session"
|
|
55
|
-
)))));
|
|
56
|
-
}
|
|
57
|
-
const createErrModel = (errMsg) => {
|
|
58
|
-
this.debugService.sourceIsNotAvailable(resource);
|
|
59
|
-
const languageSelection = this.languageService.createById(PLAINTEXT_LANGUAGE_ID);
|
|
60
|
-
const message = errMsg
|
|
61
|
-
? ( localizeWithPath(
|
|
62
|
-
'vs/workbench/contrib/debug/common/debugContentProvider',
|
|
63
|
-
'canNotResolveSourceWithError',
|
|
64
|
-
"Could not load source '{0}': {1}.",
|
|
65
|
-
resource.path,
|
|
66
|
-
errMsg
|
|
67
|
-
))
|
|
68
|
-
: ( localizeWithPath(
|
|
69
|
-
'vs/workbench/contrib/debug/common/debugContentProvider',
|
|
70
|
-
'canNotResolveSource',
|
|
71
|
-
"Could not load source '{0}'.",
|
|
72
|
-
resource.path
|
|
73
|
-
));
|
|
74
|
-
return this.modelService.createModel(message, languageSelection, resource);
|
|
75
|
-
};
|
|
76
|
-
return session.loadSource(resource).then(response => {
|
|
77
|
-
if (response && response.body) {
|
|
78
|
-
if (model) {
|
|
79
|
-
const newContent = response.body.content;
|
|
80
|
-
const cancellationSource = this.pendingUpdates.get(model.id);
|
|
81
|
-
cancellationSource?.cancel();
|
|
82
|
-
const myToken = ( new CancellationTokenSource());
|
|
83
|
-
this.pendingUpdates.set(model.id, myToken);
|
|
84
|
-
return this.editorWorkerService.computeMoreMinimalEdits(model.uri, [{ text: newContent, range: model.getFullModelRange() }]).then(edits => {
|
|
85
|
-
this.pendingUpdates.delete(model.id);
|
|
86
|
-
if (!myToken.token.isCancellationRequested && edits && edits.length > 0) {
|
|
87
|
-
model.applyEdits(( edits.map(edit => EditOperation.replace(Range.lift(edit.range), edit.text))));
|
|
88
|
-
}
|
|
89
|
-
return model;
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
const mime = response.body.mimeType || getMimeTypes(resource)[0];
|
|
94
|
-
const languageSelection = this.languageService.createByMimeType(mime);
|
|
95
|
-
return this.modelService.createModel(response.body.content, languageSelection, resource);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
return createErrModel();
|
|
99
|
-
}, (err) => createErrModel(err.message));
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
DebugContentProvider = DebugContentProvider_1 = ( __decorate([
|
|
103
|
-
( __param(0, ITextModelService)),
|
|
104
|
-
( __param(1, IDebugService)),
|
|
105
|
-
( __param(2, IModelService)),
|
|
106
|
-
( __param(3, ILanguageService)),
|
|
107
|
-
( __param(4, IEditorWorkerService))
|
|
108
|
-
], DebugContentProvider));
|
|
109
|
-
|
|
110
|
-
export { DebugContentProvider };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
4
|
-
import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
5
|
-
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
6
|
-
import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
7
|
-
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
8
|
-
|
|
9
|
-
let DebugLifecycle = class DebugLifecycle {
|
|
10
|
-
constructor(lifecycleService, debugService, configurationService, dialogService) {
|
|
11
|
-
this.debugService = debugService;
|
|
12
|
-
this.configurationService = configurationService;
|
|
13
|
-
this.dialogService = dialogService;
|
|
14
|
-
lifecycleService.onBeforeShutdown(async (e) => e.veto(this.shouldVetoShutdown(e.reason), 'veto.debug'));
|
|
15
|
-
}
|
|
16
|
-
shouldVetoShutdown(_reason) {
|
|
17
|
-
const rootSessions = this.debugService.getModel().getSessions().filter(s => s.parentSession === undefined);
|
|
18
|
-
if (rootSessions.length === 0) {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
const shouldConfirmOnExit = this.configurationService.getValue('debug').confirmOnExit;
|
|
22
|
-
if (shouldConfirmOnExit === 'never') {
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
25
|
-
return this.showWindowCloseConfirmation(rootSessions.length);
|
|
26
|
-
}
|
|
27
|
-
async showWindowCloseConfirmation(numSessions) {
|
|
28
|
-
let message;
|
|
29
|
-
if (numSessions === 1) {
|
|
30
|
-
message = ( localizeWithPath(
|
|
31
|
-
'vs/workbench/contrib/debug/common/debugLifecycle',
|
|
32
|
-
'debug.debugSessionCloseConfirmationSingular',
|
|
33
|
-
"There is an active debug session, are you sure you want to stop it?"
|
|
34
|
-
));
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
message = ( localizeWithPath(
|
|
38
|
-
'vs/workbench/contrib/debug/common/debugLifecycle',
|
|
39
|
-
'debug.debugSessionCloseConfirmationPlural',
|
|
40
|
-
"There are active debug sessions, are you sure you want to stop them?"
|
|
41
|
-
));
|
|
42
|
-
}
|
|
43
|
-
const res = await this.dialogService.confirm({
|
|
44
|
-
message,
|
|
45
|
-
type: 'warning',
|
|
46
|
-
primaryButton: ( localizeWithPath(
|
|
47
|
-
'vs/workbench/contrib/debug/common/debugLifecycle',
|
|
48
|
-
{ key: 'debug.stop', comment: ['&& denotes a mnemonic'] },
|
|
49
|
-
"&&Stop Debugging"
|
|
50
|
-
))
|
|
51
|
-
});
|
|
52
|
-
return !res.confirmed;
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
DebugLifecycle = ( __decorate([
|
|
56
|
-
( __param(0, ILifecycleService)),
|
|
57
|
-
( __param(1, IDebugService)),
|
|
58
|
-
( __param(2, IConfigurationService)),
|
|
59
|
-
( __param(3, IDialogService))
|
|
60
|
-
], DebugLifecycle));
|
|
61
|
-
|
|
62
|
-
export { DebugLifecycle };
|
|
@@ -1,460 +0,0 @@
|
|
|
1
|
-
import { ExtensionsRegistry } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
|
|
2
|
-
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
-
import { launchSchemaId } from 'vscode/vscode/vs/workbench/services/configuration/common/configuration';
|
|
4
|
-
import { inputsSchema } from 'vscode/vscode/vs/workbench/services/configurationResolver/common/configurationResolverSchema';
|
|
5
|
-
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
6
|
-
import { Extensions } from 'vscode/vscode/vs/workbench/services/extensionManagement/common/extensionFeatures';
|
|
7
|
-
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
8
|
-
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
9
|
-
|
|
10
|
-
const debuggersExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
11
|
-
extensionPoint: 'debuggers',
|
|
12
|
-
defaultExtensionKind: ['workspace'],
|
|
13
|
-
jsonSchema: {
|
|
14
|
-
description: ( localizeWithPath(
|
|
15
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
16
|
-
'vscode.extension.contributes.debuggers',
|
|
17
|
-
'Contributes debug adapters.'
|
|
18
|
-
)),
|
|
19
|
-
type: 'array',
|
|
20
|
-
defaultSnippets: [{ body: [{ type: '' }] }],
|
|
21
|
-
items: {
|
|
22
|
-
additionalProperties: false,
|
|
23
|
-
type: 'object',
|
|
24
|
-
defaultSnippets: [{ body: { type: '', program: '', runtime: '' } }],
|
|
25
|
-
properties: {
|
|
26
|
-
type: {
|
|
27
|
-
description: ( localizeWithPath(
|
|
28
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
29
|
-
'vscode.extension.contributes.debuggers.type',
|
|
30
|
-
"Unique identifier for this debug adapter."
|
|
31
|
-
)),
|
|
32
|
-
type: 'string'
|
|
33
|
-
},
|
|
34
|
-
label: {
|
|
35
|
-
description: ( localizeWithPath(
|
|
36
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
37
|
-
'vscode.extension.contributes.debuggers.label',
|
|
38
|
-
"Display name for this debug adapter."
|
|
39
|
-
)),
|
|
40
|
-
type: 'string'
|
|
41
|
-
},
|
|
42
|
-
program: {
|
|
43
|
-
description: ( localizeWithPath(
|
|
44
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
45
|
-
'vscode.extension.contributes.debuggers.program',
|
|
46
|
-
"Path to the debug adapter program. Path is either absolute or relative to the extension folder."
|
|
47
|
-
)),
|
|
48
|
-
type: 'string'
|
|
49
|
-
},
|
|
50
|
-
args: {
|
|
51
|
-
description: ( localizeWithPath(
|
|
52
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
53
|
-
'vscode.extension.contributes.debuggers.args',
|
|
54
|
-
"Optional arguments to pass to the adapter."
|
|
55
|
-
)),
|
|
56
|
-
type: 'array'
|
|
57
|
-
},
|
|
58
|
-
runtime: {
|
|
59
|
-
description: ( localizeWithPath(
|
|
60
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
61
|
-
'vscode.extension.contributes.debuggers.runtime',
|
|
62
|
-
"Optional runtime in case the program attribute is not an executable but requires a runtime."
|
|
63
|
-
)),
|
|
64
|
-
type: 'string'
|
|
65
|
-
},
|
|
66
|
-
runtimeArgs: {
|
|
67
|
-
description: ( localizeWithPath(
|
|
68
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
69
|
-
'vscode.extension.contributes.debuggers.runtimeArgs',
|
|
70
|
-
"Optional runtime arguments."
|
|
71
|
-
)),
|
|
72
|
-
type: 'array'
|
|
73
|
-
},
|
|
74
|
-
variables: {
|
|
75
|
-
description: ( localizeWithPath(
|
|
76
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
77
|
-
'vscode.extension.contributes.debuggers.variables',
|
|
78
|
-
"Mapping from interactive variables (e.g. ${action.pickProcess}) in `launch.json` to a command."
|
|
79
|
-
)),
|
|
80
|
-
type: 'object'
|
|
81
|
-
},
|
|
82
|
-
initialConfigurations: {
|
|
83
|
-
description: ( localizeWithPath(
|
|
84
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
85
|
-
'vscode.extension.contributes.debuggers.initialConfigurations',
|
|
86
|
-
"Configurations for generating the initial \'launch.json\'."
|
|
87
|
-
)),
|
|
88
|
-
type: ['array', 'string'],
|
|
89
|
-
},
|
|
90
|
-
languages: {
|
|
91
|
-
description: ( localizeWithPath(
|
|
92
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
93
|
-
'vscode.extension.contributes.debuggers.languages',
|
|
94
|
-
"List of languages for which the debug extension could be considered the \"default debugger\"."
|
|
95
|
-
)),
|
|
96
|
-
type: 'array'
|
|
97
|
-
},
|
|
98
|
-
configurationSnippets: {
|
|
99
|
-
description: ( localizeWithPath(
|
|
100
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
101
|
-
'vscode.extension.contributes.debuggers.configurationSnippets',
|
|
102
|
-
"Snippets for adding new configurations in \'launch.json\'."
|
|
103
|
-
)),
|
|
104
|
-
type: 'array'
|
|
105
|
-
},
|
|
106
|
-
configurationAttributes: {
|
|
107
|
-
description: ( localizeWithPath(
|
|
108
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
109
|
-
'vscode.extension.contributes.debuggers.configurationAttributes',
|
|
110
|
-
"JSON schema configurations for validating \'launch.json\'."
|
|
111
|
-
)),
|
|
112
|
-
type: 'object'
|
|
113
|
-
},
|
|
114
|
-
when: {
|
|
115
|
-
description: ( localizeWithPath(
|
|
116
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
117
|
-
'vscode.extension.contributes.debuggers.when',
|
|
118
|
-
"Condition which must be true to enable this type of debugger. Consider using 'shellExecutionSupported', 'virtualWorkspace', 'resourceScheme' or an extension-defined context key as appropriate for this."
|
|
119
|
-
)),
|
|
120
|
-
type: 'string',
|
|
121
|
-
default: ''
|
|
122
|
-
},
|
|
123
|
-
hiddenWhen: {
|
|
124
|
-
description: ( localizeWithPath(
|
|
125
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
126
|
-
'vscode.extension.contributes.debuggers.hiddenWhen',
|
|
127
|
-
"When this condition is true, this debugger type is hidden from the debugger list, but is still enabled."
|
|
128
|
-
)),
|
|
129
|
-
type: 'string',
|
|
130
|
-
default: ''
|
|
131
|
-
},
|
|
132
|
-
deprecated: {
|
|
133
|
-
description: ( localizeWithPath(
|
|
134
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
135
|
-
'vscode.extension.contributes.debuggers.deprecated',
|
|
136
|
-
"Optional message to mark this debug type as being deprecated."
|
|
137
|
-
)),
|
|
138
|
-
type: 'string',
|
|
139
|
-
default: ''
|
|
140
|
-
},
|
|
141
|
-
windows: {
|
|
142
|
-
description: ( localizeWithPath(
|
|
143
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
144
|
-
'vscode.extension.contributes.debuggers.windows',
|
|
145
|
-
"Windows specific settings."
|
|
146
|
-
)),
|
|
147
|
-
type: 'object',
|
|
148
|
-
properties: {
|
|
149
|
-
runtime: {
|
|
150
|
-
description: ( localizeWithPath(
|
|
151
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
152
|
-
'vscode.extension.contributes.debuggers.windows.runtime',
|
|
153
|
-
"Runtime used for Windows."
|
|
154
|
-
)),
|
|
155
|
-
type: 'string'
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
osx: {
|
|
160
|
-
description: ( localizeWithPath(
|
|
161
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
162
|
-
'vscode.extension.contributes.debuggers.osx',
|
|
163
|
-
"macOS specific settings."
|
|
164
|
-
)),
|
|
165
|
-
type: 'object',
|
|
166
|
-
properties: {
|
|
167
|
-
runtime: {
|
|
168
|
-
description: ( localizeWithPath(
|
|
169
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
170
|
-
'vscode.extension.contributes.debuggers.osx.runtime',
|
|
171
|
-
"Runtime used for macOS."
|
|
172
|
-
)),
|
|
173
|
-
type: 'string'
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
linux: {
|
|
178
|
-
description: ( localizeWithPath(
|
|
179
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
180
|
-
'vscode.extension.contributes.debuggers.linux',
|
|
181
|
-
"Linux specific settings."
|
|
182
|
-
)),
|
|
183
|
-
type: 'object',
|
|
184
|
-
properties: {
|
|
185
|
-
runtime: {
|
|
186
|
-
description: ( localizeWithPath(
|
|
187
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
188
|
-
'vscode.extension.contributes.debuggers.linux.runtime',
|
|
189
|
-
"Runtime used for Linux."
|
|
190
|
-
)),
|
|
191
|
-
type: 'string'
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
strings: {
|
|
196
|
-
description: ( localizeWithPath(
|
|
197
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
198
|
-
'vscode.extension.contributes.debuggers.strings',
|
|
199
|
-
"UI strings contributed by this debug adapter."
|
|
200
|
-
)),
|
|
201
|
-
type: 'object',
|
|
202
|
-
properties: {
|
|
203
|
-
unverifiedBreakpoints: {
|
|
204
|
-
description: ( localizeWithPath(
|
|
205
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
206
|
-
'vscode.extension.contributes.debuggers.strings.unverifiedBreakpoints',
|
|
207
|
-
"When there are unverified breakpoints in a language supported by this debug adapter, this message will appear on the breakpoint hover and in the breakpoints view. Markdown and command links are supported."
|
|
208
|
-
)),
|
|
209
|
-
type: 'string'
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
|
-
const breakpointsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
218
|
-
extensionPoint: 'breakpoints',
|
|
219
|
-
jsonSchema: {
|
|
220
|
-
description: ( localizeWithPath(
|
|
221
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
222
|
-
'vscode.extension.contributes.breakpoints',
|
|
223
|
-
'Contributes breakpoints.'
|
|
224
|
-
)),
|
|
225
|
-
type: 'array',
|
|
226
|
-
defaultSnippets: [{ body: [{ language: '' }] }],
|
|
227
|
-
items: {
|
|
228
|
-
type: 'object',
|
|
229
|
-
additionalProperties: false,
|
|
230
|
-
defaultSnippets: [{ body: { language: '' } }],
|
|
231
|
-
properties: {
|
|
232
|
-
language: {
|
|
233
|
-
description: ( localizeWithPath(
|
|
234
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
235
|
-
'vscode.extension.contributes.breakpoints.language',
|
|
236
|
-
"Allow breakpoints for this language."
|
|
237
|
-
)),
|
|
238
|
-
type: 'string'
|
|
239
|
-
},
|
|
240
|
-
when: {
|
|
241
|
-
description: ( localizeWithPath(
|
|
242
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
243
|
-
'vscode.extension.contributes.breakpoints.when',
|
|
244
|
-
"Condition which must be true to enable breakpoints in this language. Consider matching this to the debugger when clause as appropriate."
|
|
245
|
-
)),
|
|
246
|
-
type: 'string',
|
|
247
|
-
default: ''
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
const presentationSchema = {
|
|
254
|
-
type: 'object',
|
|
255
|
-
description: ( localizeWithPath(
|
|
256
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
257
|
-
'presentation',
|
|
258
|
-
"Presentation options on how to show this configuration in the debug configuration dropdown and the command palette."
|
|
259
|
-
)),
|
|
260
|
-
properties: {
|
|
261
|
-
hidden: {
|
|
262
|
-
type: 'boolean',
|
|
263
|
-
default: false,
|
|
264
|
-
description: ( localizeWithPath(
|
|
265
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
266
|
-
'presentation.hidden',
|
|
267
|
-
"Controls if this configuration should be shown in the configuration dropdown and the command palette."
|
|
268
|
-
))
|
|
269
|
-
},
|
|
270
|
-
group: {
|
|
271
|
-
type: 'string',
|
|
272
|
-
default: '',
|
|
273
|
-
description: ( localizeWithPath(
|
|
274
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
275
|
-
'presentation.group',
|
|
276
|
-
"Group that this configuration belongs to. Used for grouping and sorting in the configuration dropdown and the command palette."
|
|
277
|
-
))
|
|
278
|
-
},
|
|
279
|
-
order: {
|
|
280
|
-
type: 'number',
|
|
281
|
-
default: 1,
|
|
282
|
-
description: ( localizeWithPath(
|
|
283
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
284
|
-
'presentation.order',
|
|
285
|
-
"Order of this configuration within a group. Used for grouping and sorting in the configuration dropdown and the command palette."
|
|
286
|
-
))
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
|
-
default: {
|
|
290
|
-
hidden: false,
|
|
291
|
-
group: '',
|
|
292
|
-
order: 1
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
|
-
const defaultCompound = { name: 'Compound', configurations: [] };
|
|
296
|
-
const launchSchema = {
|
|
297
|
-
id: launchSchemaId,
|
|
298
|
-
type: 'object',
|
|
299
|
-
title: ( localizeWithPath(
|
|
300
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
301
|
-
'app.launch.json.title',
|
|
302
|
-
"Launch"
|
|
303
|
-
)),
|
|
304
|
-
allowTrailingCommas: true,
|
|
305
|
-
allowComments: true,
|
|
306
|
-
required: [],
|
|
307
|
-
default: { version: '0.2.0', configurations: [], compounds: [] },
|
|
308
|
-
properties: {
|
|
309
|
-
version: {
|
|
310
|
-
type: 'string',
|
|
311
|
-
description: ( localizeWithPath(
|
|
312
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
313
|
-
'app.launch.json.version',
|
|
314
|
-
"Version of this file format."
|
|
315
|
-
)),
|
|
316
|
-
default: '0.2.0'
|
|
317
|
-
},
|
|
318
|
-
configurations: {
|
|
319
|
-
type: 'array',
|
|
320
|
-
description: ( localizeWithPath(
|
|
321
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
322
|
-
'app.launch.json.configurations',
|
|
323
|
-
"List of configurations. Add new configurations or edit existing ones by using IntelliSense."
|
|
324
|
-
)),
|
|
325
|
-
items: {
|
|
326
|
-
defaultSnippets: [],
|
|
327
|
-
'type': 'object',
|
|
328
|
-
oneOf: []
|
|
329
|
-
}
|
|
330
|
-
},
|
|
331
|
-
compounds: {
|
|
332
|
-
type: 'array',
|
|
333
|
-
description: ( localizeWithPath(
|
|
334
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
335
|
-
'app.launch.json.compounds',
|
|
336
|
-
"List of compounds. Each compound references multiple configurations which will get launched together."
|
|
337
|
-
)),
|
|
338
|
-
items: {
|
|
339
|
-
type: 'object',
|
|
340
|
-
required: ['name', 'configurations'],
|
|
341
|
-
properties: {
|
|
342
|
-
name: {
|
|
343
|
-
type: 'string',
|
|
344
|
-
description: ( localizeWithPath(
|
|
345
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
346
|
-
'app.launch.json.compound.name',
|
|
347
|
-
"Name of compound. Appears in the launch configuration drop down menu."
|
|
348
|
-
))
|
|
349
|
-
},
|
|
350
|
-
presentation: presentationSchema,
|
|
351
|
-
configurations: {
|
|
352
|
-
type: 'array',
|
|
353
|
-
default: [],
|
|
354
|
-
items: {
|
|
355
|
-
oneOf: [{
|
|
356
|
-
enum: [],
|
|
357
|
-
description: ( localizeWithPath(
|
|
358
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
359
|
-
'useUniqueNames',
|
|
360
|
-
"Please use unique configuration names."
|
|
361
|
-
))
|
|
362
|
-
}, {
|
|
363
|
-
type: 'object',
|
|
364
|
-
required: ['name'],
|
|
365
|
-
properties: {
|
|
366
|
-
name: {
|
|
367
|
-
enum: [],
|
|
368
|
-
description: ( localizeWithPath(
|
|
369
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
370
|
-
'app.launch.json.compound.name',
|
|
371
|
-
"Name of compound. Appears in the launch configuration drop down menu."
|
|
372
|
-
))
|
|
373
|
-
},
|
|
374
|
-
folder: {
|
|
375
|
-
enum: [],
|
|
376
|
-
description: ( localizeWithPath(
|
|
377
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
378
|
-
'app.launch.json.compound.folder',
|
|
379
|
-
"Name of folder in which the compound is located."
|
|
380
|
-
))
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
}]
|
|
384
|
-
},
|
|
385
|
-
description: ( localizeWithPath(
|
|
386
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
387
|
-
'app.launch.json.compounds.configurations',
|
|
388
|
-
"Names of configurations that will be started as part of this compound."
|
|
389
|
-
))
|
|
390
|
-
},
|
|
391
|
-
stopAll: {
|
|
392
|
-
type: 'boolean',
|
|
393
|
-
default: false,
|
|
394
|
-
description: ( localizeWithPath(
|
|
395
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
396
|
-
'app.launch.json.compound.stopAll',
|
|
397
|
-
"Controls whether manually terminating one session will stop all of the compound sessions."
|
|
398
|
-
))
|
|
399
|
-
},
|
|
400
|
-
preLaunchTask: {
|
|
401
|
-
type: 'string',
|
|
402
|
-
default: '',
|
|
403
|
-
description: ( localizeWithPath(
|
|
404
|
-
'vs/workbench/contrib/debug/common/debugSchemas',
|
|
405
|
-
'compoundPrelaunchTask',
|
|
406
|
-
"Task to run before any of the compound configurations start."
|
|
407
|
-
))
|
|
408
|
-
}
|
|
409
|
-
},
|
|
410
|
-
default: defaultCompound
|
|
411
|
-
},
|
|
412
|
-
default: [
|
|
413
|
-
defaultCompound
|
|
414
|
-
]
|
|
415
|
-
},
|
|
416
|
-
inputs: inputsSchema.definitions.inputs
|
|
417
|
-
}
|
|
418
|
-
};
|
|
419
|
-
class DebuggersDataRenderer extends Disposable {
|
|
420
|
-
constructor() {
|
|
421
|
-
super(...arguments);
|
|
422
|
-
this.type = 'table';
|
|
423
|
-
}
|
|
424
|
-
shouldRender(manifest) {
|
|
425
|
-
return !!manifest.contributes?.debuggers;
|
|
426
|
-
}
|
|
427
|
-
render(manifest) {
|
|
428
|
-
const contrib = manifest.contributes?.debuggers || [];
|
|
429
|
-
if (!contrib.length) {
|
|
430
|
-
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
431
|
-
}
|
|
432
|
-
const headers = [
|
|
433
|
-
( localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'debugger name', "Name")),
|
|
434
|
-
( localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'debugger type', "Type")),
|
|
435
|
-
];
|
|
436
|
-
const rows = ( contrib.map(d => {
|
|
437
|
-
return [
|
|
438
|
-
d.label ?? '',
|
|
439
|
-
d.type
|
|
440
|
-
];
|
|
441
|
-
}));
|
|
442
|
-
return {
|
|
443
|
-
data: {
|
|
444
|
-
headers,
|
|
445
|
-
rows
|
|
446
|
-
},
|
|
447
|
-
dispose: () => { }
|
|
448
|
-
};
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
452
|
-
id: 'debuggers',
|
|
453
|
-
label: ( localizeWithPath('vs/workbench/contrib/debug/common/debugSchemas', 'debuggers', "Debuggers")),
|
|
454
|
-
access: {
|
|
455
|
-
canToggle: false
|
|
456
|
-
},
|
|
457
|
-
renderer: ( new SyncDescriptor(DebuggersDataRenderer)),
|
|
458
|
-
});
|
|
459
|
-
|
|
460
|
-
export { breakpointsExtPoint, debuggersExtPoint, launchSchema, presentationSchema };
|