@codingame/monaco-vscode-comments-service-override 32.0.2 → 33.0.5
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": "
|
|
3
|
+
"version": "33.0.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - comments service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "33.0.5"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -33,7 +33,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
33
33
|
super({
|
|
34
34
|
viewId: COMMENTS_VIEW_ID,
|
|
35
35
|
id: "comments.collapse",
|
|
36
|
-
title: ( localize(
|
|
36
|
+
title: ( localize(8456, "Collapse All")),
|
|
37
37
|
f1: false,
|
|
38
38
|
icon: Codicon.collapseAll,
|
|
39
39
|
menu: {
|
|
@@ -53,7 +53,7 @@ registerAction2(class Expand extends ViewAction {
|
|
|
53
53
|
super({
|
|
54
54
|
viewId: COMMENTS_VIEW_ID,
|
|
55
55
|
id: "comments.expand",
|
|
56
|
-
title: ( localize(
|
|
56
|
+
title: ( localize(8457, "Expand All")),
|
|
57
57
|
f1: false,
|
|
58
58
|
icon: Codicon.expandAll,
|
|
59
59
|
menu: {
|
|
@@ -72,7 +72,7 @@ registerAction2(class Reply extends Action2 {
|
|
|
72
72
|
constructor() {
|
|
73
73
|
super({
|
|
74
74
|
id: "comments.reply",
|
|
75
|
-
title: ( localize(
|
|
75
|
+
title: ( localize(8458, "Reply")),
|
|
76
76
|
icon: Codicon.reply,
|
|
77
77
|
precondition: ( ContextKeyExpr.equals("canReply", true)),
|
|
78
78
|
menu: [{
|
|
@@ -101,34 +101,34 @@ registerAction2(class Reply extends Action2 {
|
|
|
101
101
|
( Registry.as(Extensions.Configuration)).registerConfiguration({
|
|
102
102
|
id: "comments",
|
|
103
103
|
order: 20,
|
|
104
|
-
title: ( localize(
|
|
104
|
+
title: ( localize(8459, "Comments")),
|
|
105
105
|
type: "object",
|
|
106
106
|
properties: {
|
|
107
107
|
"comments.openPanel": {
|
|
108
108
|
enum: ["neverOpen", "openOnSessionStart", "openOnSessionStartWithComments"],
|
|
109
109
|
default: "openOnSessionStartWithComments",
|
|
110
|
-
description: ( localize(
|
|
110
|
+
description: ( localize(8460, "Controls when the comments panel should open.")),
|
|
111
111
|
restricted: false,
|
|
112
|
-
markdownDeprecationMessage: ( localize(
|
|
112
|
+
markdownDeprecationMessage: ( localize(8461, "This setting is deprecated in favor of `comments.openView`."))
|
|
113
113
|
},
|
|
114
114
|
"comments.openView": {
|
|
115
115
|
enum: ["never", "file", "firstFile", "firstFileUnresolved"],
|
|
116
|
-
enumDescriptions: [( localize(
|
|
117
|
-
|
|
116
|
+
enumDescriptions: [( localize(8462, "The comments view will never be opened.")), ( localize(8463, "The comments view will open when a file with comments is active.")), ( localize(
|
|
117
|
+
8464,
|
|
118
118
|
"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."
|
|
119
119
|
)), ( localize(
|
|
120
|
-
|
|
120
|
+
8465,
|
|
121
121
|
"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."
|
|
122
122
|
))],
|
|
123
123
|
default: "firstFile",
|
|
124
|
-
description: ( localize(
|
|
124
|
+
description: ( localize(8466, "Controls when the comments view should open.")),
|
|
125
125
|
restricted: false
|
|
126
126
|
},
|
|
127
127
|
"comments.useRelativeTime": {
|
|
128
128
|
type: "boolean",
|
|
129
129
|
default: true,
|
|
130
130
|
description: ( localize(
|
|
131
|
-
|
|
131
|
+
8467,
|
|
132
132
|
"Determines if relative time will be used in comment timestamps (ex. '1 day ago')."
|
|
133
133
|
))
|
|
134
134
|
},
|
|
@@ -136,20 +136,20 @@ registerAction2(class Reply extends Action2 {
|
|
|
136
136
|
type: "boolean",
|
|
137
137
|
default: true,
|
|
138
138
|
description: ( localize(
|
|
139
|
-
|
|
139
|
+
8468,
|
|
140
140
|
"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."
|
|
141
141
|
))
|
|
142
142
|
},
|
|
143
143
|
"comments.maxHeight": {
|
|
144
144
|
type: "boolean",
|
|
145
145
|
default: true,
|
|
146
|
-
description: ( localize(
|
|
146
|
+
description: ( localize(8469, "Controls whether the comments widget scrolls or expands."))
|
|
147
147
|
},
|
|
148
148
|
"comments.collapseOnResolve": {
|
|
149
149
|
type: "boolean",
|
|
150
150
|
default: true,
|
|
151
151
|
description: ( localize(
|
|
152
|
-
|
|
152
|
+
8470,
|
|
153
153
|
"Controls whether the comment thread should collapse when the thread is resolved."
|
|
154
154
|
))
|
|
155
155
|
},
|
|
@@ -157,12 +157,12 @@ registerAction2(class Reply extends Action2 {
|
|
|
157
157
|
type: "string",
|
|
158
158
|
enum: ["whenHasUnsubmittedComments", "never"],
|
|
159
159
|
enumDescriptions: [( localize(
|
|
160
|
-
|
|
160
|
+
8471,
|
|
161
161
|
"Show a confirmation dialog when collapsing a comment thread with unsubmitted comments."
|
|
162
|
-
)), ( localize(
|
|
162
|
+
)), ( localize(8472, "Never show a confirmation dialog when collapsing a comment thread."))],
|
|
163
163
|
default: "whenHasUnsubmittedComments",
|
|
164
164
|
description: ( localize(
|
|
165
|
-
|
|
165
|
+
8473,
|
|
166
166
|
"Controls whether a confirmation dialog is shown when collapsing a comment thread."
|
|
167
167
|
))
|
|
168
168
|
}
|
|
@@ -208,7 +208,7 @@ let UnresolvedCommentsBadge = class UnresolvedCommentsBadge extends Disposable {
|
|
|
208
208
|
return;
|
|
209
209
|
}
|
|
210
210
|
this.totalUnresolved = unresolved;
|
|
211
|
-
const message = ( localize(
|
|
211
|
+
const message = ( localize(8474, "{0} Unresolved Comments", this.totalUnresolved));
|
|
212
212
|
this.activity.value = this.activityService.showViewActivity(COMMENTS_VIEW_ID, {
|
|
213
213
|
badge: ( new NumberBadge(this.totalUnresolved, () => message))
|
|
214
214
|
});
|
|
@@ -71,11 +71,11 @@ registerAction2(class extends Action2 {
|
|
|
71
71
|
super({
|
|
72
72
|
id: CommentCommandId.NextCommentedRange,
|
|
73
73
|
title: {
|
|
74
|
-
value: ( localize(
|
|
74
|
+
value: ( localize(8495, "Go to Next Commented Range")),
|
|
75
75
|
original: "Go to Next Commented Range"
|
|
76
76
|
},
|
|
77
77
|
category: {
|
|
78
|
-
value: ( localize(
|
|
78
|
+
value: ( localize(8496, "Comments")),
|
|
79
79
|
original: "Comments"
|
|
80
80
|
},
|
|
81
81
|
menu: [{
|
|
@@ -106,11 +106,11 @@ registerAction2(class extends Action2 {
|
|
|
106
106
|
super({
|
|
107
107
|
id: CommentCommandId.PreviousCommentedRange,
|
|
108
108
|
title: {
|
|
109
|
-
value: ( localize(
|
|
109
|
+
value: ( localize(8497, "Go to Previous Commented Range")),
|
|
110
110
|
original: "Go to Previous Commented Range"
|
|
111
111
|
},
|
|
112
112
|
category: {
|
|
113
|
-
value: ( localize(
|
|
113
|
+
value: ( localize(8496, "Comments")),
|
|
114
114
|
original: "Comments"
|
|
115
115
|
},
|
|
116
116
|
menu: [{
|
|
@@ -141,11 +141,11 @@ registerAction2(class extends Action2 {
|
|
|
141
141
|
super({
|
|
142
142
|
id: CommentCommandId.NextRange,
|
|
143
143
|
title: {
|
|
144
|
-
value: ( localize(
|
|
144
|
+
value: ( localize(8498, "Go to Next Commenting Range")),
|
|
145
145
|
original: "Go to Next Commenting Range"
|
|
146
146
|
},
|
|
147
147
|
category: {
|
|
148
|
-
value: ( localize(
|
|
148
|
+
value: ( localize(8496, "Comments")),
|
|
149
149
|
original: "Comments"
|
|
150
150
|
},
|
|
151
151
|
menu: [{
|
|
@@ -179,11 +179,11 @@ registerAction2(class extends Action2 {
|
|
|
179
179
|
super({
|
|
180
180
|
id: CommentCommandId.PreviousRange,
|
|
181
181
|
title: {
|
|
182
|
-
value: ( localize(
|
|
182
|
+
value: ( localize(8499, "Go to Previous Commenting Range")),
|
|
183
183
|
original: "Go to Previous Commenting Range"
|
|
184
184
|
},
|
|
185
185
|
category: {
|
|
186
|
-
value: ( localize(
|
|
186
|
+
value: ( localize(8496, "Comments")),
|
|
187
187
|
original: "Comments"
|
|
188
188
|
},
|
|
189
189
|
menu: [{
|
|
@@ -217,11 +217,11 @@ registerAction2(class extends Action2 {
|
|
|
217
217
|
super({
|
|
218
218
|
id: CommentCommandId.ToggleCommenting,
|
|
219
219
|
title: {
|
|
220
|
-
value: ( localize(
|
|
220
|
+
value: ( localize(8500, "Toggle Editor Commenting")),
|
|
221
221
|
original: "Toggle Editor Commenting"
|
|
222
222
|
},
|
|
223
223
|
category: {
|
|
224
|
-
value: ( localize(
|
|
224
|
+
value: ( localize(8496, "Comments")),
|
|
225
225
|
original: "Comments"
|
|
226
226
|
},
|
|
227
227
|
menu: [{
|
|
@@ -241,11 +241,11 @@ registerAction2(class extends Action2 {
|
|
|
241
241
|
super({
|
|
242
242
|
id: CommentCommandId.Add,
|
|
243
243
|
title: {
|
|
244
|
-
value: ( localize(
|
|
244
|
+
value: ( localize(8501, "Add Comment on Current Selection")),
|
|
245
245
|
original: "Add Comment on Current Selection"
|
|
246
246
|
},
|
|
247
247
|
category: {
|
|
248
|
-
value: ( localize(
|
|
248
|
+
value: ( localize(8496, "Comments")),
|
|
249
249
|
original: "Comments"
|
|
250
250
|
},
|
|
251
251
|
menu: [{
|
|
@@ -282,11 +282,11 @@ registerAction2(class extends Action2 {
|
|
|
282
282
|
super({
|
|
283
283
|
id: CommentCommandId.FocusCommentOnCurrentLine,
|
|
284
284
|
title: {
|
|
285
|
-
value: ( localize(
|
|
285
|
+
value: ( localize(8502, "Focus Comment on Current Line")),
|
|
286
286
|
original: "Focus Comment on Current Line"
|
|
287
287
|
},
|
|
288
288
|
category: {
|
|
289
|
-
value: ( localize(
|
|
289
|
+
value: ( localize(8496, "Comments")),
|
|
290
290
|
original: "Comments"
|
|
291
291
|
},
|
|
292
292
|
f1: true,
|
|
@@ -321,7 +321,7 @@ registerAction2(class extends Action2 {
|
|
|
321
321
|
error = true;
|
|
322
322
|
}
|
|
323
323
|
if (error) {
|
|
324
|
-
notificationService.error(( localize(
|
|
324
|
+
notificationService.error(( localize(8503, "The cursor must be on a line with a comment to focus the comment")));
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
});
|
|
@@ -337,11 +337,11 @@ registerAction2(class extends Action2 {
|
|
|
337
337
|
super({
|
|
338
338
|
id: CommentCommandId.CollapseAll,
|
|
339
339
|
title: {
|
|
340
|
-
value: ( localize(
|
|
340
|
+
value: ( localize(8504, "Collapse All Comments")),
|
|
341
341
|
original: "Collapse All Comments"
|
|
342
342
|
},
|
|
343
343
|
category: {
|
|
344
|
-
value: ( localize(
|
|
344
|
+
value: ( localize(8496, "Comments")),
|
|
345
345
|
original: "Comments"
|
|
346
346
|
},
|
|
347
347
|
menu: [{
|
|
@@ -360,11 +360,11 @@ registerAction2(class extends Action2 {
|
|
|
360
360
|
super({
|
|
361
361
|
id: CommentCommandId.ExpandAll,
|
|
362
362
|
title: {
|
|
363
|
-
value: ( localize(
|
|
363
|
+
value: ( localize(8505, "Expand All Comments")),
|
|
364
364
|
original: "Expand All Comments"
|
|
365
365
|
},
|
|
366
366
|
category: {
|
|
367
|
-
value: ( localize(
|
|
367
|
+
value: ( localize(8496, "Comments")),
|
|
368
368
|
original: "Comments"
|
|
369
369
|
},
|
|
370
370
|
menu: [{
|
|
@@ -383,11 +383,11 @@ registerAction2(class extends Action2 {
|
|
|
383
383
|
super({
|
|
384
384
|
id: CommentCommandId.ExpandUnresolved,
|
|
385
385
|
title: {
|
|
386
|
-
value: ( localize(
|
|
386
|
+
value: ( localize(8506, "Expand Unresolved Comments")),
|
|
387
387
|
original: "Expand Unresolved Comments"
|
|
388
388
|
},
|
|
389
389
|
category: {
|
|
390
|
-
value: ( localize(
|
|
390
|
+
value: ( localize(8496, "Comments")),
|
|
391
391
|
original: "Comments"
|
|
392
392
|
},
|
|
393
393
|
menu: [{
|
|
@@ -446,7 +446,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
446
446
|
error = true;
|
|
447
447
|
}
|
|
448
448
|
if (error) {
|
|
449
|
-
notificationService.error(( localize(
|
|
449
|
+
notificationService.error(( localize(8503, "The cursor must be on a line with a comment to focus the comment")));
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
}
|