@codingame/monaco-vscode-debug-service-override 11.1.1 → 12.0.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/index.d.ts +2 -1
- package/index.js +27 -1
- package/package.json +42 -8
- package/service-override/tools/debugAssets.d.ts +1 -0
- package/service-override/tools/debugAssets.js +5 -0
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.d.ts +28 -0
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +1 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.d.ts +79 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +24 -22
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +108 -132
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +208 -264
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +46 -40
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +72 -54
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.d.ts +91 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +151 -148
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +10 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +65 -107
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +108 -105
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.d.ts +65 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +49 -37
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +11 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +4 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +24 -22
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.d.ts +160 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +194 -169
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.d.ts +206 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +150 -173
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSettingMigration.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSettingMigration.js +1 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +14 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +76 -68
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +4 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.d.ts +54 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +70 -94
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +59 -84
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +61 -60
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +19 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +7 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +55 -53
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.d.ts +120 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +62 -61
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.d.ts +107 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +148 -155
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +39 -38
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.js +8 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +6 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.d.ts +131 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +42 -40
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +74 -76
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +16 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.d.ts +78 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +74 -75
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +63 -63
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +53 -66
- package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +2 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugAccessibilityAnnouncer.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugAccessibilityAnnouncer.js +3 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +1 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +16 -15
- package/vscode/src/vs/workbench/contrib/debug/common/debugContext.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugContext.js +1 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +11 -10
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +51 -50
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +26 -22
- package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +2 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.d.ts +77 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +1 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +3 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +83 -84
- package/vscode/src/vs/workbench/contrib/debug/common/replAccessibilityAnnouncer.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/debug/common/replAccessibilityAnnouncer.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +5 -4
- package/debug.js +0 -26
- package/tools/debugAssets.js +0 -4
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
4
|
import { observableValue } from 'vscode/vscode/vs/base/common/observableInternal/base';
|
|
4
5
|
import 'vscode/vscode/vs/base/common/arrays';
|
|
@@ -9,10 +10,12 @@ import 'vscode/vscode/vs/base/common/cancellation';
|
|
|
9
10
|
import 'vscode/vscode/vs/base/common/observableInternal/utils';
|
|
10
11
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
11
12
|
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
13
|
+
import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
12
14
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
13
15
|
import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
14
|
-
import { Breakpoint, FunctionBreakpoint, ExceptionBreakpoint, DataBreakpoint, Expression } from '@codingame/monaco-vscode-
|
|
16
|
+
import { Breakpoint, FunctionBreakpoint, ExceptionBreakpoint, DataBreakpoint, Expression } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/debugModel';
|
|
15
17
|
import { ITextFileService } from 'vscode/vscode/vs/workbench/services/textfile/common/textfiles.service';
|
|
18
|
+
import { mapValues } from 'vscode/vscode/vs/base/common/objects';
|
|
16
19
|
|
|
17
20
|
const DEBUG_BREAKPOINTS_KEY = 'debug.breakpoint';
|
|
18
21
|
const DEBUG_FUNCTION_BREAKPOINTS_KEY = 'debug.functionbreakpoint';
|
|
@@ -33,7 +36,7 @@ let DebugStorage = class DebugStorage extends Disposable {
|
|
|
33
36
|
this.exceptionBreakpoints = observableValue(this, this.loadExceptionBreakpoints());
|
|
34
37
|
this.dataBreakpoints = observableValue(this, this.loadDataBreakpoints());
|
|
35
38
|
this.watchExpressions = observableValue(this, this.loadWatchExpressions());
|
|
36
|
-
this._register(storageService.onDidChangeValue(
|
|
39
|
+
this._register(storageService.onDidChangeValue(StorageScope.WORKSPACE, undefined, this._store)(e => {
|
|
37
40
|
if (e.external) {
|
|
38
41
|
switch (e.key) {
|
|
39
42
|
case DEBUG_BREAKPOINTS_KEY:
|
|
@@ -51,15 +54,15 @@ let DebugStorage = class DebugStorage extends Disposable {
|
|
|
51
54
|
}));
|
|
52
55
|
}
|
|
53
56
|
loadDebugUxState() {
|
|
54
|
-
return this.storageService.get(DEBUG_UX_STATE_KEY,
|
|
57
|
+
return this.storageService.get(DEBUG_UX_STATE_KEY, StorageScope.WORKSPACE, 'default');
|
|
55
58
|
}
|
|
56
59
|
storeDebugUxState(value) {
|
|
57
|
-
this.storageService.store(DEBUG_UX_STATE_KEY, value,
|
|
60
|
+
this.storageService.store(DEBUG_UX_STATE_KEY, value, StorageScope.WORKSPACE, StorageTarget.MACHINE);
|
|
58
61
|
}
|
|
59
62
|
loadBreakpoints() {
|
|
60
63
|
let result;
|
|
61
64
|
try {
|
|
62
|
-
result = ( JSON.parse(this.storageService.get(DEBUG_BREAKPOINTS_KEY,
|
|
65
|
+
result = ( JSON.parse(this.storageService.get(DEBUG_BREAKPOINTS_KEY, StorageScope.WORKSPACE, '[]')).map((breakpoint) => {
|
|
63
66
|
breakpoint.uri = URI.revive(breakpoint.uri);
|
|
64
67
|
return ( new Breakpoint(
|
|
65
68
|
breakpoint,
|
|
@@ -76,7 +79,7 @@ let DebugStorage = class DebugStorage extends Disposable {
|
|
|
76
79
|
loadFunctionBreakpoints() {
|
|
77
80
|
let result;
|
|
78
81
|
try {
|
|
79
|
-
result = ( JSON.parse(this.storageService.get(DEBUG_FUNCTION_BREAKPOINTS_KEY,
|
|
82
|
+
result = ( JSON.parse(this.storageService.get(DEBUG_FUNCTION_BREAKPOINTS_KEY, StorageScope.WORKSPACE, '[]')).map((fb) => {
|
|
80
83
|
return ( new FunctionBreakpoint(fb, fb.id));
|
|
81
84
|
}));
|
|
82
85
|
}
|
|
@@ -86,7 +89,7 @@ let DebugStorage = class DebugStorage extends Disposable {
|
|
|
86
89
|
loadExceptionBreakpoints() {
|
|
87
90
|
let result;
|
|
88
91
|
try {
|
|
89
|
-
result = ( JSON.parse(this.storageService.get(DEBUG_EXCEPTION_BREAKPOINTS_KEY,
|
|
92
|
+
result = ( JSON.parse(this.storageService.get(DEBUG_EXCEPTION_BREAKPOINTS_KEY, StorageScope.WORKSPACE, '[]')).map((exBreakpoint) => {
|
|
90
93
|
return ( new ExceptionBreakpoint(exBreakpoint, exBreakpoint.id));
|
|
91
94
|
}));
|
|
92
95
|
}
|
|
@@ -96,7 +99,7 @@ let DebugStorage = class DebugStorage extends Disposable {
|
|
|
96
99
|
loadDataBreakpoints() {
|
|
97
100
|
let result;
|
|
98
101
|
try {
|
|
99
|
-
result = ( JSON.parse(this.storageService.get(DEBUG_DATA_BREAKPOINTS_KEY,
|
|
102
|
+
result = ( JSON.parse(this.storageService.get(DEBUG_DATA_BREAKPOINTS_KEY, StorageScope.WORKSPACE, '[]')).map((dbp) => {
|
|
100
103
|
return ( new DataBreakpoint(dbp, dbp.id));
|
|
101
104
|
}));
|
|
102
105
|
}
|
|
@@ -106,7 +109,7 @@ let DebugStorage = class DebugStorage extends Disposable {
|
|
|
106
109
|
loadWatchExpressions() {
|
|
107
110
|
let result;
|
|
108
111
|
try {
|
|
109
|
-
result = ( JSON.parse(this.storageService.get(DEBUG_WATCH_EXPRESSIONS_KEY,
|
|
112
|
+
result = ( JSON.parse(this.storageService.get(DEBUG_WATCH_EXPRESSIONS_KEY, StorageScope.WORKSPACE, '[]')).map((watchStoredData) => {
|
|
110
113
|
return ( new Expression(watchStoredData.name, watchStoredData.id));
|
|
111
114
|
}));
|
|
112
115
|
}
|
|
@@ -114,47 +117,48 @@ let DebugStorage = class DebugStorage extends Disposable {
|
|
|
114
117
|
return result || [];
|
|
115
118
|
}
|
|
116
119
|
loadChosenEnvironments() {
|
|
117
|
-
|
|
120
|
+
const obj = JSON.parse(this.storageService.get(DEBUG_CHOSEN_ENVIRONMENTS_KEY, StorageScope.WORKSPACE, '{}'));
|
|
121
|
+
return mapValues(obj, (value) => typeof value === 'string' ? { type: value } : value);
|
|
118
122
|
}
|
|
119
123
|
storeChosenEnvironments(environments) {
|
|
120
|
-
this.storageService.store(DEBUG_CHOSEN_ENVIRONMENTS_KEY, JSON.stringify(environments),
|
|
124
|
+
this.storageService.store(DEBUG_CHOSEN_ENVIRONMENTS_KEY, JSON.stringify(environments), StorageScope.WORKSPACE, StorageTarget.MACHINE);
|
|
121
125
|
}
|
|
122
126
|
storeWatchExpressions(watchExpressions) {
|
|
123
127
|
if (watchExpressions.length) {
|
|
124
|
-
this.storageService.store(DEBUG_WATCH_EXPRESSIONS_KEY, JSON.stringify(( watchExpressions.map(we => ({ name: we.name, id: we.getId() })))),
|
|
128
|
+
this.storageService.store(DEBUG_WATCH_EXPRESSIONS_KEY, JSON.stringify(( watchExpressions.map(we => ({ name: we.name, id: we.getId() })))), StorageScope.WORKSPACE, StorageTarget.MACHINE);
|
|
125
129
|
}
|
|
126
130
|
else {
|
|
127
|
-
this.storageService.remove(DEBUG_WATCH_EXPRESSIONS_KEY,
|
|
131
|
+
this.storageService.remove(DEBUG_WATCH_EXPRESSIONS_KEY, StorageScope.WORKSPACE);
|
|
128
132
|
}
|
|
129
133
|
}
|
|
130
134
|
storeBreakpoints(debugModel) {
|
|
131
135
|
const breakpoints = debugModel.getBreakpoints();
|
|
132
136
|
if (breakpoints.length) {
|
|
133
|
-
this.storageService.store(DEBUG_BREAKPOINTS_KEY, JSON.stringify(breakpoints),
|
|
137
|
+
this.storageService.store(DEBUG_BREAKPOINTS_KEY, JSON.stringify(breakpoints), StorageScope.WORKSPACE, StorageTarget.MACHINE);
|
|
134
138
|
}
|
|
135
139
|
else {
|
|
136
|
-
this.storageService.remove(DEBUG_BREAKPOINTS_KEY,
|
|
140
|
+
this.storageService.remove(DEBUG_BREAKPOINTS_KEY, StorageScope.WORKSPACE);
|
|
137
141
|
}
|
|
138
142
|
const functionBreakpoints = debugModel.getFunctionBreakpoints();
|
|
139
143
|
if (functionBreakpoints.length) {
|
|
140
|
-
this.storageService.store(DEBUG_FUNCTION_BREAKPOINTS_KEY, JSON.stringify(functionBreakpoints),
|
|
144
|
+
this.storageService.store(DEBUG_FUNCTION_BREAKPOINTS_KEY, JSON.stringify(functionBreakpoints), StorageScope.WORKSPACE, StorageTarget.MACHINE);
|
|
141
145
|
}
|
|
142
146
|
else {
|
|
143
|
-
this.storageService.remove(DEBUG_FUNCTION_BREAKPOINTS_KEY,
|
|
147
|
+
this.storageService.remove(DEBUG_FUNCTION_BREAKPOINTS_KEY, StorageScope.WORKSPACE);
|
|
144
148
|
}
|
|
145
149
|
const dataBreakpoints = debugModel.getDataBreakpoints().filter(dbp => dbp.canPersist);
|
|
146
150
|
if (dataBreakpoints.length) {
|
|
147
|
-
this.storageService.store(DEBUG_DATA_BREAKPOINTS_KEY, JSON.stringify(dataBreakpoints),
|
|
151
|
+
this.storageService.store(DEBUG_DATA_BREAKPOINTS_KEY, JSON.stringify(dataBreakpoints), StorageScope.WORKSPACE, StorageTarget.MACHINE);
|
|
148
152
|
}
|
|
149
153
|
else {
|
|
150
|
-
this.storageService.remove(DEBUG_DATA_BREAKPOINTS_KEY,
|
|
154
|
+
this.storageService.remove(DEBUG_DATA_BREAKPOINTS_KEY, StorageScope.WORKSPACE);
|
|
151
155
|
}
|
|
152
156
|
const exceptionBreakpoints = debugModel.getExceptionBreakpoints();
|
|
153
157
|
if (exceptionBreakpoints.length) {
|
|
154
|
-
this.storageService.store(DEBUG_EXCEPTION_BREAKPOINTS_KEY, JSON.stringify(exceptionBreakpoints),
|
|
158
|
+
this.storageService.store(DEBUG_EXCEPTION_BREAKPOINTS_KEY, JSON.stringify(exceptionBreakpoints), StorageScope.WORKSPACE, StorageTarget.MACHINE);
|
|
155
159
|
}
|
|
156
160
|
else {
|
|
157
|
-
this.storageService.remove(DEBUG_EXCEPTION_BREAKPOINTS_KEY,
|
|
161
|
+
this.storageService.remove(DEBUG_EXCEPTION_BREAKPOINTS_KEY, StorageScope.WORKSPACE);
|
|
158
162
|
}
|
|
159
163
|
}
|
|
160
164
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IDebugModel, IDebugSession, AdapterEndEvent } from "vscode/vscode/vs/workbench/contrib/debug/common/debug";
|
|
2
|
+
import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
3
|
+
import { Debugger } from "./debugger.js";
|
|
4
|
+
export declare class DebugTelemetry {
|
|
5
|
+
private readonly model;
|
|
6
|
+
private readonly telemetryService;
|
|
7
|
+
constructor(model: IDebugModel, telemetryService: ITelemetryService);
|
|
8
|
+
logDebugSessionStart(dbgr: Debugger, launchJsonExists: boolean): void;
|
|
9
|
+
logDebugSessionStop(session: IDebugSession, adapterExitEvent: AdapterEndEvent): void;
|
|
10
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
3
4
|
|
|
4
5
|
let DebugTelemetry = class DebugTelemetry {
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
2
|
+
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
3
|
+
import { IDebugSession, IExpression, IExpressionContainer, IStackFrame, IThread, IViewModel } from "vscode/vscode/vs/workbench/contrib/debug/common/debug";
|
|
4
|
+
export declare class ViewModel implements IViewModel {
|
|
5
|
+
private contextKeyService;
|
|
6
|
+
firstSessionStart: boolean;
|
|
7
|
+
private _focusedStackFrame;
|
|
8
|
+
private _focusedSession;
|
|
9
|
+
private _focusedThread;
|
|
10
|
+
private selectedExpression;
|
|
11
|
+
private readonly _onDidFocusSession;
|
|
12
|
+
private readonly _onDidFocusThread;
|
|
13
|
+
private readonly _onDidFocusStackFrame;
|
|
14
|
+
private readonly _onDidSelectExpression;
|
|
15
|
+
private readonly _onDidEvaluateLazyExpression;
|
|
16
|
+
private readonly _onWillUpdateViews;
|
|
17
|
+
private readonly _onDidChangeVisualization;
|
|
18
|
+
private readonly visualized;
|
|
19
|
+
private readonly preferredVisualizers;
|
|
20
|
+
private expressionSelectedContextKey;
|
|
21
|
+
private loadedScriptsSupportedContextKey;
|
|
22
|
+
private stepBackSupportedContextKey;
|
|
23
|
+
private focusedSessionIsAttach;
|
|
24
|
+
private focusedSessionIsNoDebug;
|
|
25
|
+
private restartFrameSupportedContextKey;
|
|
26
|
+
private stepIntoTargetsSupported;
|
|
27
|
+
private jumpToCursorSupported;
|
|
28
|
+
private setVariableSupported;
|
|
29
|
+
private setDataBreakpointAtByteSupported;
|
|
30
|
+
private setExpressionSupported;
|
|
31
|
+
private multiSessionDebug;
|
|
32
|
+
private terminateDebuggeeSupported;
|
|
33
|
+
private suspendDebuggeeSupported;
|
|
34
|
+
private disassembleRequestSupported;
|
|
35
|
+
private focusedStackFrameHasInstructionPointerReference;
|
|
36
|
+
constructor(contextKeyService: IContextKeyService);
|
|
37
|
+
getId(): string;
|
|
38
|
+
get focusedSession(): IDebugSession | undefined;
|
|
39
|
+
get focusedThread(): IThread | undefined;
|
|
40
|
+
get focusedStackFrame(): IStackFrame | undefined;
|
|
41
|
+
setFocus(stackFrame: IStackFrame | undefined, thread: IThread | undefined, session: IDebugSession | undefined, explicit: boolean): void;
|
|
42
|
+
get onDidFocusSession(): Event<IDebugSession | undefined>;
|
|
43
|
+
get onDidFocusThread(): Event<{
|
|
44
|
+
thread: IThread | undefined;
|
|
45
|
+
explicit: boolean;
|
|
46
|
+
session: IDebugSession | undefined;
|
|
47
|
+
}>;
|
|
48
|
+
get onDidFocusStackFrame(): Event<{
|
|
49
|
+
stackFrame: IStackFrame | undefined;
|
|
50
|
+
explicit: boolean;
|
|
51
|
+
session: IDebugSession | undefined;
|
|
52
|
+
}>;
|
|
53
|
+
get onDidChangeVisualization(): Event<{
|
|
54
|
+
original: IExpression;
|
|
55
|
+
replacement: IExpression;
|
|
56
|
+
}>;
|
|
57
|
+
getSelectedExpression(): {
|
|
58
|
+
expression: IExpression;
|
|
59
|
+
settingWatch: boolean;
|
|
60
|
+
} | undefined;
|
|
61
|
+
setSelectedExpression(expression: IExpression | undefined, settingWatch: boolean): void;
|
|
62
|
+
get onDidSelectExpression(): Event<{
|
|
63
|
+
expression: IExpression;
|
|
64
|
+
settingWatch: boolean;
|
|
65
|
+
} | undefined>;
|
|
66
|
+
get onDidEvaluateLazyExpression(): Event<IExpressionContainer>;
|
|
67
|
+
updateViews(): void;
|
|
68
|
+
get onWillUpdateViews(): Event<void>;
|
|
69
|
+
isMultiSessionView(): boolean;
|
|
70
|
+
setMultiSessionView(isMultiSessionView: boolean): void;
|
|
71
|
+
setVisualizedExpression(original: IExpression, visualized: IExpression & {
|
|
72
|
+
treeId: string;
|
|
73
|
+
} | undefined): void;
|
|
74
|
+
getVisualizedExpression(expression: IExpression): IExpression | string | undefined;
|
|
75
|
+
evaluateLazyExpression(expression: IExpressionContainer): Promise<void>;
|
|
76
|
+
private getPreferredVisualizedKey;
|
|
77
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
2
3
|
import { CONTEXT_EXPRESSION_SELECTED, CONTEXT_LOADED_SCRIPTS_SUPPORTED, CONTEXT_STEP_BACK_SUPPORTED, CONTEXT_FOCUSED_SESSION_IS_ATTACH, CONTEXT_FOCUSED_SESSION_IS_NO_DEBUG, CONTEXT_RESTART_FRAME_SUPPORTED, CONTEXT_STEP_INTO_TARGETS_SUPPORTED, CONTEXT_JUMP_TO_CURSOR_SUPPORTED, CONTEXT_SET_VARIABLE_SUPPORTED, CONTEXT_SET_DATA_BREAKPOINT_BYTES_SUPPORTED, CONTEXT_SET_EXPRESSION_SUPPORTED, CONTEXT_MULTI_SESSION_DEBUG, CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED, CONTEXT_SUSPEND_DEBUGGEE_SUPPORTED, CONTEXT_DISASSEMBLE_REQUEST_SUPPORTED, CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
3
4
|
import { isSessionAttach } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugUtils';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
2
|
+
import { IDisposable, IReference } from "vscode/vscode/vs/base/common/lifecycle";
|
|
3
|
+
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
4
|
+
import { ExtensionIdentifier } from "vscode/vscode/vs/platform/extensions/common/extensions";
|
|
5
|
+
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
6
|
+
import { MainThreadDebugVisualization, IDebugVisualization, IDebugVisualizationContext, IExpression, IDebugVisualizationTreeItem, IDebugSession } from "vscode/vscode/vs/workbench/contrib/debug/common/debug";
|
|
7
|
+
import { VisualizedExpression } from "@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/debugModel";
|
|
8
|
+
import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
9
|
+
import { IDebugVisualizerService } from "vscode/vscode/vs/workbench/contrib/debug/common/debugVisualizers.service";
|
|
10
|
+
export interface VisualizerHandle {
|
|
11
|
+
id: string;
|
|
12
|
+
extensionId: ExtensionIdentifier;
|
|
13
|
+
provideDebugVisualizers(context: IDebugVisualizationContext, token: CancellationToken): Promise<IDebugVisualization[]>;
|
|
14
|
+
resolveDebugVisualizer(viz: IDebugVisualization, token: CancellationToken): Promise<MainThreadDebugVisualization>;
|
|
15
|
+
executeDebugVisualizerCommand(id: number): Promise<void>;
|
|
16
|
+
disposeDebugVisualizers(ids: number[]): void;
|
|
17
|
+
}
|
|
18
|
+
export interface VisualizerTreeHandle {
|
|
19
|
+
getTreeItem(element: IDebugVisualizationContext): Promise<IDebugVisualizationTreeItem | undefined>;
|
|
20
|
+
getChildren(element: number): Promise<IDebugVisualizationTreeItem[]>;
|
|
21
|
+
disposeItem(element: number): void;
|
|
22
|
+
editItem?(item: number, value: string): Promise<IDebugVisualizationTreeItem | undefined>;
|
|
23
|
+
}
|
|
24
|
+
export declare class DebugVisualizer {
|
|
25
|
+
private readonly handle;
|
|
26
|
+
private readonly viz;
|
|
27
|
+
get name(): string;
|
|
28
|
+
get iconPath(): {
|
|
29
|
+
light?: import("vscode/vscode/vs/base/common/uri").URI | undefined;
|
|
30
|
+
dark: import("vscode/vscode/vs/base/common/uri").URI;
|
|
31
|
+
} | undefined;
|
|
32
|
+
get iconClass(): string | undefined;
|
|
33
|
+
constructor(handle: VisualizerHandle, viz: IDebugVisualization);
|
|
34
|
+
resolve(token: CancellationToken): Promise<MainThreadDebugVisualization>;
|
|
35
|
+
execute(): Promise<void>;
|
|
36
|
+
}
|
|
37
|
+
export declare class DebugVisualizerService implements IDebugVisualizerService {
|
|
38
|
+
private readonly contextKeyService;
|
|
39
|
+
private readonly extensionService;
|
|
40
|
+
private readonly logService;
|
|
41
|
+
readonly _serviceBrand: undefined;
|
|
42
|
+
private readonly handles;
|
|
43
|
+
private readonly trees;
|
|
44
|
+
private readonly didActivate;
|
|
45
|
+
private registrations;
|
|
46
|
+
constructor(contextKeyService: IContextKeyService, extensionService: IExtensionService, logService: ILogService);
|
|
47
|
+
getApplicableFor(variable: IExpression, token: CancellationToken): Promise<IReference<DebugVisualizer[]>>;
|
|
48
|
+
register(handle: VisualizerHandle): IDisposable;
|
|
49
|
+
registerTree(treeId: string, handle: VisualizerTreeHandle): IDisposable;
|
|
50
|
+
getVisualizedNodeFor(treeId: string, expr: IExpression): Promise<VisualizedExpression | undefined>;
|
|
51
|
+
getVisualizedChildren(session: IDebugSession | undefined, treeId: string, treeElementId: number): Promise<IExpression[]>;
|
|
52
|
+
editTreeItem(treeId: string, treeItem: IDebugVisualizationTreeItem, newValue: string): Promise<void>;
|
|
53
|
+
private getVariableContext;
|
|
54
|
+
private processExtensionRegistration;
|
|
55
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
4
|
import { isDefined } from 'vscode/vscode/vs/base/common/types';
|
|
4
5
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
@@ -7,7 +8,7 @@ import { ExtensionIdentifier } from 'vscode/vscode/vs/platform/extensions/common
|
|
|
7
8
|
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
8
9
|
import { CONTEXT_VARIABLE_NAME, CONTEXT_VARIABLE_VALUE, CONTEXT_VARIABLE_TYPE } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
9
10
|
import { getContextForVariable } from './debugContext.js';
|
|
10
|
-
import { Variable, VisualizedExpression, Scope } from '@codingame/monaco-vscode-
|
|
11
|
+
import { Variable, VisualizedExpression, Scope } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/debugModel';
|
|
11
12
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
12
13
|
import { ExtensionsRegistry } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
|
|
13
14
|
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { IJSONSchema, IJSONSchemaMap, IJSONSchemaSnippet } from "vscode/vscode/vs/base/common/jsonSchema";
|
|
2
|
+
import { IWorkspaceFolder } from "vscode/vscode/vs/platform/workspace/common/workspace";
|
|
3
|
+
import { IConfig, IDebuggerContribution, IDebugAdapter, IDebugger, IDebugSession, IAdapterManager, IDebuggerMetadata } from "vscode/vscode/vs/workbench/contrib/debug/common/debug";
|
|
4
|
+
import { IDebugService } from "vscode/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
5
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
6
|
+
import { IConfigurationResolverService } from "vscode/vscode/vs/workbench/services/configurationResolver/common/configurationResolver.service";
|
|
7
|
+
import { ITextResourcePropertiesService } from "vscode/vscode/vs/editor/common/services/textResourceConfiguration";
|
|
8
|
+
import { IExtensionDescription } from "vscode/vscode/vs/platform/extensions/common/extensions";
|
|
9
|
+
import { ITelemetryEndpoint } from "vscode/vscode/vs/platform/telemetry/common/telemetry";
|
|
10
|
+
import { IWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
11
|
+
import { ContextKeyExpression } from "vscode/vscode/vs/platform/contextkey/common/contextkey";
|
|
12
|
+
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
13
|
+
export declare class Debugger implements IDebugger, IDebuggerMetadata {
|
|
14
|
+
private adapterManager;
|
|
15
|
+
private readonly configurationService;
|
|
16
|
+
private readonly resourcePropertiesService;
|
|
17
|
+
private readonly configurationResolverService;
|
|
18
|
+
private readonly environmentService;
|
|
19
|
+
private readonly debugService;
|
|
20
|
+
private readonly contextKeyService;
|
|
21
|
+
private debuggerContribution;
|
|
22
|
+
private mergedExtensionDescriptions;
|
|
23
|
+
private mainExtensionDescription;
|
|
24
|
+
private debuggerWhen;
|
|
25
|
+
private debuggerHiddenWhen;
|
|
26
|
+
constructor(adapterManager: IAdapterManager, dbgContribution: IDebuggerContribution, extensionDescription: IExtensionDescription, configurationService: IConfigurationService, resourcePropertiesService: ITextResourcePropertiesService, configurationResolverService: IConfigurationResolverService, environmentService: IWorkbenchEnvironmentService, debugService: IDebugService, contextKeyService: IContextKeyService);
|
|
27
|
+
merge(otherDebuggerContribution: IDebuggerContribution, extensionDescription: IExtensionDescription): void;
|
|
28
|
+
startDebugging(configuration: IConfig, parentSessionId: string): Promise<boolean>;
|
|
29
|
+
createDebugAdapter(session: IDebugSession): Promise<IDebugAdapter>;
|
|
30
|
+
substituteVariables(folder: IWorkspaceFolder | undefined, config: IConfig): Promise<IConfig>;
|
|
31
|
+
runInTerminal(args: DebugProtocol.RunInTerminalRequestArguments, sessionId: string): Promise<number | undefined>;
|
|
32
|
+
get label(): string;
|
|
33
|
+
get type(): string;
|
|
34
|
+
get variables(): {
|
|
35
|
+
[key: string]: string;
|
|
36
|
+
} | undefined;
|
|
37
|
+
get configurationSnippets(): IJSONSchemaSnippet[] | undefined;
|
|
38
|
+
get languages(): string[] | undefined;
|
|
39
|
+
get when(): ContextKeyExpression | undefined;
|
|
40
|
+
get hiddenWhen(): ContextKeyExpression | undefined;
|
|
41
|
+
get enabled(): boolean;
|
|
42
|
+
get isHiddenFromDropdown(): boolean;
|
|
43
|
+
get strings(): any;
|
|
44
|
+
interestedInLanguage(languageId: string): boolean;
|
|
45
|
+
hasInitialConfiguration(): boolean;
|
|
46
|
+
hasDynamicConfigurationProviders(): boolean;
|
|
47
|
+
hasConfigurationProvider(): boolean;
|
|
48
|
+
getInitialConfigurationContent(initialConfigs?: IConfig[]): Promise<string>;
|
|
49
|
+
getMainExtensionDescriptor(): IExtensionDescription;
|
|
50
|
+
getCustomTelemetryEndpoint(): ITelemetryEndpoint | undefined;
|
|
51
|
+
getSchemaAttributes(definitions: IJSONSchemaMap): IJSONSchema[] | null;
|
|
52
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
3
4
|
import { isObject } from 'vscode/vscode/vs/base/common/types';
|
|
4
5
|
import { DebugConfigurationProviderTriggerKind, debuggerDisabledMessage } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
5
6
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
6
7
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
7
8
|
import { IConfigurationResolverService } from 'vscode/vscode/vs/workbench/services/configurationResolver/common/configurationResolver.service';
|
|
8
|
-
import { applyDeprecatedVariableMessage } from 'vscode/vscode/vs/workbench/services/configurationResolver/common/configurationResolverUtils';
|
|
9
|
+
import { applyDeprecatedVariableMessage } from '@codingame/monaco-vscode-2448342b-297f-5823-9f41-f18eef0f6ee8-common/vscode/vs/workbench/services/configurationResolver/common/configurationResolverUtils';
|
|
9
10
|
import { ITextResourcePropertiesService } from 'vscode/vscode/vs/editor/common/services/textResourceConfiguration';
|
|
10
11
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
11
12
|
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
@@ -37,7 +38,7 @@ let Debugger = class Debugger {
|
|
|
37
38
|
return source;
|
|
38
39
|
}
|
|
39
40
|
if (isObject(source)) {
|
|
40
|
-
(
|
|
41
|
+
( Object.keys(source)).forEach(key => {
|
|
41
42
|
if (key !== '__proto__') {
|
|
42
43
|
if (isObject(destination[key]) && isObject(source[key])) {
|
|
43
44
|
mixin(destination[key], source[key], overwrite, level + 1);
|
|
@@ -78,7 +79,7 @@ let Debugger = class Debugger {
|
|
|
78
79
|
if (da) {
|
|
79
80
|
return Promise.resolve(da);
|
|
80
81
|
}
|
|
81
|
-
throw (
|
|
82
|
+
throw ( new Error(( localize(5624, "Cannot find debug adapter for type '{0}'.", this.type))));
|
|
82
83
|
}
|
|
83
84
|
async substituteVariables(folder, config) {
|
|
84
85
|
const substitutedConfig = await this.adapterManager.substituteVariables(this.type, folder, config);
|
|
@@ -137,12 +138,12 @@ let Debugger = class Debugger {
|
|
|
137
138
|
if (initialConfigs) {
|
|
138
139
|
initialConfigurations = initialConfigurations.concat(initialConfigs);
|
|
139
140
|
}
|
|
140
|
-
const eol = this.resourcePropertiesService.getEOL((
|
|
141
|
-
const configs = (
|
|
142
|
-
const comment1 = ( localize(
|
|
143
|
-
const comment2 = ( localize(
|
|
141
|
+
const eol = this.resourcePropertiesService.getEOL(( URI.from({ scheme: Schemas.untitled, path: '1' }))) === '\r\n' ? '\r\n' : '\n';
|
|
142
|
+
const configs = ( JSON.stringify(initialConfigurations, null, '\t').split('\n').map(line => '\t' + line)).join(eol).trim();
|
|
143
|
+
const comment1 = ( localize(5625, "Use IntelliSense to learn about possible attributes."));
|
|
144
|
+
const comment2 = ( localize(5626, "Hover to view descriptions of existing attributes."));
|
|
144
145
|
const comment3 = ( localize(
|
|
145
|
-
|
|
146
|
+
5627,
|
|
146
147
|
"For more information, visit: {0}",
|
|
147
148
|
'https://go.microsoft.com/fwlink/?linkid=830387'
|
|
148
149
|
));
|
|
@@ -157,7 +158,7 @@ let Debugger = class Debugger {
|
|
|
157
158
|
].join(eol);
|
|
158
159
|
const editorConfig = this.configurationService.getValue();
|
|
159
160
|
if (editorConfig.editor && editorConfig.editor.insertSpaces) {
|
|
160
|
-
content = content.replace((
|
|
161
|
+
content = content.replace(( new RegExp('\t', 'g')), ' '.repeat(editorConfig.editor.tabSize));
|
|
161
162
|
}
|
|
162
163
|
return Promise.resolve(content);
|
|
163
164
|
}
|
|
@@ -180,83 +181,81 @@ let Debugger = class Debugger {
|
|
|
180
181
|
if (!this.debuggerContribution.configurationAttributes) {
|
|
181
182
|
return null;
|
|
182
183
|
}
|
|
183
|
-
return (
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
properties
|
|
218
|
-
$ref: `#/definitions/common/properties/${prop}`
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
( (Object.keys(properties))).forEach(name => {
|
|
222
|
-
applyDeprecatedVariableMessage(properties[name]);
|
|
223
|
-
});
|
|
224
|
-
definitions[definitionId] = { ...attributes };
|
|
225
|
-
definitions[platformSpecificDefinitionId] = {
|
|
226
|
-
type: 'object',
|
|
227
|
-
additionalProperties: false,
|
|
228
|
-
properties: filter(properties, key => key !== 'type' && key !== 'request' && key !== 'name')
|
|
184
|
+
return (( Object.keys(this.debuggerContribution.configurationAttributes)).map(request => {
|
|
185
|
+
const definitionId = `${this.type}:${request}`;
|
|
186
|
+
const platformSpecificDefinitionId = `${this.type}:${request}:platform`;
|
|
187
|
+
const attributes = this.debuggerContribution.configurationAttributes[request];
|
|
188
|
+
const defaultRequired = ['name', 'type', 'request'];
|
|
189
|
+
attributes.required = attributes.required && attributes.required.length ? defaultRequired.concat(attributes.required) : defaultRequired;
|
|
190
|
+
attributes.additionalProperties = false;
|
|
191
|
+
attributes.type = 'object';
|
|
192
|
+
if (!attributes.properties) {
|
|
193
|
+
attributes.properties = {};
|
|
194
|
+
}
|
|
195
|
+
const properties = attributes.properties;
|
|
196
|
+
properties['type'] = {
|
|
197
|
+
enum: [this.type],
|
|
198
|
+
enumDescriptions: [this.label],
|
|
199
|
+
description: ( localize(5628, "Type of configuration.")),
|
|
200
|
+
pattern: '^(?!node2)',
|
|
201
|
+
deprecationMessage: this.debuggerContribution.deprecated || (this.enabled ? undefined : debuggerDisabledMessage(this.type)),
|
|
202
|
+
doNotSuggest: !!this.debuggerContribution.deprecated,
|
|
203
|
+
errorMessage: ( localize(
|
|
204
|
+
5629,
|
|
205
|
+
"The debug type is not recognized. Make sure that you have a corresponding debug extension installed and that it is enabled."
|
|
206
|
+
)),
|
|
207
|
+
patternErrorMessage: ( localize(
|
|
208
|
+
5630,
|
|
209
|
+
"\"node2\" is no longer supported, use \"node\" instead and set the \"protocol\" attribute to \"inspector\"."
|
|
210
|
+
))
|
|
211
|
+
};
|
|
212
|
+
properties['request'] = {
|
|
213
|
+
enum: [request],
|
|
214
|
+
description: ( localize(5631, "Request type of configuration. Can be \"launch\" or \"attach\".")),
|
|
215
|
+
};
|
|
216
|
+
for (const prop in definitions['common'].properties) {
|
|
217
|
+
properties[prop] = {
|
|
218
|
+
$ref: `#/definitions/common/properties/${prop}`
|
|
229
219
|
};
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}
|
|
220
|
+
}
|
|
221
|
+
( Object.keys(properties)).forEach(name => {
|
|
222
|
+
applyDeprecatedVariableMessage(properties[name]);
|
|
223
|
+
});
|
|
224
|
+
definitions[definitionId] = { ...attributes };
|
|
225
|
+
definitions[platformSpecificDefinitionId] = {
|
|
226
|
+
type: 'object',
|
|
227
|
+
additionalProperties: false,
|
|
228
|
+
properties: filter(properties, key => key !== 'type' && key !== 'request' && key !== 'name')
|
|
229
|
+
};
|
|
230
|
+
const attributesCopy = { ...attributes };
|
|
231
|
+
attributesCopy.properties = {
|
|
232
|
+
...properties,
|
|
233
|
+
...{
|
|
234
|
+
windows: {
|
|
235
|
+
$ref: `#/definitions/${platformSpecificDefinitionId}`,
|
|
236
|
+
description: ( localize(5632, "Windows specific launch configuration attributes.")),
|
|
237
|
+
},
|
|
238
|
+
osx: {
|
|
239
|
+
$ref: `#/definitions/${platformSpecificDefinitionId}`,
|
|
240
|
+
description: ( localize(5633, "OS X specific launch configuration attributes.")),
|
|
241
|
+
},
|
|
242
|
+
linux: {
|
|
243
|
+
$ref: `#/definitions/${platformSpecificDefinitionId}`,
|
|
244
|
+
description: ( localize(5634, "Linux specific launch configuration attributes.")),
|
|
246
245
|
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
);
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
return attributesCopy;
|
|
249
|
+
}));
|
|
251
250
|
}
|
|
252
251
|
};
|
|
253
|
-
Debugger = (
|
|
254
|
-
(
|
|
255
|
-
(
|
|
256
|
-
(
|
|
257
|
-
(
|
|
258
|
-
(
|
|
259
|
-
(
|
|
260
|
-
], Debugger))
|
|
252
|
+
Debugger = ( __decorate([
|
|
253
|
+
( __param(3, IConfigurationService)),
|
|
254
|
+
( __param(4, ITextResourcePropertiesService)),
|
|
255
|
+
( __param(5, IConfigurationResolverService)),
|
|
256
|
+
( __param(6, IWorkbenchEnvironmentService)),
|
|
257
|
+
( __param(7, IDebugService)),
|
|
258
|
+
( __param(8, IContextKeyService))
|
|
259
|
+
], Debugger));
|
|
261
260
|
|
|
262
261
|
export { Debugger };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IAccessibilityService } from "vscode/vscode/vs/platform/accessibility/common/accessibility.service";
|
|
3
|
+
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
4
|
+
import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
|
|
5
|
+
import { IDebugService } from "vscode/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
6
|
+
export declare class ReplAccessibilityAnnouncer extends Disposable implements IWorkbenchContribution {
|
|
7
|
+
static ID: string;
|
|
8
|
+
constructor(debugService: IDebugService, accessibilityService: IAccessibilityService, logService: ILogService);
|
|
9
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
4
|
import { IAccessibilityService } from 'vscode/vscode/vs/platform/accessibility/common/accessibility.service';
|
|
4
5
|
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|