@codingame/monaco-vscode-api 1.83.1 → 1.83.2
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/monaco-editor-treemending.patch +555 -555
- package/package.json +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/workspaces/common/workspaces.js +15 -15
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +49 -51
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +58 -69
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystem.js +23 -23
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +16 -16
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +59 -65
- package/vscode/src/vs/workbench/api/common/extHostConsoleForwarder.js +8 -8
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +151 -215
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +54 -58
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +53 -55
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +28 -28
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +265 -277
- package/vscode/src/vs/workbench/api/common/extensionHostMain.js +17 -19
- package/vscode/src/vs/workbench/api/worker/extHostExtensionService.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +26 -32
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +20 -26
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkFileEdits.js +58 -74
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +19 -19
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +32 -36
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +19 -19
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +73 -126
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +66 -74
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +82 -92
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +27 -29
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +122 -124
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +35 -39
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.js +25 -25
- package/vscode/src/vs/workbench/services/keybinding/common/macLinuxKeyboardMapper.js +30 -32
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +82 -92
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +31 -31
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +16 -16
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +32 -42
|
@@ -67,12 +67,12 @@ let ReviewZoneWidget = class ReviewZoneWidget extends ZoneWidget {
|
|
|
67
67
|
this.themeService = themeService;
|
|
68
68
|
this.commentService = commentService;
|
|
69
69
|
this.configurationService = configurationService;
|
|
70
|
-
this._onDidClose = (
|
|
71
|
-
this._onDidCreateThread = (
|
|
72
|
-
this._globalToDispose = (
|
|
70
|
+
this._onDidClose = ( new Emitter());
|
|
71
|
+
this._onDidCreateThread = ( new Emitter());
|
|
72
|
+
this._globalToDispose = ( new DisposableStore());
|
|
73
73
|
this._commentThreadDisposables = [];
|
|
74
74
|
this._contextKeyService = contextKeyService.createScoped(this.domNode);
|
|
75
|
-
this._scopedInstantiationService = instantiationService.createChild((
|
|
75
|
+
this._scopedInstantiationService = instantiationService.createChild(( new ServiceCollection([IContextKeyService, this._contextKeyService])));
|
|
76
76
|
const controller = this.commentService.getCommentController(this._owner);
|
|
77
77
|
if (controller) {
|
|
78
78
|
this._commentOptions = controller.options;
|
|
@@ -127,7 +127,7 @@ let ReviewZoneWidget = class ReviewZoneWidget extends ZoneWidget {
|
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
this.editor.revealRangeInCenter(this._commentThread.range ?? (
|
|
130
|
+
this.editor.revealRangeInCenter(this._commentThread.range ?? ( new Range(1, 1, 1, 1)));
|
|
131
131
|
if (focus) {
|
|
132
132
|
this._commentThreadWidget.focus();
|
|
133
133
|
}
|
|
@@ -152,20 +152,20 @@ let ReviewZoneWidget = class ReviewZoneWidget extends ZoneWidget {
|
|
|
152
152
|
let range;
|
|
153
153
|
if (newPosition.lineNumber !== originalRange.endLineNumber) {
|
|
154
154
|
const distance = newPosition.lineNumber - originalRange.endLineNumber;
|
|
155
|
-
range = (
|
|
155
|
+
range = ( new Range(
|
|
156
156
|
originalRange.startLineNumber + distance,
|
|
157
157
|
originalRange.startColumn,
|
|
158
158
|
originalRange.endLineNumber + distance,
|
|
159
159
|
originalRange.endColumn
|
|
160
|
-
))
|
|
160
|
+
));
|
|
161
161
|
}
|
|
162
162
|
else {
|
|
163
|
-
range = (
|
|
163
|
+
range = ( new Range(
|
|
164
164
|
originalRange.startLineNumber,
|
|
165
165
|
originalRange.startColumn,
|
|
166
166
|
originalRange.endLineNumber,
|
|
167
167
|
originalRange.endColumn
|
|
168
|
-
))
|
|
168
|
+
));
|
|
169
169
|
}
|
|
170
170
|
this.commentService.updateCommentThreadTemplate(this.owner, this._commentThread.commentThreadHandle, range);
|
|
171
171
|
}
|
|
@@ -242,7 +242,7 @@ let ReviewZoneWidget = class ReviewZoneWidget extends ZoneWidget {
|
|
|
242
242
|
}
|
|
243
243
|
display(range) {
|
|
244
244
|
if (range) {
|
|
245
|
-
this._commentGlyph = (
|
|
245
|
+
this._commentGlyph = ( new CommentGlyphWidget(this.editor, range?.endLineNumber ?? -1));
|
|
246
246
|
this._commentGlyph.setThreadState(this._commentThread.state);
|
|
247
247
|
}
|
|
248
248
|
this._commentThreadWidget.display(this.editor.getOption(66 ));
|
|
@@ -299,7 +299,7 @@ let ReviewZoneWidget = class ReviewZoneWidget extends ZoneWidget {
|
|
|
299
299
|
arrowColor: borderColor,
|
|
300
300
|
});
|
|
301
301
|
this.container?.style.setProperty(commentThreadStateColorVar, `${borderColor}`);
|
|
302
|
-
this.container?.style.setProperty(commentThreadStateBackgroundColorVar, `${(
|
|
302
|
+
this.container?.style.setProperty(commentThreadStateBackgroundColorVar, `${( borderColor.transparent(.1))}`);
|
|
303
303
|
}));
|
|
304
304
|
}
|
|
305
305
|
async submitComment() {
|
|
@@ -341,7 +341,7 @@ let ReviewZoneWidget = class ReviewZoneWidget extends ZoneWidget {
|
|
|
341
341
|
}
|
|
342
342
|
show(rangeOrPos, heightInLines) {
|
|
343
343
|
this._isExpanded = true;
|
|
344
|
-
super.show(rangeOrPos ?? (
|
|
344
|
+
super.show(rangeOrPos ?? ( new Range(0, 0, 0, 0)), heightInLines);
|
|
345
345
|
this._commentThread.collapsibleState = languages.CommentThreadCollapsibleState.Expanded;
|
|
346
346
|
this._refresh(this._commentThreadWidget.getDimensions());
|
|
347
347
|
}
|
|
@@ -368,11 +368,11 @@ let ReviewZoneWidget = class ReviewZoneWidget extends ZoneWidget {
|
|
|
368
368
|
this._onDidClose.fire(undefined);
|
|
369
369
|
}
|
|
370
370
|
};
|
|
371
|
-
ReviewZoneWidget = (
|
|
372
|
-
(
|
|
373
|
-
(
|
|
374
|
-
(
|
|
375
|
-
(
|
|
376
|
-
(
|
|
377
|
-
], ReviewZoneWidget))
|
|
371
|
+
ReviewZoneWidget = ( __decorate([
|
|
372
|
+
( __param(5, IInstantiationService)),
|
|
373
|
+
( __param(6, IThemeService)),
|
|
374
|
+
( __param(7, ICommentService)),
|
|
375
|
+
( __param(8, IContextKeyService)),
|
|
376
|
+
( __param(9, IConfigurationService))
|
|
377
|
+
], ReviewZoneWidget));
|
|
378
378
|
export { ReviewZoneWidget, isMouseUpEventDragFromMouseDown, parseMouseDownInfoFromEvent };
|
|
@@ -21,7 +21,7 @@ import { openLinkFromMarkdown } from 'monaco-editor/esm/vs/editor/contrib/markdo
|
|
|
21
21
|
const COMMENTS_VIEW_ID = 'workbench.panel.comments';
|
|
22
22
|
const COMMENTS_VIEW_STORAGE_ID = 'Comments';
|
|
23
23
|
const COMMENTS_VIEW_ORIGINAL_TITLE = 'Comments';
|
|
24
|
-
const COMMENTS_VIEW_TITLE = (
|
|
24
|
+
const COMMENTS_VIEW_TITLE = ( nls.localize('comments.view.title', "Comments"));
|
|
25
25
|
class CommentsModelVirualDelegate {
|
|
26
26
|
static { this.RESOURCE_ID = 'resource-with-comments'; }
|
|
27
27
|
static { this.COMMENT_ID = 'comment-node'; }
|
|
@@ -71,10 +71,10 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
71
71
|
const threadMetadata = {
|
|
72
72
|
icon: dom.append(metadataContainer, dom.$('.icon')),
|
|
73
73
|
userNames: dom.append(metadataContainer, dom.$('.user')),
|
|
74
|
-
timestamp: (
|
|
74
|
+
timestamp: ( new TimestampWidget(
|
|
75
75
|
this.configurationService,
|
|
76
76
|
dom.append(metadataContainer, dom.$('.timestamp-container'))
|
|
77
|
-
))
|
|
77
|
+
)),
|
|
78
78
|
separator: dom.append(metadataContainer, dom.$('.separator')),
|
|
79
79
|
commentPreview: dom.append(metadataContainer, dom.$('.text')),
|
|
80
80
|
range: dom.append(metadataContainer, dom.$('.range'))
|
|
@@ -87,10 +87,10 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
87
87
|
count: dom.append(snippetContainer, dom.$('.count')),
|
|
88
88
|
lastReplyDetail: dom.append(snippetContainer, dom.$('.reply-detail')),
|
|
89
89
|
separator: dom.append(snippetContainer, dom.$('.separator')),
|
|
90
|
-
timestamp: (
|
|
90
|
+
timestamp: ( new TimestampWidget(
|
|
91
91
|
this.configurationService,
|
|
92
92
|
dom.append(snippetContainer, dom.$('.timestamp-container'))
|
|
93
|
-
))
|
|
93
|
+
)),
|
|
94
94
|
};
|
|
95
95
|
repliesMetadata.separator.innerText = '\u00b7';
|
|
96
96
|
repliesMetadata.icon.classList.add(...ThemeIcon.asClassNameArray(Codicon.indent));
|
|
@@ -99,14 +99,10 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
99
99
|
}
|
|
100
100
|
getCountString(commentCount) {
|
|
101
101
|
if (commentCount > 1) {
|
|
102
|
-
return (
|
|
103
|
-
(nls.localize('commentsCount', "{0} comments", commentCount))
|
|
104
|
-
);
|
|
102
|
+
return ( nls.localize('commentsCount', "{0} comments", commentCount));
|
|
105
103
|
}
|
|
106
104
|
else {
|
|
107
|
-
return (
|
|
108
|
-
(nls.localize('commentCount', "1 comment"))
|
|
109
|
-
);
|
|
105
|
+
return ( nls.localize('commentCount', "1 comment"));
|
|
110
106
|
}
|
|
111
107
|
}
|
|
112
108
|
getRenderedComment(commentBody, disposables) {
|
|
@@ -121,7 +117,7 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
121
117
|
for (let i = 0; i < images.length; i++) {
|
|
122
118
|
const image = images[i];
|
|
123
119
|
const textDescription = dom.$('');
|
|
124
|
-
textDescription.textContent = image.alt ? (
|
|
120
|
+
textDescription.textContent = image.alt ? ( nls.localize('imageWithLabel', "Image: {0}", image.alt)) : ( nls.localize('image', "Image"));
|
|
125
121
|
image.parentNode.replaceChild(textDescription, image);
|
|
126
122
|
}
|
|
127
123
|
return renderedComment;
|
|
@@ -136,7 +132,7 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
136
132
|
}
|
|
137
133
|
renderElement(node, index, templateData, height) {
|
|
138
134
|
const commentCount = node.element.replies.length + 1;
|
|
139
|
-
templateData.threadMetadata.icon.classList.remove(...Array.from((
|
|
135
|
+
templateData.threadMetadata.icon.classList.remove(...Array.from(( templateData.threadMetadata.icon.classList.values()))
|
|
140
136
|
.filter(value => value.startsWith('codicon')));
|
|
141
137
|
templateData.threadMetadata.icon.classList.add(...ThemeIcon.asClassNameArray(this.getIcon(node.element.threadState)));
|
|
142
138
|
if (node.element.threadState !== undefined) {
|
|
@@ -145,7 +141,7 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
145
141
|
templateData.threadMetadata.icon.style.color = `var(${commentViewThreadStateColorVar})`;
|
|
146
142
|
}
|
|
147
143
|
templateData.threadMetadata.userNames.textContent = node.element.comment.userName;
|
|
148
|
-
templateData.threadMetadata.timestamp.setTimestamp(node.element.comment.timestamp ? (
|
|
144
|
+
templateData.threadMetadata.timestamp.setTimestamp(node.element.comment.timestamp ? ( new Date(node.element.comment.timestamp)) : undefined);
|
|
149
145
|
const originalComment = node.element;
|
|
150
146
|
templateData.threadMetadata.commentPreview.innerText = '';
|
|
151
147
|
templateData.threadMetadata.commentPreview.style.height = '22px';
|
|
@@ -153,7 +149,7 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
153
149
|
templateData.threadMetadata.commentPreview.innerText = originalComment.comment.body;
|
|
154
150
|
}
|
|
155
151
|
else {
|
|
156
|
-
const disposables = (
|
|
152
|
+
const disposables = ( new DisposableStore());
|
|
157
153
|
templateData.disposables.push(disposables);
|
|
158
154
|
const renderedComment = this.getRenderedComment(originalComment.comment.body, disposables);
|
|
159
155
|
templateData.disposables.push(renderedComment);
|
|
@@ -162,15 +158,15 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
162
158
|
}
|
|
163
159
|
if (node.element.range) {
|
|
164
160
|
if (node.element.range.startLineNumber === node.element.range.endLineNumber) {
|
|
165
|
-
templateData.threadMetadata.range.textContent = (
|
|
161
|
+
templateData.threadMetadata.range.textContent = ( nls.localize('commentLine', "[Ln {0}]", node.element.range.startLineNumber));
|
|
166
162
|
}
|
|
167
163
|
else {
|
|
168
|
-
templateData.threadMetadata.range.textContent = (
|
|
164
|
+
templateData.threadMetadata.range.textContent = ( nls.localize(
|
|
169
165
|
'commentRange',
|
|
170
166
|
"[Ln {0}-{1}]",
|
|
171
167
|
node.element.range.startLineNumber,
|
|
172
168
|
node.element.range.endLineNumber
|
|
173
|
-
))
|
|
169
|
+
));
|
|
174
170
|
}
|
|
175
171
|
}
|
|
176
172
|
if (!node.element.hasReply()) {
|
|
@@ -180,8 +176,8 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
180
176
|
templateData.repliesMetadata.container.style.display = '';
|
|
181
177
|
templateData.repliesMetadata.count.textContent = this.getCountString(commentCount);
|
|
182
178
|
const lastComment = node.element.replies[node.element.replies.length - 1].comment;
|
|
183
|
-
templateData.repliesMetadata.lastReplyDetail.textContent = (
|
|
184
|
-
templateData.repliesMetadata.timestamp.setTimestamp(lastComment.timestamp ? (
|
|
179
|
+
templateData.repliesMetadata.lastReplyDetail.textContent = ( nls.localize('lastReplyFrom', "Last reply from {0}", lastComment.userName));
|
|
180
|
+
templateData.repliesMetadata.timestamp.setTimestamp(lastComment.timestamp ? ( new Date(lastComment.timestamp)) : undefined);
|
|
185
181
|
}
|
|
186
182
|
getCommentThreadWidgetStateColor(state, theme) {
|
|
187
183
|
return (state !== undefined) ? getCommentThreadStateIconColor(state, theme) : undefined;
|
|
@@ -190,11 +186,11 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
190
186
|
templateData.disposables.forEach(disposeable => disposeable.dispose());
|
|
191
187
|
}
|
|
192
188
|
};
|
|
193
|
-
CommentNodeRenderer = (
|
|
194
|
-
(
|
|
195
|
-
(
|
|
196
|
-
(
|
|
197
|
-
], CommentNodeRenderer))
|
|
189
|
+
CommentNodeRenderer = ( __decorate([
|
|
190
|
+
( __param(0, IOpenerService)),
|
|
191
|
+
( __param(1, IConfigurationService)),
|
|
192
|
+
( __param(2, IThemeService))
|
|
193
|
+
], CommentNodeRenderer));
|
|
198
194
|
class Filter {
|
|
199
195
|
constructor(options) {
|
|
200
196
|
this.options = options;
|
|
@@ -231,10 +227,10 @@ class Filter {
|
|
|
231
227
|
const textMatches =
|
|
232
228
|
FilterOptions._messageFilter(this.options.textFilter.text, typeof comment.comment.body === 'string' ? comment.comment.body : comment.comment.body.value)
|
|
233
229
|
|| FilterOptions._messageFilter(this.options.textFilter.text, comment.comment.userName)
|
|
234
|
-
|| (
|
|
230
|
+
|| ( comment.replies.map(reply => {
|
|
235
231
|
return FilterOptions._messageFilter(this.options.textFilter.text, reply.comment.userName)
|
|
236
232
|
|| FilterOptions._messageFilter(this.options.textFilter.text, typeof reply.comment.body === 'string' ? reply.comment.body : reply.comment.body.value);
|
|
237
|
-
}))
|
|
233
|
+
})).filter(value => !!value).flat();
|
|
238
234
|
if (textMatches.length && !this.options.textFilter.negate) {
|
|
239
235
|
return { visibility: true, data: { type: 1 , textMatches } };
|
|
240
236
|
}
|
|
@@ -249,7 +245,7 @@ class Filter {
|
|
|
249
245
|
}
|
|
250
246
|
let CommentsList = class CommentsList extends WorkbenchObjectTree {
|
|
251
247
|
constructor(labels, container, options, contextKeyService, listService, themeService, instantiationService, configurationService) {
|
|
252
|
-
const delegate = (
|
|
248
|
+
const delegate = ( new CommentsModelVirualDelegate());
|
|
253
249
|
const renderers = [
|
|
254
250
|
instantiationService.createInstance(ResourceWithCommentsRenderer, labels),
|
|
255
251
|
instantiationService.createInstance(CommentNodeRenderer)
|
|
@@ -265,7 +261,7 @@ let CommentsList = class CommentsList extends WorkbenchObjectTree {
|
|
|
265
261
|
return `${element.owner}-${element.id}`;
|
|
266
262
|
}
|
|
267
263
|
if (element instanceof CommentNode) {
|
|
268
|
-
return `${element.owner}-${(
|
|
264
|
+
return `${element.owner}-${( element.resource.toString())}-${element.threadId}-${element.comment.uniqueIdInThread}` + (element.isRoot ? '-root' : '');
|
|
269
265
|
}
|
|
270
266
|
return '';
|
|
271
267
|
}
|
|
@@ -293,11 +289,11 @@ let CommentsList = class CommentsList extends WorkbenchObjectTree {
|
|
|
293
289
|
return filtered;
|
|
294
290
|
}
|
|
295
291
|
};
|
|
296
|
-
CommentsList = (
|
|
297
|
-
(
|
|
298
|
-
(
|
|
299
|
-
(
|
|
300
|
-
(
|
|
301
|
-
(
|
|
302
|
-
], CommentsList))
|
|
292
|
+
CommentsList = ( __decorate([
|
|
293
|
+
( __param(3, IContextKeyService)),
|
|
294
|
+
( __param(4, IListService)),
|
|
295
|
+
( __param(5, IThemeService)),
|
|
296
|
+
( __param(6, IInstantiationService)),
|
|
297
|
+
( __param(7, IConfigurationService))
|
|
298
|
+
], CommentsList));
|
|
303
299
|
export { COMMENTS_VIEW_ID, COMMENTS_VIEW_ORIGINAL_TITLE, COMMENTS_VIEW_STORAGE_ID, COMMENTS_VIEW_TITLE, CommentNodeRenderer, CommentsList, Filter, ResourceWithCommentsRenderer };
|
|
@@ -10,19 +10,19 @@ const debugToolBarBackground = registerColor('debugToolBar.background', {
|
|
|
10
10
|
light: '#F3F3F3',
|
|
11
11
|
hcDark: '#000000',
|
|
12
12
|
hcLight: '#FFFFFF'
|
|
13
|
-
}, (
|
|
13
|
+
}, ( localize('debugToolBarBackground', "Debug toolbar background color.")));
|
|
14
14
|
const debugToolBarBorder = registerColor('debugToolBar.border', {
|
|
15
15
|
dark: null,
|
|
16
16
|
light: null,
|
|
17
17
|
hcDark: null,
|
|
18
18
|
hcLight: null
|
|
19
|
-
}, (
|
|
19
|
+
}, ( localize('debugToolBarBorder', "Debug toolbar border color.")));
|
|
20
20
|
const debugIconStartForeground = registerColor('debugIcon.startForeground', {
|
|
21
21
|
dark: '#89D185',
|
|
22
22
|
light: '#388A34',
|
|
23
23
|
hcDark: '#89D185',
|
|
24
24
|
hcLight: '#388A34'
|
|
25
|
-
}, (
|
|
25
|
+
}, ( localize('debugIcon.startForeground', "Debug toolbar icon for start debugging.")));
|
|
26
26
|
function registerColors() {
|
|
27
27
|
const debugTokenExpressionName = registerColor('debugTokenExpression.name', { dark: '#c586c0', light: '#9b46b0', hcDark: foreground, hcLight: foreground }, 'Foreground color for the token names shown in the debug views (ie. the Variables or Watch view).');
|
|
28
28
|
const debugTokenExpressionValue = registerColor('debugTokenExpression.value', { dark: '#cccccc99', light: '#6c6c6ccc', hcDark: foreground, hcLight: foreground }, 'Foreground color for the token values shown in the debug views (ie. the Variables or Watch view).');
|
|
@@ -45,55 +45,55 @@ function registerColors() {
|
|
|
45
45
|
light: '#007ACC',
|
|
46
46
|
hcDark: '#75BEFF',
|
|
47
47
|
hcLight: '#007ACC'
|
|
48
|
-
}, (
|
|
48
|
+
}, ( localize('debugIcon.pauseForeground', "Debug toolbar icon for pause.")));
|
|
49
49
|
const debugIconStopForeground = registerColor('debugIcon.stopForeground', {
|
|
50
50
|
dark: '#F48771',
|
|
51
51
|
light: '#A1260D',
|
|
52
52
|
hcDark: '#F48771',
|
|
53
53
|
hcLight: '#A1260D'
|
|
54
|
-
}, (
|
|
54
|
+
}, ( localize('debugIcon.stopForeground', "Debug toolbar icon for stop.")));
|
|
55
55
|
const debugIconDisconnectForeground = registerColor('debugIcon.disconnectForeground', {
|
|
56
56
|
dark: '#F48771',
|
|
57
57
|
light: '#A1260D',
|
|
58
58
|
hcDark: '#F48771',
|
|
59
59
|
hcLight: '#A1260D'
|
|
60
|
-
}, (
|
|
60
|
+
}, ( localize('debugIcon.disconnectForeground', "Debug toolbar icon for disconnect.")));
|
|
61
61
|
const debugIconRestartForeground = registerColor('debugIcon.restartForeground', {
|
|
62
62
|
dark: '#89D185',
|
|
63
63
|
light: '#388A34',
|
|
64
64
|
hcDark: '#89D185',
|
|
65
65
|
hcLight: '#388A34'
|
|
66
|
-
}, (
|
|
66
|
+
}, ( localize('debugIcon.restartForeground', "Debug toolbar icon for restart.")));
|
|
67
67
|
const debugIconStepOverForeground = registerColor('debugIcon.stepOverForeground', {
|
|
68
68
|
dark: '#75BEFF',
|
|
69
69
|
light: '#007ACC',
|
|
70
70
|
hcDark: '#75BEFF',
|
|
71
71
|
hcLight: '#007ACC'
|
|
72
|
-
}, (
|
|
72
|
+
}, ( localize('debugIcon.stepOverForeground', "Debug toolbar icon for step over.")));
|
|
73
73
|
const debugIconStepIntoForeground = registerColor('debugIcon.stepIntoForeground', {
|
|
74
74
|
dark: '#75BEFF',
|
|
75
75
|
light: '#007ACC',
|
|
76
76
|
hcDark: '#75BEFF',
|
|
77
77
|
hcLight: '#007ACC'
|
|
78
|
-
}, (
|
|
78
|
+
}, ( localize('debugIcon.stepIntoForeground', "Debug toolbar icon for step into.")));
|
|
79
79
|
const debugIconStepOutForeground = registerColor('debugIcon.stepOutForeground', {
|
|
80
80
|
dark: '#75BEFF',
|
|
81
81
|
light: '#007ACC',
|
|
82
82
|
hcDark: '#75BEFF',
|
|
83
83
|
hcLight: '#007ACC'
|
|
84
|
-
}, (
|
|
84
|
+
}, ( localize('debugIcon.stepOutForeground', "Debug toolbar icon for step over.")));
|
|
85
85
|
const debugIconContinueForeground = registerColor('debugIcon.continueForeground', {
|
|
86
86
|
dark: '#75BEFF',
|
|
87
87
|
light: '#007ACC',
|
|
88
88
|
hcDark: '#75BEFF',
|
|
89
89
|
hcLight: '#007ACC'
|
|
90
|
-
}, (
|
|
90
|
+
}, ( localize('debugIcon.continueForeground', "Debug toolbar icon for continue.")));
|
|
91
91
|
const debugIconStepBackForeground = registerColor('debugIcon.stepBackForeground', {
|
|
92
92
|
dark: '#75BEFF',
|
|
93
93
|
light: '#007ACC',
|
|
94
94
|
hcDark: '#75BEFF',
|
|
95
95
|
hcLight: '#007ACC'
|
|
96
|
-
}, (
|
|
96
|
+
}, ( localize('debugIcon.stepBackForeground', "Debug toolbar icon for step back.")));
|
|
97
97
|
registerThemingParticipant((theme, collector) => {
|
|
98
98
|
const badgeBackgroundColor = theme.getColor(badgeBackground);
|
|
99
99
|
const badgeForegroundColor = theme.getColor(badgeForeground);
|
|
@@ -118,8 +118,8 @@ function registerColors() {
|
|
|
118
118
|
|
|
119
119
|
/* Line & column number "badge" for unselected call stack row (basically all other rows) */
|
|
120
120
|
.debug-pane .line-number {
|
|
121
|
-
background-color: ${(
|
|
122
|
-
color: ${(
|
|
121
|
+
background-color: ${( badgeBackgroundColor.transparent(0.6))};
|
|
122
|
+
color: ${( badgeForegroundColor.transparent(0.6))};
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
/* State "badge" displaying the active session's current state.
|
|
@@ -149,13 +149,13 @@ function registerColors() {
|
|
|
149
149
|
|
|
150
150
|
/* Animation of changed values in Debug viewlet */
|
|
151
151
|
@keyframes debugViewletValueChanged {
|
|
152
|
-
0% { background-color: ${(
|
|
153
|
-
5% { background-color: ${(
|
|
154
|
-
100% { background-color: ${(
|
|
152
|
+
0% { background-color: ${( debugViewValueChangedHighlightColor.transparent(0))} }
|
|
153
|
+
5% { background-color: ${( debugViewValueChangedHighlightColor.transparent(0.9))} }
|
|
154
|
+
100% { background-color: ${( debugViewValueChangedHighlightColor.transparent(0.3))} }
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
.debug-pane .monaco-list-row .expression .value.changed {
|
|
158
|
-
background-color: ${(
|
|
158
|
+
background-color: ${( debugViewValueChangedHighlightColor.transparent(0.3))};
|
|
159
159
|
animation-name: debugViewletValueChanged;
|
|
160
160
|
animation-duration: 1s;
|
|
161
161
|
animation-fill-mode: forwards;
|
|
@@ -217,7 +217,7 @@ function registerColors() {
|
|
|
217
217
|
color: ${tokenNumberColor};
|
|
218
218
|
}
|
|
219
219
|
`);
|
|
220
|
-
const debugConsoleInputBorderColor = theme.getColor(inputBorder) || (
|
|
220
|
+
const debugConsoleInputBorderColor = theme.getColor(inputBorder) || ( Color.fromHex('#80808060'));
|
|
221
221
|
const debugConsoleInfoForegroundColor = theme.getColor(debugConsoleInfoForeground);
|
|
222
222
|
const debugConsoleWarningForegroundColor = theme.getColor(debugConsoleWarningForeground);
|
|
223
223
|
const debugConsoleErrorForegroundColor = theme.getColor(debugConsoleErrorForeground);
|