@codingame/monaco-vscode-comments-service-override 10.0.1 → 10.1.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": "10.0
|
|
3
|
+
"version": "10.1.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@10.0
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.1.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -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(2144, "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(2145, "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(2146, "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(2147, "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(2148, "Controls when the comments panel should open.")),
|
|
110
110
|
restricted: false,
|
|
111
|
-
markdownDeprecationMessage: ( localize(
|
|
111
|
+
markdownDeprecationMessage: ( localize(2149, "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(2150, "The comments view will never be opened.")), ( localize(2151, "The comments view will open when a file with comments is active.")), ( localize(
|
|
116
|
+
2152,
|
|
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
|
+
2153,
|
|
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(2154, "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
|
+
2155,
|
|
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
|
+
2156,
|
|
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(2157, "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
|
+
2158,
|
|
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(2159, '{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
|
};
|