@codingame/monaco-vscode-debug-service-override 1.85.6 → 2.0.0-v2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/debug.js +3 -3
- package/package.json +5 -5
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +24 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +46 -46
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +97 -97
- package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +28 -28
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +27 -27
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +46 -46
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +30 -30
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +36 -36
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +41 -41
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +26 -26
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +46 -46
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +28 -28
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +23 -23
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +37 -48
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +17 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +24 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +23 -23
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +24 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +28 -28
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +19 -19
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +30 -30
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +27 -27
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +15 -15
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +42 -42
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +19 -19
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +10 -10
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +6 -6
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +20 -20
- package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +5 -5
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +0 -45
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
3
|
-
import Severity from '
|
|
2
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
+
import Severity from 'vscode/vscode/vs/base/common/severity';
|
|
4
4
|
import { Markers } from 'vscode/vscode/vs/workbench/contrib/markers/common/markers';
|
|
5
5
|
import { ITaskService } from 'vscode/vscode/vs/workbench/contrib/tasks/common/taskService';
|
|
6
|
-
import { IConfigurationService } from '
|
|
6
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
7
7
|
import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
8
|
-
import { MarkerSeverity, IMarkerService } from '
|
|
8
|
+
import { MarkerSeverity, IMarkerService } from 'vscode/vscode/vs/platform/markers/common/markers';
|
|
9
9
|
import { IViewsService } from 'vscode/vscode/vs/workbench/common/views';
|
|
10
|
-
import { IStorageService } from '
|
|
11
|
-
import { createErrorWithActions } from '
|
|
12
|
-
import { Action } from '
|
|
10
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
11
|
+
import { createErrorWithActions } from 'vscode/vscode/vs/base/common/errorMessage';
|
|
12
|
+
import { Action } from 'vscode/vscode/vs/base/common/actions';
|
|
13
13
|
import { DEBUG_CONFIGURE_COMMAND_ID, DEBUG_CONFIGURE_LABEL } from './debugCommands.js';
|
|
14
|
-
import { ICommandService } from '
|
|
14
|
+
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
15
15
|
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
16
16
|
|
|
17
17
|
function once(match, event) {
|
|
@@ -63,28 +63,28 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
63
63
|
}
|
|
64
64
|
const taskLabel = typeof taskId === 'string' ? taskId : taskId ? taskId.name : '';
|
|
65
65
|
const message = errorCount > 1
|
|
66
|
-
? (
|
|
66
|
+
? ( localizeWithPath(
|
|
67
67
|
'vs/workbench/contrib/debug/browser/debugTaskRunner',
|
|
68
68
|
'preLaunchTaskErrors',
|
|
69
69
|
"Errors exist after running preLaunchTask '{0}'.",
|
|
70
70
|
taskLabel
|
|
71
71
|
))
|
|
72
72
|
: errorCount === 1
|
|
73
|
-
? (
|
|
73
|
+
? ( localizeWithPath(
|
|
74
74
|
'vs/workbench/contrib/debug/browser/debugTaskRunner',
|
|
75
75
|
'preLaunchTaskError',
|
|
76
76
|
"Error exists after running preLaunchTask '{0}'.",
|
|
77
77
|
taskLabel
|
|
78
78
|
))
|
|
79
79
|
: taskSummary && typeof taskSummary.exitCode === 'number'
|
|
80
|
-
? (
|
|
80
|
+
? ( localizeWithPath(
|
|
81
81
|
'vs/workbench/contrib/debug/browser/debugTaskRunner',
|
|
82
82
|
'preLaunchTaskExitCode',
|
|
83
83
|
"The preLaunchTask '{0}' terminated with exit code {1}.",
|
|
84
84
|
taskLabel,
|
|
85
85
|
taskSummary.exitCode
|
|
86
86
|
))
|
|
87
|
-
: (
|
|
87
|
+
: ( localizeWithPath(
|
|
88
88
|
'vs/workbench/contrib/debug/browser/debugTaskRunner',
|
|
89
89
|
'preLaunchTaskTerminated',
|
|
90
90
|
"The preLaunchTask '{0}' terminated.",
|
|
@@ -101,7 +101,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
101
101
|
message,
|
|
102
102
|
buttons: [
|
|
103
103
|
{
|
|
104
|
-
label: (
|
|
104
|
+
label: ( localizeWithPath(
|
|
105
105
|
'vs/workbench/contrib/debug/browser/debugTaskRunner',
|
|
106
106
|
{ key: 'debugAnyway', comment: ['&& denotes a mnemonic'] },
|
|
107
107
|
"&&Debug Anyway"
|
|
@@ -109,7 +109,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
109
109
|
run: () => DebugChoice.DebugAnyway
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
|
-
label: (
|
|
112
|
+
label: ( localizeWithPath(
|
|
113
113
|
'vs/workbench/contrib/debug/browser/debugTaskRunner',
|
|
114
114
|
{ key: 'showErrors', comment: ['&& denotes a mnemonic'] },
|
|
115
115
|
"&&Show Errors"
|
|
@@ -118,11 +118,11 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
118
118
|
}
|
|
119
119
|
],
|
|
120
120
|
cancelButton: {
|
|
121
|
-
label: (
|
|
121
|
+
label: ( localizeWithPath('vs/workbench/contrib/debug/browser/debugTaskRunner', 'abort', "Abort")),
|
|
122
122
|
run: () => DebugChoice.Cancel
|
|
123
123
|
},
|
|
124
124
|
checkbox: {
|
|
125
|
-
label: (
|
|
125
|
+
label: ( localizeWithPath(
|
|
126
126
|
'vs/workbench/contrib/debug/browser/debugTaskRunner',
|
|
127
127
|
'remember',
|
|
128
128
|
"Remember my choice in user settings"
|
|
@@ -162,7 +162,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
162
162
|
message: err.message,
|
|
163
163
|
buttons: [
|
|
164
164
|
{
|
|
165
|
-
label: (
|
|
165
|
+
label: ( localizeWithPath(
|
|
166
166
|
'vs/workbench/contrib/debug/browser/debugTaskRunner',
|
|
167
167
|
{ key: 'debugAnyway', comment: ['&& denotes a mnemonic'] },
|
|
168
168
|
"&&Debug Anyway"
|
|
@@ -178,7 +178,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
178
178
|
run: () => DebugChoice.Cancel
|
|
179
179
|
},
|
|
180
180
|
checkbox: {
|
|
181
|
-
label: (
|
|
181
|
+
label: ( localizeWithPath(
|
|
182
182
|
'vs/workbench/contrib/debug/browser/debugTaskRunner',
|
|
183
183
|
'rememberTask',
|
|
184
184
|
"Remember my choice for this task"
|
|
@@ -202,7 +202,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
202
202
|
return Promise.resolve(null);
|
|
203
203
|
}
|
|
204
204
|
if (!root) {
|
|
205
|
-
return Promise.reject(( new Error((
|
|
205
|
+
return Promise.reject(( new Error(( localizeWithPath(
|
|
206
206
|
'vs/workbench/contrib/debug/browser/debugTaskRunner',
|
|
207
207
|
'invalidTaskReference',
|
|
208
208
|
"Task '{0}' can not be referenced from a launch configuration that is in a different workspace folder.",
|
|
@@ -212,13 +212,13 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
212
212
|
const task = await this.taskService.getTask(root, taskId);
|
|
213
213
|
if (!task) {
|
|
214
214
|
const errorMessage = typeof taskId === 'string'
|
|
215
|
-
? (
|
|
215
|
+
? ( localizeWithPath(
|
|
216
216
|
'vs/workbench/contrib/debug/browser/debugTaskRunner',
|
|
217
217
|
'DebugTaskNotFoundWithTaskId',
|
|
218
218
|
"Could not find the task '{0}'.",
|
|
219
219
|
taskId
|
|
220
220
|
))
|
|
221
|
-
: (
|
|
221
|
+
: ( localizeWithPath(
|
|
222
222
|
'vs/workbench/contrib/debug/browser/debugTaskRunner',
|
|
223
223
|
'DebugTaskNotFound',
|
|
224
224
|
"Could not find the specified task."
|
|
@@ -274,13 +274,13 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
274
274
|
setTimeout(() => {
|
|
275
275
|
if (!taskStarted) {
|
|
276
276
|
const errorMessage = typeof taskId === 'string'
|
|
277
|
-
? (
|
|
277
|
+
? ( localizeWithPath(
|
|
278
278
|
'vs/workbench/contrib/debug/browser/debugTaskRunner',
|
|
279
279
|
'taskNotTrackedWithTaskId',
|
|
280
280
|
"The task '{0}' cannot be tracked. Make sure to have a problem matcher defined.",
|
|
281
281
|
taskId
|
|
282
282
|
))
|
|
283
|
-
: (
|
|
283
|
+
: ( localizeWithPath(
|
|
284
284
|
'vs/workbench/contrib/debug/browser/debugTaskRunner',
|
|
285
285
|
'taskNotTracked',
|
|
286
286
|
"The task '{0}' cannot be tracked. Make sure to have a problem matcher defined.",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
3
|
-
import { dispose } from '
|
|
3
|
+
import { dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
4
|
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host';
|
|
5
5
|
import { ITitleService } from 'vscode/vscode/vs/workbench/services/title/browser/titleService';
|
|
6
6
|
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { StandardMouseEvent } from '
|
|
5
|
-
import { ActionBar } from '
|
|
6
|
-
import { Action } from '
|
|
7
|
-
import
|
|
8
|
-
import { RunOnceScheduler } from '
|
|
9
|
-
import
|
|
10
|
-
import { dispose, DisposableStore } from '
|
|
2
|
+
import { PixelRatio } from 'vscode/vscode/vs/base/browser/browser';
|
|
3
|
+
import { $, append, addDisposableListener, EventType, addDisposableGenericMouseUpListener, getWindow, addDisposableGenericMouseDownListener, getComputedStyle, show, hide } from 'vscode/vscode/vs/base/browser/dom';
|
|
4
|
+
import { StandardMouseEvent } from 'vscode/vscode/vs/base/browser/mouseEvent';
|
|
5
|
+
import { ActionBar } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionbar';
|
|
6
|
+
import { Action } from 'vscode/vscode/vs/base/common/actions';
|
|
7
|
+
import { equals } from 'vscode/vscode/vs/base/common/arrays';
|
|
8
|
+
import { RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
|
|
9
|
+
import { isCancellationError } from 'vscode/vscode/vs/base/common/errors';
|
|
10
|
+
import { dispose, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
11
11
|
import './media/debugToolBar.css.js';
|
|
12
|
-
import { localizeWithPath } from '
|
|
12
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
13
13
|
import { DropdownWithPrimaryActionViewItem } from 'vscode/vscode/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem';
|
|
14
|
-
import { createActionViewItem, createAndFillInActionBarActions } from '
|
|
15
|
-
import { MenuRegistry, MenuId, IMenuService } from '
|
|
16
|
-
import { IConfigurationService } from '
|
|
17
|
-
import { ContextKeyExpr, IContextKeyService } from '
|
|
18
|
-
import { IContextMenuService } from '
|
|
19
|
-
import { IInstantiationService } from '
|
|
20
|
-
import { INotificationService } from '
|
|
21
|
-
import { IStorageService } from '
|
|
22
|
-
import { ITelemetryService } from '
|
|
23
|
-
import { widgetShadow, widgetBorder } from '
|
|
24
|
-
import { Themable, IThemeService } from '
|
|
25
|
-
import { ThemeIcon } from '
|
|
14
|
+
import { createActionViewItem, createAndFillInActionBarActions } from 'vscode/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
|
|
15
|
+
import { MenuRegistry, MenuId, IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
16
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
17
|
+
import { ContextKeyExpr, IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
18
|
+
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView';
|
|
19
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
20
|
+
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification';
|
|
21
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
22
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
23
|
+
import { widgetShadow, widgetBorder } from 'vscode/vscode/vs/platform/theme/common/colorRegistry';
|
|
24
|
+
import { Themable, IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
25
|
+
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
26
26
|
import { FocusSessionActionViewItem } from './debugActionViewItems.js';
|
|
27
27
|
import { debugToolBarBackground, debugToolBarBorder } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugColors';
|
|
28
28
|
import { CONTINUE_LABEL, CONTINUE_ID, PAUSE_LABEL, PAUSE_ID, DISCONNECT_ID, DISCONNECT_LABEL, STOP_LABEL, STOP_ID, STEP_OVER_LABEL, STEP_OVER_ID, STEP_INTO_LABEL, STEP_INTO_ID, STEP_OUT_LABEL, STEP_OUT_ID, STEP_BACK_ID, REVERSE_CONTINUE_ID, FOCUS_SESSION_LABEL, FOCUS_SESSION_ID, DISCONNECT_AND_SUSPEND_ID, DISCONNECT_AND_SUSPEND_LABEL, RESTART_LABEL, RESTART_SESSION_ID } from './debugCommands.js';
|
|
29
29
|
import { debugContinue, debugPause, debugDisconnect, debugStop, debugStepOver, debugStepInto, debugStepOut, debugStepBack, debugReverseContinue, debugGripper, debugRestart } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
30
30
|
import { VIEWLET_ID, CONTEXT_DEBUG_STATE, CONTEXT_IN_DEBUG_MODE, CONTEXT_FOCUSED_SESSION_IS_NO_DEBUG, CONTEXT_FOCUSED_SESSION_IS_ATTACH, CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED, CONTEXT_STEP_BACK_SUPPORTED, CONTEXT_MULTI_SESSION_DEBUG, CONTEXT_SUSPEND_DEBUGGEE_SUPPORTED, IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
31
31
|
import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
32
|
-
import { Codicon } from '
|
|
33
|
-
import { mainWindow } from '
|
|
32
|
+
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
33
|
+
import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
|
|
34
34
|
|
|
35
35
|
const DEBUG_TOOLBAR_POSITION_KEY = 'debug.actionswidgetposition';
|
|
36
36
|
const DEBUG_TOOLBAR_Y_KEY = 'debug.actionswidgety';
|
|
@@ -48,10 +48,10 @@ let DebugToolBar = class DebugToolBar extends Themable {
|
|
|
48
48
|
this.isVisible = false;
|
|
49
49
|
this.isBuilt = false;
|
|
50
50
|
this.stopActionViewItemDisposables = this._register(( new DisposableStore()));
|
|
51
|
-
this.$el =
|
|
51
|
+
this.$el = $('div.debug-toolbar');
|
|
52
52
|
this.$el.style.top = `${layoutService.mainContainerOffset.top}px`;
|
|
53
|
-
this.dragArea =
|
|
54
|
-
const actionBarContainer =
|
|
53
|
+
this.dragArea = append(this.$el, $('div.drag-area' + ThemeIcon.asCSSSelector(debugGripper)));
|
|
54
|
+
const actionBarContainer = append(this.$el, $('div.action-bar-container'));
|
|
55
55
|
this.debugToolBarMenu = menuService.createMenu(MenuId.DebugToolBar, contextKeyService);
|
|
56
56
|
this._register(this.debugToolBarMenu);
|
|
57
57
|
this.activeActions = [];
|
|
@@ -82,7 +82,7 @@ let DebugToolBar = class DebugToolBar extends Themable {
|
|
|
82
82
|
}
|
|
83
83
|
const actions = [];
|
|
84
84
|
createAndFillInActionBarActions(this.debugToolBarMenu, { shouldForwardArgs: true }, actions);
|
|
85
|
-
if (!
|
|
85
|
+
if (!equals(actions, this.activeActions, (first, second) => first.id === second.id && first.enabled === second.enabled)) {
|
|
86
86
|
this.actionBar.clear();
|
|
87
87
|
this.actionBar.push(actions, { icon: true, label: false });
|
|
88
88
|
this.activeActions = actions;
|
|
@@ -106,39 +106,28 @@ let DebugToolBar = class DebugToolBar extends Themable {
|
|
|
106
106
|
}));
|
|
107
107
|
this._register(this.debugToolBarMenu.onDidChange(() => this.updateScheduler.schedule()));
|
|
108
108
|
this._register(this.actionBar.actionRunner.onDidRun((e) => {
|
|
109
|
-
if (e.error && !
|
|
109
|
+
if (e.error && !isCancellationError(e.error)) {
|
|
110
110
|
this.notificationService.error(e.error);
|
|
111
111
|
}
|
|
112
112
|
this.telemetryService.publicLog2('workbenchActionExecuted', { id: e.action.id, from: 'debugActionsWidget' });
|
|
113
113
|
}));
|
|
114
|
-
this._register(
|
|
115
|
-
this._register(
|
|
116
|
-
const mouseClickEvent = ( new StandardMouseEvent(
|
|
114
|
+
this._register(addDisposableListener(mainWindow, EventType.RESIZE, () => this.setCoordinates()));
|
|
115
|
+
this._register(addDisposableGenericMouseUpListener(this.dragArea, (event) => {
|
|
116
|
+
const mouseClickEvent = ( new StandardMouseEvent(getWindow(this.dragArea), event));
|
|
117
117
|
if (mouseClickEvent.detail === 2) {
|
|
118
118
|
const widgetWidth = this.$el.clientWidth;
|
|
119
119
|
this.setCoordinates(0.5 * mainWindow.innerWidth - 0.5 * widgetWidth, 0);
|
|
120
120
|
this.storePosition();
|
|
121
121
|
}
|
|
122
122
|
}));
|
|
123
|
-
this._register(
|
|
123
|
+
this._register(addDisposableGenericMouseDownListener(this.dragArea, (event) => {
|
|
124
124
|
this.dragArea.classList.add('dragged');
|
|
125
|
-
const mouseMoveListener = dom.addDisposableGenericMouseMoveListener(mainWindow, (e) => {
|
|
126
|
-
const mouseMoveEvent = ( new StandardMouseEvent(mainWindow, e));
|
|
127
|
-
mouseMoveEvent.preventDefault();
|
|
128
|
-
this.setCoordinates(mouseMoveEvent.posx - 14, mouseMoveEvent.posy - 14);
|
|
129
|
-
});
|
|
130
|
-
const mouseUpListener = dom.addDisposableGenericMouseUpListener(mainWindow, (e) => {
|
|
131
|
-
this.storePosition();
|
|
132
|
-
this.dragArea.classList.remove('dragged');
|
|
133
|
-
mouseMoveListener.dispose();
|
|
134
|
-
mouseUpListener.dispose();
|
|
135
|
-
});
|
|
136
125
|
}));
|
|
137
126
|
this._register(this.layoutService.onDidChangePartVisibility(() => this.setYCoordinate()));
|
|
138
|
-
this._register(
|
|
127
|
+
this._register(PixelRatio.onDidChange(() => this.setYCoordinate()));
|
|
139
128
|
}
|
|
140
129
|
storePosition() {
|
|
141
|
-
const left =
|
|
130
|
+
const left = getComputedStyle(this.$el).left;
|
|
142
131
|
if (left) {
|
|
143
132
|
const position = parseFloat(left) / mainWindow.innerWidth;
|
|
144
133
|
this.storageService.store(DEBUG_TOOLBAR_POSITION_KEY, position, 0 , 1 );
|
|
@@ -219,12 +208,12 @@ let DebugToolBar = class DebugToolBar extends Themable {
|
|
|
219
208
|
this.layoutService.mainContainer.appendChild(this.$el);
|
|
220
209
|
}
|
|
221
210
|
this.isVisible = true;
|
|
222
|
-
|
|
211
|
+
show(this.$el);
|
|
223
212
|
this.setCoordinates();
|
|
224
213
|
}
|
|
225
214
|
hide() {
|
|
226
215
|
this.isVisible = false;
|
|
227
|
-
|
|
216
|
+
hide(this.$el);
|
|
228
217
|
}
|
|
229
218
|
dispose() {
|
|
230
219
|
super.dispose();
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { DisposableStore, dispose } from '
|
|
2
|
+
import { DisposableStore, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
3
|
import './media/debugViewlet.css.js';
|
|
4
|
-
import
|
|
5
|
-
import { createActionViewItem } from '
|
|
6
|
-
import { MenuRegistry, MenuId, registerAction2, Action2 } from '
|
|
7
|
-
import { IConfigurationService } from '
|
|
8
|
-
import { ContextKeyExpr, IContextKeyService } from '
|
|
9
|
-
import { IContextMenuService, IContextViewService } from '
|
|
10
|
-
import { IInstantiationService } from '
|
|
11
|
-
import { IProgressService } from '
|
|
12
|
-
import { IQuickInputService } from '
|
|
13
|
-
import { IStorageService } from '
|
|
14
|
-
import { ITelemetryService } from '
|
|
15
|
-
import { IThemeService } from '
|
|
16
|
-
import { IWorkspaceContextService } from '
|
|
4
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
5
|
+
import { createActionViewItem } from 'vscode/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
|
|
6
|
+
import { MenuRegistry, MenuId, registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
7
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
8
|
+
import { ContextKeyExpr, IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
9
|
+
import { IContextMenuService, IContextViewService } from 'vscode/vscode/vs/platform/contextview/browser/contextView';
|
|
10
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
11
|
+
import { IProgressService } from 'vscode/vscode/vs/platform/progress/common/progress';
|
|
12
|
+
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
13
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
14
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
15
|
+
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
16
|
+
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
17
17
|
import { ViewsSubMenu, ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
18
18
|
import { WorkbenchStateContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
19
19
|
import { IViewsService, IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views';
|
|
@@ -163,7 +163,7 @@ registerAction2(class extends Action2 {
|
|
|
163
163
|
title: {
|
|
164
164
|
value: DEBUG_CONFIGURE_LABEL,
|
|
165
165
|
original: 'Open \'launch.json\'',
|
|
166
|
-
mnemonicTitle: (
|
|
166
|
+
mnemonicTitle: ( localizeWithPath(
|
|
167
167
|
'vs/workbench/contrib/debug/browser/debugViewlet',
|
|
168
168
|
{ key: 'miOpenConfigurations', comment: ['&& denotes a mnemonic'] },
|
|
169
169
|
"Open &&Configurations"
|
|
@@ -206,7 +206,7 @@ registerAction2(class extends Action2 {
|
|
|
206
206
|
const picks = ( launches.map(l => ({ label: l.name, launch: l })));
|
|
207
207
|
const picked = await quickInputService.pick(picks, {
|
|
208
208
|
activeItem: picks[0],
|
|
209
|
-
placeHolder: (
|
|
209
|
+
placeHolder: ( localizeWithPath(
|
|
210
210
|
'vs/workbench/contrib/debug/browser/debugViewlet',
|
|
211
211
|
{ key: 'selectWorkspaceFolder', comment: ['User picks a workspace folder or a workspace configuration file here. Workspace configuration files can contain settings and thus a launch.json configuration can be written into one.'] },
|
|
212
212
|
"Select a workspace folder to create a launch.json file in or add it to the workspace config file"
|
|
@@ -226,7 +226,7 @@ registerAction2(class extends Action2 {
|
|
|
226
226
|
constructor() {
|
|
227
227
|
super({
|
|
228
228
|
id: 'debug.toggleReplIgnoreFocus',
|
|
229
|
-
title: (
|
|
229
|
+
title: ( localizeWithPath(
|
|
230
230
|
'vs/workbench/contrib/debug/browser/debugViewlet',
|
|
231
231
|
'debugPanel',
|
|
232
232
|
"Debug Console"
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { PixelRatio } from '
|
|
3
|
-
import { append, $, addStandardDisposableListener } from '
|
|
4
|
-
import { binarySearch2 } from '
|
|
5
|
-
import { Emitter } from '
|
|
6
|
-
import { dispose, Disposable } from '
|
|
7
|
-
import { isAbsolute } from '
|
|
8
|
-
import { URI } from '
|
|
9
|
-
import { applyFontInfo } from '
|
|
10
|
-
import { isCodeEditor } from '
|
|
11
|
-
import { BareFontInfo } from '
|
|
12
|
-
import { Range } from '
|
|
13
|
-
import { StringBuilder } from '
|
|
14
|
-
import { ITextModelService } from '
|
|
15
|
-
import { localizeWithPath } from '
|
|
16
|
-
import { IConfigurationService } from '
|
|
17
|
-
import { IContextKeyService } from '
|
|
18
|
-
import { IInstantiationService } from '
|
|
19
|
-
import { WorkbenchTable } from '
|
|
20
|
-
import { ILogService } from '
|
|
21
|
-
import { IStorageService } from '
|
|
22
|
-
import { ITelemetryService } from '
|
|
23
|
-
import { editorBackground } from '
|
|
24
|
-
import { IThemeService } from '
|
|
25
|
-
import { IUriIdentityService } from '
|
|
2
|
+
import { PixelRatio } from 'vscode/vscode/vs/base/browser/browser';
|
|
3
|
+
import { append, $, addStandardDisposableListener } from 'vscode/vscode/vs/base/browser/dom';
|
|
4
|
+
import { binarySearch2 } from 'vscode/vscode/vs/base/common/arrays';
|
|
5
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
6
|
+
import { dispose, Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
7
|
+
import { isAbsolute } from 'vscode/vscode/vs/base/common/path';
|
|
8
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
9
|
+
import { applyFontInfo } from 'vscode/vscode/vs/editor/browser/config/domFontInfo';
|
|
10
|
+
import { isCodeEditor } from 'vscode/vscode/vs/editor/browser/editorBrowser';
|
|
11
|
+
import { BareFontInfo } from 'vscode/vscode/vs/editor/common/config/fontInfo';
|
|
12
|
+
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
13
|
+
import { StringBuilder } from 'vscode/vscode/vs/editor/common/core/stringBuilder';
|
|
14
|
+
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
15
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
16
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
17
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
18
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
19
|
+
import { WorkbenchTable } from 'vscode/vscode/vs/platform/list/browser/listService';
|
|
20
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
21
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
22
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
23
|
+
import { editorBackground } from 'vscode/vscode/vs/platform/theme/common/colorRegistry';
|
|
24
|
+
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
25
|
+
import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity';
|
|
26
26
|
import { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
27
27
|
import { topStackFrameColor, focusedStackFrameColor } from 'vscode/vscode/vs/workbench/contrib/debug/browser/callStackEditorContribution';
|
|
28
28
|
import { breakpoint, debugBreakpointHint, debugStackframe, debugStackframeFocused } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import './media/exceptionWidget.css.js';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { ZoneWidget } from '
|
|
3
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
4
|
+
import { append, isAncestorOfActiveElement, $ as $$1 } from 'vscode/vscode/vs/base/browser/dom';
|
|
5
|
+
import { ZoneWidget } from 'vscode/vscode/vs/editor/contrib/zoneWidget/browser/zoneWidget';
|
|
6
6
|
import { EDITOR_CONTRIBUTION_ID } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
7
|
-
import { RunOnceScheduler } from '
|
|
8
|
-
import { IThemeService } from '
|
|
9
|
-
import { ThemeIcon } from '
|
|
10
|
-
import { registerColor } from '
|
|
11
|
-
import { IInstantiationService } from '
|
|
7
|
+
import { RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
|
|
8
|
+
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
9
|
+
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
10
|
+
import { registerColor } from 'vscode/vscode/vs/platform/theme/common/colorRegistry';
|
|
11
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
12
12
|
import { LinkDetector } from './linkDetector.js';
|
|
13
|
-
import { ActionBar } from '
|
|
14
|
-
import { Action } from '
|
|
15
|
-
import { widgetClose } from '
|
|
13
|
+
import { ActionBar } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionbar';
|
|
14
|
+
import { Action } from 'vscode/vscode/vs/base/common/actions';
|
|
15
|
+
import { widgetClose } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
|
|
16
16
|
|
|
17
|
-
const $ =
|
|
18
|
-
const debugExceptionWidgetBorder = registerColor('debugExceptionWidget.border', { dark: '#a31515', light: '#a31515', hcDark: '#a31515', hcLight: '#a31515' }, (
|
|
17
|
+
const $ = $$1;
|
|
18
|
+
const debugExceptionWidgetBorder = registerColor('debugExceptionWidget.border', { dark: '#a31515', light: '#a31515', hcDark: '#a31515', hcLight: '#a31515' }, ( localizeWithPath(
|
|
19
19
|
'vs/workbench/contrib/debug/browser/exceptionWidget',
|
|
20
20
|
'debugExceptionWidgetBorder',
|
|
21
21
|
'Exception widget border color.'
|
|
22
22
|
)));
|
|
23
|
-
const debugExceptionWidgetBackground = registerColor('debugExceptionWidget.background', { dark: '#420b0d', light: '#f1dfde', hcDark: '#420b0d', hcLight: '#f1dfde' }, (
|
|
23
|
+
const debugExceptionWidgetBackground = registerColor('debugExceptionWidget.background', { dark: '#420b0d', light: '#f1dfde', hcDark: '#420b0d', hcLight: '#f1dfde' }, ( localizeWithPath(
|
|
24
24
|
'vs/workbench/contrib/debug/browser/exceptionWidget',
|
|
25
25
|
'debugExceptionWidgetBackground',
|
|
26
26
|
'Exception widget background color.'
|
|
@@ -60,38 +60,38 @@ let ExceptionWidget = class ExceptionWidget extends ZoneWidget {
|
|
|
60
60
|
container.tabIndex = 0;
|
|
61
61
|
const title = $('.title');
|
|
62
62
|
const label = $('.label');
|
|
63
|
-
|
|
63
|
+
append(title, label);
|
|
64
64
|
const actions = $('.actions');
|
|
65
|
-
|
|
66
|
-
label.textContent = this.exceptionInfo.id ? (
|
|
65
|
+
append(title, actions);
|
|
66
|
+
label.textContent = this.exceptionInfo.id ? ( localizeWithPath(
|
|
67
67
|
'vs/workbench/contrib/debug/browser/exceptionWidget',
|
|
68
68
|
'exceptionThrownWithId',
|
|
69
69
|
'Exception has occurred: {0}',
|
|
70
70
|
this.exceptionInfo.id
|
|
71
|
-
)) : (
|
|
71
|
+
)) : ( localizeWithPath(
|
|
72
72
|
'vs/workbench/contrib/debug/browser/exceptionWidget',
|
|
73
73
|
'exceptionThrown',
|
|
74
74
|
'Exception has occurred.'
|
|
75
75
|
));
|
|
76
76
|
let ariaLabel = label.textContent;
|
|
77
77
|
const actionBar = ( new ActionBar(actions));
|
|
78
|
-
actionBar.push(( new Action('editor.closeExceptionWidget', (
|
|
78
|
+
actionBar.push(( new Action('editor.closeExceptionWidget', ( localizeWithPath('vs/workbench/contrib/debug/browser/exceptionWidget', 'close', "Close")), ThemeIcon.asClassName(widgetClose), true, async () => {
|
|
79
79
|
const contribution = this.editor.getContribution(EDITOR_CONTRIBUTION_ID);
|
|
80
80
|
contribution?.closeExceptionWidget();
|
|
81
81
|
})), { label: false, icon: true });
|
|
82
|
-
|
|
82
|
+
append(container, title);
|
|
83
83
|
if (this.exceptionInfo.description) {
|
|
84
84
|
const description = $('.description');
|
|
85
85
|
description.textContent = this.exceptionInfo.description;
|
|
86
86
|
ariaLabel += ', ' + this.exceptionInfo.description;
|
|
87
|
-
|
|
87
|
+
append(container, description);
|
|
88
88
|
}
|
|
89
89
|
if (this.exceptionInfo.details && this.exceptionInfo.details.stackTrace) {
|
|
90
90
|
const stackTrace = $('.stack-trace');
|
|
91
91
|
const linkDetector = this.instantiationService.createInstance(LinkDetector);
|
|
92
92
|
const linkedStackTrace = linkDetector.linkify(this.exceptionInfo.details.stackTrace, true, this.debugSession ? this.debugSession.root : undefined);
|
|
93
93
|
stackTrace.appendChild(linkedStackTrace);
|
|
94
|
-
|
|
94
|
+
append(container, stackTrace);
|
|
95
95
|
ariaLabel += ', ' + this.exceptionInfo.details.stackTrace;
|
|
96
96
|
}
|
|
97
97
|
container.setAttribute('aria-label', ariaLabel);
|
|
@@ -110,7 +110,7 @@ let ExceptionWidget = class ExceptionWidget extends ZoneWidget {
|
|
|
110
110
|
if (!this.container) {
|
|
111
111
|
return false;
|
|
112
112
|
}
|
|
113
|
-
return
|
|
113
|
+
return isAncestorOfActiveElement(this.container);
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
116
|
ExceptionWidget = ( __decorate([
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Event } from '
|
|
3
|
-
import { URI } from '
|
|
2
|
+
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
3
|
+
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
4
4
|
import { ExtensionHostDebugChannelClient, ExtensionHostDebugBroadcastChannel } from '../../../../platform/debug/common/extensionHostDebugIpc.js';
|
|
5
|
-
import { IFileService } from '
|
|
6
|
-
import { ILogService } from '
|
|
7
|
-
import { IStorageService } from '
|
|
5
|
+
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files';
|
|
6
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
7
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
8
8
|
import { isFolderToOpen, isWorkspaceToOpen } from 'vscode/vscode/vs/platform/window/common/window';
|
|
9
|
-
import { toWorkspaceIdentifier, isSingleFolderWorkspaceIdentifier, isWorkspaceIdentifier, hasWorkspaceFileExtension, IWorkspaceContextService } from '
|
|
9
|
+
import { toWorkspaceIdentifier, isSingleFolderWorkspaceIdentifier, isWorkspaceIdentifier, hasWorkspaceFileExtension, IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
10
10
|
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService';
|
|
11
11
|
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host';
|
|
12
12
|
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService';
|