@codingame/monaco-vscode-api 1.83.2 → 1.83.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/extensions.d.ts +3 -3
- package/extensions.js +31 -33
- package/l10n.d.ts +4 -0
- package/l10n.js +10 -0
- package/missing-services.js +4 -2
- package/monaco-editor-treemending.patch +11880 -682
- package/monaco-treemending.js +8 -2
- package/package.json +8 -1
- package/service-override/extensions.js +2 -2
- package/service-override/layout.js +2 -2
- package/tools/l10n.js +177 -0
- package/tools.js +22 -1
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +2 -2
- package/vscode/src/vs/base/common/date.js +55 -55
- package/vscode/src/vs/base/common/jsonErrorMessages.js +10 -10
- package/vscode/src/vs/base/common/tfIdf.js +137 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/commandsQuickAccess.js +23 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +115 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +112 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +334 -0
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +10 -14
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +3 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +2 -2
- package/vscode/src/vs/platform/files/common/fileService.js +28 -37
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/files/common/io.js +2 -2
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +3 -9
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +300 -0
- package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +59 -0
- package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +212 -0
- package/vscode/src/vs/platform/request/common/request.js +2 -2
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -63
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +13 -32
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +4 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +38 -50
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +21 -53
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +4 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +6 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +4 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +2 -12
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +15 -9
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +2 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +6 -28
- package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +60 -0
- package/vscode/src/vs/workbench/api/common/extHostChat.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +3 -11
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostProgress.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +3 -7
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +2 -7
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +9 -34
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +898 -68
- package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +7 -7
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +32 -38
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +103 -13
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +2 -2
- package/vscode/src/vs/workbench/browser/editor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +12 -27
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +12 -12
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +2 -7
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +4 -7
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +42 -90
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +140 -272
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +115 -148
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +21 -33
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +7 -19
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +10 -26
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +7 -17
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +60 -81
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +4 -11
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +8 -8
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +69 -34
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +58 -34
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +3 -9
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +7 -11
- package/vscode/src/vs/workbench/browser/quickaccess.js +7 -3
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +186 -683
- package/vscode/src/vs/workbench/common/configuration.js +12 -15
- package/vscode/src/vs/workbench/common/contextkeys.js +272 -90
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +2 -2
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +2 -7
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +2 -6
- package/vscode/src/vs/workbench/common/editor.js +5 -5
- package/vscode/src/vs/workbench/common/theme.js +137 -527
- package/vscode/src/vs/workbench/common/views.js +4 -8
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +15 -55
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +3 -8
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +22 -60
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +9 -15
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +18 -48
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +5 -10
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +5 -13
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +8 -27
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +5 -17
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -15
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +7 -20
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +63 -216
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +4 -7
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +5 -8
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +8 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +5 -15
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +3 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +3 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +10 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +6 -15
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +5 -20
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +3 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +3 -20
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +9 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +4 -13
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +26 -77
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -17
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +7 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +10 -29
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +8 -8
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +25 -21
- package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +13 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +56 -98
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +96 -180
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +25 -79
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -15
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +4 -8
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +56 -19
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +76 -230
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -5
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -103
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +228 -99
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +5 -9
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +5 -5
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +15 -35
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +5 -8
- package/vscode/src/vs/workbench/contrib/files/common/files.js +27 -48
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -6
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +5 -8
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +112 -52
- package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +30 -96
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +42 -0
- package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +23 -29
- package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +3 -3
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +13 -16
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +15 -34
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +12 -17
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +26 -75
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +4 -19
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +4 -4
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +10 -41
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -14
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +26 -13
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +8 -6
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +5 -17
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +7 -28
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +21 -78
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +21 -53
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +2 -5
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +113 -348
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +2 -5
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +31 -1
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +1 -4
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +2 -2
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +2 -5
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +4 -4
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +10 -45
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +80 -296
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +6 -21
- package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +3 -6
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +24 -81
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +2 -2
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +11 -17
- package/vscode/src/vs/workbench/services/language/common/languageService.js +23 -98
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +9 -11
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -5
- package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +11 -23
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +2 -2
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +2 -7
- package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +2 -2
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +16 -53
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +50 -1
- package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +25 -99
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +6 -3
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +15 -3
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +2 -2
|
@@ -20,7 +20,7 @@ var EmptyView_1;
|
|
|
20
20
|
let EmptyView = class EmptyView extends ViewPane {
|
|
21
21
|
static { EmptyView_1 = this; }
|
|
22
22
|
static { this.ID = 'workbench.explorer.emptyView'; }
|
|
23
|
-
static { this.NAME =
|
|
23
|
+
static { this.NAME = nls.localizeWithPath('vs/workbench/contrib/files/browser/views/emptyView', 'noWorkspace', "No Folder Opened"); }
|
|
24
24
|
constructor(options, themeService, viewDescriptorService, instantiationService, keybindingService, contextMenuService, contextService, configurationService, labelService, contextKeyService, openerService, telemetryService) {
|
|
25
25
|
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService);
|
|
26
26
|
this.contextService = contextService;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
3
|
-
import {
|
|
3
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
4
4
|
import { IWorkspaceContextService } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
|
|
5
5
|
import { listInvalidItemForeground, listDeemphasizedForeground } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
6
6
|
import { DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
@@ -10,24 +10,20 @@ import { toErrorMessage } from 'monaco-editor/esm/vs/base/common/errorMessage.js
|
|
|
10
10
|
function provideDecorations(fileStat) {
|
|
11
11
|
if (fileStat.isRoot && fileStat.error) {
|
|
12
12
|
return {
|
|
13
|
-
tooltip: (
|
|
14
|
-
'canNotResolve',
|
|
15
|
-
"Unable to resolve workspace folder ({0})",
|
|
16
|
-
toErrorMessage(fileStat.error)
|
|
17
|
-
)),
|
|
13
|
+
tooltip: localizeWithPath('vs/workbench/contrib/files/browser/views/explorerDecorationsProvider', 'canNotResolve', "Unable to resolve workspace folder ({0})", toErrorMessage(fileStat.error)),
|
|
18
14
|
letter: '!',
|
|
19
15
|
color: listInvalidItemForeground,
|
|
20
16
|
};
|
|
21
17
|
}
|
|
22
18
|
if (fileStat.isSymbolicLink) {
|
|
23
19
|
return {
|
|
24
|
-
tooltip: (
|
|
20
|
+
tooltip: localizeWithPath('vs/workbench/contrib/files/browser/views/explorerDecorationsProvider', 'symbolicLlink', "Symbolic Link"),
|
|
25
21
|
letter: '\u2937'
|
|
26
22
|
};
|
|
27
23
|
}
|
|
28
24
|
if (fileStat.isUnknown) {
|
|
29
25
|
return {
|
|
30
|
-
tooltip: (
|
|
26
|
+
tooltip: localizeWithPath('vs/workbench/contrib/files/browser/views/explorerDecorationsProvider', 'unknown', "Unknown File Type"),
|
|
31
27
|
letter: '?'
|
|
32
28
|
};
|
|
33
29
|
}
|
|
@@ -41,7 +37,7 @@ function provideDecorations(fileStat) {
|
|
|
41
37
|
let ExplorerDecorationsProvider = class ExplorerDecorationsProvider {
|
|
42
38
|
constructor(explorerService, contextService) {
|
|
43
39
|
this.explorerService = explorerService;
|
|
44
|
-
this.label = (
|
|
40
|
+
this.label = localizeWithPath('vs/workbench/contrib/files/browser/views/explorerDecorationsProvider', 'label', "Explorer");
|
|
45
41
|
this._onDidChange = ( new Emitter());
|
|
46
42
|
this.toDispose = ( new DisposableStore());
|
|
47
43
|
this.toDispose.add(this._onDidChange);
|
|
@@ -171,7 +171,7 @@ let ExplorerView = class ExplorerView extends ViewPane {
|
|
|
171
171
|
const title = ( workspace.folders.map(folder => folder.name)).join();
|
|
172
172
|
titleElement.textContent = this.name;
|
|
173
173
|
titleElement.title = title;
|
|
174
|
-
this.ariaHeaderLabel =
|
|
174
|
+
this.ariaHeaderLabel = nls.localizeWithPath('vs/workbench/contrib/files/browser/views/explorerView', 'explorerSection', "Explorer Section: {0}", this.name);
|
|
175
175
|
titleElement.setAttribute('aria-label', this.ariaHeaderLabel);
|
|
176
176
|
};
|
|
177
177
|
this._register(this.contextService.onDidChangeWorkspaceName(setHeader));
|
|
@@ -723,7 +723,7 @@ registerAction2(class extends Action2 {
|
|
|
723
723
|
constructor() {
|
|
724
724
|
super({
|
|
725
725
|
id: 'workbench.files.action.createFileFromExplorer',
|
|
726
|
-
title:
|
|
726
|
+
title: nls.localizeWithPath('vs/workbench/contrib/files/browser/views/explorerView', 'createNewFile', "New File..."),
|
|
727
727
|
f1: false,
|
|
728
728
|
icon: Codicon.newFile,
|
|
729
729
|
precondition: ExplorerResourceNotReadonlyContext,
|
|
@@ -744,7 +744,7 @@ registerAction2(class extends Action2 {
|
|
|
744
744
|
constructor() {
|
|
745
745
|
super({
|
|
746
746
|
id: 'workbench.files.action.createFolderFromExplorer',
|
|
747
|
-
title:
|
|
747
|
+
title: nls.localizeWithPath('vs/workbench/contrib/files/browser/views/explorerView', 'createNewFolder', "New Folder..."),
|
|
748
748
|
f1: false,
|
|
749
749
|
icon: Codicon.newFolder,
|
|
750
750
|
precondition: ExplorerResourceNotReadonlyContext,
|
|
@@ -765,7 +765,7 @@ registerAction2(class extends Action2 {
|
|
|
765
765
|
constructor() {
|
|
766
766
|
super({
|
|
767
767
|
id: 'workbench.files.action.refreshFilesExplorer',
|
|
768
|
-
title: { value:
|
|
768
|
+
title: { value: nls.localizeWithPath('vs/workbench/contrib/files/browser/views/explorerView', 'refreshExplorer', "Refresh Explorer"), original: 'Refresh Explorer' },
|
|
769
769
|
f1: true,
|
|
770
770
|
icon: Codicon.refresh,
|
|
771
771
|
menu: {
|
|
@@ -787,7 +787,7 @@ registerAction2(class extends Action2 {
|
|
|
787
787
|
constructor() {
|
|
788
788
|
super({
|
|
789
789
|
id: 'workbench.files.action.collapseExplorerFolders',
|
|
790
|
-
title: { value:
|
|
790
|
+
title: { value: nls.localizeWithPath('vs/workbench/contrib/files/browser/views/explorerView', 'collapseExplorerFolders', "Collapse Folders in Explorer"), original: 'Collapse Folders in Explorer' },
|
|
791
791
|
f1: true,
|
|
792
792
|
icon: Codicon.collapseAll,
|
|
793
793
|
menu: {
|
|
@@ -12,7 +12,7 @@ import { IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeS
|
|
|
12
12
|
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
13
13
|
import { dirname, joinPath, distinctParents } from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
14
14
|
import { InputBox } from 'monaco-editor/esm/vs/base/browser/ui/inputbox/inputBox.js';
|
|
15
|
-
import {
|
|
15
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
16
16
|
import { createSingleCallFunction } from 'monaco-editor/esm/vs/base/common/functional.js';
|
|
17
17
|
import { equals, deepClone } from 'monaco-editor/esm/vs/base/common/objects.js';
|
|
18
18
|
import * as path from 'monaco-editor/esm/vs/base/common/path.js';
|
|
@@ -295,7 +295,7 @@ let FilesRenderer = class FilesRenderer {
|
|
|
295
295
|
updateOffsetStyles();
|
|
296
296
|
}
|
|
297
297
|
getWidgetAriaLabel() {
|
|
298
|
-
return (
|
|
298
|
+
return localizeWithPath('vs/workbench/contrib/files/browser/views/explorerViewer', 'treeAriaLabel', "Files Explorer");
|
|
299
299
|
}
|
|
300
300
|
get templateId() {
|
|
301
301
|
return FilesRenderer_1.ID;
|
|
@@ -412,10 +412,7 @@ let FilesRenderer = class FilesRenderer {
|
|
|
412
412
|
};
|
|
413
413
|
}
|
|
414
414
|
},
|
|
415
|
-
ariaLabel: (
|
|
416
|
-
'fileInputAriaLabel',
|
|
417
|
-
"Type file name. Press Enter to confirm or Escape to cancel."
|
|
418
|
-
)),
|
|
415
|
+
ariaLabel: localizeWithPath('vs/workbench/contrib/files/browser/views/explorerViewer', 'fileInputAriaLabel', "Type file name. Press Enter to confirm or Escape to cancel."),
|
|
419
416
|
inputBoxStyles: defaultInputBoxStyles
|
|
420
417
|
}));
|
|
421
418
|
const lastDot = value.lastIndexOf('.');
|
|
@@ -1014,35 +1011,18 @@ let FileDragAndDrop = class FileDragAndDrop {
|
|
|
1014
1011
|
const isCopy = (originalEvent.ctrlKey && !isMacintosh) || (originalEvent.altKey && isMacintosh);
|
|
1015
1012
|
const confirmDragAndDrop = !isCopy && this.configurationService.getValue(FileDragAndDrop_1.CONFIRM_DND_SETTING_KEY);
|
|
1016
1013
|
if (confirmDragAndDrop) {
|
|
1017
|
-
const message = items.length > 1 && items.every(s => s.isRoot) ? (
|
|
1018
|
-
'
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
: items.length > 1 ? ( localize(
|
|
1022
|
-
'confirmMultiMove',
|
|
1023
|
-
"Are you sure you want to move the following {0} files into '{1}'?",
|
|
1024
|
-
items.length,
|
|
1025
|
-
target.name
|
|
1026
|
-
))
|
|
1027
|
-
: items[0].isRoot ? ( localize(
|
|
1028
|
-
'confirmRootMove',
|
|
1029
|
-
"Are you sure you want to change the order of root folder '{0}' in your workspace?",
|
|
1030
|
-
items[0].name
|
|
1031
|
-
))
|
|
1032
|
-
: ( localize(
|
|
1033
|
-
'confirmMove',
|
|
1034
|
-
"Are you sure you want to move '{0}' into '{1}'?",
|
|
1035
|
-
items[0].name,
|
|
1036
|
-
target.name
|
|
1037
|
-
));
|
|
1014
|
+
const message = items.length > 1 && items.every(s => s.isRoot) ? localizeWithPath('vs/workbench/contrib/files/browser/views/explorerViewer', 'confirmRootsMove', "Are you sure you want to change the order of multiple root folders in your workspace?")
|
|
1015
|
+
: items.length > 1 ? localizeWithPath('vs/workbench/contrib/files/browser/views/explorerViewer', 'confirmMultiMove', "Are you sure you want to move the following {0} files into '{1}'?", items.length, target.name)
|
|
1016
|
+
: items[0].isRoot ? localizeWithPath('vs/workbench/contrib/files/browser/views/explorerViewer', 'confirmRootMove', "Are you sure you want to change the order of root folder '{0}' in your workspace?", items[0].name)
|
|
1017
|
+
: localizeWithPath('vs/workbench/contrib/files/browser/views/explorerViewer', 'confirmMove', "Are you sure you want to move '{0}' into '{1}'?", items[0].name, target.name);
|
|
1038
1018
|
const detail = items.length > 1 && !items.every(s => s.isRoot) ? getFileNamesMessage(( items.map(i => i.resource))) : undefined;
|
|
1039
1019
|
const confirmation = await this.dialogService.confirm({
|
|
1040
1020
|
message,
|
|
1041
1021
|
detail,
|
|
1042
1022
|
checkbox: {
|
|
1043
|
-
label: (
|
|
1023
|
+
label: localizeWithPath('vs/workbench/contrib/files/browser/views/explorerViewer', 'doNotAskAgain', "Do not ask me again")
|
|
1044
1024
|
},
|
|
1045
|
-
primaryButton: (
|
|
1025
|
+
primaryButton: localizeWithPath('vs/workbench/contrib/files/browser/views/explorerViewer', { key: 'moveButtonLabel', comment: ['&& denotes a mnemonic'] }, "&&Move")
|
|
1046
1026
|
});
|
|
1047
1027
|
if (!confirmation.confirmed) {
|
|
1048
1028
|
return;
|
|
@@ -1102,8 +1082,8 @@ let FileDragAndDrop = class FileDragAndDrop {
|
|
|
1102
1082
|
const labelSuffix = getFileOrFolderLabelSuffix(sources);
|
|
1103
1083
|
await this.explorerService.applyBulkEdit(resourceFileEdits, {
|
|
1104
1084
|
confirmBeforeUndo: explorerConfig.confirmUndo === "default" || explorerConfig.confirmUndo === "verbose" ,
|
|
1105
|
-
undoLabel: (
|
|
1106
|
-
progressLabel: (
|
|
1085
|
+
undoLabel: localizeWithPath('vs/workbench/contrib/files/browser/views/explorerViewer', 'copy', "Copy {0}", labelSuffix),
|
|
1086
|
+
progressLabel: localizeWithPath('vs/workbench/contrib/files/browser/views/explorerViewer', 'copying', "Copying {0}", labelSuffix),
|
|
1107
1087
|
});
|
|
1108
1088
|
const editors = ( resourceFileEdits.filter(edit => {
|
|
1109
1089
|
const item = edit.newResource ? this.explorerService.findClosest(edit.newResource) : undefined;
|
|
@@ -1116,8 +1096,8 @@ let FileDragAndDrop = class FileDragAndDrop {
|
|
|
1116
1096
|
const labelSuffix = getFileOrFolderLabelSuffix(sources);
|
|
1117
1097
|
const options = {
|
|
1118
1098
|
confirmBeforeUndo: this.configurationService.getValue().explorer.confirmUndo === "verbose" ,
|
|
1119
|
-
undoLabel: (
|
|
1120
|
-
progressLabel: (
|
|
1099
|
+
undoLabel: localizeWithPath('vs/workbench/contrib/files/browser/views/explorerViewer', 'move', "Move {0}", labelSuffix),
|
|
1100
|
+
progressLabel: localizeWithPath('vs/workbench/contrib/files/browser/views/explorerViewer', 'moving', "Moving {0}", labelSuffix)
|
|
1121
1101
|
};
|
|
1122
1102
|
try {
|
|
1123
1103
|
await this.explorerService.applyBulkEdit(resourceFileEdits, options);
|
|
@@ -1213,10 +1193,10 @@ function getFileOrFolderLabelSuffix(items) {
|
|
|
1213
1193
|
return items[0].name;
|
|
1214
1194
|
}
|
|
1215
1195
|
if (items.every(i => i.isDirectory)) {
|
|
1216
|
-
return (
|
|
1196
|
+
return localizeWithPath('vs/workbench/contrib/files/browser/views/explorerViewer', 'numberOfFolders', "{0} folders", items.length);
|
|
1217
1197
|
}
|
|
1218
1198
|
if (items.every(i => !i.isDirectory)) {
|
|
1219
|
-
return (
|
|
1199
|
+
return localizeWithPath('vs/workbench/contrib/files/browser/views/explorerViewer', 'numberOfFiles', "{0} files", items.length);
|
|
1220
1200
|
}
|
|
1221
1201
|
return `${items.length} files and folders`;
|
|
1222
1202
|
}
|
|
@@ -44,7 +44,7 @@ let OpenEditorsView = class OpenEditorsView extends ViewPane {
|
|
|
44
44
|
static { this.DEFAULT_VISIBLE_OPEN_EDITORS = 9; }
|
|
45
45
|
static { this.DEFAULT_MIN_VISIBLE_OPEN_EDITORS = 0; }
|
|
46
46
|
static { this.ID = 'workbench.explorer.openEditorsView'; }
|
|
47
|
-
static { this.NAME =
|
|
47
|
+
static { this.NAME = nls.localizeWithPath('vs/workbench/contrib/files/browser/views/openEditorsView', { key: 'openEditors', comment: ['Open is an adjective'] }, "Open Editors"); }
|
|
48
48
|
constructor(options, instantiationService, viewDescriptorService, contextMenuService, editorGroupService, configurationService, keybindingService, contextKeyService, themeService, telemetryService, workingCopyService, filesConfigurationService, openerService) {
|
|
49
49
|
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService);
|
|
50
50
|
this.editorGroupService = editorGroupService;
|
|
@@ -366,7 +366,7 @@ let OpenEditorsView = class OpenEditorsView extends ViewPane {
|
|
|
366
366
|
this.dirtyCountElement.classList.add('hidden');
|
|
367
367
|
}
|
|
368
368
|
else {
|
|
369
|
-
this.dirtyCountElement.textContent =
|
|
369
|
+
this.dirtyCountElement.textContent = nls.localizeWithPath('vs/workbench/contrib/files/browser/views/openEditorsView', 'dirtyCounter', "{0} unsaved", dirty);
|
|
370
370
|
this.dirtyCountElement.classList.remove('hidden');
|
|
371
371
|
}
|
|
372
372
|
}
|
|
@@ -585,7 +585,7 @@ OpenEditorsDragAndDrop.__decorator = ( __decorate([
|
|
|
585
585
|
], OpenEditorsDragAndDrop.prototype, "dropHandler", null));
|
|
586
586
|
class OpenEditorsAccessibilityProvider {
|
|
587
587
|
getWidgetAriaLabel() {
|
|
588
|
-
return
|
|
588
|
+
return nls.localizeWithPath('vs/workbench/contrib/files/browser/views/openEditorsView', 'openEditors', "Open Editors");
|
|
589
589
|
}
|
|
590
590
|
getAriaLabel(element) {
|
|
591
591
|
if (element instanceof OpenEditor) {
|
|
@@ -601,11 +601,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
601
601
|
id: toggleEditorGroupLayoutId,
|
|
602
602
|
title: {
|
|
603
603
|
original: 'Flip Layout',
|
|
604
|
-
value:
|
|
605
|
-
mnemonicTitle:
|
|
606
|
-
{ key: 'miToggleEditorLayout', comment: ['&& denotes a mnemonic'] },
|
|
607
|
-
"Flip &&Layout"
|
|
608
|
-
))
|
|
604
|
+
value: nls.localizeWithPath('vs/workbench/contrib/files/browser/views/openEditorsView', 'miToggleEditorLayoutWithoutMnemonic', "Flip Layout"),
|
|
605
|
+
mnemonicTitle: nls.localizeWithPath('vs/workbench/contrib/files/browser/views/openEditorsView', { key: 'miToggleEditorLayout', comment: ['&& denotes a mnemonic'] }, "Flip &&Layout")
|
|
609
606
|
}
|
|
610
607
|
},
|
|
611
608
|
order: 1
|
|
@@ -1,109 +1,88 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { EditorResourceAccessor, SideBySideEditor } from '../../../common/editor.js';
|
|
3
3
|
import { IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
|
|
4
|
-
import {
|
|
4
|
+
import { RawContextKey, ContextKeyExpr } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
5
5
|
import { Disposable, MutableDisposable, DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
6
6
|
import { IModelService } from 'monaco-editor/esm/vs/editor/common/services/model.js';
|
|
7
7
|
import { ILanguageService } from 'monaco-editor/esm/vs/editor/common/languages/language.js';
|
|
8
8
|
import { ITextFileService } from '../../../services/textfile/common/textfiles.js';
|
|
9
9
|
import { InputFocusedContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkeys.js';
|
|
10
10
|
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
11
|
-
import {
|
|
11
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
12
12
|
var TextFileContentProvider_1;
|
|
13
13
|
const VIEWLET_ID = 'workbench.view.explorer';
|
|
14
14
|
const VIEW_ID = 'workbench.explorer.fileView';
|
|
15
15
|
const ExplorerViewletVisibleContext = ( new RawContextKey(
|
|
16
16
|
'explorerViewletVisible',
|
|
17
17
|
true,
|
|
18
|
-
{ type: 'boolean', description: (
|
|
18
|
+
{ type: 'boolean', description: localizeWithPath('vs/workbench/contrib/files/common/files', 'explorerViewletVisible', "True when the EXPLORER viewlet is visible.") }
|
|
19
19
|
));
|
|
20
|
-
const FoldersViewVisibleContext = ( new RawContextKey(
|
|
20
|
+
const FoldersViewVisibleContext = ( new RawContextKey(
|
|
21
21
|
'foldersViewVisible',
|
|
22
|
-
|
|
23
|
-
)) }
|
|
22
|
+
true,
|
|
23
|
+
{ type: 'boolean', description: localizeWithPath('vs/workbench/contrib/files/common/files', 'foldersViewVisible', "True when the FOLDERS view (the file tree within the explorer view container) is visible.") }
|
|
24
|
+
));
|
|
24
25
|
const ExplorerFolderContext = ( new RawContextKey(
|
|
25
26
|
'explorerResourceIsFolder',
|
|
26
27
|
false,
|
|
27
|
-
{ type: 'boolean', description: (
|
|
28
|
-
'explorerResourceIsFolder',
|
|
29
|
-
"True when the focused item in the EXPLORER is a folder."
|
|
30
|
-
)) }
|
|
28
|
+
{ type: 'boolean', description: localizeWithPath('vs/workbench/contrib/files/common/files', 'explorerResourceIsFolder', "True when the focused item in the EXPLORER is a folder.") }
|
|
31
29
|
));
|
|
32
30
|
const ExplorerResourceReadonlyContext = ( new RawContextKey(
|
|
33
31
|
'explorerResourceReadonly',
|
|
34
32
|
false,
|
|
35
|
-
{ type: 'boolean', description: (
|
|
36
|
-
'explorerResourceReadonly',
|
|
37
|
-
"True when the focused item in the EXPLORER is read-only."
|
|
38
|
-
)) }
|
|
33
|
+
{ type: 'boolean', description: localizeWithPath('vs/workbench/contrib/files/common/files', 'explorerResourceReadonly', "True when the focused item in the EXPLORER is read-only.") }
|
|
39
34
|
));
|
|
40
35
|
const ExplorerResourceNotReadonlyContext = ( ExplorerResourceReadonlyContext.toNegated());
|
|
41
36
|
const ExplorerResourceAvailableEditorIdsContext = ( new RawContextKey('explorerResourceAvailableEditorIds', ''));
|
|
42
37
|
const ExplorerRootContext = ( new RawContextKey(
|
|
43
38
|
'explorerResourceIsRoot',
|
|
44
39
|
false,
|
|
45
|
-
{ type: 'boolean', description: (
|
|
46
|
-
'explorerResourceIsRoot',
|
|
47
|
-
"True when the focused item in the EXPLORER is a root folder."
|
|
48
|
-
)) }
|
|
40
|
+
{ type: 'boolean', description: localizeWithPath('vs/workbench/contrib/files/common/files', 'explorerResourceIsRoot', "True when the focused item in the EXPLORER is a root folder.") }
|
|
49
41
|
));
|
|
50
42
|
const ExplorerResourceCut = ( new RawContextKey(
|
|
51
43
|
'explorerResourceCut',
|
|
52
44
|
false,
|
|
53
|
-
{ type: 'boolean', description: (
|
|
54
|
-
'explorerResourceCut',
|
|
55
|
-
"True when an item in the EXPLORER has been cut for cut and paste."
|
|
56
|
-
)) }
|
|
45
|
+
{ type: 'boolean', description: localizeWithPath('vs/workbench/contrib/files/common/files', 'explorerResourceCut', "True when an item in the EXPLORER has been cut for cut and paste.") }
|
|
57
46
|
));
|
|
58
47
|
const ExplorerResourceMoveableToTrash = ( new RawContextKey(
|
|
59
48
|
'explorerResourceMoveableToTrash',
|
|
60
49
|
false,
|
|
61
|
-
{ type: 'boolean', description: (
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
50
|
+
{ type: 'boolean', description: localizeWithPath('vs/workbench/contrib/files/common/files', 'explorerResourceMoveableToTrash', "True when the focused item in the EXPLORER can be moved to trash.") }
|
|
51
|
+
));
|
|
52
|
+
const FilesExplorerFocusedContext = ( new RawContextKey(
|
|
53
|
+
'filesExplorerFocus',
|
|
54
|
+
true,
|
|
55
|
+
{ type: 'boolean', description: localizeWithPath('vs/workbench/contrib/files/common/files', 'filesExplorerFocus', "True when the focus is inside the EXPLORER view.") }
|
|
56
|
+
));
|
|
57
|
+
const OpenEditorsFocusedContext = ( new RawContextKey(
|
|
58
|
+
'openEditorsFocus',
|
|
59
|
+
true,
|
|
60
|
+
{ type: 'boolean', description: localizeWithPath('vs/workbench/contrib/files/common/files', 'openEditorsFocus', "True when the focus is inside the OPEN EDITORS view.") }
|
|
65
61
|
));
|
|
66
|
-
const FilesExplorerFocusedContext = ( new RawContextKey('filesExplorerFocus', true, { type: 'boolean', description: ( localize('filesExplorerFocus', "True when the focus is inside the EXPLORER view.")) }));
|
|
67
|
-
const OpenEditorsFocusedContext = ( new RawContextKey('openEditorsFocus', true, { type: 'boolean', description: ( localize('openEditorsFocus', "True when the focus is inside the OPEN EDITORS view.")) }));
|
|
68
62
|
const ExplorerFocusedContext = ( new RawContextKey(
|
|
69
63
|
'explorerViewletFocus',
|
|
70
64
|
true,
|
|
71
|
-
{ type: 'boolean', description: (
|
|
72
|
-
'explorerViewletFocus',
|
|
73
|
-
"True when the focus is inside the EXPLORER viewlet."
|
|
74
|
-
)) }
|
|
65
|
+
{ type: 'boolean', description: localizeWithPath('vs/workbench/contrib/files/common/files', 'explorerViewletFocus', "True when the focus is inside the EXPLORER viewlet.") }
|
|
75
66
|
));
|
|
76
67
|
const ExplorerCompressedFocusContext = ( new RawContextKey(
|
|
77
68
|
'explorerViewletCompressedFocus',
|
|
78
69
|
true,
|
|
79
|
-
{ type: 'boolean', description: (
|
|
80
|
-
'explorerViewletCompressedFocus',
|
|
81
|
-
"True when the focused item in the EXPLORER view is a compact item."
|
|
82
|
-
)) }
|
|
70
|
+
{ type: 'boolean', description: localizeWithPath('vs/workbench/contrib/files/common/files', 'explorerViewletCompressedFocus', "True when the focused item in the EXPLORER view is a compact item.") }
|
|
83
71
|
));
|
|
84
72
|
const ExplorerCompressedFirstFocusContext = ( new RawContextKey(
|
|
85
73
|
'explorerViewletCompressedFirstFocus',
|
|
86
74
|
true,
|
|
87
|
-
{ type: 'boolean', description: (
|
|
88
|
-
'explorerViewletCompressedFirstFocus',
|
|
89
|
-
"True when the focus is inside a compact item's first part in the EXPLORER view."
|
|
90
|
-
)) }
|
|
75
|
+
{ type: 'boolean', description: localizeWithPath('vs/workbench/contrib/files/common/files', 'explorerViewletCompressedFirstFocus', "True when the focus is inside a compact item's first part in the EXPLORER view.") }
|
|
91
76
|
));
|
|
92
77
|
const ExplorerCompressedLastFocusContext = ( new RawContextKey(
|
|
93
78
|
'explorerViewletCompressedLastFocus',
|
|
94
79
|
true,
|
|
95
|
-
{ type: 'boolean', description: (
|
|
96
|
-
'explorerViewletCompressedLastFocus',
|
|
97
|
-
"True when the focus is inside a compact item's last part in the EXPLORER view."
|
|
98
|
-
)) }
|
|
80
|
+
{ type: 'boolean', description: localizeWithPath('vs/workbench/contrib/files/common/files', 'explorerViewletCompressedLastFocus', "True when the focus is inside a compact item's last part in the EXPLORER view.") }
|
|
99
81
|
));
|
|
100
82
|
const ViewHasSomeCollapsibleRootItemContext = ( new RawContextKey(
|
|
101
83
|
'viewHasSomeCollapsibleItem',
|
|
102
84
|
false,
|
|
103
|
-
{ type: 'boolean', description: (
|
|
104
|
-
'viewHasSomeCollapsibleItem',
|
|
105
|
-
"True when a workspace in the EXPLORER view has some collapsible root child."
|
|
106
|
-
)) }
|
|
85
|
+
{ type: 'boolean', description: localizeWithPath('vs/workbench/contrib/files/common/files', 'viewHasSomeCollapsibleItem', "True when a workspace in the EXPLORER view has some collapsible root child.") }
|
|
107
86
|
));
|
|
108
87
|
const FilesExplorerFocusCondition = ( ContextKeyExpr.and(
|
|
109
88
|
FoldersViewVisibleContext,
|
|
@@ -29,8 +29,8 @@ let DefaultFoldingRangeProvider = class DefaultFoldingRangeProvider extends Disp
|
|
|
29
29
|
DefaultFoldingRangeProvider_1.extensionItemLabels.length = 0;
|
|
30
30
|
DefaultFoldingRangeProvider_1.extensionDescriptions.length = 0;
|
|
31
31
|
DefaultFoldingRangeProvider_1.extensionIds.push(null);
|
|
32
|
-
DefaultFoldingRangeProvider_1.extensionItemLabels.push(
|
|
33
|
-
DefaultFoldingRangeProvider_1.extensionDescriptions.push(
|
|
32
|
+
DefaultFoldingRangeProvider_1.extensionItemLabels.push(nls.localizeWithPath('vs/workbench/contrib/folding/browser/folding.contribution', 'null', 'All'));
|
|
33
|
+
DefaultFoldingRangeProvider_1.extensionDescriptions.push(nls.localizeWithPath('vs/workbench/contrib/folding/browser/folding.contribution', 'nullFormatterDescription', "All active folding range providers"));
|
|
34
34
|
const languageExtensions = [];
|
|
35
35
|
const otherExtensions = [];
|
|
36
36
|
for (const extension of this._extensionService.extensions) {
|
|
@@ -71,10 +71,7 @@ DefaultFoldingRangeProvider = DefaultFoldingRangeProvider_1 = ( __decorate([
|
|
|
71
71
|
...editorConfigurationBaseNode,
|
|
72
72
|
properties: {
|
|
73
73
|
[DefaultFoldingRangeProvider.configName]: {
|
|
74
|
-
description: (
|
|
75
|
-
'formatter.default',
|
|
76
|
-
"Defines a default folding range provider that takes precedence over all other folding range providers. Must be the identifier of an extension contributing a folding range provider."
|
|
77
|
-
)),
|
|
74
|
+
description: nls.localizeWithPath('vs/workbench/contrib/folding/browser/folding.contribution', 'formatter.default', "Defines a default folding range provider that takes precedence over all other folding range providers. Must be the identifier of an extension contributing a folding range provider."),
|
|
78
75
|
type: ['string', 'null'],
|
|
79
76
|
default: null,
|
|
80
77
|
enum: DefaultFoldingRangeProvider.extensionIds,
|
|
@@ -17,7 +17,7 @@ registerEditorAction(class FormatModifiedAction extends EditorAction {
|
|
|
17
17
|
constructor() {
|
|
18
18
|
super({
|
|
19
19
|
id: 'editor.action.formatChanges',
|
|
20
|
-
label:
|
|
20
|
+
label: nls.localizeWithPath('vs/workbench/contrib/format/browser/formatModified', 'formatChanges', "Format Modified Lines"),
|
|
21
21
|
alias: 'Format Modified Lines',
|
|
22
22
|
precondition: ( ContextKeyExpr.and(
|
|
23
23
|
EditorContextKeys.writable,
|
|
@@ -6,7 +6,7 @@ import { EditorAction2, registerEditorContribution } from 'monaco-editor/esm/vs/
|
|
|
6
6
|
import { EditorContextKeys } from 'monaco-editor/esm/vs/editor/common/editorContextKeys.js';
|
|
7
7
|
import { asCommandLink } from 'monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHints.js';
|
|
8
8
|
import { InlayHintsController } from 'monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHintsController.js';
|
|
9
|
-
import {
|
|
9
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
10
10
|
import { registerAction2 } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
|
|
11
11
|
import { AudioCue, IAudioCueService } from 'monaco-editor/esm/vs/platform/audioCues/browser/audioCueService.js';
|
|
12
12
|
import { RawContextKey, IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
@@ -18,10 +18,7 @@ let InlayHintsAccessibility = class InlayHintsAccessibility {
|
|
|
18
18
|
static { this.IsReading = ( new RawContextKey(
|
|
19
19
|
'isReadingLineWithInlayHints',
|
|
20
20
|
false,
|
|
21
|
-
{ type: 'boolean', description: (
|
|
22
|
-
'isReadingLineWithInlayHints',
|
|
23
|
-
"Whether the current line and its inlay hints are currently focused"
|
|
24
|
-
)) }
|
|
21
|
+
{ type: 'boolean', description: localizeWithPath('vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty', 'isReadingLineWithInlayHints', "Whether the current line and its inlay hints are currently focused") }
|
|
25
22
|
)); }
|
|
26
23
|
static { this.ID = 'editor.contrib.InlayHintsAccessibility'; }
|
|
27
24
|
static get(editor) {
|
|
@@ -36,7 +33,7 @@ let InlayHintsAccessibility = class InlayHintsAccessibility {
|
|
|
36
33
|
this._ariaElement.style.position = 'fixed';
|
|
37
34
|
this._ariaElement.className = 'inlayhint-accessibility-element';
|
|
38
35
|
this._ariaElement.tabIndex = 0;
|
|
39
|
-
this._ariaElement.setAttribute('aria-description', (
|
|
36
|
+
this._ariaElement.setAttribute('aria-description', localizeWithPath('vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty', 'description', "Code with Inlay Hint Information"));
|
|
40
37
|
this._ctxIsReading = InlayHintsAccessibility_1.IsReading.bindTo(contextKeyService);
|
|
41
38
|
}
|
|
42
39
|
dispose() {
|
|
@@ -137,7 +134,7 @@ registerAction2(class StartReadHints extends EditorAction2 {
|
|
|
137
134
|
super({
|
|
138
135
|
id: 'inlayHints.startReadingLineWithHint',
|
|
139
136
|
title: {
|
|
140
|
-
value: (
|
|
137
|
+
value: localizeWithPath('vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty', 'read.title', 'Read Line With Inline Hints'),
|
|
141
138
|
original: 'Read Line With Inline Hints'
|
|
142
139
|
},
|
|
143
140
|
precondition: EditorContextKeys.hasInlayHintsProvider,
|
|
@@ -154,7 +151,7 @@ registerAction2(class StopReadHints extends EditorAction2 {
|
|
|
154
151
|
super({
|
|
155
152
|
id: 'inlayHints.stopReadingLineWithHint',
|
|
156
153
|
title: {
|
|
157
|
-
value: (
|
|
154
|
+
value: localizeWithPath('vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty', 'stop.title', 'Stop Inlay Hints Reading'),
|
|
158
155
|
original: 'Stop Inlay Hints Reading'
|
|
159
156
|
},
|
|
160
157
|
precondition: InlayHintsAccessibility.IsReading,
|