@codingame/monaco-vscode-comments-service-override 11.0.2 → 11.1.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-comments-service-override",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.1.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@11.
|
|
30
|
-
"@codingame/monaco-vscode-comments-extensions-common": "11.
|
|
31
|
-
"@codingame/monaco-vscode-
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.1.1",
|
|
30
|
+
"@codingame/monaco-vscode-chat-comments-extensions-interactive-notebook-search-common": "11.1.1",
|
|
31
|
+
"@codingame/monaco-vscode-comments-extensions-common": "11.1.1"
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -29,7 +29,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
29
29
|
super({
|
|
30
30
|
viewId: COMMENTS_VIEW_ID,
|
|
31
31
|
id: 'comments.collapse',
|
|
32
|
-
title: ( localize(
|
|
32
|
+
title: ( localize(1656, "Collapse All")),
|
|
33
33
|
f1: false,
|
|
34
34
|
icon: Codicon.collapseAll,
|
|
35
35
|
menu: {
|
|
@@ -52,7 +52,7 @@ registerAction2(class Expand extends ViewAction {
|
|
|
52
52
|
super({
|
|
53
53
|
viewId: COMMENTS_VIEW_ID,
|
|
54
54
|
id: 'comments.expand',
|
|
55
|
-
title: ( localize(
|
|
55
|
+
title: ( localize(1657, "Expand All")),
|
|
56
56
|
f1: false,
|
|
57
57
|
icon: Codicon.expandAll,
|
|
58
58
|
menu: {
|
|
@@ -74,7 +74,7 @@ registerAction2(class Reply extends Action2 {
|
|
|
74
74
|
constructor() {
|
|
75
75
|
super({
|
|
76
76
|
id: 'comments.reply',
|
|
77
|
-
title: ( localize(
|
|
77
|
+
title: ( localize(1658, "Reply")),
|
|
78
78
|
icon: Codicon.reply,
|
|
79
79
|
precondition: ( (ContextKeyExpr.equals('canReply', true))),
|
|
80
80
|
menu: [{
|
|
@@ -100,34 +100,34 @@ registerAction2(class Reply extends Action2 {
|
|
|
100
100
|
( (Registry.as(Extensions.Configuration))).registerConfiguration({
|
|
101
101
|
id: 'comments',
|
|
102
102
|
order: 20,
|
|
103
|
-
title: ( localize(
|
|
103
|
+
title: ( localize(1659, "Comments")),
|
|
104
104
|
type: 'object',
|
|
105
105
|
properties: {
|
|
106
106
|
'comments.openPanel': {
|
|
107
107
|
enum: ['neverOpen', 'openOnSessionStart', 'openOnSessionStartWithComments'],
|
|
108
108
|
default: 'openOnSessionStartWithComments',
|
|
109
|
-
description: ( localize(
|
|
109
|
+
description: ( localize(1660, "Controls when the comments panel should open.")),
|
|
110
110
|
restricted: false,
|
|
111
|
-
markdownDeprecationMessage: ( localize(
|
|
111
|
+
markdownDeprecationMessage: ( localize(1661, "This setting is deprecated in favor of `comments.openView`."))
|
|
112
112
|
},
|
|
113
113
|
'comments.openView': {
|
|
114
114
|
enum: ['never', 'file', 'firstFile', 'firstFileUnresolved'],
|
|
115
|
-
enumDescriptions: [( localize(
|
|
116
|
-
|
|
115
|
+
enumDescriptions: [( localize(1662, "The comments view will never be opened.")), ( localize(1663, "The comments view will open when a file with comments is active.")), ( localize(
|
|
116
|
+
1664,
|
|
117
117
|
"If the comments view has not been opened yet during this session it will open the first time during a session that a file with comments is active."
|
|
118
118
|
)), ( localize(
|
|
119
|
-
|
|
119
|
+
1665,
|
|
120
120
|
"If the comments view has not been opened yet during this session and the comment is not resolved, it will open the first time during a session that a file with comments is active."
|
|
121
121
|
))],
|
|
122
122
|
default: 'firstFile',
|
|
123
|
-
description: ( localize(
|
|
123
|
+
description: ( localize(1666, "Controls when the comments view should open.")),
|
|
124
124
|
restricted: false
|
|
125
125
|
},
|
|
126
126
|
'comments.useRelativeTime': {
|
|
127
127
|
type: 'boolean',
|
|
128
128
|
default: true,
|
|
129
129
|
description: ( localize(
|
|
130
|
-
|
|
130
|
+
1667,
|
|
131
131
|
"Determines if relative time will be used in comment timestamps (ex. '1 day ago')."
|
|
132
132
|
))
|
|
133
133
|
},
|
|
@@ -135,20 +135,20 @@ registerAction2(class Reply extends Action2 {
|
|
|
135
135
|
type: 'boolean',
|
|
136
136
|
default: true,
|
|
137
137
|
description: ( localize(
|
|
138
|
-
|
|
138
|
+
1668,
|
|
139
139
|
"Controls the visibility of the comments bar and comment threads in editors that have commenting ranges and comments. Comments are still accessible via the Comments view and will cause commenting to be toggled on in the same way running the command \"Comments: Toggle Editor Commenting\" toggles comments."
|
|
140
140
|
))
|
|
141
141
|
},
|
|
142
142
|
'comments.maxHeight': {
|
|
143
143
|
type: 'boolean',
|
|
144
144
|
default: true,
|
|
145
|
-
description: ( localize(
|
|
145
|
+
description: ( localize(1669, "Controls whether the comments widget scrolls or expands."))
|
|
146
146
|
},
|
|
147
147
|
'comments.collapseOnResolve': {
|
|
148
148
|
type: 'boolean',
|
|
149
149
|
default: true,
|
|
150
150
|
description: ( localize(
|
|
151
|
-
|
|
151
|
+
1670,
|
|
152
152
|
"Controls whether the comment thread should collapse when the thread is resolved."
|
|
153
153
|
))
|
|
154
154
|
}
|
|
@@ -189,7 +189,7 @@ let UnresolvedCommentsBadge = class UnresolvedCommentsBadge extends Disposable {
|
|
|
189
189
|
return;
|
|
190
190
|
}
|
|
191
191
|
this.totalUnresolved = unresolved;
|
|
192
|
-
const message = ( localize(
|
|
192
|
+
const message = ( localize(1671, '{0} Unresolved Comments', this.totalUnresolved));
|
|
193
193
|
this.activity.value = this.activityService.showViewActivity(COMMENTS_VIEW_ID, { badge: ( (new NumberBadge(this.totalUnresolved, () => message))) });
|
|
194
194
|
}
|
|
195
195
|
};
|
|
@@ -60,11 +60,11 @@ registerAction2(class extends Action2 {
|
|
|
60
60
|
super({
|
|
61
61
|
id: "editor.action.nextCommentedRangeAction" ,
|
|
62
62
|
title: {
|
|
63
|
-
value: ( localize(
|
|
63
|
+
value: ( localize(5274, "Go to Next Commented Range")),
|
|
64
64
|
original: 'Go to Next Commented Range'
|
|
65
65
|
},
|
|
66
66
|
category: {
|
|
67
|
-
value: ( localize(
|
|
67
|
+
value: ( localize(5275, "Comments")),
|
|
68
68
|
original: 'Comments'
|
|
69
69
|
},
|
|
70
70
|
menu: [{
|
|
@@ -95,11 +95,11 @@ registerAction2(class extends Action2 {
|
|
|
95
95
|
super({
|
|
96
96
|
id: "editor.action.previousCommentedRangeAction" ,
|
|
97
97
|
title: {
|
|
98
|
-
value: ( localize(
|
|
98
|
+
value: ( localize(5276, "Go to Previous Commented Range")),
|
|
99
99
|
original: 'Go to Previous Commented Range'
|
|
100
100
|
},
|
|
101
101
|
category: {
|
|
102
|
-
value: ( localize(
|
|
102
|
+
value: ( localize(5275, "Comments")),
|
|
103
103
|
original: 'Comments'
|
|
104
104
|
},
|
|
105
105
|
menu: [{
|
|
@@ -130,11 +130,11 @@ registerAction2(class extends Action2 {
|
|
|
130
130
|
super({
|
|
131
131
|
id: "editor.action.nextCommentingRange" ,
|
|
132
132
|
title: {
|
|
133
|
-
value: ( localize(
|
|
133
|
+
value: ( localize(5277, "Go to Next Commenting Range")),
|
|
134
134
|
original: 'Go to Next Commenting Range'
|
|
135
135
|
},
|
|
136
136
|
category: {
|
|
137
|
-
value: ( localize(
|
|
137
|
+
value: ( localize(5275, "Comments")),
|
|
138
138
|
original: 'Comments'
|
|
139
139
|
},
|
|
140
140
|
menu: [{
|
|
@@ -172,11 +172,11 @@ registerAction2(class extends Action2 {
|
|
|
172
172
|
super({
|
|
173
173
|
id: "editor.action.previousCommentingRange" ,
|
|
174
174
|
title: {
|
|
175
|
-
value: ( localize(
|
|
175
|
+
value: ( localize(5278, "Go to Previous Commenting Range")),
|
|
176
176
|
original: 'Go to Previous Commenting Range'
|
|
177
177
|
},
|
|
178
178
|
category: {
|
|
179
|
-
value: ( localize(
|
|
179
|
+
value: ( localize(5275, "Comments")),
|
|
180
180
|
original: 'Comments'
|
|
181
181
|
},
|
|
182
182
|
menu: [{
|
|
@@ -214,11 +214,11 @@ registerAction2(class extends Action2 {
|
|
|
214
214
|
super({
|
|
215
215
|
id: "workbench.action.toggleCommenting" ,
|
|
216
216
|
title: {
|
|
217
|
-
value: ( localize(
|
|
217
|
+
value: ( localize(5279, "Toggle Editor Commenting")),
|
|
218
218
|
original: 'Toggle Editor Commenting'
|
|
219
219
|
},
|
|
220
220
|
category: {
|
|
221
|
-
value: ( localize(
|
|
221
|
+
value: ( localize(5275, "Comments")),
|
|
222
222
|
original: 'Comments'
|
|
223
223
|
},
|
|
224
224
|
menu: [{
|
|
@@ -238,11 +238,11 @@ registerAction2(class extends Action2 {
|
|
|
238
238
|
super({
|
|
239
239
|
id: "workbench.action.addComment" ,
|
|
240
240
|
title: {
|
|
241
|
-
value: ( localize(
|
|
241
|
+
value: ( localize(5280, "Add Comment on Current Selection")),
|
|
242
242
|
original: 'Add Comment on Current Selection'
|
|
243
243
|
},
|
|
244
244
|
category: {
|
|
245
|
-
value: ( localize(
|
|
245
|
+
value: ( localize(5275, "Comments")),
|
|
246
246
|
original: 'Comments'
|
|
247
247
|
},
|
|
248
248
|
menu: [{
|
|
@@ -277,7 +277,7 @@ registerAction2(class extends Action2 {
|
|
|
277
277
|
await controller.addOrToggleCommentAtLine(position, undefined);
|
|
278
278
|
}
|
|
279
279
|
catch (e) {
|
|
280
|
-
notificationService.error(( localize(
|
|
280
|
+
notificationService.error(( localize(5281, "The cursor must be within a commenting range to add a comment")));
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
});
|
|
@@ -286,11 +286,11 @@ registerAction2(class extends Action2 {
|
|
|
286
286
|
super({
|
|
287
287
|
id: "workbench.action.focusCommentOnCurrentLine" ,
|
|
288
288
|
title: {
|
|
289
|
-
value: ( localize(
|
|
289
|
+
value: ( localize(5282, "Focus Comment on Current Line")),
|
|
290
290
|
original: 'Focus Comment on Current Line'
|
|
291
291
|
},
|
|
292
292
|
category: {
|
|
293
|
-
value: ( localize(
|
|
293
|
+
value: ( localize(5275, "Comments")),
|
|
294
294
|
original: 'Comments'
|
|
295
295
|
},
|
|
296
296
|
f1: true,
|
|
@@ -322,7 +322,7 @@ registerAction2(class extends Action2 {
|
|
|
322
322
|
error = true;
|
|
323
323
|
}
|
|
324
324
|
if (error) {
|
|
325
|
-
notificationService.error(( localize(
|
|
325
|
+
notificationService.error(( localize(5283, "The cursor must be on a line with a comment to focus the comment")));
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
});
|
|
@@ -331,11 +331,11 @@ registerAction2(class extends Action2 {
|
|
|
331
331
|
super({
|
|
332
332
|
id: "workbench.action.collapseAllComments" ,
|
|
333
333
|
title: {
|
|
334
|
-
value: ( localize(
|
|
334
|
+
value: ( localize(5284, "Collapse All Comments")),
|
|
335
335
|
original: 'Collapse All Comments'
|
|
336
336
|
},
|
|
337
337
|
category: {
|
|
338
|
-
value: ( localize(
|
|
338
|
+
value: ( localize(5275, "Comments")),
|
|
339
339
|
original: 'Comments'
|
|
340
340
|
},
|
|
341
341
|
menu: [{
|
|
@@ -353,11 +353,11 @@ registerAction2(class extends Action2 {
|
|
|
353
353
|
super({
|
|
354
354
|
id: "workbench.action.expandAllComments" ,
|
|
355
355
|
title: {
|
|
356
|
-
value: ( localize(
|
|
356
|
+
value: ( localize(5285, "Expand All Comments")),
|
|
357
357
|
original: 'Expand All Comments'
|
|
358
358
|
},
|
|
359
359
|
category: {
|
|
360
|
-
value: ( localize(
|
|
360
|
+
value: ( localize(5275, "Comments")),
|
|
361
361
|
original: 'Comments'
|
|
362
362
|
},
|
|
363
363
|
menu: [{
|
|
@@ -375,11 +375,11 @@ registerAction2(class extends Action2 {
|
|
|
375
375
|
super({
|
|
376
376
|
id: "workbench.action.expandUnresolvedComments" ,
|
|
377
377
|
title: {
|
|
378
|
-
value: ( localize(
|
|
378
|
+
value: ( localize(5286, "Expand Unresolved Comments")),
|
|
379
379
|
original: 'Expand Unresolved Comments'
|
|
380
380
|
},
|
|
381
381
|
category: {
|
|
382
|
-
value: ( localize(
|
|
382
|
+
value: ( localize(5275, "Comments")),
|
|
383
383
|
original: 'Comments'
|
|
384
384
|
},
|
|
385
385
|
menu: [{
|