@codingame/monaco-vscode-api 8.0.1 → 8.0.3
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/api.js +1 -1
- package/extensions.d.ts +24 -0
- package/missing-services.js +2 -2
- package/package.json +8 -8
- package/services.js +2 -2
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +6 -6
- package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
- package/vscode/src/vs/editor/browser/editorExtensions.js +6 -6
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +1 -1
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +49 -49
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/commands.js +6 -6
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/editor.api.d.ts +91 -69
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +49 -49
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +2 -2
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +41 -41
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +131 -131
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +61 -61
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +7 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +10 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +13 -13
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +9 -9
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +34 -34
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +166 -166
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +12 -12
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +23 -23
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +32 -32
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +82 -82
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -11
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
|
@@ -49,7 +49,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
49
49
|
title: {
|
|
50
50
|
value: 'File',
|
|
51
51
|
original: 'File',
|
|
52
|
-
mnemonicTitle: ( localize(
|
|
52
|
+
mnemonicTitle: ( localize(6834, "&&File")),
|
|
53
53
|
},
|
|
54
54
|
order: 1
|
|
55
55
|
});
|
|
@@ -58,7 +58,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
58
58
|
title: {
|
|
59
59
|
value: 'Edit',
|
|
60
60
|
original: 'Edit',
|
|
61
|
-
mnemonicTitle: ( localize(
|
|
61
|
+
mnemonicTitle: ( localize(6835, "&&Edit"))
|
|
62
62
|
},
|
|
63
63
|
order: 2
|
|
64
64
|
});
|
|
@@ -67,7 +67,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
67
67
|
title: {
|
|
68
68
|
value: 'Selection',
|
|
69
69
|
original: 'Selection',
|
|
70
|
-
mnemonicTitle: ( localize(
|
|
70
|
+
mnemonicTitle: ( localize(6836, "&&Selection"))
|
|
71
71
|
},
|
|
72
72
|
order: 3
|
|
73
73
|
});
|
|
@@ -76,7 +76,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
76
76
|
title: {
|
|
77
77
|
value: 'View',
|
|
78
78
|
original: 'View',
|
|
79
|
-
mnemonicTitle: ( localize(
|
|
79
|
+
mnemonicTitle: ( localize(6837, "&&View"))
|
|
80
80
|
},
|
|
81
81
|
order: 4
|
|
82
82
|
});
|
|
@@ -85,7 +85,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
85
85
|
title: {
|
|
86
86
|
value: 'Go',
|
|
87
87
|
original: 'Go',
|
|
88
|
-
mnemonicTitle: ( localize(
|
|
88
|
+
mnemonicTitle: ( localize(6838, "&&Go"))
|
|
89
89
|
},
|
|
90
90
|
order: 5
|
|
91
91
|
});
|
|
@@ -94,7 +94,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
94
94
|
title: {
|
|
95
95
|
value: 'Terminal',
|
|
96
96
|
original: 'Terminal',
|
|
97
|
-
mnemonicTitle: ( localize(
|
|
97
|
+
mnemonicTitle: ( localize(6839, "&&Terminal"))
|
|
98
98
|
},
|
|
99
99
|
order: 7
|
|
100
100
|
});
|
|
@@ -103,7 +103,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
103
103
|
title: {
|
|
104
104
|
value: 'Help',
|
|
105
105
|
original: 'Help',
|
|
106
|
-
mnemonicTitle: ( localize(
|
|
106
|
+
mnemonicTitle: ( localize(6840, "&&Help"))
|
|
107
107
|
},
|
|
108
108
|
order: 8
|
|
109
109
|
});
|
|
@@ -112,7 +112,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
112
112
|
title: {
|
|
113
113
|
value: 'Preferences',
|
|
114
114
|
original: 'Preferences',
|
|
115
|
-
mnemonicTitle: ( localize(
|
|
115
|
+
mnemonicTitle: ( localize(6841, "Preferences"))
|
|
116
116
|
},
|
|
117
117
|
when: IsMacNativeContext,
|
|
118
118
|
order: 9
|
|
@@ -277,12 +277,12 @@ class MenubarControl extends Disposable {
|
|
|
277
277
|
return;
|
|
278
278
|
}
|
|
279
279
|
const message = ( localize(
|
|
280
|
-
|
|
280
|
+
6842,
|
|
281
281
|
"Accessibility support is enabled for you. For the most accessible experience, we recommend the custom title bar style."
|
|
282
282
|
));
|
|
283
283
|
this.notificationService.prompt(Severity$1.Info, message, [
|
|
284
284
|
{
|
|
285
|
-
label: ( localize(
|
|
285
|
+
label: ( localize(6843, "Open Settings")),
|
|
286
286
|
run: () => {
|
|
287
287
|
return this.preferencesService.openUserSettings({ query: TitleBarSetting.TITLE_BAR_STYLE });
|
|
288
288
|
}
|
|
@@ -328,7 +328,7 @@ let CustomMenubarControl = class CustomMenubarControl extends MenubarControl {
|
|
|
328
328
|
constructor() {
|
|
329
329
|
super({
|
|
330
330
|
id: `workbench.actions.menubar.focus`,
|
|
331
|
-
title: ( localize2(
|
|
331
|
+
title: ( localize2(6844, 'Focus Application Menu')),
|
|
332
332
|
keybinding: {
|
|
333
333
|
primary: KeyMod$1.Alt | KeyCode.F10,
|
|
334
334
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -348,29 +348,29 @@ let CustomMenubarControl = class CustomMenubarControl extends MenubarControl {
|
|
|
348
348
|
switch (state.type) {
|
|
349
349
|
case StateType.Idle:
|
|
350
350
|
return (
|
|
351
|
-
(new Action('update.check', ( localize(
|
|
351
|
+
(new Action('update.check', ( localize(6845, "Check for &&Updates...")), undefined, true, () => this.updateService.checkForUpdates(true)))
|
|
352
352
|
);
|
|
353
353
|
case StateType.CheckingForUpdates:
|
|
354
354
|
return (
|
|
355
|
-
(new Action('update.checking', ( localize(
|
|
355
|
+
(new Action('update.checking', ( localize(6846, "Checking for Updates...")), undefined, false))
|
|
356
356
|
);
|
|
357
357
|
case StateType.AvailableForDownload:
|
|
358
358
|
return (
|
|
359
|
-
(new Action('update.downloadNow', ( localize(
|
|
359
|
+
(new Action('update.downloadNow', ( localize(6847, "D&&ownload Update")), undefined, true, () => this.updateService.downloadUpdate()))
|
|
360
360
|
);
|
|
361
361
|
case StateType.Downloading:
|
|
362
362
|
return (
|
|
363
|
-
(new Action('update.downloading', ( localize(
|
|
363
|
+
(new Action('update.downloading', ( localize(6848, "Downloading Update...")), undefined, false))
|
|
364
364
|
);
|
|
365
365
|
case StateType.Downloaded:
|
|
366
|
-
return isMacintosh ? null : ( (new Action('update.install', ( localize(
|
|
366
|
+
return isMacintosh ? null : ( (new Action('update.install', ( localize(6849, "Install &&Update...")), undefined, true, () => this.updateService.applyUpdate())));
|
|
367
367
|
case StateType.Updating:
|
|
368
368
|
return (
|
|
369
|
-
(new Action('update.updating', ( localize(
|
|
369
|
+
(new Action('update.updating', ( localize(6850, "Installing Update...")), undefined, false))
|
|
370
370
|
);
|
|
371
371
|
case StateType.Ready:
|
|
372
372
|
return (
|
|
373
|
-
(new Action('update.restart', ( localize(
|
|
373
|
+
(new Action('update.restart', ( localize(6851, "Restart to &&Update")), undefined, true, () => this.updateService.quitAndInstall()))
|
|
374
374
|
);
|
|
375
375
|
default:
|
|
376
376
|
return null;
|
|
@@ -33,7 +33,7 @@ const viewFilterMenu = ( (new MenuId('menu.view.filter')));
|
|
|
33
33
|
const viewFilterSubmenu = ( (new MenuId('submenu.view.filter')));
|
|
34
34
|
MenuRegistry.appendMenuItem(viewFilterMenu, {
|
|
35
35
|
submenu: viewFilterSubmenu,
|
|
36
|
-
title: ( localize(
|
|
36
|
+
title: ( localize(5623, "More Filters...")),
|
|
37
37
|
group: 'navigation',
|
|
38
38
|
icon: Codicon.filter,
|
|
39
39
|
});
|
|
@@ -63,8 +63,8 @@ var ViewPaneShowActions;
|
|
|
63
63
|
ViewPaneShowActions[ViewPaneShowActions["Always"] = 2] = "Always";
|
|
64
64
|
})(ViewPaneShowActions || (ViewPaneShowActions = {}))));
|
|
65
65
|
const VIEWPANE_FILTER_ACTION = ( (new Action('viewpane.action.filter')));
|
|
66
|
-
const viewPaneContainerExpandedIcon = registerIcon('view-pane-container-expanded', Codicon.chevronDown, ( localize(
|
|
67
|
-
const viewPaneContainerCollapsedIcon = registerIcon('view-pane-container-collapsed', Codicon.chevronRight, ( localize(
|
|
66
|
+
const viewPaneContainerExpandedIcon = registerIcon('view-pane-container-expanded', Codicon.chevronDown, ( localize(5344, 'Icon for an expanded view pane container.')));
|
|
67
|
+
const viewPaneContainerCollapsedIcon = registerIcon('view-pane-container-collapsed', Codicon.chevronRight, ( localize(5345, 'Icon for a collapsed view pane container.')));
|
|
68
68
|
const viewsRegistry = ( (Registry.as(Extensions.ViewsRegistry)));
|
|
69
69
|
let ViewWelcomeController = class ViewWelcomeController {
|
|
70
70
|
get enabled() { return this._enabled; }
|
|
@@ -334,7 +334,7 @@ let ViewPane = class ViewPane extends Pane {
|
|
|
334
334
|
this.toolbar = this.instantiationService.createInstance(WorkbenchToolBar, actions, {
|
|
335
335
|
orientation: ActionsOrientation.HORIZONTAL,
|
|
336
336
|
actionViewItemProvider: (action, options) => this.getActionViewItem(action, options),
|
|
337
|
-
ariaLabel: ( localize(
|
|
337
|
+
ariaLabel: ( localize(5346, "{0} actions", this.title)),
|
|
338
338
|
getKeyBinding: action => this.keybindingService.lookupKeybinding(action.id),
|
|
339
339
|
renderDropdownAsChildElement: true,
|
|
340
340
|
actionRunner: this.getActionRunner(),
|
|
@@ -420,7 +420,7 @@ let ViewPane = class ViewPane extends Pane {
|
|
|
420
420
|
if (!viewHasAccessibilityHelpContent || accessibleViewHasShownForView) {
|
|
421
421
|
return title;
|
|
422
422
|
}
|
|
423
|
-
return ( localize(
|
|
423
|
+
return ( localize(5347, 'Use Alt+F1 for accessibility help {0}', title));
|
|
424
424
|
}
|
|
425
425
|
updateTitle(title) {
|
|
426
426
|
const calculatedTitle = this.calculateTitle(title);
|
|
@@ -50,7 +50,7 @@ import { IWorkbenchLayoutService } from '../../../services/layout/browser/layout
|
|
|
50
50
|
const ViewsSubMenu = ( (new MenuId('Views')));
|
|
51
51
|
MenuRegistry.appendMenuItem(MenuId.ViewContainerTitle, {
|
|
52
52
|
submenu: ViewsSubMenu,
|
|
53
|
-
title: ( localize(
|
|
53
|
+
title: ( localize(5297, "Views")),
|
|
54
54
|
order: 1,
|
|
55
55
|
});
|
|
56
56
|
var DropDirection;
|
|
@@ -992,7 +992,7 @@ registerAction2(class MoveViewUp extends MoveViewPosition {
|
|
|
992
992
|
constructor() {
|
|
993
993
|
super({
|
|
994
994
|
id: 'views.moveViewUp',
|
|
995
|
-
title: ( localize(
|
|
995
|
+
title: ( localize(5298, "Move View Up")),
|
|
996
996
|
keybinding: {
|
|
997
997
|
primary: KeyChord(KeyMod$1.CtrlCmd + KeyCode.KeyK, KeyCode.UpArrow),
|
|
998
998
|
weight: KeybindingWeight.WorkbenchContrib + 1,
|
|
@@ -1005,7 +1005,7 @@ registerAction2(class MoveViewLeft extends MoveViewPosition {
|
|
|
1005
1005
|
constructor() {
|
|
1006
1006
|
super({
|
|
1007
1007
|
id: 'views.moveViewLeft',
|
|
1008
|
-
title: ( localize(
|
|
1008
|
+
title: ( localize(5299, "Move View Left")),
|
|
1009
1009
|
keybinding: {
|
|
1010
1010
|
primary: KeyChord(KeyMod$1.CtrlCmd + KeyCode.KeyK, KeyCode.LeftArrow),
|
|
1011
1011
|
weight: KeybindingWeight.WorkbenchContrib + 1,
|
|
@@ -1018,7 +1018,7 @@ registerAction2(class MoveViewDown extends MoveViewPosition {
|
|
|
1018
1018
|
constructor() {
|
|
1019
1019
|
super({
|
|
1020
1020
|
id: 'views.moveViewDown',
|
|
1021
|
-
title: ( localize(
|
|
1021
|
+
title: ( localize(5300, "Move View Down")),
|
|
1022
1022
|
keybinding: {
|
|
1023
1023
|
primary: KeyChord(KeyMod$1.CtrlCmd + KeyCode.KeyK, KeyCode.DownArrow),
|
|
1024
1024
|
weight: KeybindingWeight.WorkbenchContrib + 1,
|
|
@@ -1031,7 +1031,7 @@ registerAction2(class MoveViewRight extends MoveViewPosition {
|
|
|
1031
1031
|
constructor() {
|
|
1032
1032
|
super({
|
|
1033
1033
|
id: 'views.moveViewRight',
|
|
1034
|
-
title: ( localize(
|
|
1034
|
+
title: ( localize(5301, "Move View Right")),
|
|
1035
1035
|
keybinding: {
|
|
1036
1036
|
primary: KeyChord(KeyMod$1.CtrlCmd + KeyCode.KeyK, KeyCode.RightArrow),
|
|
1037
1037
|
weight: KeybindingWeight.WorkbenchContrib + 1,
|
|
@@ -1044,7 +1044,7 @@ registerAction2(class MoveViews extends Action2 {
|
|
|
1044
1044
|
constructor() {
|
|
1045
1045
|
super({
|
|
1046
1046
|
id: 'vscode.moveViews',
|
|
1047
|
-
title: ( localize(
|
|
1047
|
+
title: ( localize(5302, "Move Views")),
|
|
1048
1048
|
});
|
|
1049
1049
|
}
|
|
1050
1050
|
async run(accessor, options) {
|
|
@@ -12,129 +12,129 @@ import { DEFAULT_EDITOR_ASSOCIATION } from './editor.js';
|
|
|
12
12
|
import { isLinux } from '../../base/common/platform.js';
|
|
13
13
|
var ResourceContextKey_1;
|
|
14
14
|
const WorkbenchStateContext = ( (new RawContextKey('workbenchState', undefined, { type: 'string', description: ( localize(
|
|
15
|
-
|
|
15
|
+
480,
|
|
16
16
|
"The kind of workspace opened in the window, either 'empty' (no workspace), 'folder' (single folder) or 'workspace' (multi-root workspace)"
|
|
17
17
|
)) })));
|
|
18
|
-
const WorkspaceFolderCountContext = ( (new RawContextKey('workspaceFolderCount', 0, ( localize(
|
|
18
|
+
const WorkspaceFolderCountContext = ( (new RawContextKey('workspaceFolderCount', 0, ( localize(481, "The number of root folders in the workspace")))));
|
|
19
19
|
const OpenFolderWorkspaceSupportContext = ( (new RawContextKey('openFolderWorkspaceSupport', true, true)));
|
|
20
20
|
const EnterMultiRootWorkspaceSupportContext = ( (new RawContextKey('enterMultiRootWorkspaceSupport', true, true)));
|
|
21
21
|
const EmptyWorkspaceSupportContext = ( (new RawContextKey('emptyWorkspaceSupport', true, true)));
|
|
22
|
-
const DirtyWorkingCopiesContext = ( (new RawContextKey('dirtyWorkingCopies', false, ( localize(
|
|
22
|
+
const DirtyWorkingCopiesContext = ( (new RawContextKey('dirtyWorkingCopies', false, ( localize(482, "Whether there are any working copies with unsaved changes")))));
|
|
23
23
|
const RemoteNameContext = ( (new RawContextKey('remoteName', '', ( localize(
|
|
24
|
-
|
|
24
|
+
483,
|
|
25
25
|
"The name of the remote the window is connected to or an empty string if not connected to any remote"
|
|
26
26
|
)))));
|
|
27
27
|
const VirtualWorkspaceContext = ( (new RawContextKey('virtualWorkspace', '', ( localize(
|
|
28
|
-
|
|
28
|
+
484,
|
|
29
29
|
"The scheme of the current workspace is from a virtual file system or an empty string."
|
|
30
30
|
)))));
|
|
31
31
|
const TemporaryWorkspaceContext = ( (new RawContextKey('temporaryWorkspace', false, ( localize(
|
|
32
|
-
|
|
32
|
+
485,
|
|
33
33
|
"The scheme of the current workspace is from a temporary file system."
|
|
34
34
|
)))));
|
|
35
|
-
const IsMainWindowFullscreenContext = ( (new RawContextKey('isFullscreen', false, ( localize(
|
|
36
|
-
const IsAuxiliaryWindowFocusedContext = ( (new RawContextKey('isAuxiliaryWindowFocusedContext', false, ( localize(
|
|
35
|
+
const IsMainWindowFullscreenContext = ( (new RawContextKey('isFullscreen', false, ( localize(486, "Whether the main window is in fullscreen mode")))));
|
|
36
|
+
const IsAuxiliaryWindowFocusedContext = ( (new RawContextKey('isAuxiliaryWindowFocusedContext', false, ( localize(487, "Whether an auxiliary window is focused")))));
|
|
37
37
|
const HasWebFileSystemAccess = ( (new RawContextKey('hasWebFileSystemAccess', false, true)));
|
|
38
38
|
const EmbedderIdentifierContext = ( (new RawContextKey('embedderIdentifier', undefined, ( localize(
|
|
39
|
-
|
|
39
|
+
488,
|
|
40
40
|
'The identifier of the embedder according to the product service, if one is defined'
|
|
41
41
|
)))));
|
|
42
|
-
const ActiveEditorDirtyContext = ( (new RawContextKey('activeEditorIsDirty', false, ( localize(
|
|
43
|
-
const ActiveEditorPinnedContext = ( (new RawContextKey('activeEditorIsNotPreview', false, ( localize(
|
|
44
|
-
const ActiveEditorFirstInGroupContext = ( (new RawContextKey('activeEditorIsFirstInGroup', false, ( localize(
|
|
45
|
-
const ActiveEditorLastInGroupContext = ( (new RawContextKey('activeEditorIsLastInGroup', false, ( localize(
|
|
46
|
-
const ActiveEditorStickyContext = ( (new RawContextKey('activeEditorIsPinned', false, ( localize(
|
|
47
|
-
const ActiveEditorReadonlyContext = ( (new RawContextKey('activeEditorIsReadonly', false, ( localize(
|
|
48
|
-
const ActiveCompareEditorCanSwapContext = ( (new RawContextKey('activeCompareEditorCanSwap', false, ( localize(
|
|
42
|
+
const ActiveEditorDirtyContext = ( (new RawContextKey('activeEditorIsDirty', false, ( localize(489, "Whether the active editor has unsaved changes")))));
|
|
43
|
+
const ActiveEditorPinnedContext = ( (new RawContextKey('activeEditorIsNotPreview', false, ( localize(490, "Whether the active editor is not in preview mode")))));
|
|
44
|
+
const ActiveEditorFirstInGroupContext = ( (new RawContextKey('activeEditorIsFirstInGroup', false, ( localize(491, "Whether the active editor is the first one in its group")))));
|
|
45
|
+
const ActiveEditorLastInGroupContext = ( (new RawContextKey('activeEditorIsLastInGroup', false, ( localize(492, "Whether the active editor is the last one in its group")))));
|
|
46
|
+
const ActiveEditorStickyContext = ( (new RawContextKey('activeEditorIsPinned', false, ( localize(493, "Whether the active editor is pinned")))));
|
|
47
|
+
const ActiveEditorReadonlyContext = ( (new RawContextKey('activeEditorIsReadonly', false, ( localize(494, "Whether the active editor is read-only")))));
|
|
48
|
+
const ActiveCompareEditorCanSwapContext = ( (new RawContextKey('activeCompareEditorCanSwap', false, ( localize(495, "Whether the active compare editor can swap sides")))));
|
|
49
49
|
const ActiveEditorCanToggleReadonlyContext = ( (new RawContextKey('activeEditorCanToggleReadonly', true, ( localize(
|
|
50
|
-
|
|
50
|
+
496,
|
|
51
51
|
"Whether the active editor can toggle between being read-only or writeable"
|
|
52
52
|
)))));
|
|
53
|
-
const ActiveEditorCanRevertContext = ( (new RawContextKey('activeEditorCanRevert', false, ( localize(
|
|
53
|
+
const ActiveEditorCanRevertContext = ( (new RawContextKey('activeEditorCanRevert', false, ( localize(497, "Whether the active editor can revert")))));
|
|
54
54
|
const ActiveEditorCanSplitInGroupContext = ( (new RawContextKey('activeEditorCanSplitInGroup', true)));
|
|
55
|
-
const ActiveEditorContext = ( (new RawContextKey('activeEditor', null, { type: 'string', description: ( localize(
|
|
55
|
+
const ActiveEditorContext = ( (new RawContextKey('activeEditor', null, { type: 'string', description: ( localize(498, "The identifier of the active editor")) })));
|
|
56
56
|
const ActiveEditorAvailableEditorIdsContext = ( (new RawContextKey('activeEditorAvailableEditorIds', '', ( localize(
|
|
57
|
-
|
|
57
|
+
499,
|
|
58
58
|
"The available editor identifiers that are usable for the active editor"
|
|
59
59
|
)))));
|
|
60
|
-
const TextCompareEditorVisibleContext = ( (new RawContextKey('textCompareEditorVisible', false, ( localize(
|
|
61
|
-
const TextCompareEditorActiveContext = ( (new RawContextKey('textCompareEditorActive', false, ( localize(
|
|
62
|
-
const SideBySideEditorActiveContext = ( (new RawContextKey('sideBySideEditorActive', false, ( localize(
|
|
63
|
-
const EditorGroupEditorsCountContext = ( (new RawContextKey('groupEditorsCount', 0, ( localize(
|
|
64
|
-
const ActiveEditorGroupEmptyContext = ( (new RawContextKey('activeEditorGroupEmpty', false, ( localize(
|
|
65
|
-
const ActiveEditorGroupIndexContext = ( (new RawContextKey('activeEditorGroupIndex', 0, ( localize(
|
|
66
|
-
const ActiveEditorGroupLastContext = ( (new RawContextKey('activeEditorGroupLast', false, ( localize(
|
|
67
|
-
const ActiveEditorGroupLockedContext = ( (new RawContextKey('activeEditorGroupLocked', false, ( localize(
|
|
68
|
-
const MultipleEditorGroupsContext = ( (new RawContextKey('multipleEditorGroups', false, ( localize(
|
|
69
|
-
const MultipleEditorsSelectedInGroupContext = ( (new RawContextKey('multipleEditorsSelectedInGroup', false, ( localize(
|
|
70
|
-
const TwoEditorsSelectedInGroupContext = ( (new RawContextKey('twoEditorsSelectedInGroup', false, ( localize(
|
|
60
|
+
const TextCompareEditorVisibleContext = ( (new RawContextKey('textCompareEditorVisible', false, ( localize(500, "Whether a text compare editor is visible")))));
|
|
61
|
+
const TextCompareEditorActiveContext = ( (new RawContextKey('textCompareEditorActive', false, ( localize(501, "Whether a text compare editor is active")))));
|
|
62
|
+
const SideBySideEditorActiveContext = ( (new RawContextKey('sideBySideEditorActive', false, ( localize(502, "Whether a side by side editor is active")))));
|
|
63
|
+
const EditorGroupEditorsCountContext = ( (new RawContextKey('groupEditorsCount', 0, ( localize(503, "The number of opened editor groups")))));
|
|
64
|
+
const ActiveEditorGroupEmptyContext = ( (new RawContextKey('activeEditorGroupEmpty', false, ( localize(504, "Whether the active editor group is empty")))));
|
|
65
|
+
const ActiveEditorGroupIndexContext = ( (new RawContextKey('activeEditorGroupIndex', 0, ( localize(505, "The index of the active editor group")))));
|
|
66
|
+
const ActiveEditorGroupLastContext = ( (new RawContextKey('activeEditorGroupLast', false, ( localize(506, "Whether the active editor group is the last group")))));
|
|
67
|
+
const ActiveEditorGroupLockedContext = ( (new RawContextKey('activeEditorGroupLocked', false, ( localize(507, "Whether the active editor group is locked")))));
|
|
68
|
+
const MultipleEditorGroupsContext = ( (new RawContextKey('multipleEditorGroups', false, ( localize(508, "Whether there are multiple editor groups opened")))));
|
|
69
|
+
const MultipleEditorsSelectedInGroupContext = ( (new RawContextKey('multipleEditorsSelectedInGroup', false, ( localize(509, "Whether multiple editors have been selected in an editor group")))));
|
|
70
|
+
const TwoEditorsSelectedInGroupContext = ( (new RawContextKey('twoEditorsSelectedInGroup', false, ( localize(510, "Whether exactly two editors have been selected in an editor group")))));
|
|
71
71
|
const SelectedEditorsInGroupFileOrUntitledResourceContextKey = ( (new RawContextKey(
|
|
72
72
|
'SelectedEditorsInGroupFileOrUntitledResourceContextKey',
|
|
73
73
|
true,
|
|
74
74
|
( localize(
|
|
75
|
-
|
|
75
|
+
511,
|
|
76
76
|
"Whether all selected editors in a group have a file or untitled resource associated"
|
|
77
77
|
))
|
|
78
78
|
)));
|
|
79
|
-
const EditorPartMultipleEditorGroupsContext = ( (new RawContextKey('editorPartMultipleEditorGroups', false, ( localize(
|
|
80
|
-
const EditorPartMaximizedEditorGroupContext = ( (new RawContextKey('editorPartMaximizedEditorGroup', false, ( localize(
|
|
81
|
-
const IsAuxiliaryEditorPartContext = ( (new RawContextKey('isAuxiliaryEditorPart', false, ( localize(
|
|
82
|
-
const EditorsVisibleContext = ( (new RawContextKey('editorIsOpen', false, ( localize(
|
|
83
|
-
const InEditorZenModeContext = ( (new RawContextKey('inZenMode', false, ( localize(
|
|
84
|
-
const IsMainEditorCenteredLayoutContext = ( (new RawContextKey('isCenteredLayout', false, ( localize(
|
|
85
|
-
const SplitEditorsVertically = ( (new RawContextKey('splitEditorsVertically', false, ( localize(
|
|
86
|
-
const MainEditorAreaVisibleContext = ( (new RawContextKey('mainEditorAreaVisible', true, ( localize(
|
|
87
|
-
const EditorTabsVisibleContext = ( (new RawContextKey('editorTabsVisible', true, ( localize(
|
|
88
|
-
const SideBarVisibleContext = ( (new RawContextKey('sideBarVisible', false, ( localize(
|
|
89
|
-
const SidebarFocusContext = ( (new RawContextKey('sideBarFocus', false, ( localize(
|
|
90
|
-
const ActiveViewletContext = ( (new RawContextKey('activeViewlet', '', ( localize(
|
|
91
|
-
const StatusBarFocused = ( (new RawContextKey('statusBarFocused', false, ( localize(
|
|
92
|
-
const TitleBarStyleContext = ( (new RawContextKey('titleBarStyle', isLinux ? 'native' : 'custom', ( localize(
|
|
93
|
-
const TitleBarVisibleContext = ( (new RawContextKey('titleBarVisible', false, ( localize(
|
|
94
|
-
const BannerFocused = ( (new RawContextKey('bannerFocused', false, ( localize(
|
|
95
|
-
const NotificationFocusedContext = ( (new RawContextKey('notificationFocus', true, ( localize(
|
|
96
|
-
const NotificationsCenterVisibleContext = ( (new RawContextKey('notificationCenterVisible', false, ( localize(
|
|
97
|
-
const NotificationsToastsVisibleContext = ( (new RawContextKey('notificationToastsVisible', false, ( localize(
|
|
98
|
-
const ActiveAuxiliaryContext = ( (new RawContextKey('activeAuxiliary', '', ( localize(
|
|
99
|
-
const AuxiliaryBarFocusContext = ( (new RawContextKey('auxiliaryBarFocus', false, ( localize(
|
|
100
|
-
const AuxiliaryBarVisibleContext = ( (new RawContextKey('auxiliaryBarVisible', false, ( localize(
|
|
101
|
-
const ActivePanelContext = ( (new RawContextKey('activePanel', '', ( localize(
|
|
102
|
-
const PanelFocusContext = ( (new RawContextKey('panelFocus', false, ( localize(
|
|
103
|
-
const PanelPositionContext = ( (new RawContextKey('panelPosition', 'bottom', ( localize(
|
|
79
|
+
const EditorPartMultipleEditorGroupsContext = ( (new RawContextKey('editorPartMultipleEditorGroups', false, ( localize(512, "Whether there are multiple editor groups opened in an editor part")))));
|
|
80
|
+
const EditorPartMaximizedEditorGroupContext = ( (new RawContextKey('editorPartMaximizedEditorGroup', false, ( localize(513, "Editor Part has a maximized group")))));
|
|
81
|
+
const IsAuxiliaryEditorPartContext = ( (new RawContextKey('isAuxiliaryEditorPart', false, ( localize(514, "Editor Part is in an auxiliary window")))));
|
|
82
|
+
const EditorsVisibleContext = ( (new RawContextKey('editorIsOpen', false, ( localize(515, "Whether an editor is open")))));
|
|
83
|
+
const InEditorZenModeContext = ( (new RawContextKey('inZenMode', false, ( localize(516, "Whether Zen mode is enabled")))));
|
|
84
|
+
const IsMainEditorCenteredLayoutContext = ( (new RawContextKey('isCenteredLayout', false, ( localize(517, "Whether centered layout is enabled for the main editor")))));
|
|
85
|
+
const SplitEditorsVertically = ( (new RawContextKey('splitEditorsVertically', false, ( localize(518, "Whether editors split vertically")))));
|
|
86
|
+
const MainEditorAreaVisibleContext = ( (new RawContextKey('mainEditorAreaVisible', true, ( localize(519, "Whether the editor area in the main window is visible")))));
|
|
87
|
+
const EditorTabsVisibleContext = ( (new RawContextKey('editorTabsVisible', true, ( localize(520, "Whether editor tabs are visible")))));
|
|
88
|
+
const SideBarVisibleContext = ( (new RawContextKey('sideBarVisible', false, ( localize(521, "Whether the sidebar is visible")))));
|
|
89
|
+
const SidebarFocusContext = ( (new RawContextKey('sideBarFocus', false, ( localize(522, "Whether the sidebar has keyboard focus")))));
|
|
90
|
+
const ActiveViewletContext = ( (new RawContextKey('activeViewlet', '', ( localize(523, "The identifier of the active viewlet")))));
|
|
91
|
+
const StatusBarFocused = ( (new RawContextKey('statusBarFocused', false, ( localize(524, "Whether the status bar has keyboard focus")))));
|
|
92
|
+
const TitleBarStyleContext = ( (new RawContextKey('titleBarStyle', isLinux ? 'native' : 'custom', ( localize(525, "Style of the window title bar")))));
|
|
93
|
+
const TitleBarVisibleContext = ( (new RawContextKey('titleBarVisible', false, ( localize(526, "Whether the title bar is visible")))));
|
|
94
|
+
const BannerFocused = ( (new RawContextKey('bannerFocused', false, ( localize(527, "Whether the banner has keyboard focus")))));
|
|
95
|
+
const NotificationFocusedContext = ( (new RawContextKey('notificationFocus', true, ( localize(528, "Whether a notification has keyboard focus")))));
|
|
96
|
+
const NotificationsCenterVisibleContext = ( (new RawContextKey('notificationCenterVisible', false, ( localize(529, "Whether the notifications center is visible")))));
|
|
97
|
+
const NotificationsToastsVisibleContext = ( (new RawContextKey('notificationToastsVisible', false, ( localize(530, "Whether a notification toast is visible")))));
|
|
98
|
+
const ActiveAuxiliaryContext = ( (new RawContextKey('activeAuxiliary', '', ( localize(531, "The identifier of the active auxiliary panel")))));
|
|
99
|
+
const AuxiliaryBarFocusContext = ( (new RawContextKey('auxiliaryBarFocus', false, ( localize(532, "Whether the auxiliary bar has keyboard focus")))));
|
|
100
|
+
const AuxiliaryBarVisibleContext = ( (new RawContextKey('auxiliaryBarVisible', false, ( localize(533, "Whether the auxiliary bar is visible")))));
|
|
101
|
+
const ActivePanelContext = ( (new RawContextKey('activePanel', '', ( localize(534, "The identifier of the active panel")))));
|
|
102
|
+
const PanelFocusContext = ( (new RawContextKey('panelFocus', false, ( localize(535, "Whether the panel has keyboard focus")))));
|
|
103
|
+
const PanelPositionContext = ( (new RawContextKey('panelPosition', 'bottom', ( localize(536, "The position of the panel, always 'bottom'")))));
|
|
104
104
|
const PanelAlignmentContext = ( (new RawContextKey('panelAlignment', 'center', ( localize(
|
|
105
|
-
|
|
105
|
+
537,
|
|
106
106
|
"The alignment of the panel, either 'center', 'left', 'right' or 'justify'"
|
|
107
107
|
)))));
|
|
108
|
-
const PanelVisibleContext = ( (new RawContextKey('panelVisible', false, ( localize(
|
|
109
|
-
const PanelMaximizedContext = ( (new RawContextKey('panelMaximized', false, ( localize(
|
|
110
|
-
const FocusedViewContext = ( (new RawContextKey('focusedView', '', ( localize(
|
|
108
|
+
const PanelVisibleContext = ( (new RawContextKey('panelVisible', false, ( localize(538, "Whether the panel is visible")))));
|
|
109
|
+
const PanelMaximizedContext = ( (new RawContextKey('panelMaximized', false, ( localize(539, "Whether the panel is maximized")))));
|
|
110
|
+
const FocusedViewContext = ( (new RawContextKey('focusedView', '', ( localize(540, "The identifier of the view that has keyboard focus")))));
|
|
111
111
|
function getVisbileViewContextKey(viewId) { return `view.${viewId}.visible`; }
|
|
112
112
|
let ResourceContextKey = class ResourceContextKey {
|
|
113
113
|
static { ResourceContextKey_1 = this; }
|
|
114
|
-
static { this.Scheme = ( (new RawContextKey('resourceScheme', undefined, { type: 'string', description: ( localize(
|
|
114
|
+
static { this.Scheme = ( (new RawContextKey('resourceScheme', undefined, { type: 'string', description: ( localize(541, "The scheme of the resource")) }))); }
|
|
115
115
|
static { this.Filename = ( (new RawContextKey(
|
|
116
116
|
'resourceFilename',
|
|
117
117
|
undefined,
|
|
118
|
-
{ type: 'string', description: ( localize(
|
|
118
|
+
{ type: 'string', description: ( localize(542, "The file name of the resource")) }
|
|
119
119
|
))); }
|
|
120
120
|
static { this.Dirname = ( (new RawContextKey(
|
|
121
121
|
'resourceDirname',
|
|
122
122
|
undefined,
|
|
123
|
-
{ type: 'string', description: ( localize(
|
|
123
|
+
{ type: 'string', description: ( localize(543, "The folder name the resource is contained in")) }
|
|
124
124
|
))); }
|
|
125
|
-
static { this.Path = ( (new RawContextKey('resourcePath', undefined, { type: 'string', description: ( localize(
|
|
126
|
-
static { this.LangId = ( (new RawContextKey('resourceLangId', undefined, { type: 'string', description: ( localize(
|
|
127
|
-
static { this.Resource = ( (new RawContextKey('resource', undefined, { type: 'URI', description: ( localize(
|
|
125
|
+
static { this.Path = ( (new RawContextKey('resourcePath', undefined, { type: 'string', description: ( localize(544, "The full path of the resource")) }))); }
|
|
126
|
+
static { this.LangId = ( (new RawContextKey('resourceLangId', undefined, { type: 'string', description: ( localize(545, "The language identifier of the resource")) }))); }
|
|
127
|
+
static { this.Resource = ( (new RawContextKey('resource', undefined, { type: 'URI', description: ( localize(546, "The full value of the resource including scheme and path")) }))); }
|
|
128
128
|
static { this.Extension = ( (new RawContextKey(
|
|
129
129
|
'resourceExtname',
|
|
130
130
|
undefined,
|
|
131
|
-
{ type: 'string', description: ( localize(
|
|
131
|
+
{ type: 'string', description: ( localize(547, "The extension name of the resource")) }
|
|
132
132
|
))); }
|
|
133
|
-
static { this.HasResource = ( (new RawContextKey('resourceSet', undefined, { type: 'boolean', description: ( localize(
|
|
133
|
+
static { this.HasResource = ( (new RawContextKey('resourceSet', undefined, { type: 'boolean', description: ( localize(548, "Whether a resource is present or not")) }))); }
|
|
134
134
|
static { this.IsFileSystemResource = ( (new RawContextKey(
|
|
135
135
|
'isFileSystemResource',
|
|
136
136
|
undefined,
|
|
137
|
-
{ type: 'boolean', description: ( localize(
|
|
137
|
+
{ type: 'boolean', description: ( localize(549, "Whether the resource is backed by a file system provider")) }
|
|
138
138
|
))); }
|
|
139
139
|
constructor(_contextKeyService, _fileService, _languageService, _modelService) {
|
|
140
140
|
this._contextKeyService = _contextKeyService;
|
|
@@ -42,7 +42,7 @@ let DiffEditorInput = class DiffEditorInput extends SideBySideEditorInput {
|
|
|
42
42
|
else {
|
|
43
43
|
const originalName = this.original.getName();
|
|
44
44
|
const modifiedName = this.modified.getName();
|
|
45
|
-
name = ( localize(
|
|
45
|
+
name = ( localize(8674, "{0} ↔ {1}", originalName, modifiedName));
|
|
46
46
|
forceDescription = originalName === modifiedName;
|
|
47
47
|
}
|
|
48
48
|
let shortDescription;
|
|
@@ -92,7 +92,7 @@ let BaseTextEditorModel = class BaseTextEditorModel extends EditorModel {
|
|
|
92
92
|
this.setLanguageIdInternal(lang, LanguageDetectionLanguageEventSource);
|
|
93
93
|
const languageName = this.languageService.getLanguageName(lang);
|
|
94
94
|
this.accessibilityService.alert(( localize(
|
|
95
|
-
|
|
95
|
+
9798,
|
|
96
96
|
"Language {0} was automatically detected and set as the language mode.",
|
|
97
97
|
languageName ?? lang
|
|
98
98
|
)));
|
|
@@ -38,11 +38,15 @@ class ChatRequestModel {
|
|
|
38
38
|
set variableData(v) {
|
|
39
39
|
this._variableData = v;
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
get locationData() {
|
|
42
|
+
return this._locationData;
|
|
43
|
+
}
|
|
44
|
+
constructor(_session, message, _variableData, _attempt = 0, _locationData) {
|
|
42
45
|
this._session = _session;
|
|
43
46
|
this.message = message;
|
|
44
47
|
this._variableData = _variableData;
|
|
45
48
|
this._attempt = _attempt;
|
|
49
|
+
this._locationData = _locationData;
|
|
46
50
|
this.id = 'request_' + ChatRequestModel.nextId++;
|
|
47
51
|
}
|
|
48
52
|
adoptTo(session) {
|
|
@@ -543,8 +547,8 @@ let ChatModel = ChatModel_1 = class ChatModel extends Disposable {
|
|
|
543
547
|
getRequests() {
|
|
544
548
|
return this._requests;
|
|
545
549
|
}
|
|
546
|
-
addRequest(message, variableData, attempt, chatAgent, slashCommand) {
|
|
547
|
-
const request = ( (new ChatRequestModel(this, message, variableData, attempt)));
|
|
550
|
+
addRequest(message, variableData, attempt, chatAgent, slashCommand, locationData) {
|
|
551
|
+
const request = ( (new ChatRequestModel(this, message, variableData, attempt, locationData)));
|
|
548
552
|
request.response = ( (new ChatResponseModel([], this, chatAgent, slashCommand, request.id)));
|
|
549
553
|
this._requests.push(request);
|
|
550
554
|
this._onDidChange.fire({ kind: 'addRequest', request });
|
|
@@ -27,12 +27,12 @@ import { ThemeIcon } from '../../../../../base/common/themables.js';
|
|
|
27
27
|
import { isWindows } from '../../../../../base/common/platform.js';
|
|
28
28
|
var EditorDictation_1;
|
|
29
29
|
const EDITOR_DICTATION_IN_PROGRESS = ( (new RawContextKey('editorDictation.inProgress', false)));
|
|
30
|
-
const VOICE_CATEGORY = ( localize2(
|
|
30
|
+
const VOICE_CATEGORY = ( localize2(10519, "Voice"));
|
|
31
31
|
class EditorDictationStartAction extends EditorAction2 {
|
|
32
32
|
constructor() {
|
|
33
33
|
super({
|
|
34
34
|
id: 'workbench.action.editorDictation.start',
|
|
35
|
-
title: ( localize2(
|
|
35
|
+
title: ( localize2(10520, "Start Dictation in Editor")),
|
|
36
36
|
category: VOICE_CATEGORY,
|
|
37
37
|
precondition: ( (ContextKeyExpr.and(
|
|
38
38
|
HasSpeechProvider,
|
|
@@ -72,7 +72,7 @@ class EditorDictationStopAction extends EditorAction2 {
|
|
|
72
72
|
constructor() {
|
|
73
73
|
super({
|
|
74
74
|
id: EditorDictationStopAction.ID,
|
|
75
|
-
title: ( localize2(
|
|
75
|
+
title: ( localize2(10521, "Stop Dictation in Editor")),
|
|
76
76
|
category: VOICE_CATEGORY,
|
|
77
77
|
precondition: EDITOR_DICTATION_IN_PROGRESS,
|
|
78
78
|
f1: true,
|
|
@@ -97,7 +97,7 @@ class DictationWidget extends Disposable {
|
|
|
97
97
|
const stopActionKeybinding = keybindingService.lookupKeybinding(EditorDictationStopAction.ID)?.getLabel();
|
|
98
98
|
actionBar.push(toAction({
|
|
99
99
|
id: EditorDictationStopAction.ID,
|
|
100
|
-
label: stopActionKeybinding ? ( localize(
|
|
100
|
+
label: stopActionKeybinding ? ( localize(10522, "Stop Dictation ({0})", stopActionKeybinding)) : ( localize(10523, "Stop Dictation")),
|
|
101
101
|
class: ThemeIcon.asClassName(Codicon.micFilled),
|
|
102
102
|
run: () => EditorDictation.get(editor)?.stop()
|
|
103
103
|
}), { icon: true, label: false, keybinding: stopActionKeybinding });
|
|
@@ -11,42 +11,42 @@ import { Disposable } from '../../../../base/common/lifecycle.js';
|
|
|
11
11
|
var CommentAccessibilityHelpNLS;
|
|
12
12
|
( ((function(CommentAccessibilityHelpNLS) {
|
|
13
13
|
CommentAccessibilityHelpNLS.intro = ( localize(
|
|
14
|
-
|
|
14
|
+
5354,
|
|
15
15
|
"The editor contains commentable range(s). Some useful commands include:"
|
|
16
16
|
));
|
|
17
17
|
CommentAccessibilityHelpNLS.tabFocus = ( localize(
|
|
18
|
-
|
|
18
|
+
5355,
|
|
19
19
|
"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}.",
|
|
20
20
|
`<keybinding:${ToggleTabFocusModeAction.ID}>`
|
|
21
21
|
));
|
|
22
|
-
CommentAccessibilityHelpNLS.commentCommands = ( localize(
|
|
23
|
-
CommentAccessibilityHelpNLS.escape = ( localize(
|
|
22
|
+
CommentAccessibilityHelpNLS.commentCommands = ( localize(5356, "Some useful comment commands include:"));
|
|
23
|
+
CommentAccessibilityHelpNLS.escape = ( localize(5357, "- Dismiss Comment (Escape)"));
|
|
24
24
|
CommentAccessibilityHelpNLS.nextRange = ( localize(
|
|
25
|
-
|
|
25
|
+
5358,
|
|
26
26
|
"- Go to Next Commenting Range{0}.",
|
|
27
27
|
`<keybinding:${CommentCommandId.NextRange}>`
|
|
28
28
|
));
|
|
29
29
|
CommentAccessibilityHelpNLS.previousRange = ( localize(
|
|
30
|
-
|
|
30
|
+
5359,
|
|
31
31
|
"- Go to Previous Commenting Range{0}.",
|
|
32
32
|
`<keybinding:${CommentCommandId.PreviousRange}>`
|
|
33
33
|
));
|
|
34
34
|
CommentAccessibilityHelpNLS.nextCommentThread = ( localize(
|
|
35
|
-
|
|
35
|
+
5360,
|
|
36
36
|
"- Go to Next Comment Thread{0}.",
|
|
37
37
|
`<keybinding:${CommentCommandId.NextThread}>`
|
|
38
38
|
));
|
|
39
39
|
CommentAccessibilityHelpNLS.previousCommentThread = ( localize(
|
|
40
|
-
|
|
40
|
+
5361,
|
|
41
41
|
"- Go to Previous Comment Thread{0}.",
|
|
42
42
|
`<keybinding:${CommentCommandId.PreviousThread}>`
|
|
43
43
|
));
|
|
44
44
|
CommentAccessibilityHelpNLS.addComment = ( localize(
|
|
45
|
-
|
|
45
|
+
5362,
|
|
46
46
|
"- Add Comment on Current Selection{0}.",
|
|
47
47
|
`<keybinding:${CommentCommandId.Add}>`
|
|
48
48
|
));
|
|
49
|
-
CommentAccessibilityHelpNLS.submitComment = ( localize(
|
|
49
|
+
CommentAccessibilityHelpNLS.submitComment = ( localize(5363, "- Submit Comment{0}.", `<keybinding:${CommentCommandId.Submit}>`));
|
|
50
50
|
})(CommentAccessibilityHelpNLS || (CommentAccessibilityHelpNLS = {}))));
|
|
51
51
|
class CommentsAccessibilityHelpProvider extends Disposable {
|
|
52
52
|
constructor() {
|
|
@@ -771,7 +771,7 @@ let CommentController = class CommentController {
|
|
|
771
771
|
const commentRangeEnd = range?.getEndPosition().lineNumber;
|
|
772
772
|
if (commentRangeStart && commentRangeEnd) {
|
|
773
773
|
const oneLine = commentRangeStart === commentRangeEnd;
|
|
774
|
-
oneLine ? status(( localize(
|
|
774
|
+
oneLine ? status(( localize(5348, "Line {0}", commentRangeStart))) : status(( localize(5349, "Lines {0} to {1}", commentRangeStart, commentRangeEnd)));
|
|
775
775
|
}
|
|
776
776
|
}
|
|
777
777
|
}
|
|
@@ -943,20 +943,20 @@ let CommentController = class CommentController {
|
|
|
943
943
|
const keybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getAriaLabel();
|
|
944
944
|
if (keybinding) {
|
|
945
945
|
status(( localize(
|
|
946
|
-
|
|
946
|
+
5350,
|
|
947
947
|
"Editor has commenting ranges, run the command Open Accessibility Help ({0}), for more information.",
|
|
948
948
|
keybinding
|
|
949
949
|
)));
|
|
950
950
|
}
|
|
951
951
|
else {
|
|
952
952
|
status(( localize(
|
|
953
|
-
|
|
953
|
+
5351,
|
|
954
954
|
"Editor has commenting ranges, run the command Open Accessibility Help, which is currently not triggerable via keybinding, for more information."
|
|
955
955
|
)));
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
958
|
else {
|
|
959
|
-
status(( localize(
|
|
959
|
+
status(( localize(5352, "Editor has commenting ranges.")));
|
|
960
960
|
}
|
|
961
961
|
}
|
|
962
962
|
}
|
|
@@ -1106,7 +1106,7 @@ let CommentController = class CommentController {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
else {
|
|
1108
1108
|
const picks = this.getCommentProvidersQuickPicks(newCommentInfos);
|
|
1109
|
-
return this.quickInputService.pick(picks, { placeHolder: ( localize(
|
|
1109
|
+
return this.quickInputService.pick(picks, { placeHolder: ( localize(5353, "Select Comment Provider")), matchOnDescription: true }).then(pick => {
|
|
1110
1110
|
if (!pick) {
|
|
1111
1111
|
return;
|
|
1112
1112
|
}
|