@codingame/monaco-vscode-debug-service-override 14.0.6 → 15.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.js +1 -1
- package/package.json +14 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +22 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +133 -133
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +8 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.d.ts +1 -1
- 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 +27 -27
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +5 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +23 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +24 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +44 -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 +2 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +14 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +11 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.d.ts +6 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +36 -45
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +6 -6
- 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 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +52 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +10 -12
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.d.ts +5 -4
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +44 -44
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +2 -7
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.d.ts +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
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.d.ts +0 -64
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +0 -758
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.d.ts +0 -65
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +0 -419
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.d.ts +0 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +0 -116
- package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.d.ts +0 -79
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +0 -730
- package/vscode/src/vs/workbench/contrib/debug/common/debugContext.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugContext.js +0 -17
|
@@ -16,15 +16,15 @@ import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/th
|
|
|
16
16
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
17
17
|
import { isCodeEditor } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser';
|
|
18
18
|
import { EditorAction, registerEditorAction } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorExtensions';
|
|
19
|
-
import { ICodeEditorService } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService';
|
|
19
|
+
import { ICodeEditorService } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService.service';
|
|
20
20
|
import { CodeEditorWidget } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/widget/codeEditor/codeEditorWidget';
|
|
21
21
|
import { EDITOR_FONT_DEFAULTS, EditorOption } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/config/editorOptions';
|
|
22
22
|
import { Range } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range';
|
|
23
23
|
import { EditorContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorContextKeys';
|
|
24
24
|
import { CompletionItemInsertTextRule, CompletionItemKinds, CompletionItemKind } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages';
|
|
25
|
-
import { ILanguageFeaturesService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/languageFeatures';
|
|
26
|
-
import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model';
|
|
27
|
-
import { ITextResourcePropertiesService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/textResourceConfiguration';
|
|
25
|
+
import { ILanguageFeaturesService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/languageFeatures.service';
|
|
26
|
+
import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service';
|
|
27
|
+
import { ITextResourcePropertiesService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/textResourceConfiguration.service';
|
|
28
28
|
import { SuggestController } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/suggest/browser/suggestController';
|
|
29
29
|
import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
30
30
|
import { AccessibilitySignal } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService';
|
|
@@ -48,7 +48,6 @@ import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log
|
|
|
48
48
|
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
49
49
|
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
50
50
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
51
|
-
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
52
51
|
import { resolveColorValue } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
|
|
53
52
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/baseColors';
|
|
54
53
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/chartsColors';
|
|
@@ -61,14 +60,14 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/misc
|
|
|
61
60
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
62
61
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
|
|
63
62
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
64
|
-
import { registerNavigableContainer } from '@codingame/monaco-vscode-
|
|
63
|
+
import { registerNavigableContainer } from '@codingame/monaco-vscode-1bb39316-6fbf-572e-ab6a-818a2496c14f-common/vscode/vs/workbench/browser/actions/widgetNavigationCommands';
|
|
65
64
|
import { FilterViewPane, ViewAction } from '@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
66
65
|
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
|
67
66
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
68
67
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
69
68
|
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
70
69
|
import { AccessibilityCommandId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/common/accessibilityCommands';
|
|
71
|
-
import { getSimpleEditorOptions, getSimpleCodeEditorWidgetOptions } from '@codingame/monaco-vscode-
|
|
70
|
+
import { getSimpleEditorOptions, getSimpleCodeEditorWidgetOptions } from '@codingame/monaco-vscode-1bb39316-6fbf-572e-ab6a-818a2496c14f-common/vscode/vs/workbench/contrib/codeEditor/browser/simpleEditorOptions';
|
|
72
71
|
import { DEBUG_SCHEME, CONTEXT_MULTI_SESSION_REPL, State, CONTEXT_IN_DEBUG_REPL, REPL_VIEW_ID, CONTEXT_DEBUG_STATE, getStateLabel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
73
72
|
import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
74
73
|
import { Variable } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/debugModel';
|
|
@@ -76,7 +75,7 @@ import { ReplGroup, ReplEvaluationResult } from '@codingame/monaco-vscode-88aa9a
|
|
|
76
75
|
import { FocusSessionActionViewItem } from './debugActionViewItems.js';
|
|
77
76
|
import { DEBUG_COMMAND_CATEGORY, FOCUS_REPL_ID } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
78
77
|
import { DebugExpressionRenderer } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugExpressionRenderer';
|
|
79
|
-
import { debugConsoleEvaluationPrompt, debugConsoleClearAll } from '@codingame/monaco-vscode-
|
|
78
|
+
import { debugConsoleEvaluationPrompt, debugConsoleClearAll } from '@codingame/monaco-vscode-1bb39316-6fbf-572e-ab6a-818a2496c14f-common/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
80
79
|
import './media/repl.css.js';
|
|
81
80
|
import { ReplFilter } from './replFilter.js';
|
|
82
81
|
import { ReplDelegate, ReplDataSource, ReplEvaluationInputsRenderer, ReplEvaluationResultsRenderer, ReplRawObjectsRenderer, ReplVariablesRenderer, ReplOutputElementRenderer, ReplGroupRenderer, ReplAccessibilityProvider } from './replViewer.js';
|
|
@@ -96,16 +95,16 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
96
95
|
static { Repl_1 = this; }
|
|
97
96
|
static { this.REFRESH_DELAY = 50; }
|
|
98
97
|
static { this.URI = URI.parse(`${DEBUG_SCHEME}:replinput`); }
|
|
99
|
-
constructor(options, debugService, instantiationService, storageService, themeService, modelService, contextKeyService, codeEditorService, viewDescriptorService, contextMenuService, configurationService, textResourcePropertiesService, editorService, keybindingService, openerService,
|
|
98
|
+
constructor(options, debugService, instantiationService, storageService, themeService, modelService, contextKeyService, codeEditorService, viewDescriptorService, contextMenuService, configurationService, textResourcePropertiesService, editorService, keybindingService, openerService, hoverService, menuService, languageFeaturesService, logService) {
|
|
100
99
|
const filterText = storageService.get(FILTER_VALUE_STORAGE_KEY, StorageScope.WORKSPACE, '');
|
|
101
100
|
super({
|
|
102
101
|
...options,
|
|
103
102
|
filterOptions: {
|
|
104
|
-
placeholder: ( localize(
|
|
103
|
+
placeholder: ( localize(5677, "Filter (e.g. text, !exclude, \\escape)")),
|
|
105
104
|
text: filterText,
|
|
106
105
|
history: JSON.parse(storageService.get(FILTER_HISTORY_STORAGE_KEY, StorageScope.WORKSPACE, '[]')),
|
|
107
106
|
}
|
|
108
|
-
}, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService,
|
|
107
|
+
}, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, hoverService);
|
|
109
108
|
this.debugService = debugService;
|
|
110
109
|
this.storageService = storageService;
|
|
111
110
|
this.modelService = modelService;
|
|
@@ -138,9 +137,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
138
137
|
this.onDidFocusSession(this.debugService.getViewModel().focusedSession);
|
|
139
138
|
}
|
|
140
139
|
this._register(this.debugService.getViewModel().onDidFocusSession(session => {
|
|
141
|
-
|
|
142
|
-
this.onDidFocusSession(session);
|
|
143
|
-
}
|
|
140
|
+
this.onDidFocusSession(session);
|
|
144
141
|
}));
|
|
145
142
|
this._register(this.debugService.getViewModel().onDidEvaluateLazyExpression(async (e) => {
|
|
146
143
|
if (e instanceof Variable && this.tree?.hasNode(e)) {
|
|
@@ -176,9 +173,6 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
176
173
|
if (this.tree && this.tree.getInput() !== focusedSession) {
|
|
177
174
|
this.onDidFocusSession(focusedSession);
|
|
178
175
|
}
|
|
179
|
-
else {
|
|
180
|
-
this.selectSession();
|
|
181
|
-
}
|
|
182
176
|
this.setMode();
|
|
183
177
|
this.replInput.setModel(this.model);
|
|
184
178
|
this.updateInputDecoration();
|
|
@@ -226,12 +220,10 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
226
220
|
this.setHistoryNavigationEnablement(false);
|
|
227
221
|
const model = this.replInput.getModel();
|
|
228
222
|
if (model) {
|
|
229
|
-
const word = model.getWordAtPosition(position);
|
|
230
|
-
const overwriteBefore = word ? word.word.length : 0;
|
|
231
223
|
const text = model.getValue();
|
|
232
224
|
const focusedStackFrame = this.debugService.getViewModel().focusedStackFrame;
|
|
233
225
|
const frameId = focusedStackFrame ? focusedStackFrame.frameId : undefined;
|
|
234
|
-
const response = await session.completions(frameId, focusedStackFrame?.thread.threadId || 0, text, position,
|
|
226
|
+
const response = await session.completions(frameId, focusedStackFrame?.thread.threadId || 0, text, position, token);
|
|
235
227
|
const suggestions = [];
|
|
236
228
|
const computeRange = (length) => Range.fromPositions(position.delta(0, -length), position);
|
|
237
229
|
if (response && response.body && response.body.targets) {
|
|
@@ -251,7 +243,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
251
243
|
detail: item.detail,
|
|
252
244
|
kind: CompletionItemKinds.fromString(item.type || 'property'),
|
|
253
245
|
filterText: (item.start && item.length) ? text.substring(item.start, item.start + item.length).concat(item.label) : undefined,
|
|
254
|
-
range: computeRange(item.length ||
|
|
246
|
+
range: computeRange(item.length || 0),
|
|
255
247
|
sortText: item.sortText,
|
|
256
248
|
insertTextRules
|
|
257
249
|
});
|
|
@@ -478,12 +470,12 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
478
470
|
await timeout(0);
|
|
479
471
|
this.replInput.focus();
|
|
480
472
|
}
|
|
481
|
-
|
|
473
|
+
createActionViewItem(action) {
|
|
482
474
|
if (action.id === selectReplCommandId) {
|
|
483
475
|
const session = (this.tree ? this.tree.getInput() : undefined) ?? this.debugService.getViewModel().focusedSession;
|
|
484
476
|
return this.instantiationService.createInstance(SelectReplActionViewItem, action, session);
|
|
485
477
|
}
|
|
486
|
-
return super.
|
|
478
|
+
return super.createActionViewItem(action);
|
|
487
479
|
}
|
|
488
480
|
get isMultiSessionView() {
|
|
489
481
|
return this.debugService.getModel().getSessions(true).filter(s => s.hasSeparateRepl() && !( sessionsToIgnore.has(s))).length > 1;
|
|
@@ -513,7 +505,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
513
505
|
await autoExpandElements(session.getReplElements());
|
|
514
506
|
}
|
|
515
507
|
const { total, filtered } = this.getFilterStats();
|
|
516
|
-
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(
|
|
508
|
+
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(5678, "Showing {0} of {1}", filtered, total)));
|
|
517
509
|
}, Repl_1.REFRESH_DELAY));
|
|
518
510
|
}
|
|
519
511
|
render() {
|
|
@@ -637,17 +629,17 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
637
629
|
this._register(addStandardDisposableListener(this.replInputContainer, EventType.BLUR, () => this.replInputContainer.classList.remove('synthetic-focus')));
|
|
638
630
|
}
|
|
639
631
|
getAriaLabel() {
|
|
640
|
-
let ariaLabel = ( localize(
|
|
632
|
+
let ariaLabel = ( localize(5679, "Debug Console"));
|
|
641
633
|
if (!this.configurationService.getValue(AccessibilityVerbositySettingId.Debug)) {
|
|
642
634
|
return ariaLabel;
|
|
643
635
|
}
|
|
644
636
|
const keybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getAriaLabel();
|
|
645
637
|
if (keybinding) {
|
|
646
|
-
ariaLabel = ( localize(
|
|
638
|
+
ariaLabel = ( localize(5680, "{0}, use ({1}) for accessibility help", ariaLabel, keybinding));
|
|
647
639
|
}
|
|
648
640
|
else {
|
|
649
641
|
ariaLabel = ( localize(
|
|
650
|
-
|
|
642
|
+
5681,
|
|
651
643
|
"{0}, run the command Open Accessibility Help which is currently not triggerable via keybinding.",
|
|
652
644
|
ariaLabel
|
|
653
645
|
));
|
|
@@ -686,7 +678,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
686
678
|
},
|
|
687
679
|
renderOptions: {
|
|
688
680
|
after: {
|
|
689
|
-
contentText: ( localize(
|
|
681
|
+
contentText: ( localize(5682, "Please start a debug session to evaluate expressions")),
|
|
690
682
|
color: transparentForeground ? ( transparentForeground.toString()) : undefined
|
|
691
683
|
}
|
|
692
684
|
}
|
|
@@ -744,11 +736,10 @@ Repl = Repl_1 = ( __decorate([
|
|
|
744
736
|
( __param(12, IEditorService)),
|
|
745
737
|
( __param(13, IKeybindingService)),
|
|
746
738
|
( __param(14, IOpenerService)),
|
|
747
|
-
( __param(15,
|
|
748
|
-
( __param(16,
|
|
749
|
-
( __param(17,
|
|
750
|
-
( __param(18,
|
|
751
|
-
( __param(19, ILogService))
|
|
739
|
+
( __param(15, IHoverService)),
|
|
740
|
+
( __param(16, IMenuService)),
|
|
741
|
+
( __param(17, ILanguageFeaturesService)),
|
|
742
|
+
( __param(18, ILogService))
|
|
752
743
|
], Repl));
|
|
753
744
|
let ReplOptions = class ReplOptions extends Disposable {
|
|
754
745
|
static { ReplOptions_1 = this; }
|
|
@@ -799,7 +790,7 @@ class AcceptReplInputAction extends EditorAction {
|
|
|
799
790
|
constructor() {
|
|
800
791
|
super({
|
|
801
792
|
id: 'repl.action.acceptInput',
|
|
802
|
-
label: ( localize2(
|
|
793
|
+
label: ( localize2(5683, "Debug Console: Accept Input")),
|
|
803
794
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
804
795
|
kbOpts: {
|
|
805
796
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -819,7 +810,7 @@ class FilterReplAction extends ViewAction {
|
|
|
819
810
|
super({
|
|
820
811
|
viewId: REPL_VIEW_ID,
|
|
821
812
|
id: 'repl.action.filter',
|
|
822
|
-
title: ( localize(
|
|
813
|
+
title: ( localize(5684, "Debug Console: Focus Filter")),
|
|
823
814
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
824
815
|
keybinding: [{
|
|
825
816
|
when: EditorContextKeys.textInputFocus,
|
|
@@ -837,7 +828,7 @@ class FindReplAction extends ViewAction {
|
|
|
837
828
|
super({
|
|
838
829
|
viewId: REPL_VIEW_ID,
|
|
839
830
|
id: 'repl.action.find',
|
|
840
|
-
title: ( localize(
|
|
831
|
+
title: ( localize(5685, "Debug Console: Focus Find")),
|
|
841
832
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
842
833
|
keybinding: [{
|
|
843
834
|
when: ( ContextKeyExpr.or(CONTEXT_IN_DEBUG_REPL, ( ContextKeyExpr.equals('focusedView', 'workbench.panel.repl.view')))),
|
|
@@ -865,7 +856,7 @@ class ReplCopyAllAction extends EditorAction {
|
|
|
865
856
|
constructor() {
|
|
866
857
|
super({
|
|
867
858
|
id: 'repl.action.copyAll',
|
|
868
|
-
label: ( localize(
|
|
859
|
+
label: ( localize(5686, "Debug: Console Copy All")),
|
|
869
860
|
alias: 'Debug Console Copy All',
|
|
870
861
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
871
862
|
});
|
|
@@ -902,7 +893,7 @@ registerAction2(class extends ViewAction {
|
|
|
902
893
|
super({
|
|
903
894
|
id: selectReplCommandId,
|
|
904
895
|
viewId: REPL_VIEW_ID,
|
|
905
|
-
title: ( localize(
|
|
896
|
+
title: ( localize(5687, "Select Debug Console")),
|
|
906
897
|
f1: false,
|
|
907
898
|
menu: {
|
|
908
899
|
id: MenuId.ViewTitle,
|
|
@@ -931,9 +922,9 @@ registerAction2(class extends ViewAction {
|
|
|
931
922
|
super({
|
|
932
923
|
id: 'workbench.debug.panel.action.clearReplAction',
|
|
933
924
|
viewId: REPL_VIEW_ID,
|
|
934
|
-
title: ( localize2(
|
|
925
|
+
title: ( localize2(5688, 'Clear Console')),
|
|
935
926
|
metadata: {
|
|
936
|
-
description: ( localize2(
|
|
927
|
+
description: ( localize2(5689, 'Clears all program output from your debug REPL'))
|
|
937
928
|
},
|
|
938
929
|
f1: true,
|
|
939
930
|
icon: debugConsoleClearAll,
|
|
@@ -965,7 +956,7 @@ registerAction2(class extends ViewAction {
|
|
|
965
956
|
constructor() {
|
|
966
957
|
super({
|
|
967
958
|
id: 'debug.collapseRepl',
|
|
968
|
-
title: ( localize(
|
|
959
|
+
title: ( localize(5690, "Collapse All")),
|
|
969
960
|
viewId: REPL_VIEW_ID,
|
|
970
961
|
menu: {
|
|
971
962
|
id: MenuId.DebugConsoleContext,
|
|
@@ -983,7 +974,7 @@ registerAction2(class extends ViewAction {
|
|
|
983
974
|
constructor() {
|
|
984
975
|
super({
|
|
985
976
|
id: 'debug.replPaste',
|
|
986
|
-
title: ( localize(
|
|
977
|
+
title: ( localize(5691, "Paste")),
|
|
987
978
|
viewId: REPL_VIEW_ID,
|
|
988
979
|
precondition: ( CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(State.Inactive))),
|
|
989
980
|
menu: {
|
|
@@ -1013,7 +1004,7 @@ registerAction2(class extends ViewAction {
|
|
|
1013
1004
|
constructor() {
|
|
1014
1005
|
super({
|
|
1015
1006
|
id: 'workbench.debug.action.copyAll',
|
|
1016
|
-
title: ( localize(
|
|
1007
|
+
title: ( localize(5692, "Copy All")),
|
|
1017
1008
|
viewId: REPL_VIEW_ID,
|
|
1018
1009
|
menu: {
|
|
1019
1010
|
id: MenuId.DebugConsoleContext,
|
|
@@ -1031,7 +1022,7 @@ registerAction2(class extends Action2 {
|
|
|
1031
1022
|
constructor() {
|
|
1032
1023
|
super({
|
|
1033
1024
|
id: 'debug.replCopy',
|
|
1034
|
-
title: ( localize(
|
|
1025
|
+
title: ( localize(5693, "Copy")),
|
|
1035
1026
|
menu: {
|
|
1036
1027
|
id: MenuId.DebugConsoleContext,
|
|
1037
1028
|
group: '2_cutcopypaste',
|
|
@@ -1074,7 +1065,7 @@ registerAction2(class extends Action2 {
|
|
|
1074
1065
|
super({
|
|
1075
1066
|
id: FOCUS_REPL_ID,
|
|
1076
1067
|
category: DEBUG_COMMAND_CATEGORY,
|
|
1077
|
-
title: ( localize2(
|
|
1068
|
+
title: ( localize2(5694, "Focus on Debug Console View")),
|
|
1078
1069
|
});
|
|
1079
1070
|
}
|
|
1080
1071
|
async run(accessor) {
|
|
@@ -42,41 +42,41 @@ class ReplAccessibilityHelpProvider extends Disposable {
|
|
|
42
42
|
provideContent() {
|
|
43
43
|
return [
|
|
44
44
|
( localize(
|
|
45
|
-
|
|
45
|
+
5695,
|
|
46
46
|
"The debug console is a Read-Eval-Print-Loop that allows you to evaluate expressions and run commands and can be focused with{0}.",
|
|
47
47
|
'<keybinding:workbench.panel.repl.view.focus>'
|
|
48
48
|
)),
|
|
49
49
|
( localize(
|
|
50
|
-
|
|
50
|
+
5696,
|
|
51
51
|
"The debug console output can be navigated to from the input field with the Focus Previous Widget command{0}.",
|
|
52
52
|
'<keybinding:widgetNavigation.focusPrevious>'
|
|
53
53
|
)),
|
|
54
54
|
( localize(
|
|
55
|
-
|
|
55
|
+
5697,
|
|
56
56
|
"The debug console input can be navigated to from the output with the Focus Next Widget command{0}.",
|
|
57
57
|
'<keybinding:widgetNavigation.focusNext>'
|
|
58
58
|
)),
|
|
59
59
|
( localize(
|
|
60
|
-
|
|
60
|
+
5698,
|
|
61
61
|
"The debug console output history can be navigated with the up and down arrow keys."
|
|
62
62
|
)),
|
|
63
63
|
( localize(
|
|
64
|
-
|
|
64
|
+
5699,
|
|
65
65
|
"The Open Accessible View command{0} will allow character by character navigation of the console output.",
|
|
66
66
|
'<keybinding:editor.action.accessibleView>'
|
|
67
67
|
)),
|
|
68
68
|
( localize(
|
|
69
|
-
|
|
69
|
+
5700,
|
|
70
70
|
"The Show Run and Debug view command{0} will open the Run and Debug view and provides more information about debugging.",
|
|
71
71
|
'<keybinding:workbench.view.debug>'
|
|
72
72
|
)),
|
|
73
73
|
( localize(
|
|
74
|
-
|
|
74
|
+
5701,
|
|
75
75
|
"The Debug: Clear Console command{0} will clear the console output.",
|
|
76
76
|
'<keybinding:workbench.debug.panel.action.clearReplAction>'
|
|
77
77
|
)),
|
|
78
78
|
( localize(
|
|
79
|
-
|
|
79
|
+
5702,
|
|
80
80
|
"The setting `debug.expandLazyVariables` controls whether variables are evaluated automatically. This is enabled by default when using a screen reader."
|
|
81
81
|
)),
|
|
82
82
|
].join('\n');
|
|
@@ -21,7 +21,7 @@ import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/
|
|
|
21
21
|
import { Variable } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/debugModel';
|
|
22
22
|
import { ReplVariableElement, ReplEvaluationResult, ReplOutputElement, ReplEvaluationInput, ReplGroup, RawObjectReplElement } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/replModel';
|
|
23
23
|
import { AbstractExpressionsRenderer } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/baseDebugView';
|
|
24
|
-
import { debugConsoleEvaluationInput } from '@codingame/monaco-vscode-
|
|
24
|
+
import { debugConsoleEvaluationInput } from '@codingame/monaco-vscode-1bb39316-6fbf-572e-ab6a-818a2496c14f-common/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
25
25
|
|
|
26
26
|
var ReplGroupRenderer_1, ReplOutputElementRenderer_1, ReplVariablesRenderer_1;
|
|
27
27
|
const $ = $$1;
|
|
@@ -308,20 +308,20 @@ class ReplDataSource {
|
|
|
308
308
|
}
|
|
309
309
|
class ReplAccessibilityProvider {
|
|
310
310
|
getWidgetAriaLabel() {
|
|
311
|
-
return localize(
|
|
311
|
+
return localize(5703, "Debug Console");
|
|
312
312
|
}
|
|
313
313
|
getAriaLabel(element) {
|
|
314
314
|
if (element instanceof Variable) {
|
|
315
|
-
return localize(
|
|
315
|
+
return localize(5704, "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(5705, ", occurred {0} times", element.count)) : '');
|
|
319
319
|
}
|
|
320
320
|
if (element instanceof RawObjectReplElement) {
|
|
321
|
-
return localize(
|
|
321
|
+
return localize(5706, "Debug console variable {0}, value {1}", element.name, element.value);
|
|
322
322
|
}
|
|
323
323
|
if (element instanceof ReplGroup) {
|
|
324
|
-
return localize(
|
|
324
|
+
return localize(5707, "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
|
+
5708,
|
|
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
|
+
5709,
|
|
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
|
+
5710,
|
|
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(5711, "Once debugging, the following commands will be available:")),
|
|
73
73
|
( localize(
|
|
74
|
-
|
|
74
|
+
5712,
|
|
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
|
+
5713,
|
|
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
|
+
5714,
|
|
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
|
+
5715,
|
|
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
|
+
5716,
|
|
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
|
+
5717,
|
|
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
|
+
5718,
|
|
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
|
+
5719,
|
|
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
|
+
5720,
|
|
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
|
+
5721,
|
|
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
|
+
5722,
|
|
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
|
+
5723,
|
|
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
|
+
5724,
|
|
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
|
+
5725,
|
|
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
|
+
5726,
|
|
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(5727, "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) {
|
|
@@ -11,7 +11,6 @@ import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/h
|
|
|
11
11
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
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
|
-
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
15
14
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
16
15
|
import { ViewPane } from "@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane";
|
|
17
16
|
import { IViewletViewOptions } from "@codingame/monaco-vscode-55ed5668-e8ca-5335-a587-790bcf1200c0-common/vscode/vs/workbench/browser/parts/views/viewsViewlet";
|
|
@@ -31,7 +30,7 @@ export declare class WatchExpressionsView extends ViewPane implements IDebugView
|
|
|
31
30
|
private menu;
|
|
32
31
|
private expressionRenderer;
|
|
33
32
|
get treeSelection(): IExpression[];
|
|
34
|
-
constructor(options: IViewletViewOptions, contextMenuService: IContextMenuService, debugService: IDebugService, keybindingService: IKeybindingService, instantiationService: IInstantiationService, viewDescriptorService: IViewDescriptorService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, openerService: IOpenerService, themeService: IThemeService,
|
|
33
|
+
constructor(options: IViewletViewOptions, contextMenuService: IContextMenuService, debugService: IDebugService, keybindingService: IKeybindingService, instantiationService: IInstantiationService, viewDescriptorService: IViewDescriptorService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, openerService: IOpenerService, themeService: IThemeService, hoverService: IHoverService, menuService: IMenuService);
|
|
35
34
|
protected renderBody(container: HTMLElement): void;
|
|
36
35
|
protected layoutBody(height: number, width: number): void;
|
|
37
36
|
focus(): void;
|