@codingame/monaco-vscode-comments-service-override 15.0.0 → 15.0.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/package.json +6 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +18 -18
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsEditorContribution.js +22 -22
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsInputContentProvider.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-comments-service-override",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - comments service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,12 +15,11 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-
|
|
19
|
-
"@codingame/monaco-vscode-
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"@codingame/monaco-vscode-
|
|
23
|
-
"@codingame/monaco-vscode-eb7d5efd-2e60-59f8-9ba4-9a8ae8cb2957-common": "15.0.0"
|
|
18
|
+
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "15.0.2",
|
|
19
|
+
"@codingame/monaco-vscode-a3f28a41-ba19-5a7e-8f5a-d6c1403b507d-common": "15.0.2",
|
|
20
|
+
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "15.0.2",
|
|
21
|
+
"@codingame/monaco-vscode-api": "15.0.2",
|
|
22
|
+
"@codingame/monaco-vscode-eb7d5efd-2e60-59f8-9ba4-9a8ae8cb2957-common": "15.0.2"
|
|
24
23
|
},
|
|
25
24
|
"main": "index.js",
|
|
26
25
|
"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(5073, "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(5074, "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(5075, "Reply")),
|
|
76
76
|
icon: Codicon.reply,
|
|
77
77
|
precondition: ( ContextKeyExpr.equals('canReply', true)),
|
|
78
78
|
menu: [{
|
|
@@ -95,34 +95,34 @@ registerAction2(class Reply extends Action2 {
|
|
|
95
95
|
( Registry.as(Extensions.Configuration)).registerConfiguration({
|
|
96
96
|
id: 'comments',
|
|
97
97
|
order: 20,
|
|
98
|
-
title: ( localize(
|
|
98
|
+
title: ( localize(5076, "Comments")),
|
|
99
99
|
type: 'object',
|
|
100
100
|
properties: {
|
|
101
101
|
'comments.openPanel': {
|
|
102
102
|
enum: ['neverOpen', 'openOnSessionStart', 'openOnSessionStartWithComments'],
|
|
103
103
|
default: 'openOnSessionStartWithComments',
|
|
104
|
-
description: ( localize(
|
|
104
|
+
description: ( localize(5077, "Controls when the comments panel should open.")),
|
|
105
105
|
restricted: false,
|
|
106
|
-
markdownDeprecationMessage: ( localize(
|
|
106
|
+
markdownDeprecationMessage: ( localize(5078, "This setting is deprecated in favor of `comments.openView`."))
|
|
107
107
|
},
|
|
108
108
|
'comments.openView': {
|
|
109
109
|
enum: ['never', 'file', 'firstFile', 'firstFileUnresolved'],
|
|
110
|
-
enumDescriptions: [( localize(
|
|
111
|
-
|
|
110
|
+
enumDescriptions: [( localize(5079, "The comments view will never be opened.")), ( localize(5080, "The comments view will open when a file with comments is active.")), ( localize(
|
|
111
|
+
5081,
|
|
112
112
|
"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."
|
|
113
113
|
)), ( localize(
|
|
114
|
-
|
|
114
|
+
5082,
|
|
115
115
|
"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."
|
|
116
116
|
))],
|
|
117
117
|
default: 'firstFile',
|
|
118
|
-
description: ( localize(
|
|
118
|
+
description: ( localize(5083, "Controls when the comments view should open.")),
|
|
119
119
|
restricted: false
|
|
120
120
|
},
|
|
121
121
|
'comments.useRelativeTime': {
|
|
122
122
|
type: 'boolean',
|
|
123
123
|
default: true,
|
|
124
124
|
description: ( localize(
|
|
125
|
-
|
|
125
|
+
5084,
|
|
126
126
|
"Determines if relative time will be used in comment timestamps (ex. '1 day ago')."
|
|
127
127
|
))
|
|
128
128
|
},
|
|
@@ -130,20 +130,20 @@ registerAction2(class Reply extends Action2 {
|
|
|
130
130
|
type: 'boolean',
|
|
131
131
|
default: true,
|
|
132
132
|
description: ( localize(
|
|
133
|
-
|
|
133
|
+
5085,
|
|
134
134
|
"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."
|
|
135
135
|
))
|
|
136
136
|
},
|
|
137
137
|
'comments.maxHeight': {
|
|
138
138
|
type: 'boolean',
|
|
139
139
|
default: true,
|
|
140
|
-
description: ( localize(
|
|
140
|
+
description: ( localize(5086, "Controls whether the comments widget scrolls or expands."))
|
|
141
141
|
},
|
|
142
142
|
'comments.collapseOnResolve': {
|
|
143
143
|
type: 'boolean',
|
|
144
144
|
default: true,
|
|
145
145
|
description: ( localize(
|
|
146
|
-
|
|
146
|
+
5087,
|
|
147
147
|
"Controls whether the comment thread should collapse when the thread is resolved."
|
|
148
148
|
))
|
|
149
149
|
},
|
|
@@ -151,12 +151,12 @@ registerAction2(class Reply extends Action2 {
|
|
|
151
151
|
type: 'string',
|
|
152
152
|
enum: ['whenHasUnsubmittedComments', 'never'],
|
|
153
153
|
enumDescriptions: [( localize(
|
|
154
|
-
|
|
154
|
+
5088,
|
|
155
155
|
"Show a confirmation dialog when collapsing a comment thread with unsubmitted comments."
|
|
156
|
-
)), ( localize(
|
|
156
|
+
)), ( localize(5089, "Never show a confirmation dialog when collapsing a comment thread."))],
|
|
157
157
|
default: 'whenHasUnsubmittedComments',
|
|
158
158
|
description: ( localize(
|
|
159
|
-
|
|
159
|
+
5090,
|
|
160
160
|
"Controls whether a confirmation dialog is shown when collapsing a comment thread."
|
|
161
161
|
))
|
|
162
162
|
}
|
|
@@ -197,7 +197,7 @@ let UnresolvedCommentsBadge = class UnresolvedCommentsBadge extends Disposable {
|
|
|
197
197
|
return;
|
|
198
198
|
}
|
|
199
199
|
this.totalUnresolved = unresolved;
|
|
200
|
-
const message = ( localize(
|
|
200
|
+
const message = ( localize(5091, '{0} Unresolved Comments', this.totalUnresolved));
|
|
201
201
|
this.activity.value = this.activityService.showViewActivity(COMMENTS_VIEW_ID, { badge: ( new NumberBadge(this.totalUnresolved, () => message)) });
|
|
202
202
|
}
|
|
203
203
|
};
|
|
@@ -64,11 +64,11 @@ registerAction2(class extends Action2 {
|
|
|
64
64
|
super({
|
|
65
65
|
id: CommentCommandId.NextCommentedRange,
|
|
66
66
|
title: {
|
|
67
|
-
value: ( localize(
|
|
67
|
+
value: ( localize(5112, "Go to Next Commented Range")),
|
|
68
68
|
original: 'Go to Next Commented Range'
|
|
69
69
|
},
|
|
70
70
|
category: {
|
|
71
|
-
value: ( localize(
|
|
71
|
+
value: ( localize(5113, "Comments")),
|
|
72
72
|
original: 'Comments'
|
|
73
73
|
},
|
|
74
74
|
menu: [{
|
|
@@ -99,11 +99,11 @@ registerAction2(class extends Action2 {
|
|
|
99
99
|
super({
|
|
100
100
|
id: CommentCommandId.PreviousCommentedRange,
|
|
101
101
|
title: {
|
|
102
|
-
value: ( localize(
|
|
102
|
+
value: ( localize(5114, "Go to Previous Commented Range")),
|
|
103
103
|
original: 'Go to Previous Commented Range'
|
|
104
104
|
},
|
|
105
105
|
category: {
|
|
106
|
-
value: ( localize(
|
|
106
|
+
value: ( localize(5113, "Comments")),
|
|
107
107
|
original: 'Comments'
|
|
108
108
|
},
|
|
109
109
|
menu: [{
|
|
@@ -134,11 +134,11 @@ registerAction2(class extends Action2 {
|
|
|
134
134
|
super({
|
|
135
135
|
id: CommentCommandId.NextRange,
|
|
136
136
|
title: {
|
|
137
|
-
value: ( localize(
|
|
137
|
+
value: ( localize(5115, "Go to Next Commenting Range")),
|
|
138
138
|
original: 'Go to Next Commenting Range'
|
|
139
139
|
},
|
|
140
140
|
category: {
|
|
141
|
-
value: ( localize(
|
|
141
|
+
value: ( localize(5113, "Comments")),
|
|
142
142
|
original: 'Comments'
|
|
143
143
|
},
|
|
144
144
|
menu: [{
|
|
@@ -169,11 +169,11 @@ registerAction2(class extends Action2 {
|
|
|
169
169
|
super({
|
|
170
170
|
id: CommentCommandId.PreviousRange,
|
|
171
171
|
title: {
|
|
172
|
-
value: ( localize(
|
|
172
|
+
value: ( localize(5116, "Go to Previous Commenting Range")),
|
|
173
173
|
original: 'Go to Previous Commenting Range'
|
|
174
174
|
},
|
|
175
175
|
category: {
|
|
176
|
-
value: ( localize(
|
|
176
|
+
value: ( localize(5113, "Comments")),
|
|
177
177
|
original: 'Comments'
|
|
178
178
|
},
|
|
179
179
|
menu: [{
|
|
@@ -204,11 +204,11 @@ registerAction2(class extends Action2 {
|
|
|
204
204
|
super({
|
|
205
205
|
id: CommentCommandId.ToggleCommenting,
|
|
206
206
|
title: {
|
|
207
|
-
value: ( localize(
|
|
207
|
+
value: ( localize(5117, "Toggle Editor Commenting")),
|
|
208
208
|
original: 'Toggle Editor Commenting'
|
|
209
209
|
},
|
|
210
210
|
category: {
|
|
211
|
-
value: ( localize(
|
|
211
|
+
value: ( localize(5113, "Comments")),
|
|
212
212
|
original: 'Comments'
|
|
213
213
|
},
|
|
214
214
|
menu: [{
|
|
@@ -228,11 +228,11 @@ registerAction2(class extends Action2 {
|
|
|
228
228
|
super({
|
|
229
229
|
id: CommentCommandId.Add,
|
|
230
230
|
title: {
|
|
231
|
-
value: ( localize(
|
|
231
|
+
value: ( localize(5118, "Add Comment on Current Selection")),
|
|
232
232
|
original: 'Add Comment on Current Selection'
|
|
233
233
|
},
|
|
234
234
|
category: {
|
|
235
|
-
value: ( localize(
|
|
235
|
+
value: ( localize(5113, "Comments")),
|
|
236
236
|
original: 'Comments'
|
|
237
237
|
},
|
|
238
238
|
menu: [{
|
|
@@ -270,11 +270,11 @@ registerAction2(class extends Action2 {
|
|
|
270
270
|
super({
|
|
271
271
|
id: CommentCommandId.FocusCommentOnCurrentLine,
|
|
272
272
|
title: {
|
|
273
|
-
value: ( localize(
|
|
273
|
+
value: ( localize(5119, "Focus Comment on Current Line")),
|
|
274
274
|
original: 'Focus Comment on Current Line'
|
|
275
275
|
},
|
|
276
276
|
category: {
|
|
277
|
-
value: ( localize(
|
|
277
|
+
value: ( localize(5113, "Comments")),
|
|
278
278
|
original: 'Comments'
|
|
279
279
|
},
|
|
280
280
|
f1: true,
|
|
@@ -306,7 +306,7 @@ registerAction2(class extends Action2 {
|
|
|
306
306
|
error = true;
|
|
307
307
|
}
|
|
308
308
|
if (error) {
|
|
309
|
-
notificationService.error(( localize(
|
|
309
|
+
notificationService.error(( localize(5120, "The cursor must be on a line with a comment to focus the comment")));
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
});
|
|
@@ -315,11 +315,11 @@ registerAction2(class extends Action2 {
|
|
|
315
315
|
super({
|
|
316
316
|
id: CommentCommandId.CollapseAll,
|
|
317
317
|
title: {
|
|
318
|
-
value: ( localize(
|
|
318
|
+
value: ( localize(5121, "Collapse All Comments")),
|
|
319
319
|
original: 'Collapse All Comments'
|
|
320
320
|
},
|
|
321
321
|
category: {
|
|
322
|
-
value: ( localize(
|
|
322
|
+
value: ( localize(5113, "Comments")),
|
|
323
323
|
original: 'Comments'
|
|
324
324
|
},
|
|
325
325
|
menu: [{
|
|
@@ -337,11 +337,11 @@ registerAction2(class extends Action2 {
|
|
|
337
337
|
super({
|
|
338
338
|
id: CommentCommandId.ExpandAll,
|
|
339
339
|
title: {
|
|
340
|
-
value: ( localize(
|
|
340
|
+
value: ( localize(5122, "Expand All Comments")),
|
|
341
341
|
original: 'Expand All Comments'
|
|
342
342
|
},
|
|
343
343
|
category: {
|
|
344
|
-
value: ( localize(
|
|
344
|
+
value: ( localize(5113, "Comments")),
|
|
345
345
|
original: 'Comments'
|
|
346
346
|
},
|
|
347
347
|
menu: [{
|
|
@@ -359,11 +359,11 @@ registerAction2(class extends Action2 {
|
|
|
359
359
|
super({
|
|
360
360
|
id: CommentCommandId.ExpandUnresolved,
|
|
361
361
|
title: {
|
|
362
|
-
value: ( localize(
|
|
362
|
+
value: ( localize(5123, "Expand Unresolved Comments")),
|
|
363
363
|
original: 'Expand Unresolved Comments'
|
|
364
364
|
},
|
|
365
365
|
category: {
|
|
366
|
-
value: ( localize(
|
|
366
|
+
value: ( localize(5113, "Comments")),
|
|
367
367
|
original: 'Comments'
|
|
368
368
|
},
|
|
369
369
|
menu: [{
|
|
@@ -422,7 +422,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
422
422
|
error = true;
|
|
423
423
|
}
|
|
424
424
|
if (error) {
|
|
425
|
-
notificationService.error(( localize(
|
|
425
|
+
notificationService.error(( localize(5120, "The cursor must be on a line with a comment to focus the comment")));
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
}
|
|
@@ -7,7 +7,7 @@ import { ScrollType } from '@codingame/monaco-vscode-api/vscode/vs/editor/common
|
|
|
7
7
|
import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service';
|
|
8
8
|
import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service';
|
|
9
9
|
import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service';
|
|
10
|
-
import { applyTextEditorOptions } from '@codingame/monaco-vscode-
|
|
10
|
+
import { applyTextEditorOptions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorOptions';
|
|
11
11
|
import { SimpleCommentEditor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/comments/browser/simpleCommentEditor';
|
|
12
12
|
|
|
13
13
|
let CommentsInputContentProvider = class CommentsInputContentProvider extends Disposable {
|