@codingame/monaco-vscode-debug-service-override 17.2.0 → 18.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/package.json +18 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +24 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +116 -111
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +7 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +13 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +10 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +22 -22
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +45 -44
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +17 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +19 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +10 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +21 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +10 -11
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +46 -46
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
|
@@ -308,20 +308,20 @@ class ReplDataSource {
|
|
|
308
308
|
}
|
|
309
309
|
class ReplAccessibilityProvider {
|
|
310
310
|
getWidgetAriaLabel() {
|
|
311
|
-
return localize(
|
|
311
|
+
return localize(6059, "Debug Console");
|
|
312
312
|
}
|
|
313
313
|
getAriaLabel(element) {
|
|
314
314
|
if (element instanceof Variable) {
|
|
315
|
-
return localize(
|
|
315
|
+
return localize(6060, "Variable {0}, value {1}", element.name, element.value);
|
|
316
316
|
}
|
|
317
317
|
if (element instanceof ReplOutputElement || element instanceof ReplEvaluationInput || element instanceof ReplEvaluationResult) {
|
|
318
|
-
return element.value + (element instanceof ReplOutputElement && element.count > 1 ? ( localize(
|
|
318
|
+
return element.value + (element instanceof ReplOutputElement && element.count > 1 ? ( localize(6061, ", occurred {0} times", element.count)) : '');
|
|
319
319
|
}
|
|
320
320
|
if (element instanceof RawObjectReplElement) {
|
|
321
|
-
return localize(
|
|
321
|
+
return localize(6062, "Debug console variable {0}, value {1}", element.name, element.value);
|
|
322
322
|
}
|
|
323
323
|
if (element instanceof ReplGroup) {
|
|
324
|
-
return localize(
|
|
324
|
+
return localize(6063, "Debug console group {0}", element.name);
|
|
325
325
|
}
|
|
326
326
|
return '';
|
|
327
327
|
}
|
|
@@ -53,79 +53,79 @@ let RunAndDebugAccessibilityHelpProvider = class RunAndDebugAccessibilityHelpPro
|
|
|
53
53
|
provideContent() {
|
|
54
54
|
return [
|
|
55
55
|
( localize(
|
|
56
|
-
|
|
56
|
+
6064,
|
|
57
57
|
"The Show Run and Debug view command{0} will open the current view.",
|
|
58
58
|
'<keybinding:workbench.view.debug>'
|
|
59
59
|
)),
|
|
60
60
|
( localize(
|
|
61
|
-
|
|
61
|
+
6065,
|
|
62
62
|
"The Debug: Start Debugging command{0} will start a debug session.",
|
|
63
63
|
'<keybinding:workbench.action.debug.start>'
|
|
64
64
|
)),
|
|
65
65
|
( localize(
|
|
66
|
-
|
|
66
|
+
6066,
|
|
67
67
|
"Access debug output and evaluate expressions in the debug console, which can be focused with{0}.",
|
|
68
68
|
'<keybinding:workbench.panel.repl.view.focus>'
|
|
69
69
|
)),
|
|
70
70
|
AccessibilityHelpNLS.setBreakpoint,
|
|
71
71
|
AccessibilityHelpNLS.addToWatch,
|
|
72
|
-
( localize(
|
|
72
|
+
( localize(6067, "Once debugging, the following commands will be available:")),
|
|
73
73
|
( localize(
|
|
74
|
-
|
|
74
|
+
6068,
|
|
75
75
|
"- Debug: Restart Debugging command{0} will restart the current debug session.",
|
|
76
76
|
'<keybinding:workbench.action.debug.restart>'
|
|
77
77
|
)),
|
|
78
78
|
( localize(
|
|
79
|
-
|
|
79
|
+
6069,
|
|
80
80
|
"- Debug: Stop Debugging command{0} will stop the current debugging session.",
|
|
81
81
|
'<keybinding:workbench.action.debug.stop>'
|
|
82
82
|
)),
|
|
83
83
|
( localize(
|
|
84
|
-
|
|
84
|
+
6070,
|
|
85
85
|
"- Debug: Continue command{0} will continue execution until the next breakpoint.",
|
|
86
86
|
'<keybinding:workbench.action.debug.continue>'
|
|
87
87
|
)),
|
|
88
88
|
( localize(
|
|
89
|
-
|
|
89
|
+
6071,
|
|
90
90
|
"- Debug: Step Into command{0} will step into the next function call.",
|
|
91
91
|
'<keybinding:workbench.action.debug.stepInto>'
|
|
92
92
|
)),
|
|
93
93
|
( localize(
|
|
94
|
-
|
|
94
|
+
6072,
|
|
95
95
|
"- Debug: Step Over command{0} will step over the current function call.",
|
|
96
96
|
'<keybinding:workbench.action.debug.stepOver>'
|
|
97
97
|
)),
|
|
98
98
|
( localize(
|
|
99
|
-
|
|
99
|
+
6073,
|
|
100
100
|
"- Debug: Step Out command{0} will step out of the current function call.",
|
|
101
101
|
'<keybinding:workbench.action.debug.stepOut>'
|
|
102
102
|
)),
|
|
103
103
|
( localize(
|
|
104
|
-
|
|
104
|
+
6074,
|
|
105
105
|
'The debug viewlet is comprised of several views that can be focused with the following commands or navigated to via tab then arrow keys:'
|
|
106
106
|
)),
|
|
107
107
|
( localize(
|
|
108
|
-
|
|
108
|
+
6075,
|
|
109
109
|
"- Debug: Focus Breakpoints View command{0} will focus the breakpoints view.",
|
|
110
110
|
'<keybinding:workbench.debug.action.focusBreakpointsView>'
|
|
111
111
|
)),
|
|
112
112
|
( localize(
|
|
113
|
-
|
|
113
|
+
6076,
|
|
114
114
|
"- Debug: Focus Call Stack View command{0} will focus the call stack view.",
|
|
115
115
|
'<keybinding:workbench.debug.action.focusCallStackView>'
|
|
116
116
|
)),
|
|
117
117
|
( localize(
|
|
118
|
-
|
|
118
|
+
6077,
|
|
119
119
|
"- Debug: Focus Variables View command{0} will focus the variables view.",
|
|
120
120
|
'<keybinding:workbench.debug.action.focusVariablesView>'
|
|
121
121
|
)),
|
|
122
122
|
( localize(
|
|
123
|
-
|
|
123
|
+
6078,
|
|
124
124
|
"- Debug: Focus Watch View command{0} will focus the watch view.",
|
|
125
125
|
'<keybinding:workbench.debug.action.focusWatchView>'
|
|
126
126
|
)),
|
|
127
127
|
( localize(
|
|
128
|
-
|
|
128
|
+
6079,
|
|
129
129
|
"The setting {0} controls whether watch variable changes are announced.",
|
|
130
130
|
'accessibility.debugWatchVariableAnnouncements'
|
|
131
131
|
)),
|
|
@@ -27,7 +27,7 @@ const STATUS_BAR_DEBUGGING_BACKGROUND = registerColor('statusBar.debuggingBackgr
|
|
|
27
27
|
hcDark: '#BA592C',
|
|
28
28
|
hcLight: '#B5200D'
|
|
29
29
|
}, ( localize(
|
|
30
|
-
|
|
30
|
+
6080,
|
|
31
31
|
"Status bar background color when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
32
32
|
)));
|
|
33
33
|
const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor('statusBar.debuggingForeground', {
|
|
@@ -36,14 +36,14 @@ const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor('statusBar.debuggingForegr
|
|
|
36
36
|
hcDark: STATUS_BAR_FOREGROUND,
|
|
37
37
|
hcLight: '#FFFFFF'
|
|
38
38
|
}, ( localize(
|
|
39
|
-
|
|
39
|
+
6081,
|
|
40
40
|
"Status bar foreground color when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
41
41
|
)));
|
|
42
42
|
const STATUS_BAR_DEBUGGING_BORDER = registerColor('statusBar.debuggingBorder', STATUS_BAR_BORDER, ( localize(
|
|
43
|
-
|
|
43
|
+
6082,
|
|
44
44
|
"Status bar border color separating to the sidebar and editor when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
45
45
|
)));
|
|
46
|
-
const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor('commandCenter.debuggingBackground', ( transparent(STATUS_BAR_DEBUGGING_BACKGROUND, 0.258)), ( localize(
|
|
46
|
+
const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor('commandCenter.debuggingBackground', ( transparent(STATUS_BAR_DEBUGGING_BACKGROUND, 0.258)), ( localize(6083, "Command center background color when a program is being debugged")), true);
|
|
47
47
|
let StatusBarColorProvider = class StatusBarColorProvider {
|
|
48
48
|
set enabled(enabled) {
|
|
49
49
|
if (enabled === !!this.disposable) {
|
|
@@ -12,7 +12,7 @@ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
12
12
|
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
13
13
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
14
14
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
15
|
-
import { ViewPane } from "@codingame/monaco-vscode-
|
|
15
|
+
import { ViewPane } from "@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/parts/views/viewPane";
|
|
16
16
|
import { IViewletViewOptions } from "@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common/vscode/vs/workbench/browser/parts/views/viewsViewlet";
|
|
17
17
|
import { IViewDescriptorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service";
|
|
18
18
|
import { IDebugViewWithVariables, IExpression } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug";
|
|
@@ -21,7 +21,7 @@ import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platfor
|
|
|
21
21
|
import { WorkbenchAsyncDataTree } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
|
|
22
22
|
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
23
23
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
24
|
-
import { ViewPane, ViewAction } from '@codingame/monaco-vscode-
|
|
24
|
+
import { ViewPane, ViewAction } from '@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
25
25
|
import { FocusedViewContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
26
26
|
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
|
27
27
|
import { CONTEXT_WATCH_EXPRESSIONS_EXIST, CONTEXT_VARIABLE_IS_READONLY, CONTEXT_WATCH_ITEM_TYPE, CONTEXT_WATCH_EXPRESSIONS_FOCUSED, CONTEXT_CAN_VIEW_MEMORY, WATCH_VIEW_ID, CONTEXT_EXPRESSION_SELECTED } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
@@ -289,7 +289,7 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
289
289
|
if (settingValue) {
|
|
290
290
|
return {
|
|
291
291
|
initialValue: expression.value,
|
|
292
|
-
ariaLabel: ( localize(
|
|
292
|
+
ariaLabel: ( localize(6092, "Type new value")),
|
|
293
293
|
onFinish: async (value, success) => {
|
|
294
294
|
if (success && value) {
|
|
295
295
|
const focusedFrame = this.debugService.getViewModel().focusedStackFrame;
|
|
@@ -303,8 +303,8 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
303
303
|
}
|
|
304
304
|
return {
|
|
305
305
|
initialValue: expression.name ? expression.name : '',
|
|
306
|
-
ariaLabel: ( localize(
|
|
307
|
-
placeholder: ( localize(
|
|
306
|
+
ariaLabel: ( localize(6093, "Type watch expression")),
|
|
307
|
+
placeholder: ( localize(6094, "Expression to watch")),
|
|
308
308
|
onFinish: (value, success) => {
|
|
309
309
|
if (success && value) {
|
|
310
310
|
this.debugService.renameWatchExpression(expression.getId(), value);
|
|
@@ -344,13 +344,13 @@ function getContextForWatchExpressionMenu(parentContext, expression) {
|
|
|
344
344
|
}
|
|
345
345
|
class WatchExpressionsAccessibilityProvider {
|
|
346
346
|
getWidgetAriaLabel() {
|
|
347
|
-
return localize(
|
|
347
|
+
return localize(6095, "Debug Watch Expressions");
|
|
348
348
|
}
|
|
349
349
|
getAriaLabel(element) {
|
|
350
350
|
if (element instanceof Expression) {
|
|
351
|
-
return localize(
|
|
351
|
+
return localize(6096, "{0}, value {1}", element.name, element.value);
|
|
352
352
|
}
|
|
353
|
-
return localize(
|
|
353
|
+
return localize(6097, "{0}, value {1}", element.name, element.value);
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
class WatchExpressionsDragAndDrop {
|
|
@@ -431,7 +431,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
431
431
|
super({
|
|
432
432
|
id: 'watch.collapse',
|
|
433
433
|
viewId: WATCH_VIEW_ID,
|
|
434
|
-
title: ( localize(
|
|
434
|
+
title: ( localize(6098, "Collapse All")),
|
|
435
435
|
f1: false,
|
|
436
436
|
icon: Codicon.collapseAll,
|
|
437
437
|
precondition: CONTEXT_WATCH_EXPRESSIONS_EXIST,
|
|
@@ -448,7 +448,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
448
448
|
}
|
|
449
449
|
});
|
|
450
450
|
const ADD_WATCH_ID = 'workbench.debug.viewlet.action.addWatchExpression';
|
|
451
|
-
const ADD_WATCH_LABEL = ( localize(
|
|
451
|
+
const ADD_WATCH_LABEL = ( localize(6099, "Add Expression"));
|
|
452
452
|
registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
453
453
|
constructor() {
|
|
454
454
|
super({
|
|
@@ -469,7 +469,7 @@ registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
|
469
469
|
}
|
|
470
470
|
});
|
|
471
471
|
const REMOVE_WATCH_EXPRESSIONS_COMMAND_ID = 'workbench.debug.viewlet.action.removeAllWatchExpressions';
|
|
472
|
-
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(
|
|
472
|
+
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(6100, "Remove All Expressions"));
|
|
473
473
|
registerAction2(class RemoveAllWatchExpressionsAction extends Action2 {
|
|
474
474
|
constructor() {
|
|
475
475
|
super({
|
|
@@ -495,7 +495,7 @@ registerAction2(class CopyExpression extends ViewAction {
|
|
|
495
495
|
constructor() {
|
|
496
496
|
super({
|
|
497
497
|
id: COPY_WATCH_EXPRESSION_COMMAND_ID,
|
|
498
|
-
title: ( localize(
|
|
498
|
+
title: ( localize(6101, "Copy Expression")),
|
|
499
499
|
f1: false,
|
|
500
500
|
viewId: WATCH_VIEW_ID,
|
|
501
501
|
precondition: CONTEXT_WATCH_EXPRESSIONS_EXIST,
|
|
@@ -8,7 +8,7 @@ import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
8
8
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
9
9
|
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
10
10
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
11
|
-
import { ViewPane } from "@codingame/monaco-vscode-
|
|
11
|
+
import { ViewPane } from "@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/parts/views/viewPane";
|
|
12
12
|
import { IViewletViewOptions } from "@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common/vscode/vs/workbench/browser/parts/views/viewsViewlet";
|
|
13
13
|
import { IViewDescriptorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service";
|
|
14
14
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
|
-
import { isMacintosh, isWeb } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
5
4
|
import { isDiffEditor, isCodeEditor } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser';
|
|
6
5
|
import { localize2, localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
7
6
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
@@ -16,8 +15,8 @@ import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/regist
|
|
|
16
15
|
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
17
16
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
18
17
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
19
|
-
import {
|
|
20
|
-
import { ViewPane } from '@codingame/monaco-vscode-
|
|
18
|
+
import { OpenFileAction, OpenFolderAction } from '@codingame/monaco-vscode-97284942-b044-5fbb-b53b-3f46d2468746-common/vscode/vs/workbench/browser/actions/workspaceActions';
|
|
19
|
+
import { ViewPane } from '@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
21
20
|
import { WorkbenchStateContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
22
21
|
import { Extensions, ViewContentGroups } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
23
22
|
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
|
@@ -31,7 +30,7 @@ const CONTEXT_DEBUG_START_LANGUAGE = ( new RawContextKey(debugStartLanguageKey,
|
|
|
31
30
|
const CONTEXT_DEBUGGER_INTERESTED_IN_ACTIVE_EDITOR = ( new RawContextKey('debuggerInterestedInActiveEditor', false));
|
|
32
31
|
let WelcomeView = class WelcomeView extends ViewPane {
|
|
33
32
|
static { this.ID = 'workbench.debug.welcome'; }
|
|
34
|
-
static { this.LABEL = ( localize2(
|
|
33
|
+
static { this.LABEL = ( localize2(6102, "Run")); }
|
|
35
34
|
constructor(options, themeService, keybindingService, contextMenuService, configurationService, contextKeyService, debugService, editorService, instantiationService, viewDescriptorService, openerService, storageSevice, hoverService) {
|
|
36
35
|
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, hoverService);
|
|
37
36
|
this.debugService = debugService;
|
|
@@ -101,23 +100,23 @@ WelcomeView = ( __decorate([
|
|
|
101
100
|
const viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
|
|
102
101
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
103
102
|
content: ( localize(
|
|
104
|
-
|
|
103
|
+
6103,
|
|
105
104
|
"[Open a file](command:{0}) which can be debugged or run.",
|
|
106
|
-
|
|
105
|
+
OpenFileAction.ID
|
|
107
106
|
)),
|
|
108
107
|
when: ( ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, ( CONTEXT_DEBUGGER_INTERESTED_IN_ACTIVE_EDITOR.toNegated()))),
|
|
109
108
|
group: ViewContentGroups.Open,
|
|
110
109
|
});
|
|
111
110
|
let debugKeybindingLabel = '';
|
|
112
111
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
113
|
-
content: `[${( localize(
|
|
112
|
+
content: `[${( localize(6104, "Run and Debug"))}${debugKeybindingLabel}](command:${DEBUG_START_COMMAND_ID})`,
|
|
114
113
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
115
114
|
group: ViewContentGroups.Debug,
|
|
116
115
|
order: 1
|
|
117
116
|
});
|
|
118
117
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
119
118
|
content: ( localize(
|
|
120
|
-
|
|
119
|
+
6105,
|
|
121
120
|
"To customize Run and Debug [create a launch.json file](command:{0}).",
|
|
122
121
|
`${DEBUG_CONFIGURE_COMMAND_ID}?${encodeURIComponent(JSON.stringify([{ addNew: true }]))}`
|
|
123
122
|
)),
|
|
@@ -126,16 +125,16 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
126
125
|
});
|
|
127
126
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
128
127
|
content: ( localize(
|
|
129
|
-
|
|
128
|
+
6106,
|
|
130
129
|
"To customize Run and Debug, [open a folder](command:{0}) and create a launch.json file.",
|
|
131
|
-
|
|
130
|
+
OpenFolderAction.ID
|
|
132
131
|
)),
|
|
133
132
|
when: ( ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, ( WorkbenchStateContext.isEqualTo('empty')))),
|
|
134
133
|
group: ViewContentGroups.Debug
|
|
135
134
|
});
|
|
136
135
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
137
136
|
content: ( localize(
|
|
138
|
-
|
|
137
|
+
6107,
|
|
139
138
|
"All debug extensions are disabled. Enable a debug extension or install a new one from the Marketplace."
|
|
140
139
|
)),
|
|
141
140
|
when: ( CONTEXT_DEBUG_EXTENSION_AVAILABLE.toNegated()),
|
|
@@ -53,14 +53,14 @@ let DebugContentProvider = class DebugContentProvider extends Disposable {
|
|
|
53
53
|
session = this.debugService.getViewModel().focusedSession;
|
|
54
54
|
}
|
|
55
55
|
if (!session) {
|
|
56
|
-
return Promise.reject(( new ErrorNoTelemetry(( localize(
|
|
56
|
+
return Promise.reject(( new ErrorNoTelemetry(( localize(6173, "Unable to resolve the resource without a debug session")))));
|
|
57
57
|
}
|
|
58
58
|
const createErrModel = (errMsg) => {
|
|
59
59
|
this.debugService.sourceIsNotAvailable(resource);
|
|
60
60
|
const languageSelection = this.languageService.createById(PLAINTEXT_LANGUAGE_ID);
|
|
61
61
|
const message = errMsg
|
|
62
|
-
? ( localize(
|
|
63
|
-
: ( localize(
|
|
62
|
+
? ( localize(6174, "Could not load source '{0}': {1}.", resource.path, errMsg))
|
|
63
|
+
: ( localize(6175, "Could not load source '{0}'.", resource.path));
|
|
64
64
|
return this.modelService.createModel(message, languageSelection, resource);
|
|
65
65
|
};
|
|
66
66
|
return session.loadSource(resource).then(response => {
|
|
@@ -31,20 +31,20 @@ let DebugLifecycle = class DebugLifecycle {
|
|
|
31
31
|
let message;
|
|
32
32
|
if (numSessions === 1) {
|
|
33
33
|
message = ( localize(
|
|
34
|
-
|
|
34
|
+
6176,
|
|
35
35
|
"There is an active debug session, are you sure you want to stop it?"
|
|
36
36
|
));
|
|
37
37
|
}
|
|
38
38
|
else {
|
|
39
39
|
message = ( localize(
|
|
40
|
-
|
|
40
|
+
6177,
|
|
41
41
|
"There are active debug sessions, are you sure you want to stop them?"
|
|
42
42
|
));
|
|
43
43
|
}
|
|
44
44
|
const res = await this.dialogService.confirm({
|
|
45
45
|
message,
|
|
46
46
|
type: 'warning',
|
|
47
|
-
primaryButton: ( localize(
|
|
47
|
+
primaryButton: ( localize(6178, "&&Stop Debugging"))
|
|
48
48
|
});
|
|
49
49
|
return !res.confirmed;
|
|
50
50
|
}
|