@codingame/monaco-vscode-comments-service-override 22.1.9 → 23.0.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": "
|
|
3
|
+
"version": "23.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - comments service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,11 +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-eb7d5efd-2e60-59f8-9ba4-9a8ae8cb2957-common": "
|
|
18
|
+
"@codingame/monaco-vscode-3b5a5cd1-d4ff-500a-b609-57e0cd4afa0a-common": "23.0.1",
|
|
19
|
+
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "23.0.1",
|
|
20
|
+
"@codingame/monaco-vscode-9ee79c1a-3f03-568b-8eac-b02513a98b68-common": "23.0.1",
|
|
21
|
+
"@codingame/monaco-vscode-api": "23.0.1",
|
|
22
|
+
"@codingame/monaco-vscode-eb7d5efd-2e60-59f8-9ba4-9a8ae8cb2957-common": "23.0.1"
|
|
23
23
|
},
|
|
24
24
|
"main": "index.js",
|
|
25
25
|
"module": "index.js",
|
|
@@ -7,7 +7,7 @@ import { Range, IRange } from "@codingame/monaco-vscode-api/vscode/vs/editor/com
|
|
|
7
7
|
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
8
8
|
import { ICommentThreadChangedEvent } from "@codingame/monaco-vscode-eb7d5efd-2e60-59f8-9ba4-9a8ae8cb2957-common/vscode/vs/workbench/contrib/comments/common/commentModel";
|
|
9
9
|
import { CommentMenus } from "./commentMenus.js";
|
|
10
|
-
import { ICellRange } from "@codingame/monaco-vscode-
|
|
10
|
+
import { ICellRange } from "@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common/vscode/vs/workbench/contrib/notebook/common/notebookRange";
|
|
11
11
|
import { IWorkbenchLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service";
|
|
12
12
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
13
13
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
@@ -10,7 +10,7 @@ import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/conf
|
|
|
10
10
|
import { Disposable, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
11
11
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
12
12
|
import { Extensions as Extensions$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
13
|
-
import { NumberBadge } from '@codingame/monaco-vscode-
|
|
13
|
+
import { NumberBadge } from '@codingame/monaco-vscode-3b5a5cd1-d4ff-500a-b609-57e0cd4afa0a-common/vscode/vs/workbench/services/activity/common/activity';
|
|
14
14
|
import { IActivityService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/activity/common/activity.service';
|
|
15
15
|
import { COMMENTS_VIEW_ID } from '@codingame/monaco-vscode-eb7d5efd-2e60-59f8-9ba4-9a8ae8cb2957-common/vscode/vs/workbench/contrib/comments/browser/commentsTreeViewer';
|
|
16
16
|
import { CommentThreadState } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages';
|
|
@@ -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(6149, "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(6150, "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(6151, "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(6152, "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(6153, "Controls when the comments panel should open.")),
|
|
105
105
|
restricted: false,
|
|
106
|
-
markdownDeprecationMessage: ( localize(
|
|
106
|
+
markdownDeprecationMessage: ( localize(6154, "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(6155, "The comments view will never be opened.")), ( localize(6156, "The comments view will open when a file with comments is active.")), ( localize(
|
|
111
|
+
6157,
|
|
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
|
+
6158,
|
|
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(6159, "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
|
+
6160,
|
|
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
|
+
6161,
|
|
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(6162, "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
|
+
6163,
|
|
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
|
+
6164,
|
|
155
155
|
"Show a confirmation dialog when collapsing a comment thread with unsubmitted comments."
|
|
156
|
-
)), ( localize(
|
|
156
|
+
)), ( localize(6165, "Never show a confirmation dialog when collapsing a comment thread."))],
|
|
157
157
|
default: 'whenHasUnsubmittedComments',
|
|
158
158
|
description: ( localize(
|
|
159
|
-
|
|
159
|
+
6166,
|
|
160
160
|
"Controls whether a confirmation dialog is shown when collapsing a comment thread."
|
|
161
161
|
))
|
|
162
162
|
}
|
|
@@ -198,7 +198,7 @@ let UnresolvedCommentsBadge = class UnresolvedCommentsBadge extends Disposable {
|
|
|
198
198
|
return;
|
|
199
199
|
}
|
|
200
200
|
this.totalUnresolved = unresolved;
|
|
201
|
-
const message = ( localize(
|
|
201
|
+
const message = ( localize(6167, '{0} Unresolved Comments', this.totalUnresolved));
|
|
202
202
|
this.activity.value = this.activityService.showViewActivity(COMMENTS_VIEW_ID, { badge: ( new NumberBadge(this.totalUnresolved, () => message)) });
|
|
203
203
|
}
|
|
204
204
|
};
|
|
@@ -66,11 +66,11 @@ registerAction2(class extends Action2 {
|
|
|
66
66
|
super({
|
|
67
67
|
id: CommentCommandId.NextCommentedRange,
|
|
68
68
|
title: {
|
|
69
|
-
value: ( localize(
|
|
69
|
+
value: ( localize(6188, "Go to Next Commented Range")),
|
|
70
70
|
original: 'Go to Next Commented Range'
|
|
71
71
|
},
|
|
72
72
|
category: {
|
|
73
|
-
value: ( localize(
|
|
73
|
+
value: ( localize(6189, "Comments")),
|
|
74
74
|
original: 'Comments'
|
|
75
75
|
},
|
|
76
76
|
menu: [{
|
|
@@ -101,11 +101,11 @@ registerAction2(class extends Action2 {
|
|
|
101
101
|
super({
|
|
102
102
|
id: CommentCommandId.PreviousCommentedRange,
|
|
103
103
|
title: {
|
|
104
|
-
value: ( localize(
|
|
104
|
+
value: ( localize(6190, "Go to Previous Commented Range")),
|
|
105
105
|
original: 'Go to Previous Commented Range'
|
|
106
106
|
},
|
|
107
107
|
category: {
|
|
108
|
-
value: ( localize(
|
|
108
|
+
value: ( localize(6189, "Comments")),
|
|
109
109
|
original: 'Comments'
|
|
110
110
|
},
|
|
111
111
|
menu: [{
|
|
@@ -136,11 +136,11 @@ registerAction2(class extends Action2 {
|
|
|
136
136
|
super({
|
|
137
137
|
id: CommentCommandId.NextRange,
|
|
138
138
|
title: {
|
|
139
|
-
value: ( localize(
|
|
139
|
+
value: ( localize(6191, "Go to Next Commenting Range")),
|
|
140
140
|
original: 'Go to Next Commenting Range'
|
|
141
141
|
},
|
|
142
142
|
category: {
|
|
143
|
-
value: ( localize(
|
|
143
|
+
value: ( localize(6189, "Comments")),
|
|
144
144
|
original: 'Comments'
|
|
145
145
|
},
|
|
146
146
|
menu: [{
|
|
@@ -171,11 +171,11 @@ registerAction2(class extends Action2 {
|
|
|
171
171
|
super({
|
|
172
172
|
id: CommentCommandId.PreviousRange,
|
|
173
173
|
title: {
|
|
174
|
-
value: ( localize(
|
|
174
|
+
value: ( localize(6192, "Go to Previous Commenting Range")),
|
|
175
175
|
original: 'Go to Previous Commenting Range'
|
|
176
176
|
},
|
|
177
177
|
category: {
|
|
178
|
-
value: ( localize(
|
|
178
|
+
value: ( localize(6189, "Comments")),
|
|
179
179
|
original: 'Comments'
|
|
180
180
|
},
|
|
181
181
|
menu: [{
|
|
@@ -206,11 +206,11 @@ registerAction2(class extends Action2 {
|
|
|
206
206
|
super({
|
|
207
207
|
id: CommentCommandId.ToggleCommenting,
|
|
208
208
|
title: {
|
|
209
|
-
value: ( localize(
|
|
209
|
+
value: ( localize(6193, "Toggle Editor Commenting")),
|
|
210
210
|
original: 'Toggle Editor Commenting'
|
|
211
211
|
},
|
|
212
212
|
category: {
|
|
213
|
-
value: ( localize(
|
|
213
|
+
value: ( localize(6189, "Comments")),
|
|
214
214
|
original: 'Comments'
|
|
215
215
|
},
|
|
216
216
|
menu: [{
|
|
@@ -230,11 +230,11 @@ registerAction2(class extends Action2 {
|
|
|
230
230
|
super({
|
|
231
231
|
id: CommentCommandId.Add,
|
|
232
232
|
title: {
|
|
233
|
-
value: ( localize(
|
|
233
|
+
value: ( localize(6194, "Add Comment on Current Selection")),
|
|
234
234
|
original: 'Add Comment on Current Selection'
|
|
235
235
|
},
|
|
236
236
|
category: {
|
|
237
|
-
value: ( localize(
|
|
237
|
+
value: ( localize(6189, "Comments")),
|
|
238
238
|
original: 'Comments'
|
|
239
239
|
},
|
|
240
240
|
menu: [{
|
|
@@ -272,11 +272,11 @@ registerAction2(class extends Action2 {
|
|
|
272
272
|
super({
|
|
273
273
|
id: CommentCommandId.FocusCommentOnCurrentLine,
|
|
274
274
|
title: {
|
|
275
|
-
value: ( localize(
|
|
275
|
+
value: ( localize(6195, "Focus Comment on Current Line")),
|
|
276
276
|
original: 'Focus Comment on Current Line'
|
|
277
277
|
},
|
|
278
278
|
category: {
|
|
279
|
-
value: ( localize(
|
|
279
|
+
value: ( localize(6189, "Comments")),
|
|
280
280
|
original: 'Comments'
|
|
281
281
|
},
|
|
282
282
|
f1: true,
|
|
@@ -308,7 +308,7 @@ registerAction2(class extends Action2 {
|
|
|
308
308
|
error = true;
|
|
309
309
|
}
|
|
310
310
|
if (error) {
|
|
311
|
-
notificationService.error(( localize(
|
|
311
|
+
notificationService.error(( localize(6196, "The cursor must be on a line with a comment to focus the comment")));
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
});
|
|
@@ -317,11 +317,11 @@ registerAction2(class extends Action2 {
|
|
|
317
317
|
super({
|
|
318
318
|
id: CommentCommandId.CollapseAll,
|
|
319
319
|
title: {
|
|
320
|
-
value: ( localize(
|
|
320
|
+
value: ( localize(6197, "Collapse All Comments")),
|
|
321
321
|
original: 'Collapse All Comments'
|
|
322
322
|
},
|
|
323
323
|
category: {
|
|
324
|
-
value: ( localize(
|
|
324
|
+
value: ( localize(6189, "Comments")),
|
|
325
325
|
original: 'Comments'
|
|
326
326
|
},
|
|
327
327
|
menu: [{
|
|
@@ -339,11 +339,11 @@ registerAction2(class extends Action2 {
|
|
|
339
339
|
super({
|
|
340
340
|
id: CommentCommandId.ExpandAll,
|
|
341
341
|
title: {
|
|
342
|
-
value: ( localize(
|
|
342
|
+
value: ( localize(6198, "Expand All Comments")),
|
|
343
343
|
original: 'Expand All Comments'
|
|
344
344
|
},
|
|
345
345
|
category: {
|
|
346
|
-
value: ( localize(
|
|
346
|
+
value: ( localize(6189, "Comments")),
|
|
347
347
|
original: 'Comments'
|
|
348
348
|
},
|
|
349
349
|
menu: [{
|
|
@@ -361,11 +361,11 @@ registerAction2(class extends Action2 {
|
|
|
361
361
|
super({
|
|
362
362
|
id: CommentCommandId.ExpandUnresolved,
|
|
363
363
|
title: {
|
|
364
|
-
value: ( localize(
|
|
364
|
+
value: ( localize(6199, "Expand Unresolved Comments")),
|
|
365
365
|
original: 'Expand Unresolved Comments'
|
|
366
366
|
},
|
|
367
367
|
category: {
|
|
368
|
-
value: ( localize(
|
|
368
|
+
value: ( localize(6189, "Comments")),
|
|
369
369
|
original: 'Comments'
|
|
370
370
|
},
|
|
371
371
|
menu: [{
|
|
@@ -424,7 +424,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
424
424
|
error = true;
|
|
425
425
|
}
|
|
426
426
|
if (error) {
|
|
427
|
-
notificationService.error(( localize(
|
|
427
|
+
notificationService.error(( localize(6196, "The cursor must be on a line with a comment to focus the comment")));
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
}
|