@codingame/monaco-vscode-debug-service-override 11.1.2 → 12.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
+
import { ListDragOverEffectPosition, ListDragOverEffectType } from 'vscode/vscode/vs/base/browser/ui/list/list';
|
|
4
|
+
import { ElementsDragAndDropData, ListViewTargetSector } from 'vscode/vscode/vs/base/browser/ui/list/listView';
|
|
3
5
|
import { RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
|
|
4
6
|
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
5
7
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
6
|
-
import {
|
|
8
|
+
import { getFlatContextMenuActions, getContextMenuActions } from 'vscode/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
|
|
7
9
|
import { MenuId, registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
8
10
|
import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions.service';
|
|
9
11
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
@@ -17,14 +19,14 @@ import { WorkbenchAsyncDataTree } from 'vscode/vscode/vs/platform/list/browser/l
|
|
|
17
19
|
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.service';
|
|
18
20
|
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
19
21
|
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
|
|
20
|
-
import { ViewPane, ViewAction } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
22
|
+
import { ViewPane, ViewAction } from '@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
21
23
|
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
|
|
22
24
|
import { CONTEXT_WATCH_EXPRESSIONS_EXIST, CONTEXT_VARIABLE_IS_READONLY, CONTEXT_WATCH_ITEM_TYPE, CONTEXT_WATCH_EXPRESSIONS_FOCUSED, CONTEXT_CAN_VIEW_MEMORY, WATCH_VIEW_ID } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
23
25
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
24
|
-
import { Expression, Variable, VisualizedExpression } from '@codingame/monaco-vscode-
|
|
26
|
+
import { Expression, Variable, VisualizedExpression } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/debugModel';
|
|
25
27
|
import { renderViewTree, AbstractExpressionDataSource, AbstractExpressionsRenderer } from './baseDebugView.js';
|
|
26
|
-
import { DebugExpressionRenderer } from '@codingame/monaco-vscode-
|
|
27
|
-
import { watchExpressionsAdd, watchExpressionsRemoveAll } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
28
|
+
import { DebugExpressionRenderer } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugExpressionRenderer';
|
|
29
|
+
import { watchExpressionsAdd, watchExpressionsRemoveAll } from '@codingame/monaco-vscode-fc42f049-7883-579d-bb0b-2aa1010a19a8-common/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
28
30
|
import { VariablesRenderer, VisualizedVariableRenderer } from './variablesView.js';
|
|
29
31
|
|
|
30
32
|
var WatchExpressionsRenderer_1;
|
|
@@ -38,10 +40,10 @@ let WatchExpressionsView = class WatchExpressionsView extends ViewPane {
|
|
|
38
40
|
this.needsRefresh = false;
|
|
39
41
|
this.menu = menuService.createMenu(MenuId.DebugWatchContext, contextKeyService);
|
|
40
42
|
this._register(this.menu);
|
|
41
|
-
this.watchExpressionsUpdatedScheduler = (
|
|
43
|
+
this.watchExpressionsUpdatedScheduler = ( new RunOnceScheduler(() => {
|
|
42
44
|
this.needsRefresh = false;
|
|
43
45
|
this.tree.updateChildren();
|
|
44
|
-
}, 50))
|
|
46
|
+
}, 50));
|
|
45
47
|
this.watchExpressionsExist = CONTEXT_WATCH_EXPRESSIONS_EXIST.bindTo(contextKeyService);
|
|
46
48
|
this.variableReadonly = CONTEXT_VARIABLE_IS_READONLY.bindTo(contextKeyService);
|
|
47
49
|
this.watchExpressionsExist.set(this.debugService.getModel().getWatchExpressions().length > 0);
|
|
@@ -54,12 +56,12 @@ let WatchExpressionsView = class WatchExpressionsView extends ViewPane {
|
|
|
54
56
|
container.classList.add('debug-watch');
|
|
55
57
|
const treeContainer = renderViewTree(container);
|
|
56
58
|
const expressionsRenderer = this.instantiationService.createInstance(WatchExpressionsRenderer, this.expressionRenderer);
|
|
57
|
-
this.tree = this.instantiationService.createInstance(WorkbenchAsyncDataTree, 'WatchExpressions', treeContainer, (
|
|
59
|
+
this.tree = this.instantiationService.createInstance((WorkbenchAsyncDataTree), 'WatchExpressions', treeContainer, ( new WatchExpressionsDelegate()), [
|
|
58
60
|
expressionsRenderer,
|
|
59
61
|
this.instantiationService.createInstance(VariablesRenderer, this.expressionRenderer),
|
|
60
62
|
this.instantiationService.createInstance(VisualizedVariableRenderer, this.expressionRenderer),
|
|
61
63
|
], this.instantiationService.createInstance(WatchExpressionsDataSource), {
|
|
62
|
-
accessibilityProvider: (
|
|
64
|
+
accessibilityProvider: ( new WatchExpressionsAccessibilityProvider()),
|
|
63
65
|
identityProvider: { getId: (element) => element.getId() },
|
|
64
66
|
keyboardNavigationLabelProvider: {
|
|
65
67
|
getKeyboardNavigationLabel: (e) => {
|
|
@@ -69,7 +71,7 @@ let WatchExpressionsView = class WatchExpressionsView extends ViewPane {
|
|
|
69
71
|
return e.name;
|
|
70
72
|
}
|
|
71
73
|
},
|
|
72
|
-
dnd: (
|
|
74
|
+
dnd: ( new WatchExpressionsDragAndDrop(this.debugService)),
|
|
73
75
|
overrideStyles: this.getLocationBasedColors().listOverrideStyles
|
|
74
76
|
});
|
|
75
77
|
this._register(this.tree);
|
|
@@ -165,10 +167,9 @@ let WatchExpressionsView = class WatchExpressionsView extends ViewPane {
|
|
|
165
167
|
const element = e.element;
|
|
166
168
|
const selection = this.tree.getSelection();
|
|
167
169
|
this.watchItemType.set(element instanceof Expression ? 'expression' : element instanceof Variable ? 'variable' : undefined);
|
|
168
|
-
const actions = [];
|
|
169
170
|
const attributes = element instanceof Variable ? element.presentationHint?.attributes : undefined;
|
|
170
171
|
this.variableReadonly.set(!!attributes && attributes.indexOf('readOnly') >= 0 || !!element?.presentationHint?.lazy);
|
|
171
|
-
|
|
172
|
+
const actions = getFlatContextMenuActions(this.menu.getActions({ arg: element, shouldForwardArgs: true }));
|
|
172
173
|
this.contextMenuService.showContextMenu({
|
|
173
174
|
getAnchor: () => e.anchor,
|
|
174
175
|
getActions: () => actions,
|
|
@@ -176,20 +177,20 @@ let WatchExpressionsView = class WatchExpressionsView extends ViewPane {
|
|
|
176
177
|
});
|
|
177
178
|
}
|
|
178
179
|
};
|
|
179
|
-
WatchExpressionsView = (
|
|
180
|
-
(
|
|
181
|
-
(
|
|
182
|
-
(
|
|
183
|
-
(
|
|
184
|
-
(
|
|
185
|
-
(
|
|
186
|
-
(
|
|
187
|
-
(
|
|
188
|
-
(
|
|
189
|
-
(
|
|
190
|
-
(
|
|
191
|
-
(
|
|
192
|
-
], WatchExpressionsView))
|
|
180
|
+
WatchExpressionsView = ( __decorate([
|
|
181
|
+
( __param(1, IContextMenuService)),
|
|
182
|
+
( __param(2, IDebugService)),
|
|
183
|
+
( __param(3, IKeybindingService)),
|
|
184
|
+
( __param(4, IInstantiationService)),
|
|
185
|
+
( __param(5, IViewDescriptorService)),
|
|
186
|
+
( __param(6, IConfigurationService)),
|
|
187
|
+
( __param(7, IContextKeyService)),
|
|
188
|
+
( __param(8, IOpenerService)),
|
|
189
|
+
( __param(9, IThemeService)),
|
|
190
|
+
( __param(10, ITelemetryService)),
|
|
191
|
+
( __param(11, IHoverService)),
|
|
192
|
+
( __param(12, IMenuService))
|
|
193
|
+
], WatchExpressionsView));
|
|
193
194
|
class WatchExpressionsDelegate {
|
|
194
195
|
getHeight(_element) {
|
|
195
196
|
return 22;
|
|
@@ -216,9 +217,9 @@ class WatchExpressionsDataSource extends AbstractExpressionDataSource {
|
|
|
216
217
|
const debugService = element;
|
|
217
218
|
const watchExpressions = debugService.getModel().getWatchExpressions();
|
|
218
219
|
const viewModel = debugService.getViewModel();
|
|
219
|
-
return Promise.all((
|
|
220
|
+
return Promise.all(( watchExpressions.map(we => !!we.name && !useCachedEvaluation
|
|
220
221
|
? we.evaluate(viewModel.focusedSession, viewModel.focusedStackFrame, 'watch').then(() => we)
|
|
221
|
-
: Promise.resolve(we))))
|
|
222
|
+
: Promise.resolve(we))));
|
|
222
223
|
}
|
|
223
224
|
return element.getChildren();
|
|
224
225
|
}
|
|
@@ -282,7 +283,7 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
282
283
|
if (settingValue) {
|
|
283
284
|
return {
|
|
284
285
|
initialValue: expression.value,
|
|
285
|
-
ariaLabel: ( localize(
|
|
286
|
+
ariaLabel: ( localize(5487, "Type new value")),
|
|
286
287
|
onFinish: async (value, success) => {
|
|
287
288
|
if (success && value) {
|
|
288
289
|
const focusedFrame = this.debugService.getViewModel().focusedStackFrame;
|
|
@@ -296,8 +297,8 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
296
297
|
}
|
|
297
298
|
return {
|
|
298
299
|
initialValue: expression.name ? expression.name : '',
|
|
299
|
-
ariaLabel: ( localize(
|
|
300
|
-
placeholder: ( localize(
|
|
300
|
+
ariaLabel: ( localize(5488, "Type watch expression")),
|
|
301
|
+
placeholder: ( localize(5489, "Expression to watch")),
|
|
301
302
|
onFinish: (value, success) => {
|
|
302
303
|
if (success && value) {
|
|
303
304
|
this.debugService.renameWatchExpression(expression.getId(), value);
|
|
@@ -315,21 +316,20 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
315
316
|
const contextKeyService = getContextForWatchExpressionMenu(this.contextKeyService, expression);
|
|
316
317
|
const context = expression;
|
|
317
318
|
const menu = this.menuService.getMenuActions(MenuId.DebugWatchContext, contextKeyService, { arg: context, shouldForwardArgs: false });
|
|
318
|
-
const primary =
|
|
319
|
-
createAndFillInContextMenuActions(menu, { primary, secondary: [] }, 'inline');
|
|
319
|
+
const { primary } = getContextMenuActions(menu, 'inline');
|
|
320
320
|
actionBar.clear();
|
|
321
321
|
actionBar.context = context;
|
|
322
322
|
actionBar.push(primary, { icon: true, label: false });
|
|
323
323
|
}
|
|
324
324
|
};
|
|
325
|
-
WatchExpressionsRenderer = WatchExpressionsRenderer_1 = (
|
|
326
|
-
(
|
|
327
|
-
(
|
|
328
|
-
(
|
|
329
|
-
(
|
|
330
|
-
(
|
|
331
|
-
(
|
|
332
|
-
], WatchExpressionsRenderer))
|
|
325
|
+
WatchExpressionsRenderer = WatchExpressionsRenderer_1 = ( __decorate([
|
|
326
|
+
( __param(1, IMenuService)),
|
|
327
|
+
( __param(2, IContextKeyService)),
|
|
328
|
+
( __param(3, IDebugService)),
|
|
329
|
+
( __param(4, IContextViewService)),
|
|
330
|
+
( __param(5, IHoverService)),
|
|
331
|
+
( __param(6, IConfigurationService))
|
|
332
|
+
], WatchExpressionsRenderer));
|
|
333
333
|
function getContextForWatchExpressionMenu(parentContext, expression) {
|
|
334
334
|
return parentContext.createOverlay([
|
|
335
335
|
[CONTEXT_CAN_VIEW_MEMORY.key, expression.memoryReference !== undefined],
|
|
@@ -338,13 +338,13 @@ function getContextForWatchExpressionMenu(parentContext, expression) {
|
|
|
338
338
|
}
|
|
339
339
|
class WatchExpressionsAccessibilityProvider {
|
|
340
340
|
getWidgetAriaLabel() {
|
|
341
|
-
return
|
|
341
|
+
return localize(5490, "Debug Watch Expressions");
|
|
342
342
|
}
|
|
343
343
|
getAriaLabel(element) {
|
|
344
344
|
if (element instanceof Expression) {
|
|
345
|
-
return
|
|
345
|
+
return localize(5491, "{0}, value {1}", element.name, element.value);
|
|
346
346
|
}
|
|
347
|
-
return
|
|
347
|
+
return localize(5492, "{0}, value {1}", element.name, element.value);
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
class WatchExpressionsDragAndDrop {
|
|
@@ -361,22 +361,22 @@ class WatchExpressionsDragAndDrop {
|
|
|
361
361
|
}
|
|
362
362
|
let dropEffectPosition = undefined;
|
|
363
363
|
if (targetIndex === undefined) {
|
|
364
|
-
dropEffectPosition =
|
|
364
|
+
dropEffectPosition = ListDragOverEffectPosition.After;
|
|
365
365
|
targetIndex = -1;
|
|
366
366
|
}
|
|
367
367
|
else {
|
|
368
368
|
switch (targetSector) {
|
|
369
|
-
case
|
|
370
|
-
case
|
|
371
|
-
dropEffectPosition =
|
|
369
|
+
case ListViewTargetSector.TOP:
|
|
370
|
+
case ListViewTargetSector.CENTER_TOP:
|
|
371
|
+
dropEffectPosition = ListDragOverEffectPosition.Before;
|
|
372
372
|
break;
|
|
373
|
-
case
|
|
374
|
-
case
|
|
375
|
-
dropEffectPosition =
|
|
373
|
+
case ListViewTargetSector.CENTER_BOTTOM:
|
|
374
|
+
case ListViewTargetSector.BOTTOM:
|
|
375
|
+
dropEffectPosition = ListDragOverEffectPosition.After;
|
|
376
376
|
break;
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
|
-
return { accept: true, effect: { type:
|
|
379
|
+
return { accept: true, effect: { type: ListDragOverEffectType.Move, position: dropEffectPosition }, feedback: [targetIndex] };
|
|
380
380
|
}
|
|
381
381
|
getDragURI(element) {
|
|
382
382
|
if (!(element instanceof Expression) || element === this.debugService.getViewModel().getSelectedExpression()?.expression) {
|
|
@@ -396,7 +396,7 @@ class WatchExpressionsDragAndDrop {
|
|
|
396
396
|
}
|
|
397
397
|
const draggedElement = data.elements[0];
|
|
398
398
|
if (!(draggedElement instanceof Expression)) {
|
|
399
|
-
throw (
|
|
399
|
+
throw ( new Error('Invalid dragged element'));
|
|
400
400
|
}
|
|
401
401
|
const watches = this.debugService.getModel().getWatchExpressions();
|
|
402
402
|
const sourcePosition = watches.indexOf(draggedElement);
|
|
@@ -404,8 +404,8 @@ class WatchExpressionsDragAndDrop {
|
|
|
404
404
|
if (targetElement instanceof Expression) {
|
|
405
405
|
targetPosition = watches.indexOf(targetElement);
|
|
406
406
|
switch (targetSector) {
|
|
407
|
-
case
|
|
408
|
-
case
|
|
407
|
+
case ListViewTargetSector.BOTTOM:
|
|
408
|
+
case ListViewTargetSector.CENTER_BOTTOM:
|
|
409
409
|
targetPosition++;
|
|
410
410
|
break;
|
|
411
411
|
}
|
|
@@ -425,7 +425,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
425
425
|
super({
|
|
426
426
|
id: 'watch.collapse',
|
|
427
427
|
viewId: WATCH_VIEW_ID,
|
|
428
|
-
title: ( localize(
|
|
428
|
+
title: ( localize(5493, "Collapse All")),
|
|
429
429
|
f1: false,
|
|
430
430
|
icon: Codicon.collapseAll,
|
|
431
431
|
precondition: CONTEXT_WATCH_EXPRESSIONS_EXIST,
|
|
@@ -433,7 +433,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
433
433
|
id: MenuId.ViewTitle,
|
|
434
434
|
order: 30,
|
|
435
435
|
group: 'navigation',
|
|
436
|
-
when: (
|
|
436
|
+
when: ( ContextKeyExpr.equals('view', WATCH_VIEW_ID))
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
439
|
}
|
|
@@ -442,7 +442,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
442
442
|
}
|
|
443
443
|
});
|
|
444
444
|
const ADD_WATCH_ID = 'workbench.debug.viewlet.action.addWatchExpression';
|
|
445
|
-
const ADD_WATCH_LABEL = ( localize(
|
|
445
|
+
const ADD_WATCH_LABEL = ( localize(5494, "Add Expression"));
|
|
446
446
|
registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
447
447
|
constructor() {
|
|
448
448
|
super({
|
|
@@ -453,7 +453,7 @@ registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
|
453
453
|
menu: {
|
|
454
454
|
id: MenuId.ViewTitle,
|
|
455
455
|
group: 'navigation',
|
|
456
|
-
when: (
|
|
456
|
+
when: ( ContextKeyExpr.equals('view', WATCH_VIEW_ID))
|
|
457
457
|
}
|
|
458
458
|
});
|
|
459
459
|
}
|
|
@@ -463,7 +463,7 @@ registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
|
463
463
|
}
|
|
464
464
|
});
|
|
465
465
|
const REMOVE_WATCH_EXPRESSIONS_COMMAND_ID = 'workbench.debug.viewlet.action.removeAllWatchExpressions';
|
|
466
|
-
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(
|
|
466
|
+
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(5495, "Remove All Expressions"));
|
|
467
467
|
registerAction2(class RemoveAllWatchExpressionsAction extends Action2 {
|
|
468
468
|
constructor() {
|
|
469
469
|
super({
|
|
@@ -476,7 +476,7 @@ registerAction2(class RemoveAllWatchExpressionsAction extends Action2 {
|
|
|
476
476
|
id: MenuId.ViewTitle,
|
|
477
477
|
order: 20,
|
|
478
478
|
group: 'navigation',
|
|
479
|
-
when: (
|
|
479
|
+
when: ( ContextKeyExpr.equals('view', WATCH_VIEW_ID))
|
|
480
480
|
}
|
|
481
481
|
});
|
|
482
482
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ILocalizedString } from "vscode/vscode/vs/platform/action/common/action";
|
|
2
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
3
|
+
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
4
|
+
import { IContextMenuService } from "vscode/vscode/vs/platform/contextview/browser/contextView.service";
|
|
5
|
+
import { IHoverService } from "vscode/vscode/vs/platform/hover/browser/hover.service";
|
|
6
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
7
|
+
import { IKeybindingService } from "vscode/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
8
|
+
import { IOpenerService } from "vscode/vscode/vs/platform/opener/common/opener.service";
|
|
9
|
+
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
10
|
+
import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
11
|
+
import { IThemeService } from "vscode/vscode/vs/platform/theme/common/themeService.service";
|
|
12
|
+
import { ViewPane } from "@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane";
|
|
13
|
+
import { IViewletViewOptions } from "@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common/vscode/vs/workbench/browser/parts/views/viewsViewlet";
|
|
14
|
+
import { IViewDescriptorService } from "vscode/vscode/vs/workbench/common/views.service";
|
|
15
|
+
import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
16
|
+
import { IDebugService } from "vscode/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
17
|
+
export declare class WelcomeView extends ViewPane {
|
|
18
|
+
private readonly debugService;
|
|
19
|
+
private readonly editorService;
|
|
20
|
+
static readonly ID = "workbench.debug.welcome";
|
|
21
|
+
static readonly LABEL: ILocalizedString;
|
|
22
|
+
private debugStartLanguageContext;
|
|
23
|
+
private debuggerInterestedContext;
|
|
24
|
+
constructor(options: IViewletViewOptions, themeService: IThemeService, keybindingService: IKeybindingService, contextMenuService: IContextMenuService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, debugService: IDebugService, editorService: IEditorService, instantiationService: IInstantiationService, viewDescriptorService: IViewDescriptorService, openerService: IOpenerService, storageSevice: IStorageService, telemetryService: ITelemetryService, hoverService: IHoverService);
|
|
25
|
+
shouldShowWelcome(): boolean;
|
|
26
|
+
}
|
|
@@ -1,43 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { isMacintosh, isWeb } from 'vscode/vscode/vs/base/common/platform';
|
|
5
|
+
import { isDiffEditor, isCodeEditor } from 'vscode/vscode/vs/editor/browser/editorBrowser';
|
|
6
|
+
import { localize2, localize } from 'vscode/vscode/vs/nls';
|
|
5
7
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
6
8
|
import { RawContextKey, ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
7
9
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
11
|
-
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
12
|
-
import { ViewPane } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
10
|
+
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
|
|
11
|
+
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
|
|
13
12
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
14
|
-
import {
|
|
15
|
-
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
|
|
16
|
-
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
13
|
+
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
17
14
|
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.service';
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { isMacintosh, isWeb } from 'vscode/vscode/vs/base/common/platform';
|
|
21
|
-
import { isDiffEditor, isCodeEditor } from 'vscode/vscode/vs/editor/browser/editorBrowser';
|
|
15
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
16
|
+
import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
22
17
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
23
18
|
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
19
|
+
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
|
|
20
|
+
import { OpenFileFolderAction, OpenFileAction, OpenFolderAction } from '@codingame/monaco-vscode-cc9ccbec-e2a1-599d-84ae-46f5efc666e3-common/vscode/vs/workbench/browser/actions/workspaceActions';
|
|
21
|
+
import { ViewPane } from '@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
22
|
+
import { WorkbenchStateContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
23
|
+
import { Extensions, ViewContentGroups } from 'vscode/vscode/vs/workbench/common/views';
|
|
24
|
+
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
|
|
25
|
+
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
26
|
+
import { CONTEXT_DEBUGGERS_AVAILABLE, CONTEXT_DEBUG_EXTENSION_AVAILABLE } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
27
|
+
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
28
|
+
import { DEBUG_START_COMMAND_ID, DEBUG_CONFIGURE_COMMAND_ID } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
27
29
|
|
|
28
30
|
const debugStartLanguageKey = 'debugStartLanguage';
|
|
29
|
-
const CONTEXT_DEBUG_START_LANGUAGE = (
|
|
30
|
-
const CONTEXT_DEBUGGER_INTERESTED_IN_ACTIVE_EDITOR = (
|
|
31
|
+
const CONTEXT_DEBUG_START_LANGUAGE = ( new RawContextKey(debugStartLanguageKey, undefined));
|
|
32
|
+
const CONTEXT_DEBUGGER_INTERESTED_IN_ACTIVE_EDITOR = ( new RawContextKey('debuggerInterestedInActiveEditor', false));
|
|
31
33
|
let WelcomeView = class WelcomeView extends ViewPane {
|
|
32
34
|
static { this.ID = 'workbench.debug.welcome'; }
|
|
33
|
-
static { this.LABEL = ( localize2(
|
|
35
|
+
static { this.LABEL = ( localize2(5496, "Run")); }
|
|
34
36
|
constructor(options, themeService, keybindingService, contextMenuService, configurationService, contextKeyService, debugService, editorService, instantiationService, viewDescriptorService, openerService, storageSevice, telemetryService, hoverService) {
|
|
35
37
|
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
|
|
36
38
|
this.debugService = debugService;
|
|
37
39
|
this.editorService = editorService;
|
|
38
40
|
this.debugStartLanguageContext = CONTEXT_DEBUG_START_LANGUAGE.bindTo(contextKeyService);
|
|
39
41
|
this.debuggerInterestedContext = CONTEXT_DEBUGGER_INTERESTED_IN_ACTIVE_EDITOR.bindTo(contextKeyService);
|
|
40
|
-
const lastSetLanguage = storageSevice.get(debugStartLanguageKey,
|
|
42
|
+
const lastSetLanguage = storageSevice.get(debugStartLanguageKey, StorageScope.WORKSPACE);
|
|
41
43
|
this.debugStartLanguageContext.set(lastSetLanguage);
|
|
42
44
|
const setContextKey = () => {
|
|
43
45
|
let editorControl = this.editorService.activeTextEditorControl;
|
|
@@ -50,13 +52,13 @@ let WelcomeView = class WelcomeView extends ViewPane {
|
|
|
50
52
|
if (language && this.debugService.getAdapterManager().someDebuggerInterestedInLanguage(language)) {
|
|
51
53
|
this.debugStartLanguageContext.set(language);
|
|
52
54
|
this.debuggerInterestedContext.set(true);
|
|
53
|
-
storageSevice.store(debugStartLanguageKey, language,
|
|
55
|
+
storageSevice.store(debugStartLanguageKey, language, StorageScope.WORKSPACE, StorageTarget.MACHINE);
|
|
54
56
|
return;
|
|
55
57
|
}
|
|
56
58
|
}
|
|
57
59
|
this.debuggerInterestedContext.set(false);
|
|
58
60
|
};
|
|
59
|
-
const disposables = (
|
|
61
|
+
const disposables = ( new DisposableStore());
|
|
60
62
|
this._register(disposables);
|
|
61
63
|
this._register(editorService.onDidActiveEditorChange(() => {
|
|
62
64
|
disposables.clear();
|
|
@@ -83,77 +85,62 @@ let WelcomeView = class WelcomeView extends ViewPane {
|
|
|
83
85
|
return true;
|
|
84
86
|
}
|
|
85
87
|
};
|
|
86
|
-
WelcomeView = (
|
|
87
|
-
(
|
|
88
|
-
(
|
|
89
|
-
(
|
|
90
|
-
(
|
|
91
|
-
(
|
|
92
|
-
(
|
|
93
|
-
(
|
|
94
|
-
(
|
|
95
|
-
(
|
|
96
|
-
(
|
|
97
|
-
(
|
|
98
|
-
(
|
|
99
|
-
(
|
|
100
|
-
], WelcomeView))
|
|
101
|
-
const viewsRegistry = (
|
|
88
|
+
WelcomeView = ( __decorate([
|
|
89
|
+
( __param(1, IThemeService)),
|
|
90
|
+
( __param(2, IKeybindingService)),
|
|
91
|
+
( __param(3, IContextMenuService)),
|
|
92
|
+
( __param(4, IConfigurationService)),
|
|
93
|
+
( __param(5, IContextKeyService)),
|
|
94
|
+
( __param(6, IDebugService)),
|
|
95
|
+
( __param(7, IEditorService)),
|
|
96
|
+
( __param(8, IInstantiationService)),
|
|
97
|
+
( __param(9, IViewDescriptorService)),
|
|
98
|
+
( __param(10, IOpenerService)),
|
|
99
|
+
( __param(11, IStorageService)),
|
|
100
|
+
( __param(12, ITelemetryService)),
|
|
101
|
+
( __param(13, IHoverService))
|
|
102
|
+
], WelcomeView));
|
|
103
|
+
const viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
|
|
102
104
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
103
105
|
content: ( localize(
|
|
104
|
-
|
|
106
|
+
5497,
|
|
105
107
|
"[Open a file](command:{0}) which can be debugged or run.",
|
|
106
108
|
(isMacintosh && !isWeb) ? OpenFileFolderAction.ID : OpenFileAction.ID
|
|
107
109
|
)),
|
|
108
|
-
when: (
|
|
109
|
-
CONTEXT_DEBUGGERS_AVAILABLE,
|
|
110
|
-
(CONTEXT_DEBUGGER_INTERESTED_IN_ACTIVE_EDITOR.toNegated())
|
|
111
|
-
))),
|
|
110
|
+
when: ( ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, ( CONTEXT_DEBUGGER_INTERESTED_IN_ACTIVE_EDITOR.toNegated()))),
|
|
112
111
|
group: ViewContentGroups.Open,
|
|
113
112
|
});
|
|
114
113
|
let debugKeybindingLabel = '';
|
|
115
114
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
116
|
-
content: `[${( localize(
|
|
115
|
+
content: `[${( localize(5498, "Run and Debug"))}${debugKeybindingLabel}](command:${DEBUG_START_COMMAND_ID})`,
|
|
117
116
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
118
117
|
group: ViewContentGroups.Debug,
|
|
119
118
|
order: 1
|
|
120
119
|
});
|
|
121
|
-
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
122
|
-
content: `[${( localize(6116, "Show all automatic debug configurations"))}](command:${SELECT_AND_START_ID}).`,
|
|
123
|
-
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
124
|
-
group: ViewContentGroups.Debug,
|
|
125
|
-
order: 10
|
|
126
|
-
});
|
|
127
120
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
128
121
|
content: ( localize(
|
|
129
|
-
|
|
122
|
+
5499,
|
|
130
123
|
"To customize Run and Debug [create a launch.json file](command:{0}).",
|
|
131
|
-
DEBUG_CONFIGURE_COMMAND_ID
|
|
124
|
+
`${DEBUG_CONFIGURE_COMMAND_ID}?${encodeURIComponent(JSON.stringify([{ addNew: true }]))}`
|
|
132
125
|
)),
|
|
133
|
-
when: (
|
|
134
|
-
CONTEXT_DEBUGGERS_AVAILABLE,
|
|
135
|
-
(WorkbenchStateContext.notEqualsTo('empty'))
|
|
136
|
-
))),
|
|
126
|
+
when: ( ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, ( WorkbenchStateContext.notEqualsTo('empty')))),
|
|
137
127
|
group: ViewContentGroups.Debug
|
|
138
128
|
});
|
|
139
129
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
140
130
|
content: ( localize(
|
|
141
|
-
|
|
131
|
+
5500,
|
|
142
132
|
"To customize Run and Debug, [open a folder](command:{0}) and create a launch.json file.",
|
|
143
133
|
(isMacintosh && !isWeb) ? OpenFileFolderAction.ID : OpenFolderAction.ID
|
|
144
134
|
)),
|
|
145
|
-
when: (
|
|
146
|
-
CONTEXT_DEBUGGERS_AVAILABLE,
|
|
147
|
-
(WorkbenchStateContext.isEqualTo('empty'))
|
|
148
|
-
))),
|
|
135
|
+
when: ( ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, ( WorkbenchStateContext.isEqualTo('empty')))),
|
|
149
136
|
group: ViewContentGroups.Debug
|
|
150
137
|
});
|
|
151
138
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
152
139
|
content: ( localize(
|
|
153
|
-
|
|
140
|
+
5501,
|
|
154
141
|
"All debug extensions are disabled. Enable a debug extension or install a new one from the Marketplace."
|
|
155
142
|
)),
|
|
156
|
-
when: (
|
|
143
|
+
when: ( CONTEXT_DEBUG_EXTENSION_AVAILABLE.toNegated()),
|
|
157
144
|
group: ViewContentGroups.Debug
|
|
158
145
|
});
|
|
159
146
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
2
|
+
import { IBreakpointContribution } from "vscode/vscode/vs/workbench/contrib/debug/common/debug";
|
|
3
|
+
export declare class Breakpoints {
|
|
4
|
+
private readonly breakpointContribution;
|
|
5
|
+
private readonly contextKeyService;
|
|
6
|
+
private breakpointsWhen;
|
|
7
|
+
constructor(breakpointContribution: IBreakpointContribution, contextKeyService: IContextKeyService);
|
|
8
|
+
get language(): string;
|
|
9
|
+
get enabled(): boolean;
|
|
10
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
3
4
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
4
5
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IDebugService } from "vscode/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
2
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
3
|
+
import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
|
|
4
|
+
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
5
|
+
import { IAccessibilityService } from "vscode/vscode/vs/platform/accessibility/common/accessibility.service";
|
|
6
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
7
|
+
export declare class DebugWatchAccessibilityAnnouncer extends Disposable implements IWorkbenchContribution {
|
|
8
|
+
private readonly _debugService;
|
|
9
|
+
private readonly _logService;
|
|
10
|
+
private readonly _accessibilityService;
|
|
11
|
+
private readonly _configurationService;
|
|
12
|
+
static ID: string;
|
|
13
|
+
private readonly _listener;
|
|
14
|
+
constructor(_debugService: IDebugService, _logService: ILogService, _accessibilityService: IAccessibilityService, _configurationService: IConfigurationService);
|
|
15
|
+
private _setListener;
|
|
16
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
3
4
|
import { Disposable, MutableDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
5
|
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
5
6
|
import { IAccessibilityService } from 'vscode/vscode/vs/platform/accessibility/common/accessibility.service';
|
|
6
7
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
7
|
-
import { Expression } from '@codingame/monaco-vscode-
|
|
8
|
+
import { Expression } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/debugModel';
|
|
8
9
|
|
|
9
10
|
let DebugWatchAccessibilityAnnouncer = class DebugWatchAccessibilityAnnouncer extends Disposable {
|
|
10
11
|
static { this.ID = 'workbench.contrib.debugWatchAccessibilityAnnouncer'; }
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { URI as uri } from "vscode/vscode/vs/base/common/uri";
|
|
2
|
+
import { ITextModel } from "vscode/vscode/vs/editor/common/model";
|
|
3
|
+
import { IModelService } from "vscode/vscode/vs/editor/common/services/model";
|
|
4
|
+
import { ILanguageService } from "vscode/vscode/vs/editor/common/languages/language";
|
|
5
|
+
import { ITextModelService, ITextModelContentProvider } from "vscode/vscode/vs/editor/common/services/resolverService";
|
|
6
|
+
import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
|
|
7
|
+
import { IDebugService } from "vscode/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
8
|
+
import { IEditorWorkerService } from "vscode/vscode/vs/editor/common/services/editorWorker";
|
|
9
|
+
export declare class DebugContentProvider implements IWorkbenchContribution, ITextModelContentProvider {
|
|
10
|
+
private readonly debugService;
|
|
11
|
+
private readonly modelService;
|
|
12
|
+
private readonly languageService;
|
|
13
|
+
private readonly editorWorkerService;
|
|
14
|
+
private static INSTANCE;
|
|
15
|
+
private readonly pendingUpdates;
|
|
16
|
+
constructor(textModelResolverService: ITextModelService, debugService: IDebugService, modelService: IModelService, languageService: ILanguageService, editorWorkerService: IEditorWorkerService);
|
|
17
|
+
dispose(): void;
|
|
18
|
+
provideTextContent(resource: uri): Promise<ITextModel> | null;
|
|
19
|
+
static refreshDebugContent(resource: uri): void;
|
|
20
|
+
private createOrUpdateContentModel;
|
|
21
|
+
}
|