@codingame/monaco-vscode-api 8.0.2 → 8.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -2
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +1 -1
- package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
- package/vscode/src/vs/editor/browser/editorExtensions.js +6 -6
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +49 -49
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/commands.js +6 -6
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/editor.api.d.ts +91 -69
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +49 -49
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +129 -129
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +15 -15
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +127 -127
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +14 -14
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +10 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +13 -13
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +65 -65
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +23 -23
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +32 -32
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +16 -16
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +82 -82
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -11
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
|
@@ -101,8 +101,8 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
101
101
|
super({
|
|
102
102
|
...options,
|
|
103
103
|
filterOptions: {
|
|
104
|
-
placeholder: ( localize(
|
|
105
|
-
ariaLabel: ( localize(
|
|
104
|
+
placeholder: ( localize(5331, "Filter (e.g. text, author)")),
|
|
105
|
+
ariaLabel: ( localize(5332, "Filter comments")),
|
|
106
106
|
history: viewState['filterHistory'] || [],
|
|
107
107
|
text: viewState['filter'] || '',
|
|
108
108
|
focusContextKey: CommentsViewFilterFocusContextKey.key
|
|
@@ -186,7 +186,7 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
186
186
|
this.tree?.filterComments();
|
|
187
187
|
this.cachedFilterStats = undefined;
|
|
188
188
|
const { total, filtered } = this.getFilterStats();
|
|
189
|
-
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(
|
|
189
|
+
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(5333, "Showing {0} of {1}", filtered, total)));
|
|
190
190
|
this.filterWidget.checkMoreFilters(!this.filters.showResolved || !this.filters.showUnresolved);
|
|
191
191
|
}
|
|
192
192
|
renderBody(container) {
|
|
@@ -267,8 +267,8 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
267
267
|
let accessibleViewHint = '';
|
|
268
268
|
if (forAriaLabel && this.configurationService.getValue(AccessibilityVerbositySettingId.Comments)) {
|
|
269
269
|
const kbLabel = this.keybindingService.lookupKeybinding(AccessibleViewAction.id)?.getAriaLabel();
|
|
270
|
-
accessibleViewHint = kbLabel ? ( localize(
|
|
271
|
-
|
|
270
|
+
accessibleViewHint = kbLabel ? ( localize(5334, "Inspect this in the accessible view ({0}).\n", kbLabel)) : ( localize(
|
|
271
|
+
5335,
|
|
272
272
|
"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding.\n"
|
|
273
273
|
));
|
|
274
274
|
}
|
|
@@ -277,7 +277,7 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
277
277
|
if (element.range) {
|
|
278
278
|
if (element.threadRelevance === CommentThreadApplicability.Outdated) {
|
|
279
279
|
return accessibleViewHint + ( localize(
|
|
280
|
-
|
|
280
|
+
5336,
|
|
281
281
|
"Outdated from {0} at line {1} column {2} in {3},{4} comment: {5}",
|
|
282
282
|
element.comment.userName,
|
|
283
283
|
element.range.startLineNumber,
|
|
@@ -289,7 +289,7 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
289
289
|
}
|
|
290
290
|
else {
|
|
291
291
|
return accessibleViewHint + ( localize(
|
|
292
|
-
|
|
292
|
+
5337,
|
|
293
293
|
"{0} at line {1} column {2} in {3},{4} comment: {5}",
|
|
294
294
|
element.comment.userName,
|
|
295
295
|
element.range.startLineNumber,
|
|
@@ -303,7 +303,7 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
303
303
|
else {
|
|
304
304
|
if (element.threadRelevance === CommentThreadApplicability.Outdated) {
|
|
305
305
|
return accessibleViewHint + ( localize(
|
|
306
|
-
|
|
306
|
+
5338,
|
|
307
307
|
"Outdated from {0} in {1},{2} comment: {3}",
|
|
308
308
|
element.comment.userName,
|
|
309
309
|
basename(element.resource),
|
|
@@ -313,7 +313,7 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
313
313
|
}
|
|
314
314
|
else {
|
|
315
315
|
return accessibleViewHint + ( localize(
|
|
316
|
-
|
|
316
|
+
5339,
|
|
317
317
|
"{0} in {1},{2} comment: {3}",
|
|
318
318
|
element.comment.userName,
|
|
319
319
|
basename(element.resource),
|
|
@@ -328,14 +328,14 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
328
328
|
return '';
|
|
329
329
|
}
|
|
330
330
|
return '\n' + ( (node.replies.map(reply => ( localize(
|
|
331
|
-
|
|
331
|
+
5340,
|
|
332
332
|
"{0} {1}",
|
|
333
333
|
reply.comment.userName,
|
|
334
334
|
(typeof reply.comment.body === 'string') ? reply.comment.body : reply.comment.body.value
|
|
335
335
|
))))).join('\n');
|
|
336
336
|
}
|
|
337
337
|
getReplyCountAsString(node, forAriaLabel) {
|
|
338
|
-
return node.replies.length && !forAriaLabel ? ( localize(
|
|
338
|
+
return node.replies.length && !forAriaLabel ? ( localize(5341, " {0} replies,", node.replies.length)) : '';
|
|
339
339
|
}
|
|
340
340
|
createTree() {
|
|
341
341
|
this.treeLabels = this._register(this.instantiationService.createInstance(ResourceLabels, this));
|
|
@@ -351,11 +351,11 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
351
351
|
accessibilityProvider: {
|
|
352
352
|
getAriaLabel: (element) => {
|
|
353
353
|
if (element instanceof CommentsModel) {
|
|
354
|
-
return ( localize(
|
|
354
|
+
return ( localize(5342, "Comments for current workspace"));
|
|
355
355
|
}
|
|
356
356
|
if (element instanceof ResourceWithCommentThreads) {
|
|
357
357
|
return ( localize(
|
|
358
|
-
|
|
358
|
+
5343,
|
|
359
359
|
"Comments in {0}, full path {1}",
|
|
360
360
|
basename(element.resource),
|
|
361
361
|
element.resource.fsPath
|
|
@@ -3,16 +3,16 @@ import { RawContextKey } from '../../../../platform/contextkey/common/contextkey
|
|
|
3
3
|
var CommentContextKeys;
|
|
4
4
|
( ((function(CommentContextKeys) {
|
|
5
5
|
CommentContextKeys.activeCursorHasCommentingRange = ( (new RawContextKey('activeCursorHasCommentingRange', false, {
|
|
6
|
-
description: ( localize(
|
|
6
|
+
description: ( localize(5303, "Whether the position at the active cursor has a commenting range")),
|
|
7
7
|
type: 'boolean'
|
|
8
8
|
})));
|
|
9
9
|
CommentContextKeys.activeEditorHasCommentingRange = ( (new RawContextKey('activeEditorHasCommentingRange', false, {
|
|
10
|
-
description: ( localize(
|
|
10
|
+
description: ( localize(5304, "Whether the active editor has a commenting range")),
|
|
11
11
|
type: 'boolean'
|
|
12
12
|
})));
|
|
13
13
|
CommentContextKeys.WorkspaceHasCommenting = ( (new RawContextKey('workspaceHasCommenting', false, {
|
|
14
14
|
description: ( localize(
|
|
15
|
-
|
|
15
|
+
5305,
|
|
16
16
|
"Whether the open workspace has either comments or commenting ranges."
|
|
17
17
|
)),
|
|
18
18
|
type: 'boolean'
|
|
@@ -20,16 +20,16 @@ var CommentContextKeys;
|
|
|
20
20
|
CommentContextKeys.commentThreadIsEmpty = ( (new RawContextKey(
|
|
21
21
|
'commentThreadIsEmpty',
|
|
22
22
|
false,
|
|
23
|
-
{ type: 'boolean', description: ( localize(
|
|
23
|
+
{ type: 'boolean', description: ( localize(5306, "Set when the comment thread has no comments")) }
|
|
24
24
|
)));
|
|
25
|
-
CommentContextKeys.commentIsEmpty = ( (new RawContextKey('commentIsEmpty', false, { type: 'boolean', description: ( localize(
|
|
26
|
-
CommentContextKeys.commentContext = ( (new RawContextKey('comment', undefined, { type: 'string', description: ( localize(
|
|
27
|
-
CommentContextKeys.commentThreadContext = ( (new RawContextKey('commentThread', undefined, { type: 'string', description: ( localize(
|
|
25
|
+
CommentContextKeys.commentIsEmpty = ( (new RawContextKey('commentIsEmpty', false, { type: 'boolean', description: ( localize(5307, "Set when the comment has no input")) })));
|
|
26
|
+
CommentContextKeys.commentContext = ( (new RawContextKey('comment', undefined, { type: 'string', description: ( localize(5308, "The context value of the comment")) })));
|
|
27
|
+
CommentContextKeys.commentThreadContext = ( (new RawContextKey('commentThread', undefined, { type: 'string', description: ( localize(5309, "The context value of the comment thread")) })));
|
|
28
28
|
CommentContextKeys.commentControllerContext = ( (new RawContextKey(
|
|
29
29
|
'commentController',
|
|
30
30
|
undefined,
|
|
31
|
-
{ type: 'string', description: ( localize(
|
|
31
|
+
{ type: 'string', description: ( localize(5310, "The comment controller id associated with a comment thread")) }
|
|
32
32
|
)));
|
|
33
|
-
CommentContextKeys.commentFocused = ( (new RawContextKey('commentFocused', false, { type: 'boolean', description: ( localize(
|
|
33
|
+
CommentContextKeys.commentFocused = ( (new RawContextKey('commentFocused', false, { type: 'boolean', description: ( localize(5311, "Set when the comment is focused")) })));
|
|
34
34
|
})(CommentContextKeys || (CommentContextKeys = {}))));
|
|
35
35
|
export { CommentContextKeys };
|
|
@@ -50,7 +50,7 @@ const breakpointHelperDecoration = {
|
|
|
50
50
|
description: 'breakpoint-helper-decoration',
|
|
51
51
|
glyphMarginClassName: ThemeIcon.asClassName(debugBreakpointHint),
|
|
52
52
|
glyphMargin: { position: GlyphMarginLane.Right },
|
|
53
|
-
glyphMarginHoverMessage: ( (new MarkdownString())).appendText(( localize(
|
|
53
|
+
glyphMarginHoverMessage: ( (new MarkdownString())).appendText(( localize(5820, "Click to add a breakpoint"))),
|
|
54
54
|
stickiness: TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges
|
|
55
55
|
};
|
|
56
56
|
function createBreakpointDecorations(accessor, model, breakpoints, state, breakpointsActivated, showBreakpointsInOverviewRuler) {
|
|
@@ -251,29 +251,29 @@ let BreakpointEditorContribution = class BreakpointEditorContribution {
|
|
|
251
251
|
bp => !!bp.condition || !!bp.logMessage || !!bp.hitCondition || !!bp.triggeredBy
|
|
252
252
|
)))) {
|
|
253
253
|
const logPoint = breakpoints.every(bp => !!bp.logMessage);
|
|
254
|
-
const breakpointType = logPoint ? ( localize(
|
|
254
|
+
const breakpointType = logPoint ? ( localize(5821, "Logpoint")) : ( localize(5822, "Breakpoint"));
|
|
255
255
|
const disabledBreakpointDialogMessage = ( localize(
|
|
256
|
-
|
|
256
|
+
5823,
|
|
257
257
|
"This {0} has a {1} that will get lost on remove. Consider enabling the {0} instead.",
|
|
258
258
|
breakpointType.toLowerCase(),
|
|
259
|
-
logPoint ? ( localize(
|
|
259
|
+
logPoint ? ( localize(5824, "message")) : ( localize(5825, "condition"))
|
|
260
260
|
));
|
|
261
261
|
const enabledBreakpointDialogMessage = ( localize(
|
|
262
|
-
|
|
262
|
+
5826,
|
|
263
263
|
"This {0} has a {1} that will get lost on remove. Consider disabling the {0} instead.",
|
|
264
264
|
breakpointType.toLowerCase(),
|
|
265
|
-
logPoint ? ( localize(
|
|
265
|
+
logPoint ? ( localize(5824, "message")) : ( localize(5825, "condition"))
|
|
266
266
|
));
|
|
267
267
|
await this.dialogService.prompt({
|
|
268
268
|
type: Severity$1.Info,
|
|
269
269
|
message: enabled ? enabledBreakpointDialogMessage : disabledBreakpointDialogMessage,
|
|
270
270
|
buttons: [
|
|
271
271
|
{
|
|
272
|
-
label: ( localize(
|
|
272
|
+
label: ( localize(5827, "&&Remove {0}", breakpointType)),
|
|
273
273
|
run: () => breakpoints.forEach(bp => this.debugService.removeBreakpoints(bp.getId()))
|
|
274
274
|
},
|
|
275
275
|
{
|
|
276
|
-
label: ( localize(
|
|
276
|
+
label: ( localize(5828, "{0} {1}", enabled ? ( localize(5829, "&&Disable")) : ( localize(5830, "&&Enable")), breakpointType)),
|
|
277
277
|
run: () => breakpoints.forEach(bp => this.debugService.enableOrDisableBreakpoints(!enabled, bp))
|
|
278
278
|
}
|
|
279
279
|
],
|
|
@@ -357,14 +357,14 @@ let BreakpointEditorContribution = class BreakpointEditorContribution {
|
|
|
357
357
|
getContextMenuActions(breakpoints, uri, lineNumber, column) {
|
|
358
358
|
const actions = [];
|
|
359
359
|
if (breakpoints.length === 1) {
|
|
360
|
-
const breakpointType = breakpoints[0].logMessage ? ( localize(
|
|
361
|
-
actions.push(( (new Action('debug.removeBreakpoint', ( localize(
|
|
360
|
+
const breakpointType = breakpoints[0].logMessage ? ( localize(5821, "Logpoint")) : ( localize(5822, "Breakpoint"));
|
|
361
|
+
actions.push(( (new Action('debug.removeBreakpoint', ( localize(5831, "Remove {0}", breakpointType)), undefined, true, async () => {
|
|
362
362
|
await this.debugService.removeBreakpoints(breakpoints[0].getId());
|
|
363
363
|
}))));
|
|
364
|
-
actions.push(( (new Action('workbench.debug.action.editBreakpointAction', ( localize(
|
|
364
|
+
actions.push(( (new Action('workbench.debug.action.editBreakpointAction', ( localize(5832, "Edit {0}...", breakpointType)), undefined, true, () => Promise.resolve(this.showBreakpointWidget(breakpoints[0].lineNumber, breakpoints[0].column))))));
|
|
365
365
|
actions.push(( (new Action(
|
|
366
366
|
`workbench.debug.viewlet.action.toggleBreakpoint`,
|
|
367
|
-
breakpoints[0].enabled ? ( localize(
|
|
367
|
+
breakpoints[0].enabled ? ( localize(5833, "Disable {0}", breakpointType)) : ( localize(5834, "Enable {0}", breakpointType)),
|
|
368
368
|
undefined,
|
|
369
369
|
true,
|
|
370
370
|
() => this.debugService.enableOrDisableBreakpoints(!breakpoints[0].enabled, breakpoints[0])
|
|
@@ -372,30 +372,30 @@ let BreakpointEditorContribution = class BreakpointEditorContribution {
|
|
|
372
372
|
}
|
|
373
373
|
else if (breakpoints.length > 1) {
|
|
374
374
|
const sorted = breakpoints.slice().sort((first, second) => (first.column && second.column) ? first.column - second.column : 1);
|
|
375
|
-
actions.push(( (new SubmenuAction('debug.removeBreakpoints', ( localize(
|
|
376
|
-
bp => ( (new Action('removeInlineBreakpoint', bp.column ? ( localize(
|
|
375
|
+
actions.push(( (new SubmenuAction('debug.removeBreakpoints', ( localize(5835, "Remove Breakpoints")), (sorted.map(
|
|
376
|
+
bp => ( (new Action('removeInlineBreakpoint', bp.column ? ( localize(5836, "Remove Inline Breakpoint on Column {0}", bp.column)) : ( localize(5837, "Remove Line Breakpoint")), undefined, true, () => this.debugService.removeBreakpoints(bp.getId()))))
|
|
377
377
|
))))));
|
|
378
|
-
actions.push(( (new SubmenuAction('debug.editBreakpoints', ( localize(
|
|
379
|
-
bp => ( (new Action('editBreakpoint', bp.column ? ( localize(
|
|
378
|
+
actions.push(( (new SubmenuAction('debug.editBreakpoints', ( localize(5838, "Edit Breakpoints")), (sorted.map(
|
|
379
|
+
bp => ( (new Action('editBreakpoint', bp.column ? ( localize(5839, "Edit Inline Breakpoint on Column {0}", bp.column)) : ( localize(5840, "Edit Line Breakpoint")), undefined, true, () => Promise.resolve(this.showBreakpointWidget(bp.lineNumber, bp.column)))))
|
|
380
380
|
))))));
|
|
381
|
-
actions.push(( (new SubmenuAction('debug.enableDisableBreakpoints', ( localize(
|
|
381
|
+
actions.push(( (new SubmenuAction('debug.enableDisableBreakpoints', ( localize(5841, "Enable/Disable Breakpoints")), (sorted.map(bp => ( (new Action(
|
|
382
382
|
bp.enabled ? 'disableColumnBreakpoint' : 'enableColumnBreakpoint',
|
|
383
|
-
bp.enabled ? (bp.column ? ( localize(
|
|
384
|
-
: (bp.column ? ( localize(
|
|
383
|
+
bp.enabled ? (bp.column ? ( localize(5842, "Disable Inline Breakpoint on Column {0}", bp.column)) : ( localize(5843, "Disable Line Breakpoint")))
|
|
384
|
+
: (bp.column ? ( localize(5844, "Enable Inline Breakpoint on Column {0}", bp.column)) : ( localize(5845, "Enable Line Breakpoint"))),
|
|
385
385
|
undefined,
|
|
386
386
|
true,
|
|
387
387
|
() => this.debugService.enableOrDisableBreakpoints(!bp.enabled, bp)
|
|
388
388
|
)))))))));
|
|
389
389
|
}
|
|
390
390
|
else {
|
|
391
|
-
actions.push(( (new Action('addBreakpoint', ( localize(
|
|
392
|
-
actions.push(( (new Action('addConditionalBreakpoint', ( localize(
|
|
393
|
-
actions.push(( (new Action('addLogPoint', ( localize(
|
|
394
|
-
actions.push(( (new Action('addTriggeredBreakpoint', ( localize(
|
|
391
|
+
actions.push(( (new Action('addBreakpoint', ( localize(5846, "Add Breakpoint")), undefined, true, () => this.debugService.addBreakpoints(uri, [{ lineNumber, column }])))));
|
|
392
|
+
actions.push(( (new Action('addConditionalBreakpoint', ( localize(5847, "Add Conditional Breakpoint...")), undefined, true, () => Promise.resolve(this.showBreakpointWidget(lineNumber, column, BreakpointWidgetContext.CONDITION))))));
|
|
393
|
+
actions.push(( (new Action('addLogPoint', ( localize(5848, "Add Logpoint...")), undefined, true, () => Promise.resolve(this.showBreakpointWidget(lineNumber, column, BreakpointWidgetContext.LOG_MESSAGE))))));
|
|
394
|
+
actions.push(( (new Action('addTriggeredBreakpoint', ( localize(5849, "Add Triggered Breakpoint...")), undefined, true, () => Promise.resolve(this.showBreakpointWidget(lineNumber, column, BreakpointWidgetContext.TRIGGER_POINT))))));
|
|
395
395
|
}
|
|
396
396
|
if (this.debugService.state === State.Stopped) {
|
|
397
397
|
actions.push(( (new Separator())));
|
|
398
|
-
actions.push(( (new Action('runToLine', ( localize(
|
|
398
|
+
actions.push(( (new Action('runToLine', ( localize(5850, "Run to Line")), undefined, true, () => this.debugService.runTo(uri, lineNumber).catch(onUnexpectedError)))));
|
|
399
399
|
}
|
|
400
400
|
return actions;
|
|
401
401
|
}
|
|
@@ -740,9 +740,9 @@ registerThemingParticipant((theme, collector) => {
|
|
|
740
740
|
`);
|
|
741
741
|
}
|
|
742
742
|
});
|
|
743
|
-
const debugIconBreakpointForeground = registerColor('debugIcon.breakpointForeground', '#E51400', ( localize(
|
|
744
|
-
const debugIconBreakpointDisabledForeground = registerColor('debugIcon.breakpointDisabledForeground', '#848484', ( localize(
|
|
745
|
-
const debugIconBreakpointUnverifiedForeground = registerColor('debugIcon.breakpointUnverifiedForeground', '#848484', ( localize(
|
|
746
|
-
const debugIconBreakpointCurrentStackframeForeground = registerColor('debugIcon.breakpointCurrentStackframeForeground', { dark: '#FFCC00', light: '#BE8700', hcDark: '#FFCC00', hcLight: '#BE8700' }, ( localize(
|
|
747
|
-
const debugIconBreakpointStackframeForeground = registerColor('debugIcon.breakpointStackframeForeground', '#89D185', ( localize(
|
|
743
|
+
const debugIconBreakpointForeground = registerColor('debugIcon.breakpointForeground', '#E51400', ( localize(5851, 'Icon color for breakpoints.')));
|
|
744
|
+
const debugIconBreakpointDisabledForeground = registerColor('debugIcon.breakpointDisabledForeground', '#848484', ( localize(5852, 'Icon color for disabled breakpoints.')));
|
|
745
|
+
const debugIconBreakpointUnverifiedForeground = registerColor('debugIcon.breakpointUnverifiedForeground', '#848484', ( localize(5853, 'Icon color for unverified breakpoints.')));
|
|
746
|
+
const debugIconBreakpointCurrentStackframeForeground = registerColor('debugIcon.breakpointCurrentStackframeForeground', { dark: '#FFCC00', light: '#BE8700', hcDark: '#FFCC00', hcLight: '#BE8700' }, ( localize(5854, 'Icon color for the current breakpoint stack frame.')));
|
|
747
|
+
const debugIconBreakpointStackframeForeground = registerColor('debugIcon.breakpointStackframeForeground', '#89D185', ( localize(5855, 'Icon color for all breakpoint stack frames.')));
|
|
748
748
|
export { BreakpointEditorContribution, createBreakpointDecorations, debugIconBreakpointForeground };
|