@codingame/monaco-vscode-api 20.0.1 → 20.1.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/missing-services.js +121 -370
- package/package.json +8 -8
- package/services.js +3 -3
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +5 -3
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +43 -43
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.js +36 -9
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +4 -4
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +1 -1
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +86 -86
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
|
@@ -32,12 +32,12 @@ import { isWindows } from '../../../../../base/common/platform.js';
|
|
|
32
32
|
var EditorDictation_1;
|
|
33
33
|
registerCss(editorDictation);
|
|
34
34
|
const EDITOR_DICTATION_IN_PROGRESS = ( new RawContextKey('editorDictation.inProgress', false));
|
|
35
|
-
const VOICE_CATEGORY = ( localize2(
|
|
35
|
+
const VOICE_CATEGORY = ( localize2(5525, "Voice"));
|
|
36
36
|
class EditorDictationStartAction extends EditorAction2 {
|
|
37
37
|
constructor() {
|
|
38
38
|
super({
|
|
39
39
|
id: 'workbench.action.editorDictation.start',
|
|
40
|
-
title: ( localize2(
|
|
40
|
+
title: ( localize2(5526, "Start Dictation in Editor")),
|
|
41
41
|
category: VOICE_CATEGORY,
|
|
42
42
|
precondition: ( ContextKeyExpr.and(HasSpeechProvider, ( SpeechToTextInProgress.toNegated()), (
|
|
43
43
|
EditorContextKeys.readOnly.toNegated()))),
|
|
@@ -74,7 +74,7 @@ class EditorDictationStopAction extends EditorAction2 {
|
|
|
74
74
|
constructor() {
|
|
75
75
|
super({
|
|
76
76
|
id: EditorDictationStopAction.ID,
|
|
77
|
-
title: ( localize2(
|
|
77
|
+
title: ( localize2(5527, "Stop Dictation in Editor")),
|
|
78
78
|
category: VOICE_CATEGORY,
|
|
79
79
|
precondition: EDITOR_DICTATION_IN_PROGRESS,
|
|
80
80
|
f1: true,
|
|
@@ -99,7 +99,7 @@ class DictationWidget extends Disposable {
|
|
|
99
99
|
const stopActionKeybinding = keybindingService.lookupKeybinding(EditorDictationStopAction.ID)?.getLabel();
|
|
100
100
|
actionBar.push(toAction({
|
|
101
101
|
id: EditorDictationStopAction.ID,
|
|
102
|
-
label: stopActionKeybinding ? ( localize(
|
|
102
|
+
label: stopActionKeybinding ? ( localize(5528, "Stop Dictation ({0})", stopActionKeybinding)) : ( localize(5529, "Stop Dictation")),
|
|
103
103
|
class: ThemeIcon.asClassName(Codicon.micFilled),
|
|
104
104
|
run: () => EditorDictation.get(editor)?.stop()
|
|
105
105
|
}), { icon: true, label: false, keybinding: stopActionKeybinding });
|
|
@@ -31,19 +31,19 @@ class DiffEditorAccessibilityHelp {
|
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
const switchSides = ( localize(
|
|
34
|
-
|
|
34
|
+
5530,
|
|
35
35
|
"Run the command Diff Editor: Switch Side{0} to toggle between the original and modified editors.",
|
|
36
36
|
'<keybinding:diffEditor.switchSide>'
|
|
37
37
|
));
|
|
38
38
|
const diffEditorActiveAnnouncement = ( localize(
|
|
39
|
-
|
|
39
|
+
5531,
|
|
40
40
|
"The setting, accessibility.verbosity.diffEditorActive, controls if a diff editor announcement is made when it becomes the active editor."
|
|
41
41
|
));
|
|
42
42
|
const keys = ['accessibility.signals.diffLineDeleted', 'accessibility.signals.diffLineInserted', 'accessibility.signals.diffLineModified'];
|
|
43
43
|
const content = [
|
|
44
|
-
( localize(
|
|
44
|
+
( localize(5532, "You are in a diff editor.")),
|
|
45
45
|
( localize(
|
|
46
|
-
|
|
46
|
+
5533,
|
|
47
47
|
"View the next{0} or previous{1} diff in diff review mode, which is optimized for screen readers.",
|
|
48
48
|
'<keybinding:' + AccessibleDiffViewerNext.id + '>',
|
|
49
49
|
'<keybinding:' + AccessibleDiffViewerPrev.id + '>'
|
|
@@ -51,7 +51,7 @@ class DiffEditorAccessibilityHelp {
|
|
|
51
51
|
switchSides,
|
|
52
52
|
diffEditorActiveAnnouncement,
|
|
53
53
|
( localize(
|
|
54
|
-
|
|
54
|
+
5534,
|
|
55
55
|
"To control which accessibility signals should be played, the following settings can be configured: {0}.",
|
|
56
56
|
keys.join(', ')
|
|
57
57
|
)),
|
|
@@ -32,7 +32,7 @@ let DiffEditorHelperContribution = class DiffEditorHelperContribution extends Di
|
|
|
32
32
|
const onlyWhiteSpaceChange = ( computationResult.map(r => r && !r.identical && r.changes2.length === 0));
|
|
33
33
|
this._register(autorunWithStore((reader, store) => {
|
|
34
34
|
if (onlyWhiteSpaceChange.read(reader)) {
|
|
35
|
-
const helperWidget = store.add(this._instantiationService.createInstance(FloatingEditorClickWidget, this._diffEditor.getModifiedEditor(), ( localize(
|
|
35
|
+
const helperWidget = store.add(this._instantiationService.createInstance(FloatingEditorClickWidget, this._diffEditor.getModifiedEditor(), ( localize(5535, "Show Whitespace Differences")), null));
|
|
36
36
|
store.add(helperWidget.onClick(() => {
|
|
37
37
|
this._textResourceConfigurationService.updateValue(this._diffEditor.getModel().modified.uri, 'diffEditor.ignoreTrimWhitespace', false);
|
|
38
38
|
}));
|
|
@@ -43,11 +43,11 @@ let DiffEditorHelperContribution = class DiffEditorHelperContribution extends Di
|
|
|
43
43
|
const diffComputationResult = this._diffEditor.getDiffComputationResult();
|
|
44
44
|
if (diffComputationResult && diffComputationResult.quitEarly) {
|
|
45
45
|
this._notificationService.prompt(Severity$1.Warning, ( localize(
|
|
46
|
-
|
|
46
|
+
5536,
|
|
47
47
|
"The diff algorithm was stopped early (after {0} ms.)",
|
|
48
48
|
this._diffEditor.maxComputationTime
|
|
49
49
|
)), [{
|
|
50
|
-
label: ( localize(
|
|
50
|
+
label: ( localize(5537, "Remove Limit")),
|
|
51
51
|
run: () => {
|
|
52
52
|
this._textResourceConfigurationService.updateValue(this._diffEditor.getModel().modified.uri, 'diffEditor.maxComputationTime', 0);
|
|
53
53
|
}
|
|
@@ -26,16 +26,16 @@ let LargeFileOptimizationsWarner = class LargeFileOptimizationsWarner extends Di
|
|
|
26
26
|
}
|
|
27
27
|
if (model.isTooLargeForTokenization()) {
|
|
28
28
|
const message = ( localize(
|
|
29
|
-
|
|
29
|
+
5556,
|
|
30
30
|
"{0}: tokenization, wrapping, folding, codelens, word highlighting and sticky scroll have been turned off for this large file in order to reduce memory usage and avoid freezing or crashing.",
|
|
31
31
|
basename(model.uri.path)
|
|
32
32
|
));
|
|
33
33
|
this._notificationService.prompt(Severity$1.Info, message, [
|
|
34
34
|
{
|
|
35
|
-
label: ( localize(
|
|
35
|
+
label: ( localize(5557, "Forcefully Enable Features")),
|
|
36
36
|
run: () => {
|
|
37
37
|
this._configurationService.updateValue(`editor.largeFileOptimizations`, false).then(() => {
|
|
38
|
-
this._notificationService.info(( localize(
|
|
38
|
+
this._notificationService.info(( localize(5558, "Please reopen file in order for this setting to take effect.")));
|
|
39
39
|
}, (err) => {
|
|
40
40
|
this._notificationService.error(err);
|
|
41
41
|
});
|
|
@@ -192,7 +192,7 @@ let FormatOnSaveParticipant = class FormatOnSaveParticipant {
|
|
|
192
192
|
const nestedProgress = ( new Progress(provider => {
|
|
193
193
|
progress.report({
|
|
194
194
|
message: ( localize(
|
|
195
|
-
|
|
195
|
+
5573,
|
|
196
196
|
"Running '{0}' Formatter ([configure]({1})).",
|
|
197
197
|
provider.displayName || provider.extensionId && provider.extensionId.value || '???',
|
|
198
198
|
'command:workbench.action.openSettings?%5B%22editor.formatOnSave%22%5D'
|
|
@@ -301,7 +301,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant extends Disp
|
|
|
301
301
|
: ( ( Object.keys(setting))
|
|
302
302
|
.filter(x => setting[x] === 'never' || false)
|
|
303
303
|
.map(x => ( new HierarchicalKind(x))));
|
|
304
|
-
progress.report({ message: ( localize(
|
|
304
|
+
progress.report({ message: ( localize(5574, "Quick Fixes")) });
|
|
305
305
|
const filteredSaveList = Array.isArray(setting) ? codeActionsOnSave : codeActionsOnSave.filter(x => setting[x.value] === 'always' || ((setting[x.value] === 'explicit' || setting[x.value] === true) && context.reason === SaveReason.EXPLICIT));
|
|
306
306
|
await this.applyOnSaveActions(textEditorModel, filteredSaveList, excludedActions, progress, token);
|
|
307
307
|
}
|
|
@@ -319,7 +319,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant extends Disp
|
|
|
319
319
|
_report() {
|
|
320
320
|
progress.report({
|
|
321
321
|
message: ( localize(
|
|
322
|
-
|
|
322
|
+
5575,
|
|
323
323
|
"Getting code actions from {0} ([configure]({1})).",
|
|
324
324
|
( [...this._names].map(name => `'${name}'`)).join(', '),
|
|
325
325
|
'command:workbench.action.openSettings?%5B%22editor.codeActionsOnSave%22%5D'
|
|
@@ -341,7 +341,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant extends Disp
|
|
|
341
341
|
}
|
|
342
342
|
try {
|
|
343
343
|
for (const action of actionsToRun.validActions) {
|
|
344
|
-
progress.report({ message: ( localize(
|
|
344
|
+
progress.report({ message: ( localize(5576, "Applying code action '{0}'.", action.action.title)) });
|
|
345
345
|
await this.instantiationService.invokeFunction(applyCodeAction, action, ApplyCodeActionReason.OnSave, {}, token);
|
|
346
346
|
if (token.isCancellationRequested) {
|
|
347
347
|
return;
|
|
@@ -11,8 +11,8 @@ class ToggleMinimapAction extends Action2 {
|
|
|
11
11
|
super({
|
|
12
12
|
id: ToggleMinimapAction.ID,
|
|
13
13
|
title: {
|
|
14
|
-
...( localize2(
|
|
15
|
-
mnemonicTitle: ( localize(
|
|
14
|
+
...( localize2(5577, "Toggle Minimap")),
|
|
15
|
+
mnemonicTitle: ( localize(5578, "&&Minimap")),
|
|
16
16
|
},
|
|
17
17
|
category: Categories.View,
|
|
18
18
|
f1: true,
|
|
@@ -17,7 +17,7 @@ class ToggleMultiCursorModifierAction extends Action2 {
|
|
|
17
17
|
constructor() {
|
|
18
18
|
super({
|
|
19
19
|
id: ToggleMultiCursorModifierAction.ID,
|
|
20
|
-
title: ( localize2(
|
|
20
|
+
title: ( localize2(5579, 'Toggle Multi-Cursor Modifier')),
|
|
21
21
|
f1: true
|
|
22
22
|
});
|
|
23
23
|
}
|
|
@@ -57,7 +57,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSelectionMenu, {
|
|
|
57
57
|
group: '4_config',
|
|
58
58
|
command: {
|
|
59
59
|
id: ToggleMultiCursorModifierAction.ID,
|
|
60
|
-
title: ( localize(
|
|
60
|
+
title: ( localize(5580, "Switch to Alt+Click for Multi-Cursor"))
|
|
61
61
|
},
|
|
62
62
|
when: ( multiCursorModifier.isEqualTo('ctrlCmd')),
|
|
63
63
|
order: 1
|
|
@@ -67,8 +67,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSelectionMenu, {
|
|
|
67
67
|
command: {
|
|
68
68
|
id: ToggleMultiCursorModifierAction.ID,
|
|
69
69
|
title: (isMacintosh
|
|
70
|
-
? ( localize(
|
|
71
|
-
: ( localize(
|
|
70
|
+
? ( localize(5581, "Switch to Cmd+Click for Multi-Cursor"))
|
|
71
|
+
: ( localize(5582, "Switch to Ctrl+Click for Multi-Cursor")))
|
|
72
72
|
},
|
|
73
73
|
when: ( multiCursorModifier.isEqualTo('altKey')),
|
|
74
74
|
order: 1
|
|
@@ -11,8 +11,8 @@ class ToggleRenderControlCharacterAction extends Action2 {
|
|
|
11
11
|
super({
|
|
12
12
|
id: ToggleRenderControlCharacterAction.ID,
|
|
13
13
|
title: {
|
|
14
|
-
...( localize2(
|
|
15
|
-
mnemonicTitle: ( localize(
|
|
14
|
+
...( localize2(5583, "Toggle Control Characters")),
|
|
15
|
+
mnemonicTitle: ( localize(5584, "Render &&Control Characters")),
|
|
16
16
|
},
|
|
17
17
|
category: Categories.View,
|
|
18
18
|
f1: true,
|
|
@@ -11,8 +11,8 @@ class ToggleRenderWhitespaceAction extends Action2 {
|
|
|
11
11
|
super({
|
|
12
12
|
id: ToggleRenderWhitespaceAction.ID,
|
|
13
13
|
title: {
|
|
14
|
-
...( localize2(
|
|
15
|
-
mnemonicTitle: ( localize(
|
|
14
|
+
...( localize2(5585, "Toggle Render Whitespace")),
|
|
15
|
+
mnemonicTitle: ( localize(5586, "&&Render Whitespace")),
|
|
16
16
|
},
|
|
17
17
|
category: Categories.View,
|
|
18
18
|
f1: true,
|
|
@@ -24,7 +24,7 @@ const transientWordWrapState = 'transientWordWrapState';
|
|
|
24
24
|
const isWordWrapMinifiedKey = 'isWordWrapMinified';
|
|
25
25
|
const isDominatedByLongLinesKey = 'isDominatedByLongLines';
|
|
26
26
|
const CAN_TOGGLE_WORD_WRAP = ( new RawContextKey('canToggleWordWrap', false, true));
|
|
27
|
-
const EDITOR_WORD_WRAP = ( new RawContextKey('editorWordWrap', false, ( localize(
|
|
27
|
+
const EDITOR_WORD_WRAP = ( new RawContextKey('editorWordWrap', false, ( localize(5587, 'Whether the editor is currently using word wrapping.'))));
|
|
28
28
|
function writeTransientState(model, state, codeEditorService) {
|
|
29
29
|
codeEditorService.setTransientModelProperty(model, transientWordWrapState, state);
|
|
30
30
|
}
|
|
@@ -36,7 +36,7 @@ class ToggleWordWrapAction extends EditorAction {
|
|
|
36
36
|
constructor() {
|
|
37
37
|
super({
|
|
38
38
|
id: TOGGLE_WORD_WRAP_ID,
|
|
39
|
-
label: ( localize2(
|
|
39
|
+
label: ( localize2(5588, "View: Toggle Word Wrap")),
|
|
40
40
|
precondition: undefined,
|
|
41
41
|
kbOpts: {
|
|
42
42
|
kbExpr: null,
|
|
@@ -242,7 +242,7 @@ registerEditorAction(ToggleWordWrapAction);
|
|
|
242
242
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
243
243
|
command: {
|
|
244
244
|
id: TOGGLE_WORD_WRAP_ID,
|
|
245
|
-
title: ( localize(
|
|
245
|
+
title: ( localize(5589, "Disable wrapping for this file")),
|
|
246
246
|
icon: Codicon.wordWrap
|
|
247
247
|
},
|
|
248
248
|
group: 'navigation',
|
|
@@ -252,7 +252,7 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
|
252
252
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
253
253
|
command: {
|
|
254
254
|
id: TOGGLE_WORD_WRAP_ID,
|
|
255
|
-
title: ( localize(
|
|
255
|
+
title: ( localize(5590, "Enable wrapping for this file")),
|
|
256
256
|
icon: Codicon.wordWrap
|
|
257
257
|
},
|
|
258
258
|
group: 'navigation',
|
|
@@ -262,7 +262,7 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
|
262
262
|
MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
263
263
|
command: {
|
|
264
264
|
id: TOGGLE_WORD_WRAP_ID,
|
|
265
|
-
title: ( localize(
|
|
265
|
+
title: ( localize(5591, "&&Word Wrap")),
|
|
266
266
|
toggled: EDITOR_WORD_WRAP,
|
|
267
267
|
precondition: CAN_TOGGLE_WORD_WRAP
|
|
268
268
|
},
|
|
@@ -13,52 +13,52 @@ import { Disposable } from '../../../../base/common/lifecycle.js';
|
|
|
13
13
|
var CommentAccessibilityHelpNLS;
|
|
14
14
|
(function (CommentAccessibilityHelpNLS) {
|
|
15
15
|
CommentAccessibilityHelpNLS.intro = ( localize(
|
|
16
|
-
|
|
16
|
+
5713,
|
|
17
17
|
"The editor contains commentable range(s). Some useful commands include:"
|
|
18
18
|
));
|
|
19
19
|
CommentAccessibilityHelpNLS.tabFocus = ( localize(
|
|
20
|
-
|
|
20
|
+
5714,
|
|
21
21
|
"This widget contains a text area, for composition of new comments, and actions, that can be tabbed to once tab moves focus mode has been enabled with the command Toggle Tab Key Moves Focus{0}.",
|
|
22
22
|
`<keybinding:${ToggleTabFocusModeAction.ID}>`
|
|
23
23
|
));
|
|
24
|
-
CommentAccessibilityHelpNLS.commentCommands = ( localize(
|
|
25
|
-
CommentAccessibilityHelpNLS.escape = ( localize(
|
|
24
|
+
CommentAccessibilityHelpNLS.commentCommands = ( localize(5715, "Some useful comment commands include:"));
|
|
25
|
+
CommentAccessibilityHelpNLS.escape = ( localize(5716, "- Dismiss Comment (Escape)"));
|
|
26
26
|
CommentAccessibilityHelpNLS.nextRange = ( localize(
|
|
27
|
-
|
|
27
|
+
5717,
|
|
28
28
|
"- Go to Next Commenting Range{0}.",
|
|
29
29
|
`<keybinding:${CommentCommandId.NextRange}>`
|
|
30
30
|
));
|
|
31
31
|
CommentAccessibilityHelpNLS.previousRange = ( localize(
|
|
32
|
-
|
|
32
|
+
5718,
|
|
33
33
|
"- Go to Previous Commenting Range{0}.",
|
|
34
34
|
`<keybinding:${CommentCommandId.PreviousRange}>`
|
|
35
35
|
));
|
|
36
36
|
CommentAccessibilityHelpNLS.nextCommentThread = ( localize(
|
|
37
|
-
|
|
37
|
+
5719,
|
|
38
38
|
"- Go to Next Comment Thread{0}.",
|
|
39
39
|
`<keybinding:${CommentCommandId.NextThread}>`
|
|
40
40
|
));
|
|
41
41
|
CommentAccessibilityHelpNLS.previousCommentThread = ( localize(
|
|
42
|
-
|
|
42
|
+
5720,
|
|
43
43
|
"- Go to Previous Comment Thread{0}.",
|
|
44
44
|
`<keybinding:${CommentCommandId.PreviousThread}>`
|
|
45
45
|
));
|
|
46
46
|
CommentAccessibilityHelpNLS.nextCommentedRange = ( localize(
|
|
47
|
-
|
|
47
|
+
5721,
|
|
48
48
|
"- Go to Next Commented Range{0}.",
|
|
49
49
|
`<keybinding:${CommentCommandId.NextCommentedRange}>`
|
|
50
50
|
));
|
|
51
51
|
CommentAccessibilityHelpNLS.previousCommentedRange = ( localize(
|
|
52
|
-
|
|
52
|
+
5722,
|
|
53
53
|
"- Go to Previous Commented Range{0}.",
|
|
54
54
|
`<keybinding:${CommentCommandId.PreviousCommentedRange}>`
|
|
55
55
|
));
|
|
56
56
|
CommentAccessibilityHelpNLS.addComment = ( localize(
|
|
57
|
-
|
|
57
|
+
5723,
|
|
58
58
|
"- Add Comment on Current Selection{0}.",
|
|
59
59
|
`<keybinding:${CommentCommandId.Add}>`
|
|
60
60
|
));
|
|
61
|
-
CommentAccessibilityHelpNLS.submitComment = ( localize(
|
|
61
|
+
CommentAccessibilityHelpNLS.submitComment = ( localize(5724, "- Submit Comment{0}.", `<keybinding:${CommentCommandId.Submit}>`));
|
|
62
62
|
})(CommentAccessibilityHelpNLS || (CommentAccessibilityHelpNLS = {}));
|
|
63
63
|
class CommentsAccessibilityHelpProvider extends Disposable {
|
|
64
64
|
constructor() {
|
|
@@ -5,20 +5,20 @@ import { RawContextKey } from '../../../../platform/contextkey/common/contextkey
|
|
|
5
5
|
var CommentContextKeys;
|
|
6
6
|
(function (CommentContextKeys) {
|
|
7
7
|
CommentContextKeys.activeCursorHasCommentingRange = ( new RawContextKey('activeCursorHasCommentingRange', false, {
|
|
8
|
-
description: ( localize(
|
|
8
|
+
description: ( localize(5790, "Whether the position at the active cursor has a commenting range")),
|
|
9
9
|
type: 'boolean'
|
|
10
10
|
}));
|
|
11
11
|
CommentContextKeys.activeCursorHasComment = ( new RawContextKey('activeCursorHasComment', false, {
|
|
12
|
-
description: ( localize(
|
|
12
|
+
description: ( localize(5791, "Whether the position at the active cursor has a comment")),
|
|
13
13
|
type: 'boolean'
|
|
14
14
|
}));
|
|
15
15
|
CommentContextKeys.activeEditorHasCommentingRange = ( new RawContextKey('activeEditorHasCommentingRange', false, {
|
|
16
|
-
description: ( localize(
|
|
16
|
+
description: ( localize(5792, "Whether the active editor has a commenting range")),
|
|
17
17
|
type: 'boolean'
|
|
18
18
|
}));
|
|
19
19
|
CommentContextKeys.WorkspaceHasCommenting = ( new RawContextKey('workspaceHasCommenting', false, {
|
|
20
20
|
description: ( localize(
|
|
21
|
-
|
|
21
|
+
5793,
|
|
22
22
|
"Whether the open workspace has either comments or commenting ranges."
|
|
23
23
|
)),
|
|
24
24
|
type: 'boolean'
|
|
@@ -26,19 +26,19 @@ var CommentContextKeys;
|
|
|
26
26
|
CommentContextKeys.commentThreadIsEmpty = ( new RawContextKey(
|
|
27
27
|
'commentThreadIsEmpty',
|
|
28
28
|
false,
|
|
29
|
-
{ type: 'boolean', description: ( localize(
|
|
29
|
+
{ type: 'boolean', description: ( localize(5794, "Set when the comment thread has no comments")) }
|
|
30
30
|
));
|
|
31
|
-
CommentContextKeys.commentIsEmpty = ( new RawContextKey('commentIsEmpty', false, { type: 'boolean', description: ( localize(
|
|
32
|
-
CommentContextKeys.commentContext = ( new RawContextKey('comment', undefined, { type: 'string', description: ( localize(
|
|
33
|
-
CommentContextKeys.commentThreadContext = ( new RawContextKey('commentThread', undefined, { type: 'string', description: ( localize(
|
|
31
|
+
CommentContextKeys.commentIsEmpty = ( new RawContextKey('commentIsEmpty', false, { type: 'boolean', description: ( localize(5795, "Set when the comment has no input")) }));
|
|
32
|
+
CommentContextKeys.commentContext = ( new RawContextKey('comment', undefined, { type: 'string', description: ( localize(5796, "The context value of the comment")) }));
|
|
33
|
+
CommentContextKeys.commentThreadContext = ( new RawContextKey('commentThread', undefined, { type: 'string', description: ( localize(5797, "The context value of the comment thread")) }));
|
|
34
34
|
CommentContextKeys.commentControllerContext = ( new RawContextKey(
|
|
35
35
|
'commentController',
|
|
36
36
|
undefined,
|
|
37
|
-
{ type: 'string', description: ( localize(
|
|
37
|
+
{ type: 'string', description: ( localize(5798, "The comment controller id associated with a comment thread")) }
|
|
38
38
|
));
|
|
39
|
-
CommentContextKeys.commentFocused = ( new RawContextKey('commentFocused', false, { type: 'boolean', description: ( localize(
|
|
39
|
+
CommentContextKeys.commentFocused = ( new RawContextKey('commentFocused', false, { type: 'boolean', description: ( localize(5799, "Set when the comment is focused")) }));
|
|
40
40
|
CommentContextKeys.commentingEnabled = ( new RawContextKey('commentingEnabled', true, {
|
|
41
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(5800, "Whether commenting functionality is enabled")),
|
|
42
42
|
type: 'boolean'
|
|
43
43
|
}));
|
|
44
44
|
})(CommentContextKeys || (CommentContextKeys = {}));
|
|
@@ -63,7 +63,7 @@ class AbstractDebugAdapter {
|
|
|
63
63
|
request_seq: request.seq,
|
|
64
64
|
success: false,
|
|
65
65
|
command,
|
|
66
|
-
message: ( localize(
|
|
66
|
+
message: ( localize(6391, "Timeout after {0} ms for '{1}'", timeout, command))
|
|
67
67
|
};
|
|
68
68
|
clb(err);
|
|
69
69
|
}
|