@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
|
@@ -4,10 +4,12 @@ import { ListDragOverEffectPosition, ListDragOverEffectType } from '@codingame/m
|
|
|
4
4
|
import { ElementsDragAndDropData, ListViewTargetSector } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/list/listView';
|
|
5
5
|
import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
6
6
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
7
|
+
import { KeyMod, KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
7
8
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
8
9
|
import { getFlatContextMenuActions, getContextMenuActions } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
|
|
9
10
|
import { MenuId, registerAction2, Action2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
10
11
|
import { IMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service';
|
|
12
|
+
import { IClipboardService } from '@codingame/monaco-vscode-api/vscode/vs/platform/clipboard/common/clipboardService.service';
|
|
11
13
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
12
14
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
13
15
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
@@ -15,19 +17,21 @@ import { IContextMenuService, IContextViewService } from '@codingame/monaco-vsco
|
|
|
15
17
|
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
16
18
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
17
19
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
20
|
+
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
18
21
|
import { WorkbenchAsyncDataTree } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
|
|
19
22
|
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
20
|
-
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
21
23
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
22
24
|
import { ViewPane, ViewAction } from '@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
25
|
+
import { FocusedViewContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
23
26
|
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
|
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 '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
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';
|
|
25
28
|
import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
26
29
|
import { Expression, Variable, VisualizedExpression } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/debugModel';
|
|
27
30
|
import { renderViewTree, expressionAndScopeLabelProvider, AbstractExpressionDataSource, AbstractExpressionsRenderer } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/baseDebugView';
|
|
31
|
+
import { COPY_WATCH_EXPRESSION_COMMAND_ID } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
28
32
|
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-
|
|
30
|
-
import { VariablesRenderer, VisualizedVariableRenderer } from '
|
|
33
|
+
import { watchExpressionsAdd, watchExpressionsRemoveAll } from '@codingame/monaco-vscode-1bb39316-6fbf-572e-ab6a-818a2496c14f-common/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
34
|
+
import { VariablesRenderer, VisualizedVariableRenderer } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/variablesView';
|
|
31
35
|
|
|
32
36
|
var WatchExpressionsRenderer_1;
|
|
33
37
|
const MAX_VALUE_RENDER_LENGTH_IN_VIEWLET = 1024;
|
|
@@ -37,8 +41,8 @@ let WatchExpressionsView = class WatchExpressionsView extends ViewPane {
|
|
|
37
41
|
get treeSelection() {
|
|
38
42
|
return this.tree.getSelection();
|
|
39
43
|
}
|
|
40
|
-
constructor(options, contextMenuService, debugService, keybindingService, instantiationService, viewDescriptorService, configurationService, contextKeyService, openerService, themeService,
|
|
41
|
-
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService,
|
|
44
|
+
constructor(options, contextMenuService, debugService, keybindingService, instantiationService, viewDescriptorService, configurationService, contextKeyService, openerService, themeService, hoverService, menuService) {
|
|
45
|
+
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, hoverService);
|
|
42
46
|
this.debugService = debugService;
|
|
43
47
|
this.needsRefresh = false;
|
|
44
48
|
this.menu = menuService.createMenu(MenuId.DebugWatchContext, contextKeyService);
|
|
@@ -190,9 +194,8 @@ WatchExpressionsView = ( __decorate([
|
|
|
190
194
|
( __param(7, IContextKeyService)),
|
|
191
195
|
( __param(8, IOpenerService)),
|
|
192
196
|
( __param(9, IThemeService)),
|
|
193
|
-
( __param(10,
|
|
194
|
-
( __param(11,
|
|
195
|
-
( __param(12, IMenuService))
|
|
197
|
+
( __param(10, IHoverService)),
|
|
198
|
+
( __param(11, IMenuService))
|
|
196
199
|
], WatchExpressionsView));
|
|
197
200
|
class WatchExpressionsDelegate {
|
|
198
201
|
getHeight(_element) {
|
|
@@ -286,7 +289,7 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
286
289
|
if (settingValue) {
|
|
287
290
|
return {
|
|
288
291
|
initialValue: expression.value,
|
|
289
|
-
ariaLabel: ( localize(
|
|
292
|
+
ariaLabel: ( localize(5736, "Type new value")),
|
|
290
293
|
onFinish: async (value, success) => {
|
|
291
294
|
if (success && value) {
|
|
292
295
|
const focusedFrame = this.debugService.getViewModel().focusedStackFrame;
|
|
@@ -300,8 +303,8 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
300
303
|
}
|
|
301
304
|
return {
|
|
302
305
|
initialValue: expression.name ? expression.name : '',
|
|
303
|
-
ariaLabel: ( localize(
|
|
304
|
-
placeholder: ( localize(
|
|
306
|
+
ariaLabel: ( localize(5737, "Type watch expression")),
|
|
307
|
+
placeholder: ( localize(5738, "Expression to watch")),
|
|
305
308
|
onFinish: (value, success) => {
|
|
306
309
|
if (success && value) {
|
|
307
310
|
this.debugService.renameWatchExpression(expression.getId(), value);
|
|
@@ -341,13 +344,13 @@ function getContextForWatchExpressionMenu(parentContext, expression) {
|
|
|
341
344
|
}
|
|
342
345
|
class WatchExpressionsAccessibilityProvider {
|
|
343
346
|
getWidgetAriaLabel() {
|
|
344
|
-
return localize(
|
|
347
|
+
return localize(5739, "Debug Watch Expressions");
|
|
345
348
|
}
|
|
346
349
|
getAriaLabel(element) {
|
|
347
350
|
if (element instanceof Expression) {
|
|
348
|
-
return localize(
|
|
351
|
+
return localize(5740, "{0}, value {1}", element.name, element.value);
|
|
349
352
|
}
|
|
350
|
-
return localize(
|
|
353
|
+
return localize(5741, "{0}, value {1}", element.name, element.value);
|
|
351
354
|
}
|
|
352
355
|
}
|
|
353
356
|
class WatchExpressionsDragAndDrop {
|
|
@@ -428,7 +431,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
428
431
|
super({
|
|
429
432
|
id: 'watch.collapse',
|
|
430
433
|
viewId: WATCH_VIEW_ID,
|
|
431
|
-
title: ( localize(
|
|
434
|
+
title: ( localize(5742, "Collapse All")),
|
|
432
435
|
f1: false,
|
|
433
436
|
icon: Codicon.collapseAll,
|
|
434
437
|
precondition: CONTEXT_WATCH_EXPRESSIONS_EXIST,
|
|
@@ -445,7 +448,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
445
448
|
}
|
|
446
449
|
});
|
|
447
450
|
const ADD_WATCH_ID = 'workbench.debug.viewlet.action.addWatchExpression';
|
|
448
|
-
const ADD_WATCH_LABEL = ( localize(
|
|
451
|
+
const ADD_WATCH_LABEL = ( localize(5743, "Add Expression"));
|
|
449
452
|
registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
450
453
|
constructor() {
|
|
451
454
|
super({
|
|
@@ -466,7 +469,7 @@ registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
|
466
469
|
}
|
|
467
470
|
});
|
|
468
471
|
const REMOVE_WATCH_EXPRESSIONS_COMMAND_ID = 'workbench.debug.viewlet.action.removeAllWatchExpressions';
|
|
469
|
-
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(
|
|
472
|
+
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(5744, "Remove All Expressions"));
|
|
470
473
|
registerAction2(class RemoveAllWatchExpressionsAction extends Action2 {
|
|
471
474
|
constructor() {
|
|
472
475
|
super({
|
|
@@ -488,5 +491,36 @@ registerAction2(class RemoveAllWatchExpressionsAction extends Action2 {
|
|
|
488
491
|
debugService.removeWatchExpressions();
|
|
489
492
|
}
|
|
490
493
|
});
|
|
494
|
+
registerAction2(class CopyExpression extends ViewAction {
|
|
495
|
+
constructor() {
|
|
496
|
+
super({
|
|
497
|
+
id: COPY_WATCH_EXPRESSION_COMMAND_ID,
|
|
498
|
+
title: ( localize(5745, "Copy Expression")),
|
|
499
|
+
f1: false,
|
|
500
|
+
viewId: WATCH_VIEW_ID,
|
|
501
|
+
precondition: CONTEXT_WATCH_EXPRESSIONS_EXIST,
|
|
502
|
+
keybinding: {
|
|
503
|
+
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyC,
|
|
504
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
505
|
+
when: ( ContextKeyExpr.and(( FocusedViewContext.isEqualTo(WATCH_VIEW_ID)), ( CONTEXT_EXPRESSION_SELECTED.negate()))),
|
|
506
|
+
},
|
|
507
|
+
menu: {
|
|
508
|
+
id: MenuId.DebugWatchContext,
|
|
509
|
+
order: 20,
|
|
510
|
+
group: '3_modification',
|
|
511
|
+
when: ( CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression'))
|
|
512
|
+
}
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
runInView(accessor, view, value) {
|
|
516
|
+
const clipboardService = accessor.get(IClipboardService);
|
|
517
|
+
if (!value) {
|
|
518
|
+
value = view.treeSelection.at(-1);
|
|
519
|
+
}
|
|
520
|
+
if (value) {
|
|
521
|
+
clipboardService.writeText(value.name);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
});
|
|
491
525
|
|
|
492
526
|
export { ADD_WATCH_ID, ADD_WATCH_LABEL, REMOVE_WATCH_EXPRESSIONS_COMMAND_ID, REMOVE_WATCH_EXPRESSIONS_LABEL, WatchExpressionsRenderer, WatchExpressionsView };
|
|
@@ -7,7 +7,6 @@ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
7
7
|
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
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
|
-
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
11
10
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
12
11
|
import { ViewPane } from "@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane";
|
|
13
12
|
import { IViewletViewOptions } from "@codingame/monaco-vscode-55ed5668-e8ca-5335-a587-790bcf1200c0-common/vscode/vs/workbench/browser/parts/views/viewsViewlet";
|
|
@@ -21,6 +20,6 @@ export declare class WelcomeView extends ViewPane {
|
|
|
21
20
|
static readonly LABEL: ILocalizedString;
|
|
22
21
|
private debugStartLanguageContext;
|
|
23
22
|
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,
|
|
23
|
+
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, hoverService: IHoverService);
|
|
25
24
|
shouldShowWelcome(): boolean;
|
|
26
25
|
}
|
|
@@ -15,9 +15,8 @@ import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
15
15
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
16
16
|
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
17
17
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
18
|
-
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
19
18
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
20
|
-
import { OpenFileFolderAction, OpenFileAction, OpenFolderAction } from '@codingame/monaco-vscode-
|
|
19
|
+
import { OpenFileFolderAction, OpenFileAction, OpenFolderAction } from '@codingame/monaco-vscode-a4c2011e-8775-52bd-abf0-4a3c07a9696b-common/vscode/vs/workbench/browser/actions/workspaceActions';
|
|
21
20
|
import { ViewPane } from '@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
22
21
|
import { WorkbenchStateContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
23
22
|
import { Extensions, ViewContentGroups } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
@@ -32,9 +31,9 @@ const CONTEXT_DEBUG_START_LANGUAGE = ( new RawContextKey(debugStartLanguageKey,
|
|
|
32
31
|
const CONTEXT_DEBUGGER_INTERESTED_IN_ACTIVE_EDITOR = ( new RawContextKey('debuggerInterestedInActiveEditor', false));
|
|
33
32
|
let WelcomeView = class WelcomeView extends ViewPane {
|
|
34
33
|
static { this.ID = 'workbench.debug.welcome'; }
|
|
35
|
-
static { this.LABEL = ( localize2(
|
|
36
|
-
constructor(options, themeService, keybindingService, contextMenuService, configurationService, contextKeyService, debugService, editorService, instantiationService, viewDescriptorService, openerService, storageSevice,
|
|
37
|
-
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService,
|
|
34
|
+
static { this.LABEL = ( localize2(5746, "Run")); }
|
|
35
|
+
constructor(options, themeService, keybindingService, contextMenuService, configurationService, contextKeyService, debugService, editorService, instantiationService, viewDescriptorService, openerService, storageSevice, hoverService) {
|
|
36
|
+
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, hoverService);
|
|
38
37
|
this.debugService = debugService;
|
|
39
38
|
this.editorService = editorService;
|
|
40
39
|
this.debugStartLanguageContext = CONTEXT_DEBUG_START_LANGUAGE.bindTo(contextKeyService);
|
|
@@ -97,13 +96,12 @@ WelcomeView = ( __decorate([
|
|
|
97
96
|
( __param(9, IViewDescriptorService)),
|
|
98
97
|
( __param(10, IOpenerService)),
|
|
99
98
|
( __param(11, IStorageService)),
|
|
100
|
-
( __param(12,
|
|
101
|
-
( __param(13, IHoverService))
|
|
99
|
+
( __param(12, IHoverService))
|
|
102
100
|
], WelcomeView));
|
|
103
101
|
const viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
|
|
104
102
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
105
103
|
content: ( localize(
|
|
106
|
-
|
|
104
|
+
5747,
|
|
107
105
|
"[Open a file](command:{0}) which can be debugged or run.",
|
|
108
106
|
(isMacintosh && !isWeb) ? OpenFileFolderAction.ID : OpenFileAction.ID
|
|
109
107
|
)),
|
|
@@ -112,14 +110,14 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
112
110
|
});
|
|
113
111
|
let debugKeybindingLabel = '';
|
|
114
112
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
115
|
-
content: `[${( localize(
|
|
113
|
+
content: `[${( localize(5748, "Run and Debug"))}${debugKeybindingLabel}](command:${DEBUG_START_COMMAND_ID})`,
|
|
116
114
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
117
115
|
group: ViewContentGroups.Debug,
|
|
118
116
|
order: 1
|
|
119
117
|
});
|
|
120
118
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
121
119
|
content: ( localize(
|
|
122
|
-
|
|
120
|
+
5749,
|
|
123
121
|
"To customize Run and Debug [create a launch.json file](command:{0}).",
|
|
124
122
|
`${DEBUG_CONFIGURE_COMMAND_ID}?${encodeURIComponent(JSON.stringify([{ addNew: true }]))}`
|
|
125
123
|
)),
|
|
@@ -128,7 +126,7 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
128
126
|
});
|
|
129
127
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
130
128
|
content: ( localize(
|
|
131
|
-
|
|
129
|
+
5750,
|
|
132
130
|
"To customize Run and Debug, [open a folder](command:{0}) and create a launch.json file.",
|
|
133
131
|
(isMacintosh && !isWeb) ? OpenFileFolderAction.ID : OpenFolderAction.ID
|
|
134
132
|
)),
|
|
@@ -137,7 +135,7 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
137
135
|
});
|
|
138
136
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
139
137
|
content: ( localize(
|
|
140
|
-
|
|
138
|
+
5751,
|
|
141
139
|
"All debug extensions are disabled. Enable a debug extension or install a new one from the Marketplace."
|
|
142
140
|
)),
|
|
143
141
|
when: ( CONTEXT_DEBUG_EXTENSION_AVAILABLE.toNegated()),
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { URI as uri } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
2
|
import { ITextModel } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/model";
|
|
3
|
-
import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model";
|
|
4
|
-
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language";
|
|
5
|
-
import {
|
|
3
|
+
import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service";
|
|
4
|
+
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service";
|
|
5
|
+
import { ITextModelContentProvider } from "@codingame/monaco-vscode-model-service-override/vscode/vs/editor/common/services/resolverService";
|
|
6
|
+
import { ITextModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service";
|
|
6
7
|
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
7
8
|
import { IDebugService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
8
|
-
import { IEditorWorkerService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/editorWorker";
|
|
9
|
+
import { IEditorWorkerService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/editorWorker.service";
|
|
9
10
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
10
11
|
export declare class DebugContentProvider extends Disposable implements IWorkbenchContribution, ITextModelContentProvider {
|
|
11
12
|
private readonly debugService;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
4
|
import { getMimeTypes } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/languagesAssociations';
|
|
5
|
-
import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model';
|
|
6
|
-
import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language';
|
|
7
|
-
import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService';
|
|
5
|
+
import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service';
|
|
6
|
+
import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service';
|
|
7
|
+
import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service';
|
|
8
8
|
import { DEBUG_SCHEME } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
9
9
|
import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
10
10
|
import { Source } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/debugSource';
|
|
11
|
-
import { IEditorWorkerService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/editorWorker';
|
|
11
|
+
import { IEditorWorkerService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/editorWorker.service';
|
|
12
12
|
import { EditOperation } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/editOperation';
|
|
13
13
|
import { Range } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range';
|
|
14
14
|
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
@@ -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(5817, "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(5818, "Could not load source '{0}': {1}.", resource.path, errMsg))
|
|
63
|
+
: ( localize(5819, "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
|
+
5820,
|
|
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
|
+
5821,
|
|
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(5822, "&&Stop Debugging"))
|
|
48
48
|
});
|
|
49
49
|
return !res.confirmed;
|
|
50
50
|
}
|