@codingame/monaco-vscode-api 10.0.1 → 10.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.js +1 -1
- package/missing-services.js +7062 -1575
- package/monaco.d.ts +1 -1
- package/monaco.js +1 -1
- package/package.json +8 -8
- package/services.js +2 -2
- package/vscode/src/vs/base/browser/ui/button/button.js +1 -1
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +6 -6
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +3 -3
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -2
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +6 -6
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +9 -9
- package/vscode/src/vs/base/common/date.js +61 -61
- package/vscode/src/vs/base/common/errorMessage.js +15 -6
- package/vscode/src/vs/base/common/errors.d.ts +3 -1
- package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +1 -1
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +7 -7
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +51 -51
- package/vscode/src/vs/editor/common/config/editorOptions.js +368 -368
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/standaloneStrings.js +32 -32
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.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/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +23 -23
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.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/symbolIcons/browser/symbolIcons.js +33 -33
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +42 -23
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +49 -49
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -11
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +2 -2
- package/vscode/src/vs/platform/request/common/request.js +14 -14
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +129 -129
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- 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/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +61 -61
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +17 -17
- 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/notifications/notificationsCommands.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -7
- package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +217 -217
- package/vscode/src/vs/workbench/common/configuration.js +10 -10
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +131 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCodeCitationContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +10 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +4 -4
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugExpressionRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +63 -63
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +173 -173
- 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/extensionsUtils.js +3 -3
- 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._configuration.js +52 -52
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +11 -9
- 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/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +6 -6
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
- 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/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +10 -10
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +50 -50
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +23 -23
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +1 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
- 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/variableResolver.js +15 -15
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
|
@@ -50,6 +50,7 @@ import { basename, relativePath } from '../../../../../base/common/resources.js'
|
|
|
50
50
|
import { IFilesConfigurationService } from '../../../../services/filesConfiguration/common/filesConfigurationService.service.js';
|
|
51
51
|
import { getExcludes } from '../../../../services/search/common/search.js';
|
|
52
52
|
import { ISearchService } from '../../../../services/search/common/search.service.js';
|
|
53
|
+
import { Schemas } from '../../../../../base/common/network.js';
|
|
53
54
|
var ExplorerView_1;
|
|
54
55
|
function hasExpandedRootChild(tree, treeInput) {
|
|
55
56
|
for (const folder of treeInput) {
|
|
@@ -134,7 +135,7 @@ let ExplorerFindProvider = class ExplorerFindProvider {
|
|
|
134
135
|
this.progressService = progressService;
|
|
135
136
|
this.explorerService = explorerService;
|
|
136
137
|
this.toggles = [explorerFuzzyMatch];
|
|
137
|
-
this.placeholder = ( localize(
|
|
138
|
+
this.placeholder = ( localize(10186, "Type to search files"));
|
|
138
139
|
}
|
|
139
140
|
async *getFindResults(pattern, sessionId, token, toggleStates) {
|
|
140
141
|
const isFuzzyMatch = toggleStates.find(t => t.id === explorerFuzzyMatch.id)?.isChecked;
|
|
@@ -291,7 +292,7 @@ let ExplorerView = class ExplorerView extends ViewPane {
|
|
|
291
292
|
const setHeader = () => {
|
|
292
293
|
titleElement.textContent = this.name;
|
|
293
294
|
this.updateTitle(this.name);
|
|
294
|
-
this.ariaHeaderLabel = ( localize(
|
|
295
|
+
this.ariaHeaderLabel = ( localize(10187, "Explorer Section: {0}", this.name));
|
|
295
296
|
titleElement.setAttribute('aria-label', this.ariaHeaderLabel);
|
|
296
297
|
};
|
|
297
298
|
this._register(this.contextService.onDidChangeWorkspaceName(setHeader));
|
|
@@ -417,6 +418,7 @@ let ExplorerView = class ExplorerView extends ViewPane {
|
|
|
417
418
|
this._register(createFileIconThemableTreeContainerScope(container, this.themeService));
|
|
418
419
|
const isCompressionEnabled = () => this.configurationService.getValue('explorer.compactFolders');
|
|
419
420
|
const getFileNestingSettings = (item) => this.configurationService.getValue({ resource: item?.root.resource }).explorer.fileNesting;
|
|
421
|
+
const rootsSupportFindProvider = this.explorerService.roots.every(root => root.resource.scheme === Schemas.file || root.resource.scheme === Schemas.vscodeRemote);
|
|
420
422
|
this.tree = this.instantiationService.createInstance(WorkbenchCompressibleAsyncDataTree, 'FileExplorer', container, ( (new ExplorerDelegate())), ( (new ExplorerCompressionDelegate())), [this.renderer], this.instantiationService.createInstance(ExplorerDataSource, this.filter), {
|
|
421
423
|
compressionEnabled: isCompressionEnabled(),
|
|
422
424
|
accessibilityProvider: this.renderer,
|
|
@@ -461,7 +463,7 @@ let ExplorerView = class ExplorerView extends ViewPane {
|
|
|
461
463
|
},
|
|
462
464
|
paddingBottom: ExplorerDelegate.ITEM_HEIGHT,
|
|
463
465
|
overrideStyles: this.getLocationBasedColors().listOverrideStyles,
|
|
464
|
-
findResultsProvider: this.instantiationService.createInstance(ExplorerFindProvider),
|
|
466
|
+
findResultsProvider: rootsSupportFindProvider ? this.instantiationService.createInstance(ExplorerFindProvider) : undefined,
|
|
465
467
|
});
|
|
466
468
|
this._register(this.tree);
|
|
467
469
|
this._register(this.themeService.onDidColorThemeChange(() => this.tree.rerender()));
|
|
@@ -882,7 +884,7 @@ registerAction2(class extends Action2 {
|
|
|
882
884
|
constructor() {
|
|
883
885
|
super({
|
|
884
886
|
id: 'workbench.files.action.createFileFromExplorer',
|
|
885
|
-
title: ( localize(
|
|
887
|
+
title: ( localize(10188, "New File...")),
|
|
886
888
|
f1: false,
|
|
887
889
|
icon: Codicon.newFile,
|
|
888
890
|
precondition: ExplorerResourceNotReadonlyContext,
|
|
@@ -903,7 +905,7 @@ registerAction2(class extends Action2 {
|
|
|
903
905
|
constructor() {
|
|
904
906
|
super({
|
|
905
907
|
id: 'workbench.files.action.createFolderFromExplorer',
|
|
906
|
-
title: ( localize(
|
|
908
|
+
title: ( localize(10189, "New Folder...")),
|
|
907
909
|
f1: false,
|
|
908
910
|
icon: Codicon.newFolder,
|
|
909
911
|
precondition: ExplorerResourceNotReadonlyContext,
|
|
@@ -924,7 +926,7 @@ registerAction2(class extends Action2 {
|
|
|
924
926
|
constructor() {
|
|
925
927
|
super({
|
|
926
928
|
id: 'workbench.files.action.refreshFilesExplorer',
|
|
927
|
-
title: ( localize2(
|
|
929
|
+
title: ( localize2(10190, "Refresh Explorer")),
|
|
928
930
|
f1: true,
|
|
929
931
|
icon: Codicon.refresh,
|
|
930
932
|
menu: {
|
|
@@ -934,7 +936,7 @@ registerAction2(class extends Action2 {
|
|
|
934
936
|
order: 30
|
|
935
937
|
},
|
|
936
938
|
metadata: {
|
|
937
|
-
description: ( localize2(
|
|
939
|
+
description: ( localize2(10191, "Forces a refresh of the Explorer."))
|
|
938
940
|
}
|
|
939
941
|
});
|
|
940
942
|
}
|
|
@@ -949,7 +951,7 @@ registerAction2(class extends Action2 {
|
|
|
949
951
|
constructor() {
|
|
950
952
|
super({
|
|
951
953
|
id: 'workbench.files.action.collapseExplorerFolders',
|
|
952
|
-
title: ( localize2(
|
|
954
|
+
title: ( localize2(10192, "Collapse Folders in Explorer")),
|
|
953
955
|
f1: true,
|
|
954
956
|
icon: Codicon.collapseAll,
|
|
955
957
|
menu: {
|
|
@@ -959,7 +961,7 @@ registerAction2(class extends Action2 {
|
|
|
959
961
|
order: 40
|
|
960
962
|
},
|
|
961
963
|
metadata: {
|
|
962
|
-
description: ( localize2(
|
|
964
|
+
description: ( localize2(10193, "Folds all folders in the Explorer."))
|
|
963
965
|
}
|
|
964
966
|
});
|
|
965
967
|
}
|
|
@@ -58,10 +58,10 @@ let WorkspaceWatcher = class WorkspaceWatcher extends Disposable {
|
|
|
58
58
|
if (msg.indexOf('ENOSPC') >= 0) {
|
|
59
59
|
reason = 'ENOSPC';
|
|
60
60
|
this.notificationService.prompt(Severity$1.Warning, ( localize(
|
|
61
|
-
|
|
61
|
+
9895,
|
|
62
62
|
"Unable to watch for file changes. Please follow the instructions link to resolve this issue."
|
|
63
63
|
)), [{
|
|
64
|
-
label: ( localize(
|
|
64
|
+
label: ( localize(9896, "Instructions")),
|
|
65
65
|
run: () => this.openerService.open(( (URI.parse('https://go.microsoft.com/fwlink/?linkid=867693'))))
|
|
66
66
|
}], {
|
|
67
67
|
sticky: true,
|
|
@@ -71,10 +71,10 @@ let WorkspaceWatcher = class WorkspaceWatcher extends Disposable {
|
|
|
71
71
|
else if (msg.indexOf('EUNKNOWN') >= 0) {
|
|
72
72
|
reason = 'EUNKNOWN';
|
|
73
73
|
this.notificationService.prompt(Severity$1.Warning, ( localize(
|
|
74
|
-
|
|
74
|
+
9897,
|
|
75
75
|
"File changes watcher stopped unexpectedly. A reload of the window may enable the watcher again unless the workspace cannot be watched for file changes."
|
|
76
76
|
)), [{
|
|
77
|
-
label: ( localize(
|
|
77
|
+
label: ( localize(9898, "Reload")),
|
|
78
78
|
run: () => this.hostService.reload()
|
|
79
79
|
}], {
|
|
80
80
|
sticky: true,
|
|
@@ -34,7 +34,7 @@ let DirtyFilesIndicator = class DirtyFilesIndicator extends Disposable {
|
|
|
34
34
|
const dirtyCount = this.lastKnownDirtyCount = this.workingCopyService.dirtyCount;
|
|
35
35
|
if (dirtyCount > 0) {
|
|
36
36
|
this.badgeHandle.value = this.activityService.showViewContainerActivity(VIEWLET_ID, {
|
|
37
|
-
badge: ( (new NumberBadge(dirtyCount, num => num === 1 ? ( localize(
|
|
37
|
+
badge: ( (new NumberBadge(dirtyCount, num => num === 1 ? ( localize(9899, "1 unsaved file")) : ( localize(9900, "{0} unsaved files", dirtyCount))))),
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
else {
|
|
@@ -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(( localize(
|
|
33
|
-
DefaultFoldingRangeProvider_1.extensionDescriptions.push(( localize(
|
|
32
|
+
DefaultFoldingRangeProvider_1.extensionItemLabels.push(( localize(792, 'All')));
|
|
33
|
+
DefaultFoldingRangeProvider_1.extensionDescriptions.push(( localize(793, "All active folding range providers")));
|
|
34
34
|
const languageExtensions = [];
|
|
35
35
|
const otherExtensions = [];
|
|
36
36
|
for (const extension of this._extensionService.extensions) {
|
|
@@ -72,7 +72,7 @@ DefaultFoldingRangeProvider = DefaultFoldingRangeProvider_1 = ( (__decorate([
|
|
|
72
72
|
properties: {
|
|
73
73
|
[DefaultFoldingRangeProvider.configName]: {
|
|
74
74
|
description: ( localize(
|
|
75
|
-
|
|
75
|
+
794,
|
|
76
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
77
|
)),
|
|
78
78
|
type: ['string', 'null'],
|
|
@@ -78,8 +78,8 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
78
78
|
DefaultFormatter_1.extensionItemLabels.length = 0;
|
|
79
79
|
DefaultFormatter_1.extensionDescriptions.length = 0;
|
|
80
80
|
DefaultFormatter_1.extensionIds.push(null);
|
|
81
|
-
DefaultFormatter_1.extensionItemLabels.push(( localize(
|
|
82
|
-
DefaultFormatter_1.extensionDescriptions.push(( localize(
|
|
81
|
+
DefaultFormatter_1.extensionItemLabels.push(( localize(4594, 'None')));
|
|
82
|
+
DefaultFormatter_1.extensionDescriptions.push(( localize(4595, "None")));
|
|
83
83
|
for (const extension of extensions) {
|
|
84
84
|
if (extension.main || extension.browser) {
|
|
85
85
|
DefaultFormatter_1.extensionIds.push(extension.identifier.value);
|
|
@@ -106,13 +106,13 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
106
106
|
const langName = this._languageService.getLanguageName(document.getLanguageId()) || document.getLanguageId();
|
|
107
107
|
const detail = kind === 1
|
|
108
108
|
? ( localize(
|
|
109
|
-
|
|
109
|
+
4596,
|
|
110
110
|
"Extension '{0}' is configured as formatter but it cannot format '{1}'-files",
|
|
111
111
|
extension.displayName || extension.name,
|
|
112
112
|
langName
|
|
113
113
|
))
|
|
114
114
|
: ( localize(
|
|
115
|
-
|
|
115
|
+
4597,
|
|
116
116
|
"Extension '{0}' is configured as formatter but it can only format '{1}'-files as a whole, not selections or parts of it.",
|
|
117
117
|
extension.displayName || extension.name,
|
|
118
118
|
langName
|
|
@@ -126,12 +126,12 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
126
126
|
const langName = this._languageService.getLanguageName(document.getLanguageId()) || document.getLanguageId();
|
|
127
127
|
const message = !defaultFormatterId
|
|
128
128
|
? ( localize(
|
|
129
|
-
|
|
129
|
+
4598,
|
|
130
130
|
"There are multiple formatters for '{0}' files. One of them should be configured as default formatter.",
|
|
131
131
|
DefaultFormatter_1._maybeQuotes(langName)
|
|
132
132
|
))
|
|
133
133
|
: ( localize(
|
|
134
|
-
|
|
134
|
+
4599,
|
|
135
135
|
"Extension '{0}' is configured as formatter but not available. Select a different default formatter to continue.",
|
|
136
136
|
defaultFormatterId
|
|
137
137
|
));
|
|
@@ -144,16 +144,16 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
144
144
|
}
|
|
145
145
|
if (mode !== 2 ) {
|
|
146
146
|
const { confirmed } = await this._dialogService.confirm({
|
|
147
|
-
message: ( localize(
|
|
147
|
+
message: ( localize(4600, "Configure Default Formatter")),
|
|
148
148
|
detail: formatterOrMessage,
|
|
149
|
-
primaryButton: ( localize(
|
|
149
|
+
primaryButton: ( localize(4601, "&&Configure..."))
|
|
150
150
|
});
|
|
151
151
|
if (confirmed) {
|
|
152
152
|
return this._pickAndPersistDefaultFormatter(formatter, document);
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
else {
|
|
156
|
-
this._notificationService.prompt(Severity$1.Info, formatterOrMessage, [{ label: ( localize(
|
|
156
|
+
this._notificationService.prompt(Severity$1.Info, formatterOrMessage, [{ label: ( localize(4602, "Configure...")), run: () => this._pickAndPersistDefaultFormatter(formatter, document) }], { priority: NotificationPriority.SILENT });
|
|
157
157
|
}
|
|
158
158
|
return undefined;
|
|
159
159
|
}
|
|
@@ -167,7 +167,7 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
167
167
|
})));
|
|
168
168
|
const langName = this._languageService.getLanguageName(document.getLanguageId()) || document.getLanguageId();
|
|
169
169
|
const pick = await this._quickInputService.pick(picks, { placeHolder: ( localize(
|
|
170
|
-
|
|
170
|
+
4603,
|
|
171
171
|
"Select a default formatter for '{0}' files",
|
|
172
172
|
DefaultFormatter_1._maybeQuotes(langName)
|
|
173
173
|
)) });
|
|
@@ -200,14 +200,14 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
200
200
|
if (typeof result !== 'string') {
|
|
201
201
|
return;
|
|
202
202
|
}
|
|
203
|
-
const command = { id: `formatter/configure/dfl/${generateUuid()}`, title: ( localize(
|
|
203
|
+
const command = { id: `formatter/configure/dfl/${generateUuid()}`, title: ( localize(4604, "Configure...")) };
|
|
204
204
|
this._languageStatusStore.add(CommandsRegistry.registerCommand(command.id, () => this._pickAndPersistDefaultFormatter(formatter, document)));
|
|
205
205
|
this._languageStatusStore.add(this._languageStatusService.addStatus({
|
|
206
206
|
id: 'formatter.conflict',
|
|
207
|
-
name: ( localize(
|
|
207
|
+
name: ( localize(4605, "Formatter Conflicts")),
|
|
208
208
|
selector: { language: document.getLanguageId(), pattern: document.uri.fsPath },
|
|
209
209
|
severity: Severity$1.Error,
|
|
210
|
-
label: ( localize(
|
|
210
|
+
label: ( localize(4606, "Formatting")),
|
|
211
211
|
detail: result,
|
|
212
212
|
busy: false,
|
|
213
213
|
source: '',
|
|
@@ -235,7 +235,7 @@ DefaultFormatter = DefaultFormatter_1 = ( (__decorate([
|
|
|
235
235
|
properties: {
|
|
236
236
|
[DefaultFormatter.configName]: {
|
|
237
237
|
description: ( localize(
|
|
238
|
-
|
|
238
|
+
4607,
|
|
239
239
|
"Defines a default formatter which takes precedence over all other formatter settings. Must be the identifier of an extension contributing a formatter."
|
|
240
240
|
)),
|
|
241
241
|
type: ['string', 'null'],
|
|
@@ -268,7 +268,7 @@ async function showFormatterPick(accessor, model, formatters) {
|
|
|
268
268
|
const pick = {
|
|
269
269
|
index,
|
|
270
270
|
label: provider.displayName || '',
|
|
271
|
-
description: isDefault ? ( localize(
|
|
271
|
+
description: isDefault ? ( localize(4608, "(default)")) : undefined,
|
|
272
272
|
};
|
|
273
273
|
if (isDefault) {
|
|
274
274
|
defaultFormatterPick = pick;
|
|
@@ -276,10 +276,10 @@ async function showFormatterPick(accessor, model, formatters) {
|
|
|
276
276
|
return pick;
|
|
277
277
|
})));
|
|
278
278
|
const configurePick = {
|
|
279
|
-
label: ( localize(
|
|
279
|
+
label: ( localize(4609, "Configure Default Formatter..."))
|
|
280
280
|
};
|
|
281
281
|
const pick = await quickPickService.pick([...picks, { type: 'separator' }, configurePick], {
|
|
282
|
-
placeHolder: ( localize(
|
|
282
|
+
placeHolder: ( localize(4610, "Select a formatter")),
|
|
283
283
|
activeItem: defaultFormatterPick
|
|
284
284
|
});
|
|
285
285
|
if (!pick) {
|
|
@@ -288,7 +288,7 @@ async function showFormatterPick(accessor, model, formatters) {
|
|
|
288
288
|
else if (pick === configurePick) {
|
|
289
289
|
const langName = languageService.getLanguageName(model.getLanguageId()) || model.getLanguageId();
|
|
290
290
|
const pick = await quickPickService.pick(picks, { placeHolder: ( localize(
|
|
291
|
-
|
|
291
|
+
4603,
|
|
292
292
|
"Select a default formatter for '{0}' files",
|
|
293
293
|
DefaultFormatter._maybeQuotes(langName)
|
|
294
294
|
)) });
|
|
@@ -305,7 +305,7 @@ registerEditorAction(class FormatDocumentMultipleAction extends EditorAction {
|
|
|
305
305
|
constructor() {
|
|
306
306
|
super({
|
|
307
307
|
id: 'editor.action.formatDocument.multiple',
|
|
308
|
-
label: ( localize(
|
|
308
|
+
label: ( localize(4611, "Format Document With...")),
|
|
309
309
|
alias: 'Format Document...',
|
|
310
310
|
precondition: ( (ContextKeyExpr.and(
|
|
311
311
|
EditorContextKeys.writable,
|
|
@@ -337,7 +337,7 @@ registerEditorAction(class FormatSelectionMultipleAction extends EditorAction {
|
|
|
337
337
|
constructor() {
|
|
338
338
|
super({
|
|
339
339
|
id: 'editor.action.formatSelection.multiple',
|
|
340
|
-
label: ( localize(
|
|
340
|
+
label: ( localize(4612, "Format Selection With...")),
|
|
341
341
|
alias: 'Format Code...',
|
|
342
342
|
precondition: ( (ContextKeyExpr.and(
|
|
343
343
|
(ContextKeyExpr.and(EditorContextKeys.writable)),
|
|
@@ -11,7 +11,7 @@ registerEditorAction(class FormatDocumentMultipleAction extends EditorAction {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
super({
|
|
13
13
|
id: 'editor.action.formatDocument.none',
|
|
14
|
-
label: ( localize(
|
|
14
|
+
label: ( localize(4613, "Format Document")),
|
|
15
15
|
alias: 'Format Document',
|
|
16
16
|
precondition: ( (ContextKeyExpr.and(
|
|
17
17
|
EditorContextKeys.writable,
|
|
@@ -43,14 +43,14 @@ registerEditorAction(class FormatDocumentMultipleAction extends EditorAction {
|
|
|
43
43
|
return commandService.executeCommand('editor.action.formatDocument');
|
|
44
44
|
}
|
|
45
45
|
else if (model.isTooLargeForSyncing()) {
|
|
46
|
-
notificationService.warn(( localize(
|
|
46
|
+
notificationService.warn(( localize(4614, "This file cannot be formatted because it is too large")));
|
|
47
47
|
}
|
|
48
48
|
else {
|
|
49
49
|
const langName = model.getLanguageId();
|
|
50
|
-
const message = ( localize(
|
|
50
|
+
const message = ( localize(4615, "There is no formatter for '{0}' files installed.", langName));
|
|
51
51
|
const { confirmed } = await dialogService.confirm({
|
|
52
52
|
message,
|
|
53
|
-
primaryButton: ( localize(
|
|
53
|
+
primaryButton: ( localize(4616, "&&Install Formatter..."))
|
|
54
54
|
});
|
|
55
55
|
if (confirmed) {
|
|
56
56
|
extensionsWorkbenchService.openSearch(`category:formatters ${langName}`);
|
|
@@ -17,7 +17,7 @@ registerEditorAction(class FormatModifiedAction extends EditorAction {
|
|
|
17
17
|
constructor() {
|
|
18
18
|
super({
|
|
19
19
|
id: 'editor.action.formatChanges',
|
|
20
|
-
label: ( localize(
|
|
20
|
+
label: ( localize(4593, "Format Modified Lines")),
|
|
21
21
|
alias: 'Format Modified Lines',
|
|
22
22
|
precondition: ( (ContextKeyExpr.and(
|
|
23
23
|
EditorContextKeys.writable,
|
|
@@ -20,7 +20,7 @@ let InlayHintsAccessibility = class InlayHintsAccessibility {
|
|
|
20
20
|
static { this.IsReading = ( (new RawContextKey(
|
|
21
21
|
'isReadingLineWithInlayHints',
|
|
22
22
|
false,
|
|
23
|
-
{ type: 'boolean', description: ( localize(
|
|
23
|
+
{ type: 'boolean', description: ( localize(788, "Whether the current line and its inlay hints are currently focused")) }
|
|
24
24
|
))); }
|
|
25
25
|
static { this.ID = 'editor.contrib.InlayHintsAccessibility'; }
|
|
26
26
|
static get(editor) {
|
|
@@ -35,7 +35,7 @@ let InlayHintsAccessibility = class InlayHintsAccessibility {
|
|
|
35
35
|
this._ariaElement.style.position = 'fixed';
|
|
36
36
|
this._ariaElement.className = 'inlayhint-accessibility-element';
|
|
37
37
|
this._ariaElement.tabIndex = 0;
|
|
38
|
-
this._ariaElement.setAttribute('aria-description', ( localize(
|
|
38
|
+
this._ariaElement.setAttribute('aria-description', ( localize(789, "Code with Inlay Hint Information")));
|
|
39
39
|
this._ctxIsReading = InlayHintsAccessibility_1.IsReading.bindTo(contextKeyService);
|
|
40
40
|
}
|
|
41
41
|
dispose() {
|
|
@@ -135,7 +135,7 @@ registerAction2(class StartReadHints extends EditorAction2 {
|
|
|
135
135
|
constructor() {
|
|
136
136
|
super({
|
|
137
137
|
id: 'inlayHints.startReadingLineWithHint',
|
|
138
|
-
title: ( localize2(
|
|
138
|
+
title: ( localize2(790, "Read Line With Inline Hints")),
|
|
139
139
|
precondition: EditorContextKeys.hasInlayHintsProvider,
|
|
140
140
|
f1: true
|
|
141
141
|
});
|
|
@@ -149,7 +149,7 @@ registerAction2(class StopReadHints extends EditorAction2 {
|
|
|
149
149
|
constructor() {
|
|
150
150
|
super({
|
|
151
151
|
id: 'inlayHints.stopReadingLineWithHint',
|
|
152
|
-
title: ( localize2(
|
|
152
|
+
title: ( localize2(791, "Stop Inlay Hints Reading")),
|
|
153
153
|
precondition: InlayHintsAccessibility.IsReading,
|
|
154
154
|
f1: true,
|
|
155
155
|
keybinding: {
|
|
@@ -216,14 +216,14 @@ let InlineChatController = InlineChatController_1 = class InlineChatController {
|
|
|
216
216
|
delete options.position;
|
|
217
217
|
}
|
|
218
218
|
const widgetPosition = this._showWidget(options.headless ?? session?.headless, true, initPosition);
|
|
219
|
-
let errorMessage = ( localize(
|
|
219
|
+
let errorMessage = ( localize(5652, "Failed to start editor chat"));
|
|
220
220
|
if (!session) {
|
|
221
221
|
const createSessionCts = ( (new CancellationTokenSource()));
|
|
222
222
|
const msgListener = Event.once(this._messages.event)(m => {
|
|
223
223
|
this._log('state=_createSession) message received', m);
|
|
224
224
|
if (m === 32 ) {
|
|
225
225
|
options.autoSend = true;
|
|
226
|
-
this._ui.value.widget.updateInfo(( localize(
|
|
226
|
+
this._ui.value.widget.updateInfo(( localize(5653, "Getting ready...")));
|
|
227
227
|
}
|
|
228
228
|
else {
|
|
229
229
|
createSessionCts.cancel();
|
|
@@ -541,7 +541,7 @@ let InlineChatController = InlineChatController_1 = class InlineChatController {
|
|
|
541
541
|
let newPosition;
|
|
542
542
|
if (response.result?.errorDetails) ;
|
|
543
543
|
else if (response.response.value.length === 0) {
|
|
544
|
-
const status = ( localize(
|
|
544
|
+
const status = ( localize(5654, "No results, please refine your input and try again"));
|
|
545
545
|
this._ui.value.widget.updateStatus(status, { classes: ['warn'] });
|
|
546
546
|
}
|
|
547
547
|
else {
|
|
@@ -575,7 +575,7 @@ let InlineChatController = InlineChatController_1 = class InlineChatController {
|
|
|
575
575
|
await this._strategy.apply();
|
|
576
576
|
}
|
|
577
577
|
catch (err) {
|
|
578
|
-
this._dialogService.error(( localize(
|
|
578
|
+
this._dialogService.error(( localize(5655, "Failed to apply changes.", toErrorMessage(err))));
|
|
579
579
|
this._log('FAILED to apply changes');
|
|
580
580
|
this._log(err);
|
|
581
581
|
}
|
|
@@ -595,7 +595,7 @@ let InlineChatController = InlineChatController_1 = class InlineChatController {
|
|
|
595
595
|
undoCancelEdits = this._strategy.cancel();
|
|
596
596
|
}
|
|
597
597
|
catch (err) {
|
|
598
|
-
this._dialogService.error(( localize(
|
|
598
|
+
this._dialogService.error(( localize(5656, "Failed to discard changes.", toErrorMessage(err))));
|
|
599
599
|
this._log('FAILED to discard changes');
|
|
600
600
|
this._log(err);
|
|
601
601
|
}
|
|
@@ -721,7 +721,7 @@ let InlineChatController = InlineChatController_1 = class InlineChatController {
|
|
|
721
721
|
if (!this._session) {
|
|
722
722
|
return;
|
|
723
723
|
}
|
|
724
|
-
const status = ( localize(
|
|
724
|
+
const status = ( localize(5657, "Accept or discard changes to continue saving."));
|
|
725
725
|
this._ui.value.widget.updateStatus(status, { classes: ['warn'] });
|
|
726
726
|
if (this._ui.value.position) {
|
|
727
727
|
this._editor.revealLineInCenterIfOutsideViewport(this._ui.value.position.lineNumber);
|
|
@@ -9,8 +9,8 @@ class ListResizeColumnAction extends Action2 {
|
|
|
9
9
|
constructor() {
|
|
10
10
|
super({
|
|
11
11
|
id: 'list.resizeColumn',
|
|
12
|
-
title: { value: ( localize(
|
|
13
|
-
category: { value: ( localize(
|
|
12
|
+
title: { value: ( localize(4645, "Resize Column")), original: 'Resize Column' },
|
|
13
|
+
category: { value: ( localize(4646, "List")), original: 'List' },
|
|
14
14
|
precondition: WorkbenchListFocusContextKey,
|
|
15
15
|
f1: true
|
|
16
16
|
});
|
|
@@ -15,14 +15,14 @@ let TableColumnResizeQuickPick = class TableColumnResizeQuickPick extends Dispos
|
|
|
15
15
|
items.push({ label, index });
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
const column = await this._quickInputService.pick(items, { placeHolder: ( localize(
|
|
18
|
+
const column = await this._quickInputService.pick(items, { placeHolder: ( localize(9953, "Select the column to resize, type to filter.")) });
|
|
19
19
|
if (!column) {
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
22
|
const value = await this._quickInputService.input({
|
|
23
|
-
placeHolder: ( localize(
|
|
23
|
+
placeHolder: ( localize(9954, "i.e. 20, 60, 100...")),
|
|
24
24
|
prompt: ( localize(
|
|
25
|
-
|
|
25
|
+
9955,
|
|
26
26
|
"Please enter a width in percentage for the '{0}' column.",
|
|
27
27
|
column.label
|
|
28
28
|
)),
|
|
@@ -37,11 +37,11 @@ let TableColumnResizeQuickPick = class TableColumnResizeQuickPick extends Dispos
|
|
|
37
37
|
async _validateColumnResizeValue(input) {
|
|
38
38
|
const percentage = Number.parseInt(input);
|
|
39
39
|
if (input && !Number.isInteger(percentage)) {
|
|
40
|
-
return ( localize(
|
|
40
|
+
return ( localize(9956, "Please enter an integer."));
|
|
41
41
|
}
|
|
42
42
|
else if (percentage < 0 || percentage > 100) {
|
|
43
43
|
return ( localize(
|
|
44
|
-
|
|
44
|
+
9957,
|
|
45
45
|
"Please enter a number greater than 0 and less than or equal to 100."
|
|
46
46
|
));
|
|
47
47
|
}
|
|
@@ -75,7 +75,7 @@ let MergeEditorInput = class MergeEditorInput extends AbstractTextResourceEditor
|
|
|
75
75
|
return capabilities;
|
|
76
76
|
}
|
|
77
77
|
getName() {
|
|
78
|
-
return ( localize(
|
|
78
|
+
return ( localize(7720, "Merging: {0}", super.getName()));
|
|
79
79
|
}
|
|
80
80
|
async resolve() {
|
|
81
81
|
if (!this._inputModel) {
|
|
@@ -106,12 +106,12 @@ let TempFileMergeEditorInputModel = class TempFileMergeEditorInputModel extends
|
|
|
106
106
|
const isMany = inputModels.length > 1;
|
|
107
107
|
const message = isMany
|
|
108
108
|
? ( localize(
|
|
109
|
-
|
|
109
|
+
10770,
|
|
110
110
|
'Do you want keep the merge result of {0} files?',
|
|
111
111
|
inputModels.length
|
|
112
112
|
))
|
|
113
113
|
: ( localize(
|
|
114
|
-
|
|
114
|
+
10771,
|
|
115
115
|
'Do you want keep the merge result of {0}?',
|
|
116
116
|
basename(inputModels[0].model.resultTextModel.uri)
|
|
117
117
|
));
|
|
@@ -119,12 +119,12 @@ let TempFileMergeEditorInputModel = class TempFileMergeEditorInputModel extends
|
|
|
119
119
|
const buttons = [
|
|
120
120
|
{
|
|
121
121
|
label: hasUnhandledConflicts ?
|
|
122
|
-
( localize(
|
|
123
|
-
( localize(
|
|
122
|
+
( localize(10772, "&&Save With Conflicts")) :
|
|
123
|
+
( localize(10773, "&&Save")),
|
|
124
124
|
run: () => 0
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
|
-
label: ( localize(
|
|
127
|
+
label: ( localize(10774, "Do&&n't Save")),
|
|
128
128
|
run: () => 1
|
|
129
129
|
}
|
|
130
130
|
];
|
|
@@ -134,16 +134,16 @@ let TempFileMergeEditorInputModel = class TempFileMergeEditorInputModel extends
|
|
|
134
134
|
detail: hasUnhandledConflicts
|
|
135
135
|
? isMany
|
|
136
136
|
? ( localize(
|
|
137
|
-
|
|
137
|
+
10775,
|
|
138
138
|
"The files contain unhandled conflicts. The merge results will be lost if you don't save them."
|
|
139
139
|
))
|
|
140
140
|
: ( localize(
|
|
141
|
-
|
|
141
|
+
10776,
|
|
142
142
|
"The file contains unhandled conflicts. The merge result will be lost if you don't save it."
|
|
143
143
|
))
|
|
144
144
|
: isMany
|
|
145
|
-
? ( localize(
|
|
146
|
-
: ( localize(
|
|
145
|
+
? ( localize(10777, "The merge results will be lost if you don't save them."))
|
|
146
|
+
: ( localize(10778, "The merge result will be lost if you don't save it.")),
|
|
147
147
|
buttons,
|
|
148
148
|
cancelButton: {
|
|
149
149
|
run: () => 2
|
|
@@ -168,12 +168,12 @@ let TempFileMergeEditorInputModel = class TempFileMergeEditorInputModel extends
|
|
|
168
168
|
}
|
|
169
169
|
(async () => {
|
|
170
170
|
const { confirmed } = await this.dialogService.confirm({
|
|
171
|
-
message: ( localize(
|
|
171
|
+
message: ( localize(10779, "Do you want to accept the merge result?")),
|
|
172
172
|
detail: ( localize(
|
|
173
|
-
|
|
173
|
+
10780,
|
|
174
174
|
"This will write the merge result to the original file and close the merge editor."
|
|
175
175
|
)),
|
|
176
|
-
primaryButton: ( localize(
|
|
176
|
+
primaryButton: ( localize(10781, '&&Accept Merge'))
|
|
177
177
|
});
|
|
178
178
|
if (confirmed) {
|
|
179
179
|
await this.accept();
|
|
@@ -198,7 +198,7 @@ let WorkspaceMergeEditorModeFactory = class WorkspaceMergeEditorModeFactory {
|
|
|
198
198
|
this._textModelService = _textModelService;
|
|
199
199
|
this.textFileService = textFileService;
|
|
200
200
|
}
|
|
201
|
-
static { this.FILE_SAVED_SOURCE = SaveSourceRegistry.registerSource('merge-editor.source', ( localize(
|
|
201
|
+
static { this.FILE_SAVED_SOURCE = SaveSourceRegistry.registerSource('merge-editor.source', ( localize(10782, "Before Resolving Conflicts In Merge Editor"))); }
|
|
202
202
|
async createInputModel(args) {
|
|
203
203
|
const store = ( (new DisposableStore()));
|
|
204
204
|
let resultTextFileModel = undefined;
|
|
@@ -308,12 +308,12 @@ let WorkspaceMergeEditorInputModel = class WorkspaceMergeEditorInputModel extend
|
|
|
308
308
|
if (someDirty) {
|
|
309
309
|
const message = isMany
|
|
310
310
|
? ( localize(
|
|
311
|
-
|
|
311
|
+
10783,
|
|
312
312
|
'Do you want to save the changes you made to {0} files?',
|
|
313
313
|
inputModels.length
|
|
314
314
|
))
|
|
315
315
|
: ( localize(
|
|
316
|
-
|
|
316
|
+
10784,
|
|
317
317
|
'Do you want to save the changes you made to {0}?',
|
|
318
318
|
basename(inputModels[0].resultUri)
|
|
319
319
|
));
|
|
@@ -323,25 +323,25 @@ let WorkspaceMergeEditorInputModel = class WorkspaceMergeEditorInputModel extend
|
|
|
323
323
|
detail: someUnhandledConflicts ?
|
|
324
324
|
isMany
|
|
325
325
|
? ( localize(
|
|
326
|
-
|
|
326
|
+
10785,
|
|
327
327
|
"The files contain unhandled conflicts. Your changes will be lost if you don't save them."
|
|
328
328
|
))
|
|
329
329
|
: ( localize(
|
|
330
|
-
|
|
330
|
+
10786,
|
|
331
331
|
"The file contains unhandled conflicts. Your changes will be lost if you don't save them."
|
|
332
332
|
))
|
|
333
333
|
: isMany
|
|
334
|
-
? ( localize(
|
|
335
|
-
: ( localize(
|
|
334
|
+
? ( localize(10787, "Your changes will be lost if you don't save them."))
|
|
335
|
+
: ( localize(10788, "Your changes will be lost if you don't save them.")),
|
|
336
336
|
buttons: [
|
|
337
337
|
{
|
|
338
338
|
label: someUnhandledConflicts
|
|
339
|
-
? ( localize(
|
|
340
|
-
: ( localize(
|
|
339
|
+
? ( localize(10789, '&&Save with Conflicts'))
|
|
340
|
+
: ( localize(10790, '&&Save')),
|
|
341
341
|
run: () => 0
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
|
-
label: ( localize(
|
|
344
|
+
label: ( localize(10791, "Do&&n't Save")),
|
|
345
345
|
run: () => 1
|
|
346
346
|
}
|
|
347
347
|
],
|
|
@@ -354,21 +354,21 @@ let WorkspaceMergeEditorInputModel = class WorkspaceMergeEditorInputModel extend
|
|
|
354
354
|
else if (someUnhandledConflicts && !this._storageService.getBoolean(StorageCloseWithConflicts, 0 , false)) {
|
|
355
355
|
const { confirmed, checkboxChecked } = await this._dialogService.confirm({
|
|
356
356
|
message: isMany
|
|
357
|
-
? ( localize(
|
|
357
|
+
? ( localize(10792, 'Do you want to close {0} merge editors?', inputModels.length))
|
|
358
358
|
: ( localize(
|
|
359
|
-
|
|
359
|
+
10793,
|
|
360
360
|
'Do you want to close the merge editor for {0}?',
|
|
361
361
|
basename(inputModels[0].resultUri)
|
|
362
362
|
)),
|
|
363
363
|
detail: someUnhandledConflicts ?
|
|
364
364
|
isMany
|
|
365
|
-
? ( localize(
|
|
366
|
-
: ( localize(
|
|
365
|
+
? ( localize(10794, "The files contain unhandled conflicts."))
|
|
366
|
+
: ( localize(10795, "The file contains unhandled conflicts."))
|
|
367
367
|
: undefined,
|
|
368
368
|
primaryButton: someUnhandledConflicts
|
|
369
|
-
? ( localize(
|
|
370
|
-
: ( localize(
|
|
371
|
-
checkbox: { label: ( localize(
|
|
369
|
+
? ( localize(10796, '&&Close with Conflicts'))
|
|
370
|
+
: ( localize(10797, '&&Close')),
|
|
371
|
+
checkbox: { label: ( localize(10798, "Do not ask me again")) }
|
|
372
372
|
});
|
|
373
373
|
if (checkboxChecked) {
|
|
374
374
|
this._storageService.store(StorageCloseWithConflicts, true, 0 , 0 );
|