@codingame/monaco-vscode-comments-service-override 8.0.4 → 9.0.0
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": "9.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@9.0.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -32,7 +32,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
32
32
|
super({
|
|
33
33
|
viewId: COMMENTS_VIEW_ID,
|
|
34
34
|
id: 'comments.collapse',
|
|
35
|
-
title: ( localize(
|
|
35
|
+
title: ( localize(1648, "Collapse All")),
|
|
36
36
|
f1: false,
|
|
37
37
|
icon: Codicon.collapseAll,
|
|
38
38
|
menu: {
|
|
@@ -55,7 +55,7 @@ registerAction2(class Expand extends ViewAction {
|
|
|
55
55
|
super({
|
|
56
56
|
viewId: COMMENTS_VIEW_ID,
|
|
57
57
|
id: 'comments.expand',
|
|
58
|
-
title: ( localize(
|
|
58
|
+
title: ( localize(1649, "Expand All")),
|
|
59
59
|
f1: false,
|
|
60
60
|
icon: Codicon.expandAll,
|
|
61
61
|
menu: {
|
|
@@ -77,7 +77,7 @@ registerAction2(class Reply extends Action2 {
|
|
|
77
77
|
constructor() {
|
|
78
78
|
super({
|
|
79
79
|
id: 'comments.reply',
|
|
80
|
-
title: ( localize(
|
|
80
|
+
title: ( localize(1650, "Reply")),
|
|
81
81
|
icon: Codicon.reply,
|
|
82
82
|
precondition: ( (ContextKeyExpr.equals('canReply', true))),
|
|
83
83
|
menu: [{
|
|
@@ -103,34 +103,34 @@ registerAction2(class Reply extends Action2 {
|
|
|
103
103
|
( (Registry.as(Extensions.Configuration))).registerConfiguration({
|
|
104
104
|
id: 'comments',
|
|
105
105
|
order: 20,
|
|
106
|
-
title: ( localize(
|
|
106
|
+
title: ( localize(1651, "Comments")),
|
|
107
107
|
type: 'object',
|
|
108
108
|
properties: {
|
|
109
109
|
'comments.openPanel': {
|
|
110
110
|
enum: ['neverOpen', 'openOnSessionStart', 'openOnSessionStartWithComments'],
|
|
111
111
|
default: 'openOnSessionStartWithComments',
|
|
112
|
-
description: ( localize(
|
|
112
|
+
description: ( localize(1652, "Controls when the comments panel should open.")),
|
|
113
113
|
restricted: false,
|
|
114
|
-
markdownDeprecationMessage: ( localize(
|
|
114
|
+
markdownDeprecationMessage: ( localize(1653, "This setting is deprecated in favor of `comments.openView`."))
|
|
115
115
|
},
|
|
116
116
|
'comments.openView': {
|
|
117
117
|
enum: ['never', 'file', 'firstFile', 'firstFileUnresolved'],
|
|
118
|
-
enumDescriptions: [( localize(
|
|
119
|
-
|
|
118
|
+
enumDescriptions: [( localize(1654, "The comments view will never be opened.")), ( localize(1655, "The comments view will open when a file with comments is active.")), ( localize(
|
|
119
|
+
1656,
|
|
120
120
|
"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."
|
|
121
121
|
)), ( localize(
|
|
122
|
-
|
|
122
|
+
1657,
|
|
123
123
|
"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."
|
|
124
124
|
))],
|
|
125
125
|
default: 'firstFile',
|
|
126
|
-
description: ( localize(
|
|
126
|
+
description: ( localize(1658, "Controls when the comments view should open.")),
|
|
127
127
|
restricted: false
|
|
128
128
|
},
|
|
129
129
|
'comments.useRelativeTime': {
|
|
130
130
|
type: 'boolean',
|
|
131
131
|
default: true,
|
|
132
132
|
description: ( localize(
|
|
133
|
-
|
|
133
|
+
1659,
|
|
134
134
|
"Determines if relative time will be used in comment timestamps (ex. '1 day ago')."
|
|
135
135
|
))
|
|
136
136
|
},
|
|
@@ -138,20 +138,20 @@ registerAction2(class Reply extends Action2 {
|
|
|
138
138
|
type: 'boolean',
|
|
139
139
|
default: true,
|
|
140
140
|
description: ( localize(
|
|
141
|
-
|
|
141
|
+
1660,
|
|
142
142
|
"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."
|
|
143
143
|
))
|
|
144
144
|
},
|
|
145
145
|
'comments.maxHeight': {
|
|
146
146
|
type: 'boolean',
|
|
147
147
|
default: true,
|
|
148
|
-
description: ( localize(
|
|
148
|
+
description: ( localize(1661, "Controls whether the comments widget scrolls or expands."))
|
|
149
149
|
},
|
|
150
150
|
'comments.collapseOnResolve': {
|
|
151
151
|
type: 'boolean',
|
|
152
152
|
default: true,
|
|
153
153
|
description: ( localize(
|
|
154
|
-
|
|
154
|
+
1662,
|
|
155
155
|
"Controls whether the comment thread should collapse when the thread is resolved."
|
|
156
156
|
))
|
|
157
157
|
}
|
|
@@ -192,7 +192,7 @@ let UnresolvedCommentsBadge = class UnresolvedCommentsBadge extends Disposable {
|
|
|
192
192
|
return;
|
|
193
193
|
}
|
|
194
194
|
this.totalUnresolved = unresolved;
|
|
195
|
-
const message = ( localize(
|
|
195
|
+
const message = ( localize(1663, '{0} Unresolved Comments', this.totalUnresolved));
|
|
196
196
|
this.activity.value = this.activityService.showViewActivity(COMMENTS_VIEW_ID, { badge: ( (new NumberBadge(this.totalUnresolved, () => message))) });
|
|
197
197
|
}
|
|
198
198
|
};
|
|
@@ -84,7 +84,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
84
84
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
85
85
|
command: {
|
|
86
86
|
id: CommentCommandId.NextRange,
|
|
87
|
-
title: ( localize(
|
|
87
|
+
title: ( localize(5255, "Go to Next Commenting Range")),
|
|
88
88
|
category: 'Comments',
|
|
89
89
|
},
|
|
90
90
|
when: CommentContextKeys.activeEditorHasCommentingRange
|
|
@@ -116,7 +116,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
116
116
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
117
117
|
command: {
|
|
118
118
|
id: CommentCommandId.PreviousRange,
|
|
119
|
-
title: ( localize(
|
|
119
|
+
title: ( localize(5256, "Go to Previous Commenting Range")),
|
|
120
120
|
category: 'Comments',
|
|
121
121
|
},
|
|
122
122
|
when: CommentContextKeys.activeEditorHasCommentingRange
|
|
@@ -132,7 +132,7 @@ CommandsRegistry.registerCommand({
|
|
|
132
132
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
133
133
|
command: {
|
|
134
134
|
id: CommentCommandId.ToggleCommenting,
|
|
135
|
-
title: ( localize(
|
|
135
|
+
title: ( localize(5257, "Toggle Editor Commenting")),
|
|
136
136
|
category: 'Comments',
|
|
137
137
|
},
|
|
138
138
|
when: CommentContextKeys.WorkspaceHasCommenting
|
|
@@ -160,7 +160,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
160
160
|
await controller.addOrToggleCommentAtLine(position, undefined);
|
|
161
161
|
}
|
|
162
162
|
catch (e) {
|
|
163
|
-
notificationService.error(( localize(
|
|
163
|
+
notificationService.error(( localize(5258, "The cursor must be within a commenting range to add a comment")));
|
|
164
164
|
}
|
|
165
165
|
},
|
|
166
166
|
weight: KeybindingWeight.EditorContrib,
|
|
@@ -169,7 +169,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
169
169
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
170
170
|
command: {
|
|
171
171
|
id: CommentCommandId.Add,
|
|
172
|
-
title: ( localize(
|
|
172
|
+
title: ( localize(5259, "Add Comment on Current Selection")),
|
|
173
173
|
category: 'Comments'
|
|
174
174
|
},
|
|
175
175
|
when: CommentContextKeys.activeCursorHasCommentingRange
|
|
@@ -183,7 +183,7 @@ CommandsRegistry.registerCommand({
|
|
|
183
183
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
184
184
|
command: {
|
|
185
185
|
id: CommentCommandId.CollapseAll,
|
|
186
|
-
title: ( localize(
|
|
186
|
+
title: ( localize(5260, "Collapse All Comments")),
|
|
187
187
|
category: 'Comments'
|
|
188
188
|
},
|
|
189
189
|
when: CommentContextKeys.WorkspaceHasCommenting
|
|
@@ -197,7 +197,7 @@ CommandsRegistry.registerCommand({
|
|
|
197
197
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
198
198
|
command: {
|
|
199
199
|
id: CommentCommandId.ExpandAll,
|
|
200
|
-
title: ( localize(
|
|
200
|
+
title: ( localize(5261, "Expand All Comments")),
|
|
201
201
|
category: 'Comments'
|
|
202
202
|
},
|
|
203
203
|
when: CommentContextKeys.WorkspaceHasCommenting
|
|
@@ -211,7 +211,7 @@ CommandsRegistry.registerCommand({
|
|
|
211
211
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
212
212
|
command: {
|
|
213
213
|
id: CommentCommandId.ExpandUnresolved,
|
|
214
|
-
title: ( localize(
|
|
214
|
+
title: ( localize(5262, "Expand Unresolved Comments")),
|
|
215
215
|
category: 'Comments'
|
|
216
216
|
},
|
|
217
217
|
when: CommentContextKeys.WorkspaceHasCommenting
|