@codingame/monaco-vscode-api 23.0.3 → 23.0.4
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 +8 -8
- package/services.d.ts +6 -0
- package/services.js +9 -3
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/editor/contrib/format/browser/format.js +0 -7
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/request/common/request.d.ts +1 -0
- package/vscode/src/vs/platform/request/common/request.js +3 -2
- package/vscode/src/vs/workbench/api/common/extHostQuickOpen.js +8 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +50 -50
- 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/constants.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +3 -3
- 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.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/common/tools/runSubagentTool.js +2 -2
- 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/dropOrPasteInto/browser/commands.js +2 -2
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
- 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/chat/common/chatEntitlementService.d.ts +2 -1
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +19 -11
- 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 +87 -87
- 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
|
@@ -62,8 +62,8 @@ function createManageTodoListToolData(writeOnly, includeDescription = true) {
|
|
|
62
62
|
toolReferenceName: 'todos',
|
|
63
63
|
canBeReferencedInPrompt: true,
|
|
64
64
|
icon: ThemeIcon.fromId(Codicon.checklist.id),
|
|
65
|
-
displayName: ( localize(
|
|
66
|
-
userDescription: ( localize(
|
|
65
|
+
displayName: ( localize(5956, 'Manage and track todo items for task planning')),
|
|
66
|
+
userDescription: ( localize(5957, 'Tool for managing and tracking todo items for task planning')),
|
|
67
67
|
modelDescription: 'Manage a structured todo list to track progress and plan tasks throughout your coding session. Use this tool VERY frequently to ensure task visibility and proper planning.\n\nWhen to use this tool:\n- Complex multi-step work requiring planning and tracking\n- When user provides multiple tasks or requests (numbered/comma-separated)\n- After receiving new instructions that require multiple steps\n- BEFORE starting work on any todo (mark as in-progress)\n- IMMEDIATELY after completing each todo (mark completed individually)\n- When breaking down larger tasks into smaller actionable steps\n- To give users visibility into your progress and planning\n\nWhen NOT to use:\n- Single, trivial tasks that can be completed in one step\n- Purely conversational/informational requests\n- When just reading files or performing simple searches\n\nCRITICAL workflow:\n1. Plan tasks by writing todo list with specific, actionable items\n2. Mark ONE todo as in-progress before starting work\n3. Complete the work for that specific todo\n4. Mark that todo as completed IMMEDIATELY\n5. Move to next todo and repeat\n\nTodo states:\n- not-started: Todo not yet begun\n- in-progress: Currently working (limit ONE at a time)\n- completed: Finished successfully\n\nIMPORTANT: Mark todos completed as soon as they are done. Do not batch completions.',
|
|
68
68
|
source: ToolDataSource.Internal,
|
|
69
69
|
inputSchema: {
|
|
@@ -138,7 +138,7 @@ let ManageTodoListTool = class ManageTodoListTool extends Disposable {
|
|
|
138
138
|
break;
|
|
139
139
|
}
|
|
140
140
|
case 'read': {
|
|
141
|
-
message = ( localize(
|
|
141
|
+
message = ( localize(5958, "Read todo list"));
|
|
142
142
|
break;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
@@ -150,7 +150,7 @@ let ManageTodoListTool = class ManageTodoListTool extends Disposable {
|
|
|
150
150
|
status: todo.status
|
|
151
151
|
})));
|
|
152
152
|
return {
|
|
153
|
-
pastTenseMessage: ( new MarkdownString(message ?? ( localize(
|
|
153
|
+
pastTenseMessage: ( new MarkdownString(message ?? ( localize(5959, "Updated todo list")))),
|
|
154
154
|
toolSpecificData: {
|
|
155
155
|
kind: 'todoList',
|
|
156
156
|
sessionId: chatSessionId,
|
|
@@ -161,8 +161,8 @@ let ManageTodoListTool = class ManageTodoListTool extends Disposable {
|
|
|
161
161
|
generatePastTenseMessage(currentTodos, newTodos) {
|
|
162
162
|
if (currentTodos.length === 0) {
|
|
163
163
|
return newTodos.length === 1
|
|
164
|
-
? ( localize(
|
|
165
|
-
: ( localize(
|
|
164
|
+
? ( localize(5960, "Created 1 todo"))
|
|
165
|
+
: ( localize(5961, "Created {0} todos", newTodos.length));
|
|
166
166
|
}
|
|
167
167
|
const currentTodoMap = ( new Map(( currentTodos.map(todo => [todo.id, todo]))));
|
|
168
168
|
const startedTodos = newTodos.filter(newTodo => {
|
|
@@ -174,7 +174,7 @@ let ManageTodoListTool = class ManageTodoListTool extends Disposable {
|
|
|
174
174
|
const totalTodos = newTodos.length;
|
|
175
175
|
const currentPosition = newTodos.findIndex(todo => todo.id === startedTodo.id) + 1;
|
|
176
176
|
return localize(
|
|
177
|
-
|
|
177
|
+
5962,
|
|
178
178
|
"Starting: *{0}* ({1}/{2})",
|
|
179
179
|
startedTodo.title,
|
|
180
180
|
currentPosition,
|
|
@@ -190,7 +190,7 @@ let ManageTodoListTool = class ManageTodoListTool extends Disposable {
|
|
|
190
190
|
const totalTodos = newTodos.length;
|
|
191
191
|
const currentPosition = newTodos.findIndex(todo => todo.id === completedTodo.id) + 1;
|
|
192
192
|
return localize(
|
|
193
|
-
|
|
193
|
+
5963,
|
|
194
194
|
"Completed: *{0}* ({1}/{2})",
|
|
195
195
|
completedTodo.title,
|
|
196
196
|
currentPosition,
|
|
@@ -200,10 +200,10 @@ let ManageTodoListTool = class ManageTodoListTool extends Disposable {
|
|
|
200
200
|
const addedTodos = newTodos.filter(newTodo => !( currentTodoMap.has(newTodo.id)));
|
|
201
201
|
if (addedTodos.length > 0) {
|
|
202
202
|
return addedTodos.length === 1
|
|
203
|
-
? ( localize(
|
|
204
|
-
: ( localize(
|
|
203
|
+
? ( localize(5964, "Added 1 todo"))
|
|
204
|
+
: ( localize(5965, "Added {0} todos", addedTodos.length));
|
|
205
205
|
}
|
|
206
|
-
return localize(
|
|
206
|
+
return localize(5966, "Updated todo list");
|
|
207
207
|
}
|
|
208
208
|
handleRead(todoItems, sessionResource) {
|
|
209
209
|
if (todoItems.length === 0) {
|
|
@@ -45,9 +45,9 @@ let RunSubagentTool = class RunSubagentTool extends Disposable {
|
|
|
45
45
|
toolReferenceName: VSCodeToolReference.runSubagent,
|
|
46
46
|
canBeReferencedInPrompt: true,
|
|
47
47
|
icon: ThemeIcon.fromId(Codicon.organization.id),
|
|
48
|
-
displayName: ( localize(
|
|
48
|
+
displayName: ( localize(5967, 'Run Subagent')),
|
|
49
49
|
userDescription: ( localize(
|
|
50
|
-
|
|
50
|
+
5968,
|
|
51
51
|
'Runs a task within an isolated subagent context. Enables efficient organization of tasks and context window management.'
|
|
52
52
|
)),
|
|
53
53
|
modelDescription: BaseModelDescription,
|
|
@@ -18,17 +18,17 @@ const createCodeActionsAutoSave = (description) => {
|
|
|
18
18
|
enum: ['always', 'explicit', 'never', true, false],
|
|
19
19
|
enumDescriptions: [
|
|
20
20
|
( localize(
|
|
21
|
-
|
|
21
|
+
5970,
|
|
22
22
|
'Triggers Code Actions on explicit saves and auto saves triggered by window or focus changes.'
|
|
23
23
|
)),
|
|
24
|
-
( localize(
|
|
25
|
-
( localize(
|
|
24
|
+
( localize(5971, 'Triggers Code Actions only when explicitly saved')),
|
|
25
|
+
( localize(5972, 'Never triggers Code Actions on save')),
|
|
26
26
|
( localize(
|
|
27
|
-
|
|
27
|
+
5973,
|
|
28
28
|
'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "explicit".'
|
|
29
29
|
)),
|
|
30
30
|
( localize(
|
|
31
|
-
|
|
31
|
+
5974,
|
|
32
32
|
'Never triggers Code Actions on save. This value will be deprecated in favor of "never".'
|
|
33
33
|
))
|
|
34
34
|
],
|
|
@@ -41,14 +41,14 @@ const createNotebookCodeActionsAutoSave = (description) => {
|
|
|
41
41
|
type: ['string', 'boolean'],
|
|
42
42
|
enum: ['explicit', 'never', true, false],
|
|
43
43
|
enumDescriptions: [
|
|
44
|
-
( localize(
|
|
45
|
-
( localize(
|
|
44
|
+
( localize(5975, 'Triggers Code Actions only when explicitly saved.')),
|
|
45
|
+
( localize(5976, 'Never triggers Code Actions on save.')),
|
|
46
46
|
( localize(
|
|
47
|
-
|
|
47
|
+
5977,
|
|
48
48
|
'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "explicit".'
|
|
49
49
|
)),
|
|
50
50
|
( localize(
|
|
51
|
-
|
|
51
|
+
5978,
|
|
52
52
|
'Triggers Code Actions only when explicitly saved. This value will be deprecated in favor of "never".'
|
|
53
53
|
))
|
|
54
54
|
],
|
|
@@ -70,7 +70,7 @@ const codeActionsOnSaveSchema = {
|
|
|
70
70
|
}
|
|
71
71
|
],
|
|
72
72
|
markdownDescription: ( localize(
|
|
73
|
-
|
|
73
|
+
5979,
|
|
74
74
|
'Run Code Actions for the editor on save. Code Actions must be specified and the editor must not be shutting down. When {0} is set to `afterDelay`, Code Actions will only be run when the file is saved explicitly. Example: `"source.organizeImports": "explicit" `',
|
|
75
75
|
'`#files.autoSave#`'
|
|
76
76
|
)),
|
|
@@ -102,7 +102,7 @@ const notebookCodeActionsOnSaveSchema = {
|
|
|
102
102
|
}
|
|
103
103
|
],
|
|
104
104
|
markdownDescription: ( localize(
|
|
105
|
-
|
|
105
|
+
5980,
|
|
106
106
|
'Run a series of Code Actions for a notebook on save. Code Actions must be specified and the editor must not be shutting down. When {0} is set to `afterDelay`, Code Actions will only be run when the file is saved explicitly. Example: `"notebook.source.organizeImports": "explicit"`',
|
|
107
107
|
'`#files.autoSave#`'
|
|
108
108
|
)),
|
|
@@ -150,12 +150,12 @@ let CodeActionsContribution = class CodeActionsContribution extends Disposable {
|
|
|
150
150
|
for (const codeActionKind of allProvidedKinds) {
|
|
151
151
|
if (CodeActionKind.Source.contains(codeActionKind) && !properties[codeActionKind.value]) {
|
|
152
152
|
properties[codeActionKind.value] = createCodeActionsAutoSave(( localize(
|
|
153
|
-
|
|
153
|
+
5981,
|
|
154
154
|
"Controls whether '{0}' actions should be run on file save.",
|
|
155
155
|
codeActionKind.value
|
|
156
156
|
)));
|
|
157
157
|
notebookProperties[codeActionKind.value] = createNotebookCodeActionsAutoSave(( localize(
|
|
158
|
-
|
|
158
|
+
5981,
|
|
159
159
|
"Controls whether '{0}' actions should be run on file save.",
|
|
160
160
|
codeActionKind.value
|
|
161
161
|
)));
|
|
@@ -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(5984, "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(5985, "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(5986, "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(5987, "Stop Dictation ({0})", stopActionKeybinding)) : ( localize(5988, "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
|
+
5989,
|
|
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
|
+
5990,
|
|
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(5991, "You are in a diff editor.")),
|
|
45
45
|
( localize(
|
|
46
|
-
|
|
46
|
+
5992,
|
|
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
|
+
5993,
|
|
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(5994, "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
|
+
5995,
|
|
47
47
|
"The diff algorithm was stopped early (after {0} ms.)",
|
|
48
48
|
this._diffEditor.maxComputationTime
|
|
49
49
|
)), [{
|
|
50
|
-
label: ( localize(
|
|
50
|
+
label: ( localize(5996, "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
|
+
6015,
|
|
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(6016, "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(6017, "Please reopen file in order for this setting to take effect.")));
|
|
39
39
|
}, (err) => {
|
|
40
40
|
this._notificationService.error(err);
|
|
41
41
|
});
|
|
@@ -193,7 +193,7 @@ let FormatOnSaveParticipant = class FormatOnSaveParticipant {
|
|
|
193
193
|
const nestedProgress = ( new Progress(provider => {
|
|
194
194
|
progress.report({
|
|
195
195
|
message: ( localize(
|
|
196
|
-
|
|
196
|
+
6032,
|
|
197
197
|
"Running '{0}' Formatter ([configure]({1})).",
|
|
198
198
|
provider.displayName || provider.extensionId && provider.extensionId.value || '???',
|
|
199
199
|
(createCommandUri('workbench.action.openSettings', 'editor.formatOnSave').toString())
|
|
@@ -302,7 +302,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant extends Disp
|
|
|
302
302
|
: ( ( Object.keys(setting))
|
|
303
303
|
.filter(x => setting[x] === 'never' || false)
|
|
304
304
|
.map(x => ( new HierarchicalKind(x))));
|
|
305
|
-
progress.report({ message: ( localize(
|
|
305
|
+
progress.report({ message: ( localize(6033, "Quick Fixes")) });
|
|
306
306
|
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));
|
|
307
307
|
await this.applyOnSaveActions(textEditorModel, filteredSaveList, excludedActions, progress, token);
|
|
308
308
|
}
|
|
@@ -320,7 +320,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant extends Disp
|
|
|
320
320
|
_report() {
|
|
321
321
|
progress.report({
|
|
322
322
|
message: ( localize(
|
|
323
|
-
|
|
323
|
+
6034,
|
|
324
324
|
"Getting code actions from {0} ([configure]({1})).",
|
|
325
325
|
( [...this._names].map(name => `'${name}'`)).join(', '),
|
|
326
326
|
(createCommandUri('workbench.action.openSettings', 'editor.codeActionsOnSave').toString())
|
|
@@ -342,7 +342,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant extends Disp
|
|
|
342
342
|
}
|
|
343
343
|
try {
|
|
344
344
|
for (const action of actionsToRun.validActions) {
|
|
345
|
-
progress.report({ message: ( localize(
|
|
345
|
+
progress.report({ message: ( localize(6035, "Applying code action '{0}'.", action.action.title)) });
|
|
346
346
|
await this.instantiationService.invokeFunction(applyCodeAction, action, ApplyCodeActionReason.OnSave, {}, token);
|
|
347
347
|
if (token.isCancellationRequested) {
|
|
348
348
|
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(6036, "Toggle Minimap")),
|
|
15
|
+
mnemonicTitle: ( localize(6037, "&&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(6038, '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(6039, "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(6040, "Switch to Cmd+Click for Multi-Cursor"))
|
|
71
|
+
: ( localize(6041, "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(6042, "Toggle Control Characters")),
|
|
15
|
+
mnemonicTitle: ( localize(6043, "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(6044, "Toggle Render Whitespace")),
|
|
15
|
+
mnemonicTitle: ( localize(6045, "&&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(6046, '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(6047, "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(6048, "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(6049, "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(6050, "&&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
|
+
6172,
|
|
17
17
|
"The editor contains commentable range(s). Some useful commands include:"
|
|
18
18
|
));
|
|
19
19
|
CommentAccessibilityHelpNLS.tabFocus = ( localize(
|
|
20
|
-
|
|
20
|
+
6173,
|
|
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(6174, "Some useful comment commands include:"));
|
|
25
|
+
CommentAccessibilityHelpNLS.escape = ( localize(6175, "- Dismiss Comment (Escape)"));
|
|
26
26
|
CommentAccessibilityHelpNLS.nextRange = ( localize(
|
|
27
|
-
|
|
27
|
+
6176,
|
|
28
28
|
"- Go to Next Commenting Range{0}.",
|
|
29
29
|
`<keybinding:${CommentCommandId.NextRange}>`
|
|
30
30
|
));
|
|
31
31
|
CommentAccessibilityHelpNLS.previousRange = ( localize(
|
|
32
|
-
|
|
32
|
+
6177,
|
|
33
33
|
"- Go to Previous Commenting Range{0}.",
|
|
34
34
|
`<keybinding:${CommentCommandId.PreviousRange}>`
|
|
35
35
|
));
|
|
36
36
|
CommentAccessibilityHelpNLS.nextCommentThread = ( localize(
|
|
37
|
-
|
|
37
|
+
6178,
|
|
38
38
|
"- Go to Next Comment Thread{0}.",
|
|
39
39
|
`<keybinding:${CommentCommandId.NextThread}>`
|
|
40
40
|
));
|
|
41
41
|
CommentAccessibilityHelpNLS.previousCommentThread = ( localize(
|
|
42
|
-
|
|
42
|
+
6179,
|
|
43
43
|
"- Go to Previous Comment Thread{0}.",
|
|
44
44
|
`<keybinding:${CommentCommandId.PreviousThread}>`
|
|
45
45
|
));
|
|
46
46
|
CommentAccessibilityHelpNLS.nextCommentedRange = ( localize(
|
|
47
|
-
|
|
47
|
+
6180,
|
|
48
48
|
"- Go to Next Commented Range{0}.",
|
|
49
49
|
`<keybinding:${CommentCommandId.NextCommentedRange}>`
|
|
50
50
|
));
|
|
51
51
|
CommentAccessibilityHelpNLS.previousCommentedRange = ( localize(
|
|
52
|
-
|
|
52
|
+
6181,
|
|
53
53
|
"- Go to Previous Commented Range{0}.",
|
|
54
54
|
`<keybinding:${CommentCommandId.PreviousCommentedRange}>`
|
|
55
55
|
));
|
|
56
56
|
CommentAccessibilityHelpNLS.addComment = ( localize(
|
|
57
|
-
|
|
57
|
+
6182,
|
|
58
58
|
"- Add Comment on Current Selection{0}.",
|
|
59
59
|
`<keybinding:${CommentCommandId.Add}>`
|
|
60
60
|
));
|
|
61
|
-
CommentAccessibilityHelpNLS.submitComment = ( localize(
|
|
61
|
+
CommentAccessibilityHelpNLS.submitComment = ( localize(6183, "- 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(6249, "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(6250, "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(6251, "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
|
+
6252,
|
|
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(6253, "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(6254, "Set when the comment has no input")) }));
|
|
32
|
+
CommentContextKeys.commentContext = ( new RawContextKey('comment', undefined, { type: 'string', description: ( localize(6255, "The context value of the comment")) }));
|
|
33
|
+
CommentContextKeys.commentThreadContext = ( new RawContextKey('commentThread', undefined, { type: 'string', description: ( localize(6256, "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(6257, "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(6258, "Set when the comment is focused")) }));
|
|
40
40
|
CommentContextKeys.commentingEnabled = ( new RawContextKey('commentingEnabled', true, {
|
|
41
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(6259, "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(6853, "Timeout after {0} ms for '{1}'", timeout, command))
|
|
67
67
|
};
|
|
68
68
|
clb(err);
|
|
69
69
|
}
|