@codingame/monaco-vscode-api 11.0.1 → 11.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/extensions.d.ts +1 -1
- package/missing-services.js +2 -2
- package/package.json +8 -8
- package/services.js +2 -2
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +6 -6
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/common/date.js +61 -61
- package/vscode/src/vs/base/common/errorMessage.js +15 -6
- package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
- package/vscode/src/vs/editor/browser/editorExtensions.js +6 -6
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
- package/vscode/src/vs/editor/common/config/editorOptions.js +364 -364
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- 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/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
- 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/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- 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/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +5 -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/languagePacks/common/languagePacks.js +1 -1
- 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/request/common/request.js +14 -14
- 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/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/actions/workspaceActions.js +21 -21
- 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/diffEditorCommands.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +61 -61
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/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/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +131 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
- 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/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/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/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +63 -63
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- 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/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/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +23 -23
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +13 -13
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -23
- 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/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +15 -15
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -1
- 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/textfile/common/textFileEditorModel.js +3 -3
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
|
@@ -2,59 +2,59 @@ import { Codicon } from '../../../../base/common/codicons.js';
|
|
|
2
2
|
import { localize } from '../../../../nls.js';
|
|
3
3
|
import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
|
|
4
4
|
|
|
5
|
-
const extensionsViewIcon = registerIcon('extensions-view-icon', Codicon.extensions, ( localize(
|
|
6
|
-
const manageExtensionIcon = registerIcon('extensions-manage', Codicon.gear, ( localize(
|
|
5
|
+
const extensionsViewIcon = registerIcon('extensions-view-icon', Codicon.extensions, ( localize(9669, 'View icon of the extensions view.')));
|
|
6
|
+
const manageExtensionIcon = registerIcon('extensions-manage', Codicon.gear, ( localize(9670, 'Icon for the \'Manage\' action in the extensions view.')));
|
|
7
7
|
const clearSearchResultsIcon = registerIcon('extensions-clear-search-results', Codicon.clearAll, ( localize(
|
|
8
|
-
|
|
8
|
+
9671,
|
|
9
9
|
'Icon for the \'Clear Search Result\' action in the extensions view.'
|
|
10
10
|
)));
|
|
11
|
-
const refreshIcon = registerIcon('extensions-refresh', Codicon.refresh, ( localize(
|
|
12
|
-
const filterIcon = registerIcon('extensions-filter', Codicon.filter, ( localize(
|
|
11
|
+
const refreshIcon = registerIcon('extensions-refresh', Codicon.refresh, ( localize(9672, 'Icon for the \'Refresh\' action in the extensions view.')));
|
|
12
|
+
const filterIcon = registerIcon('extensions-filter', Codicon.filter, ( localize(9673, 'Icon for the \'Filter\' action in the extensions view.')));
|
|
13
13
|
const installLocalInRemoteIcon = registerIcon('extensions-install-local-in-remote', Codicon.cloudDownload, ( localize(
|
|
14
|
-
|
|
14
|
+
9674,
|
|
15
15
|
'Icon for the \'Install Local Extension in Remote\' action in the extensions view.'
|
|
16
16
|
)));
|
|
17
17
|
const installWorkspaceRecommendedIcon = registerIcon('extensions-install-workspace-recommended', Codicon.cloudDownload, ( localize(
|
|
18
|
-
|
|
18
|
+
9675,
|
|
19
19
|
'Icon for the \'Install Workspace Recommended Extensions\' action in the extensions view.'
|
|
20
20
|
)));
|
|
21
21
|
const configureRecommendedIcon = registerIcon('extensions-configure-recommended', Codicon.pencil, ( localize(
|
|
22
|
-
|
|
22
|
+
9676,
|
|
23
23
|
'Icon for the \'Configure Recommended Extensions\' action in the extensions view.'
|
|
24
24
|
)));
|
|
25
|
-
const syncEnabledIcon = registerIcon('extensions-sync-enabled', Codicon.sync, ( localize(
|
|
26
|
-
const syncIgnoredIcon = registerIcon('extensions-sync-ignored', Codicon.syncIgnored, ( localize(
|
|
25
|
+
const syncEnabledIcon = registerIcon('extensions-sync-enabled', Codicon.sync, ( localize(9677, 'Icon to indicate that an extension is synced.')));
|
|
26
|
+
const syncIgnoredIcon = registerIcon('extensions-sync-ignored', Codicon.syncIgnored, ( localize(9678, 'Icon to indicate that an extension is ignored when syncing.')));
|
|
27
27
|
const remoteIcon = registerIcon('extensions-remote', Codicon.remote, ( localize(
|
|
28
|
-
|
|
28
|
+
9679,
|
|
29
29
|
'Icon to indicate that an extension is remote in the extensions view and editor.'
|
|
30
30
|
)));
|
|
31
31
|
const installCountIcon = registerIcon('extensions-install-count', Codicon.cloudDownload, ( localize(
|
|
32
|
-
|
|
32
|
+
9680,
|
|
33
33
|
'Icon shown along with the install count in the extensions view and editor.'
|
|
34
34
|
)));
|
|
35
35
|
const ratingIcon = registerIcon('extensions-rating', Codicon.star, ( localize(
|
|
36
|
-
|
|
36
|
+
9681,
|
|
37
37
|
'Icon shown along with the rating in the extensions view and editor.'
|
|
38
38
|
)));
|
|
39
39
|
const verifiedPublisherIcon = registerIcon('extensions-verified-publisher', Codicon.verifiedFilled, ( localize(
|
|
40
|
-
|
|
40
|
+
9682,
|
|
41
41
|
'Icon used for the verified extension publisher in the extensions view and editor.'
|
|
42
42
|
)));
|
|
43
43
|
const preReleaseIcon = registerIcon('extensions-pre-release', Codicon.versions, ( localize(
|
|
44
|
-
|
|
44
|
+
9683,
|
|
45
45
|
'Icon shown for extensions having pre-release versions in extensions view and editor.'
|
|
46
46
|
)));
|
|
47
47
|
const sponsorIcon = registerIcon('extensions-sponsor', Codicon.heartFilled, ( localize(
|
|
48
|
-
|
|
48
|
+
9684,
|
|
49
49
|
'Icon used for sponsoring extensions in the extensions view and editor.'
|
|
50
50
|
)));
|
|
51
|
-
const starFullIcon = registerIcon('extensions-star-full', Codicon.starFull, ( localize(
|
|
52
|
-
const starHalfIcon = registerIcon('extensions-star-half', Codicon.starHalf, ( localize(
|
|
53
|
-
const starEmptyIcon = registerIcon('extensions-star-empty', Codicon.starEmpty, ( localize(
|
|
54
|
-
const errorIcon = registerIcon('extensions-error-message', Codicon.error, ( localize(
|
|
55
|
-
const warningIcon = registerIcon('extensions-warning-message', Codicon.warning, ( localize(
|
|
56
|
-
const infoIcon = registerIcon('extensions-info-message', Codicon.info, ( localize(
|
|
57
|
-
const trustIcon = registerIcon('extension-workspace-trust', Codicon.shield, ( localize(
|
|
58
|
-
const activationTimeIcon = registerIcon('extension-activation-time', Codicon.history, ( localize(
|
|
51
|
+
const starFullIcon = registerIcon('extensions-star-full', Codicon.starFull, ( localize(9685, 'Full star icon used for the rating in the extensions editor.')));
|
|
52
|
+
const starHalfIcon = registerIcon('extensions-star-half', Codicon.starHalf, ( localize(9686, 'Half star icon used for the rating in the extensions editor.')));
|
|
53
|
+
const starEmptyIcon = registerIcon('extensions-star-empty', Codicon.starEmpty, ( localize(9687, 'Empty star icon used for the rating in the extensions editor.')));
|
|
54
|
+
const errorIcon = registerIcon('extensions-error-message', Codicon.error, ( localize(9688, 'Icon shown with a error message in the extensions editor.')));
|
|
55
|
+
const warningIcon = registerIcon('extensions-warning-message', Codicon.warning, ( localize(9689, 'Icon shown with a warning message in the extensions editor.')));
|
|
56
|
+
const infoIcon = registerIcon('extensions-info-message', Codicon.info, ( localize(9690, 'Icon shown with an info message in the extensions editor.')));
|
|
57
|
+
const trustIcon = registerIcon('extension-workspace-trust', Codicon.shield, ( localize(9691, 'Icon shown with a workspace trust message in the extension editor.')));
|
|
58
|
+
const activationTimeIcon = registerIcon('extension-activation-time', Codicon.history, ( localize(9692, 'Icon shown with a activation time message in the extension editor.')));
|
|
59
59
|
|
|
60
60
|
export { activationTimeIcon, clearSearchResultsIcon, configureRecommendedIcon, errorIcon, extensionsViewIcon, filterIcon, infoIcon, installCountIcon, installLocalInRemoteIcon, installWorkspaceRecommendedIcon, manageExtensionIcon, preReleaseIcon, ratingIcon, refreshIcon, remoteIcon, sponsorIcon, starEmptyIcon, starFullIcon, starHalfIcon, syncEnabledIcon, syncIgnoredIcon, trustIcon, verifiedPublisherIcon, warningIcon };
|
|
@@ -7,31 +7,31 @@ const ExtensionsConfigurationSchema = {
|
|
|
7
7
|
allowComments: true,
|
|
8
8
|
allowTrailingCommas: true,
|
|
9
9
|
type: 'object',
|
|
10
|
-
title: ( localize(
|
|
10
|
+
title: ( localize(9636, "Extensions")),
|
|
11
11
|
additionalProperties: false,
|
|
12
12
|
properties: {
|
|
13
13
|
recommendations: {
|
|
14
14
|
type: 'array',
|
|
15
15
|
description: ( localize(
|
|
16
|
-
|
|
16
|
+
9637,
|
|
17
17
|
"List of extensions which should be recommended for users of this workspace. The identifier of an extension is always '${publisher}.${name}'. For example: 'vscode.csharp'."
|
|
18
18
|
)),
|
|
19
19
|
items: {
|
|
20
20
|
type: 'string',
|
|
21
21
|
pattern: EXTENSION_IDENTIFIER_PATTERN,
|
|
22
|
-
errorMessage: ( localize(
|
|
22
|
+
errorMessage: ( localize(9638, "Expected format '${publisher}.${name}'. Example: 'vscode.csharp'."))
|
|
23
23
|
},
|
|
24
24
|
},
|
|
25
25
|
unwantedRecommendations: {
|
|
26
26
|
type: 'array',
|
|
27
27
|
description: ( localize(
|
|
28
|
-
|
|
28
|
+
9639,
|
|
29
29
|
"List of extensions recommended by VS Code that should not be recommended for users of this workspace. The identifier of an extension is always '${publisher}.${name}'. For example: 'vscode.csharp'."
|
|
30
30
|
)),
|
|
31
31
|
items: {
|
|
32
32
|
type: 'string',
|
|
33
33
|
pattern: EXTENSION_IDENTIFIER_PATTERN,
|
|
34
|
-
errorMessage: ( localize(
|
|
34
|
+
errorMessage: ( localize(9638, "Expected format '${publisher}.${name}'. Example: 'vscode.csharp'."))
|
|
35
35
|
},
|
|
36
36
|
},
|
|
37
37
|
}
|
|
@@ -7,7 +7,7 @@ import { join } from '../../../../base/common/path.js';
|
|
|
7
7
|
import { Codicon } from '../../../../base/common/codicons.js';
|
|
8
8
|
import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
|
|
9
9
|
|
|
10
|
-
const ExtensionEditorIcon = registerIcon('extensions-editor-label-icon', Codicon.extensions, ( localize(
|
|
10
|
+
const ExtensionEditorIcon = registerIcon('extensions-editor-label-icon', Codicon.extensions, ( localize(7304, 'Icon of the extensions editor label.')));
|
|
11
11
|
class ExtensionsInput extends EditorInput {
|
|
12
12
|
static { this.ID = 'workbench.extensions.input2'; }
|
|
13
13
|
get typeId() {
|
|
@@ -30,7 +30,7 @@ class ExtensionsInput extends EditorInput {
|
|
|
30
30
|
}
|
|
31
31
|
get extension() { return this._extension; }
|
|
32
32
|
getName() {
|
|
33
|
-
return ( localize(
|
|
33
|
+
return ( localize(7305, "Extension: {0}", this._extension.displayName));
|
|
34
34
|
}
|
|
35
35
|
getIcon() {
|
|
36
36
|
return ExtensionEditorIcon;
|
|
@@ -59,7 +59,7 @@ let BinaryFileEditor = class BinaryFileEditor extends BaseBinaryResourceEditor {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
getTitle() {
|
|
62
|
-
return this.input ? this.input.getName() : ( localize(
|
|
62
|
+
return this.input ? this.input.getName() : ( localize(9967, "Binary File Viewer"));
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
BinaryFileEditor = BinaryFileEditor_1 = ( (__decorate([
|
|
@@ -63,7 +63,7 @@ let TextFileEditor = class TextFileEditor extends AbstractTextCodeEditor {
|
|
|
63
63
|
if (this.input) {
|
|
64
64
|
return this.input.getName();
|
|
65
65
|
}
|
|
66
|
-
return ( localize(
|
|
66
|
+
return ( localize(9968, "Text File Editor"));
|
|
67
67
|
}
|
|
68
68
|
get input() {
|
|
69
69
|
return this._input;
|
|
@@ -111,20 +111,20 @@ let TextFileEditor = class TextFileEditor extends AbstractTextCodeEditor {
|
|
|
111
111
|
if (error.fileOperationResult === 0 ) {
|
|
112
112
|
const actions = [];
|
|
113
113
|
actions.push(toAction({
|
|
114
|
-
id: 'workbench.files.action.openFolder', label: ( localize(
|
|
114
|
+
id: 'workbench.files.action.openFolder', label: ( localize(9969, "Open Folder")), run: async () => {
|
|
115
115
|
return this.hostService.openWindow([{ folderUri: input.resource }], { forceNewWindow: true });
|
|
116
116
|
}
|
|
117
117
|
}));
|
|
118
118
|
if (this.contextService.isInsideWorkspace(input.preferredResource)) {
|
|
119
119
|
actions.push(toAction({
|
|
120
|
-
id: 'workbench.files.action.reveal', label: ( localize(
|
|
120
|
+
id: 'workbench.files.action.reveal', label: ( localize(9970, "Reveal Folder")), run: async () => {
|
|
121
121
|
await this.paneCompositeService.openPaneComposite(VIEWLET_ID, 0 , true);
|
|
122
122
|
return this.explorerService.select(input.preferredResource, true);
|
|
123
123
|
}
|
|
124
124
|
}));
|
|
125
125
|
}
|
|
126
126
|
throw createEditorOpenError(localize(
|
|
127
|
-
|
|
127
|
+
9971,
|
|
128
128
|
"The file is not displayed in the text editor because it is a directory."
|
|
129
129
|
), actions, { forceMessage: true });
|
|
130
130
|
}
|
|
@@ -132,14 +132,14 @@ let TextFileEditor = class TextFileEditor extends AbstractTextCodeEditor {
|
|
|
132
132
|
let message;
|
|
133
133
|
if (error instanceof TooLargeFileOperationError) {
|
|
134
134
|
message = ( localize(
|
|
135
|
-
|
|
135
|
+
9972,
|
|
136
136
|
"The file is not displayed in the text editor because it is very large ({0}).",
|
|
137
137
|
ByteSize.formatSize(error.size)
|
|
138
138
|
));
|
|
139
139
|
}
|
|
140
140
|
else {
|
|
141
141
|
message = ( localize(
|
|
142
|
-
|
|
142
|
+
9973,
|
|
143
143
|
"The file is not displayed in the text editor because it is very large."
|
|
144
144
|
));
|
|
145
145
|
}
|
|
@@ -148,9 +148,9 @@ let TextFileEditor = class TextFileEditor extends AbstractTextCodeEditor {
|
|
|
148
148
|
if (error.fileOperationResult === 1 &&
|
|
149
149
|
!this.filesConfigurationService.isReadonly(input.preferredResource) &&
|
|
150
150
|
(await this.pathService.hasValidBasename(input.preferredResource))) {
|
|
151
|
-
const fileNotFoundError = createEditorOpenError(( (new FileOperationError(( localize(
|
|
151
|
+
const fileNotFoundError = createEditorOpenError(( (new FileOperationError(( localize(9974, "The editor could not be opened because the file was not found.")), 1 ))), [
|
|
152
152
|
toAction({
|
|
153
|
-
id: 'workbench.files.action.createMissingFile', label: ( localize(
|
|
153
|
+
id: 'workbench.files.action.createMissingFile', label: ( localize(9975, "Create File")), run: async () => {
|
|
154
154
|
await this.textFileService.create([{ resource: input.preferredResource }]);
|
|
155
155
|
return this.editorService.openEditor({
|
|
156
156
|
resource: input.preferredResource,
|
|
@@ -12,13 +12,13 @@ const COMPARE_WITH_SAVED_COMMAND_ID = 'workbench.files.action.compareWithSaved';
|
|
|
12
12
|
const COPY_PATH_COMMAND_ID = 'copyFilePath';
|
|
13
13
|
const COPY_RELATIVE_PATH_COMMAND_ID = 'copyRelativeFilePath';
|
|
14
14
|
const SAVE_FILE_AS_COMMAND_ID = 'workbench.action.files.saveAs';
|
|
15
|
-
const SAVE_FILE_AS_LABEL = ( localize2(
|
|
15
|
+
const SAVE_FILE_AS_LABEL = ( localize2(5413, "Save As..."));
|
|
16
16
|
const SAVE_FILE_COMMAND_ID = 'workbench.action.files.save';
|
|
17
|
-
const SAVE_FILE_LABEL = ( localize2(
|
|
17
|
+
const SAVE_FILE_LABEL = ( localize2(5414, "Save"));
|
|
18
18
|
const SAVE_FILE_WITHOUT_FORMATTING_COMMAND_ID = 'workbench.action.files.saveWithoutFormatting';
|
|
19
|
-
const SAVE_FILE_WITHOUT_FORMATTING_LABEL = ( localize2(
|
|
19
|
+
const SAVE_FILE_WITHOUT_FORMATTING_LABEL = ( localize2(5415, "Save without Formatting"));
|
|
20
20
|
const SAVE_ALL_COMMAND_ID = 'saveAll';
|
|
21
|
-
const SAVE_ALL_LABEL = ( localize2(
|
|
21
|
+
const SAVE_ALL_LABEL = ( localize2(5416, "Save All"));
|
|
22
22
|
const SAVE_ALL_IN_GROUP_COMMAND_ID = 'workbench.files.action.saveAllInGroup';
|
|
23
23
|
const SAVE_FILES_COMMAND_ID = 'workbench.action.files.saveFiles';
|
|
24
24
|
const OpenEditorsGroupContext = ( (new RawContextKey('groupFocusedInOpenEditors', false)));
|
|
@@ -27,13 +27,13 @@ const OpenEditorsReadonlyEditorContext = ( (new RawContextKey('readonlyEditorFoc
|
|
|
27
27
|
const OpenEditorsSelectedFileOrUntitledContext = ( (new RawContextKey('openEditorsSelectedFileOrUntitled', true)));
|
|
28
28
|
const ResourceSelectedForCompareContext = ( (new RawContextKey('resourceSelectedForCompare', false)));
|
|
29
29
|
const REMOVE_ROOT_FOLDER_COMMAND_ID = 'removeRootFolder';
|
|
30
|
-
const REMOVE_ROOT_FOLDER_LABEL = ( localize(
|
|
30
|
+
const REMOVE_ROOT_FOLDER_LABEL = ( localize(5417, "Remove Folder from Workspace"));
|
|
31
31
|
const PREVIOUS_COMPRESSED_FOLDER = 'previousCompressedFolder';
|
|
32
32
|
const NEXT_COMPRESSED_FOLDER = 'nextCompressedFolder';
|
|
33
33
|
const FIRST_COMPRESSED_FOLDER = 'firstCompressedFolder';
|
|
34
34
|
const LAST_COMPRESSED_FOLDER = 'lastCompressedFolder';
|
|
35
35
|
const NEW_UNTITLED_FILE_COMMAND_ID = 'workbench.action.files.newUntitledFile';
|
|
36
|
-
const NEW_UNTITLED_FILE_LABEL = ( localize2(
|
|
36
|
+
const NEW_UNTITLED_FILE_LABEL = ( localize2(5418, "New Untitled Text File"));
|
|
37
37
|
const NEW_FILE_COMMAND_ID = 'workbench.action.files.newFile';
|
|
38
38
|
|
|
39
39
|
export { COMPARE_RESOURCE_COMMAND_ID, COMPARE_SELECTED_COMMAND_ID, COMPARE_WITH_SAVED_COMMAND_ID, COPY_PATH_COMMAND_ID, COPY_RELATIVE_PATH_COMMAND_ID, FIRST_COMPRESSED_FOLDER, LAST_COMPRESSED_FOLDER, NEW_FILE_COMMAND_ID, NEW_UNTITLED_FILE_COMMAND_ID, NEW_UNTITLED_FILE_LABEL, NEXT_COMPRESSED_FOLDER, OPEN_TO_SIDE_COMMAND_ID, OPEN_WITH_EXPLORER_COMMAND_ID, OpenEditorsDirtyEditorContext, OpenEditorsGroupContext, OpenEditorsReadonlyEditorContext, OpenEditorsSelectedFileOrUntitledContext, PREVIOUS_COMPRESSED_FOLDER, REMOVE_ROOT_FOLDER_COMMAND_ID, REMOVE_ROOT_FOLDER_LABEL, REVEAL_IN_EXPLORER_COMMAND_ID, REVERT_FILE_COMMAND_ID, ResourceSelectedForCompareContext, SAVE_ALL_COMMAND_ID, SAVE_ALL_IN_GROUP_COMMAND_ID, SAVE_ALL_LABEL, SAVE_FILES_COMMAND_ID, SAVE_FILE_AS_COMMAND_ID, SAVE_FILE_AS_LABEL, SAVE_FILE_COMMAND_ID, SAVE_FILE_LABEL, SAVE_FILE_WITHOUT_FORMATTING_COMMAND_ID, SAVE_FILE_WITHOUT_FORMATTING_LABEL, SELECT_FOR_COMPARE_COMMAND_ID };
|
|
@@ -15,20 +15,20 @@ const hotExitConfiguration = isNative ?
|
|
|
15
15
|
'default': HotExitConfiguration.ON_EXIT,
|
|
16
16
|
'markdownEnumDescriptions': [
|
|
17
17
|
( localize(
|
|
18
|
-
|
|
18
|
+
778,
|
|
19
19
|
'Disable hot exit. A prompt will show when attempting to close a window with editors that have unsaved changes.'
|
|
20
20
|
)),
|
|
21
21
|
( localize(
|
|
22
|
-
|
|
22
|
+
779,
|
|
23
23
|
'Hot exit will be triggered when the last window is closed on Windows/Linux or when the `workbench.action.quit` command is triggered (command palette, keybinding, menu). All windows without folders opened will be restored upon next launch. A list of previously opened windows with unsaved files can be accessed via `File > Open Recent > More...`'
|
|
24
24
|
)),
|
|
25
25
|
( localize(
|
|
26
|
-
|
|
26
|
+
780,
|
|
27
27
|
'Hot exit will be triggered when the last window is closed on Windows/Linux or when the `workbench.action.quit` command is triggered (command palette, keybinding, menu), and also for any window with a folder opened regardless of whether it\'s the last window. All windows without folders opened will be restored upon next launch. A list of previously opened windows with unsaved files can be accessed via `File > Open Recent > More...`'
|
|
28
28
|
))
|
|
29
29
|
],
|
|
30
30
|
'markdownDescription': ( localize(
|
|
31
|
-
|
|
31
|
+
781,
|
|
32
32
|
"[Hot Exit](https://aka.ms/vscode-hot-exit) controls whether unsaved files are remembered between sessions, allowing the save prompt when exiting the editor to be skipped.",
|
|
33
33
|
HotExitConfiguration.ON_EXIT,
|
|
34
34
|
HotExitConfiguration.ON_EXIT_AND_WINDOW_CLOSE
|
|
@@ -40,16 +40,16 @@ const hotExitConfiguration = isNative ?
|
|
|
40
40
|
'default': HotExitConfiguration.ON_EXIT_AND_WINDOW_CLOSE,
|
|
41
41
|
'markdownEnumDescriptions': [
|
|
42
42
|
( localize(
|
|
43
|
-
|
|
43
|
+
778,
|
|
44
44
|
'Disable hot exit. A prompt will show when attempting to close a window with editors that have unsaved changes.'
|
|
45
45
|
)),
|
|
46
46
|
( localize(
|
|
47
|
-
|
|
47
|
+
782,
|
|
48
48
|
'Hot exit will be triggered when the browser quits or the window or tab is closed.'
|
|
49
49
|
))
|
|
50
50
|
],
|
|
51
51
|
'markdownDescription': ( localize(
|
|
52
|
-
|
|
52
|
+
781,
|
|
53
53
|
"[Hot Exit](https://aka.ms/vscode-hot-exit) controls whether unsaved files are remembered between sessions, allowing the save prompt when exiting the editor to be skipped.",
|
|
54
54
|
HotExitConfiguration.ON_EXIT,
|
|
55
55
|
HotExitConfiguration.ON_EXIT_AND_WINDOW_CLOSE
|
|
@@ -58,13 +58,13 @@ const hotExitConfiguration = isNative ?
|
|
|
58
58
|
configurationRegistry.registerConfiguration({
|
|
59
59
|
'id': 'files',
|
|
60
60
|
'order': 9,
|
|
61
|
-
'title': ( localize(
|
|
61
|
+
'title': ( localize(783, "Files")),
|
|
62
62
|
'type': 'object',
|
|
63
63
|
'properties': {
|
|
64
64
|
[FILES_EXCLUDE_CONFIG]: {
|
|
65
65
|
'type': 'object',
|
|
66
66
|
'markdownDescription': ( localize(
|
|
67
|
-
|
|
67
|
+
784,
|
|
68
68
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) for excluding files and folders. For example, the File Explorer decides which files and folders to show or hide based on this setting. Refer to the `#search.exclude#` setting to define search-specific excludes. Refer to the `#explorer.excludeGitIgnore#` setting for ignoring files based on your `.gitignore`."
|
|
69
69
|
)),
|
|
70
70
|
'default': {
|
|
@@ -77,9 +77,9 @@ configurationRegistry.registerConfiguration({
|
|
|
77
77
|
{
|
|
78
78
|
'type': 'boolean',
|
|
79
79
|
'enum': [true, false],
|
|
80
|
-
'enumDescriptions': [( localize(
|
|
80
|
+
'enumDescriptions': [( localize(785, "Enable the pattern.")), ( localize(786, "Disable the pattern."))],
|
|
81
81
|
'description': ( localize(
|
|
82
|
-
|
|
82
|
+
787,
|
|
83
83
|
"The glob pattern to match file paths against. Set to true or false to enable or disable the pattern."
|
|
84
84
|
)),
|
|
85
85
|
},
|
|
@@ -91,7 +91,7 @@ configurationRegistry.registerConfiguration({
|
|
|
91
91
|
'pattern': '\\w*\\$\\(basename\\)\\w*',
|
|
92
92
|
'default': '$(basename).ext',
|
|
93
93
|
'markdownDescription': ( localize(
|
|
94
|
-
|
|
94
|
+
788,
|
|
95
95
|
"Additional check on the siblings of a matching file. Use \\$(basename) as variable for the matching file name."
|
|
96
96
|
))
|
|
97
97
|
}
|
|
@@ -103,7 +103,7 @@ configurationRegistry.registerConfiguration({
|
|
|
103
103
|
[FILES_ASSOCIATIONS_CONFIG]: {
|
|
104
104
|
'type': 'object',
|
|
105
105
|
'markdownDescription': ( localize(
|
|
106
|
-
|
|
106
|
+
789,
|
|
107
107
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) of file associations to languages (for example `\"*.extension\": \"html\"`). Patterns will match on the absolute path of a file if they contain a path separator and will match on the name of the file otherwise. These have precedence over the default associations of the languages installed."
|
|
108
108
|
)),
|
|
109
109
|
'additionalProperties': {
|
|
@@ -115,7 +115,7 @@ configurationRegistry.registerConfiguration({
|
|
|
115
115
|
'enum': ( (Object.keys(SUPPORTED_ENCODINGS))),
|
|
116
116
|
'default': 'utf8',
|
|
117
117
|
'description': ( localize(
|
|
118
|
-
|
|
118
|
+
790,
|
|
119
119
|
"The default character set encoding to use when reading and writing files. This setting can also be configured per language."
|
|
120
120
|
)),
|
|
121
121
|
'scope': 5 ,
|
|
@@ -126,7 +126,7 @@ configurationRegistry.registerConfiguration({
|
|
|
126
126
|
'type': 'boolean',
|
|
127
127
|
'default': false,
|
|
128
128
|
'markdownDescription': ( localize(
|
|
129
|
-
|
|
129
|
+
791,
|
|
130
130
|
"When enabled, the editor will attempt to guess the character set encoding when opening files. This setting can also be configured per language. Note, this setting is not respected by text search. Only {0} is respected.",
|
|
131
131
|
'`#files.encoding#`'
|
|
132
132
|
)),
|
|
@@ -141,7 +141,7 @@ configurationRegistry.registerConfiguration({
|
|
|
141
141
|
},
|
|
142
142
|
'default': [],
|
|
143
143
|
'markdownDescription': ( localize(
|
|
144
|
-
|
|
144
|
+
792,
|
|
145
145
|
"List of character set encodings that the editor should attempt to guess in the order they are listed. In case it cannot be determined, {0} is respected",
|
|
146
146
|
'`#files.encoding#`'
|
|
147
147
|
)),
|
|
@@ -155,33 +155,33 @@ configurationRegistry.registerConfiguration({
|
|
|
155
155
|
'auto'
|
|
156
156
|
],
|
|
157
157
|
'enumDescriptions': [
|
|
158
|
-
( localize(
|
|
159
|
-
( localize(
|
|
160
|
-
( localize(
|
|
158
|
+
( localize(793, "LF")),
|
|
159
|
+
( localize(794, "CRLF")),
|
|
160
|
+
( localize(795, "Uses operating system specific end of line character."))
|
|
161
161
|
],
|
|
162
162
|
'default': 'auto',
|
|
163
|
-
'description': ( localize(
|
|
163
|
+
'description': ( localize(796, "The default end of line character.")),
|
|
164
164
|
'scope': 5
|
|
165
165
|
},
|
|
166
166
|
'files.enableTrash': {
|
|
167
167
|
'type': 'boolean',
|
|
168
168
|
'default': true,
|
|
169
169
|
'description': ( localize(
|
|
170
|
-
|
|
170
|
+
797,
|
|
171
171
|
"Moves files/folders to the OS trash (recycle bin on Windows) when deleting. Disabling this will delete files/folders permanently."
|
|
172
172
|
))
|
|
173
173
|
},
|
|
174
174
|
'files.trimTrailingWhitespace': {
|
|
175
175
|
'type': 'boolean',
|
|
176
176
|
'default': false,
|
|
177
|
-
'description': ( localize(
|
|
177
|
+
'description': ( localize(798, "When enabled, will trim trailing whitespace when saving a file.")),
|
|
178
178
|
'scope': 5
|
|
179
179
|
},
|
|
180
180
|
'files.trimTrailingWhitespaceInRegexAndStrings': {
|
|
181
181
|
'type': 'boolean',
|
|
182
182
|
'default': true,
|
|
183
183
|
'description': ( localize(
|
|
184
|
-
|
|
184
|
+
799,
|
|
185
185
|
"When enabled, trailing whitespace will be removed from multiline strings and regexes will be removed on save or when executing 'editor.action.trimTrailingWhitespace'. This can cause whitespace to not be trimmed from lines when there isn't up-to-date token information."
|
|
186
186
|
)),
|
|
187
187
|
'scope': 5
|
|
@@ -190,7 +190,7 @@ configurationRegistry.registerConfiguration({
|
|
|
190
190
|
'type': 'boolean',
|
|
191
191
|
'default': false,
|
|
192
192
|
'description': ( localize(
|
|
193
|
-
|
|
193
|
+
800,
|
|
194
194
|
"When enabled, insert a final new line at the end of the file when saving it."
|
|
195
195
|
)),
|
|
196
196
|
'scope': 5
|
|
@@ -199,7 +199,7 @@ configurationRegistry.registerConfiguration({
|
|
|
199
199
|
'type': 'boolean',
|
|
200
200
|
'default': false,
|
|
201
201
|
'description': ( localize(
|
|
202
|
-
|
|
202
|
+
801,
|
|
203
203
|
"When enabled, will trim all new lines after the final new line at the end of the file when saving it."
|
|
204
204
|
)),
|
|
205
205
|
scope: 5 ,
|
|
@@ -208,23 +208,23 @@ configurationRegistry.registerConfiguration({
|
|
|
208
208
|
'type': 'string',
|
|
209
209
|
'enum': [AutoSaveConfiguration.OFF, AutoSaveConfiguration.AFTER_DELAY, AutoSaveConfiguration.ON_FOCUS_CHANGE, AutoSaveConfiguration.ON_WINDOW_CHANGE],
|
|
210
210
|
'markdownEnumDescriptions': [
|
|
211
|
-
( localize(
|
|
211
|
+
( localize(802, "An editor with changes is never automatically saved.")),
|
|
212
212
|
( localize(
|
|
213
|
-
|
|
213
|
+
803,
|
|
214
214
|
"An editor with changes is automatically saved after the configured `#files.autoSaveDelay#`."
|
|
215
215
|
)),
|
|
216
216
|
( localize(
|
|
217
|
-
|
|
217
|
+
804,
|
|
218
218
|
"An editor with changes is automatically saved when the editor loses focus."
|
|
219
219
|
)),
|
|
220
220
|
( localize(
|
|
221
|
-
|
|
221
|
+
805,
|
|
222
222
|
"An editor with changes is automatically saved when the window loses focus."
|
|
223
223
|
))
|
|
224
224
|
],
|
|
225
225
|
'default': isWeb ? AutoSaveConfiguration.AFTER_DELAY : AutoSaveConfiguration.OFF,
|
|
226
226
|
'markdownDescription': ( localize(
|
|
227
|
-
|
|
227
|
+
806,
|
|
228
228
|
"Controls [auto save](https://code.visualstudio.com/docs/editor/codebasics#_save-auto-save) of editors that have unsaved changes.",
|
|
229
229
|
AutoSaveConfiguration.OFF,
|
|
230
230
|
AutoSaveConfiguration.AFTER_DELAY,
|
|
@@ -239,7 +239,7 @@ configurationRegistry.registerConfiguration({
|
|
|
239
239
|
'default': 1000,
|
|
240
240
|
'minimum': 0,
|
|
241
241
|
'markdownDescription': ( localize(
|
|
242
|
-
|
|
242
|
+
807,
|
|
243
243
|
"Controls the delay in milliseconds after which an editor with unsaved changes is saved automatically. Only applies when `#files.autoSave#` is set to `{0}`.",
|
|
244
244
|
AutoSaveConfiguration.AFTER_DELAY
|
|
245
245
|
)),
|
|
@@ -249,7 +249,7 @@ configurationRegistry.registerConfiguration({
|
|
|
249
249
|
'type': 'boolean',
|
|
250
250
|
'default': false,
|
|
251
251
|
'markdownDescription': ( localize(
|
|
252
|
-
|
|
252
|
+
808,
|
|
253
253
|
"When enabled, will limit [auto save](https://code.visualstudio.com/docs/editor/codebasics#_save-auto-save) of editors to files that are inside the opened workspace. Only applies when {0} is enabled.",
|
|
254
254
|
'`#files.autoSave#`'
|
|
255
255
|
)),
|
|
@@ -259,7 +259,7 @@ configurationRegistry.registerConfiguration({
|
|
|
259
259
|
'type': 'boolean',
|
|
260
260
|
'default': false,
|
|
261
261
|
'markdownDescription': ( localize(
|
|
262
|
-
|
|
262
|
+
809,
|
|
263
263
|
"When enabled, will limit [auto save](https://code.visualstudio.com/docs/editor/codebasics#_save-auto-save) of editors to files that have no errors reported in them at the time the auto save is triggered. Only applies when {0} is enabled.",
|
|
264
264
|
'`#files.autoSave#`'
|
|
265
265
|
)),
|
|
@@ -272,7 +272,7 @@ configurationRegistry.registerConfiguration({
|
|
|
272
272
|
},
|
|
273
273
|
'default': { '**/.git/objects/**': true, '**/.git/subtree-cache/**': true, '**/.hg/store/**': true },
|
|
274
274
|
'markdownDescription': ( localize(
|
|
275
|
-
|
|
275
|
+
810,
|
|
276
276
|
"Configure paths or [glob patterns](https://aka.ms/vscode-glob-patterns) to exclude from file watching. Paths can either be relative to the watched folder or absolute. Glob patterns are matched relative from the watched folder. When you experience the file watcher process consuming a lot of CPU, make sure to exclude large folders that are of less interest (such as build output folders)."
|
|
277
277
|
)),
|
|
278
278
|
'scope': 4
|
|
@@ -284,7 +284,7 @@ configurationRegistry.registerConfiguration({
|
|
|
284
284
|
},
|
|
285
285
|
'default': [],
|
|
286
286
|
'description': ( localize(
|
|
287
|
-
|
|
287
|
+
811,
|
|
288
288
|
"Configure extra paths to watch for changes inside the workspace. By default, all workspace folders will be watched recursively, except for folders that are symbolic links. You can explicitly add absolute or relative paths to support watching folders that are symbolic links. Relative paths will be resolved to an absolute path using the currently opened workspace."
|
|
289
289
|
)),
|
|
290
290
|
'scope': 4
|
|
@@ -293,7 +293,7 @@ configurationRegistry.registerConfiguration({
|
|
|
293
293
|
'files.defaultLanguage': {
|
|
294
294
|
'type': 'string',
|
|
295
295
|
'markdownDescription': ( localize(
|
|
296
|
-
|
|
296
|
+
812,
|
|
297
297
|
"The default language identifier that is assigned to new files. If configured to `${activeEditorLanguage}`, will use the language identifier of the currently active text editor if any."
|
|
298
298
|
))
|
|
299
299
|
},
|
|
@@ -304,7 +304,7 @@ configurationRegistry.registerConfiguration({
|
|
|
304
304
|
},
|
|
305
305
|
'default': {},
|
|
306
306
|
'markdownDescription': ( localize(
|
|
307
|
-
|
|
307
|
+
813,
|
|
308
308
|
"Configure paths or [glob patterns](https://aka.ms/vscode-glob-patterns) to mark as read-only. Glob patterns are always evaluated relative to the path of the workspace folder unless they are absolute paths. You can exclude matching paths via the `#files.readonlyExclude#` setting. Files from readonly file system providers will always be read-only independent of this setting."
|
|
309
309
|
)),
|
|
310
310
|
'scope': 4
|
|
@@ -316,7 +316,7 @@ configurationRegistry.registerConfiguration({
|
|
|
316
316
|
},
|
|
317
317
|
'default': {},
|
|
318
318
|
'markdownDescription': ( localize(
|
|
319
|
-
|
|
319
|
+
814,
|
|
320
320
|
"Configure paths or [glob patterns](https://aka.ms/vscode-glob-patterns) to exclude from being marked as read-only if they match as a result of the `#files.readonlyInclude#` setting. Glob patterns are always evaluated relative to the path of the workspace folder unless they are absolute paths. Files from readonly file system providers will always be read-only independent of this setting."
|
|
321
321
|
)),
|
|
322
322
|
'scope': 4
|
|
@@ -324,14 +324,14 @@ configurationRegistry.registerConfiguration({
|
|
|
324
324
|
[FILES_READONLY_FROM_PERMISSIONS_CONFIG]: {
|
|
325
325
|
'type': 'boolean',
|
|
326
326
|
'markdownDescription': ( localize(
|
|
327
|
-
|
|
327
|
+
815,
|
|
328
328
|
"Marks files as read-only when their file permissions indicate as such. This can be overridden via `#files.readonlyInclude#` and `#files.readonlyExclude#` settings."
|
|
329
329
|
)),
|
|
330
330
|
'default': false
|
|
331
331
|
},
|
|
332
332
|
'files.restoreUndoStack': {
|
|
333
333
|
'type': 'boolean',
|
|
334
|
-
'description': ( localize(
|
|
334
|
+
'description': ( localize(816, "Restore the undo stack when a file is reopened.")),
|
|
335
335
|
'default': true
|
|
336
336
|
},
|
|
337
337
|
'files.saveConflictResolution': {
|
|
@@ -342,16 +342,16 @@ configurationRegistry.registerConfiguration({
|
|
|
342
342
|
],
|
|
343
343
|
'enumDescriptions': [
|
|
344
344
|
( localize(
|
|
345
|
-
|
|
345
|
+
817,
|
|
346
346
|
"Will refuse to save and ask for resolving the save conflict manually."
|
|
347
347
|
)),
|
|
348
348
|
( localize(
|
|
349
|
-
|
|
349
|
+
818,
|
|
350
350
|
"Will resolve the save conflict by overwriting the file on disk with the changes in the editor."
|
|
351
351
|
))
|
|
352
352
|
],
|
|
353
353
|
'description': ( localize(
|
|
354
|
-
|
|
354
|
+
819,
|
|
355
355
|
"A save conflict can occur when a file is saved to disk that was changed by another program in the meantime. To prevent data loss, the user is asked to compare the changes in the editor with the version on disk. This setting should only be changed if you frequently encounter save conflict errors and may result in data loss if used without caution."
|
|
356
356
|
)),
|
|
357
357
|
'default': 'askUser',
|
|
@@ -361,11 +361,11 @@ configurationRegistry.registerConfiguration({
|
|
|
361
361
|
'type': 'string',
|
|
362
362
|
'pattern': '^((\\/|\\\\\\\\|[a-zA-Z]:\\\\).*)?$',
|
|
363
363
|
'patternErrorMessage': ( localize(
|
|
364
|
-
|
|
364
|
+
820,
|
|
365
365
|
"Default path for file dialogs must be an absolute path (e.g. C:\\\\myFolder or /myFolder)."
|
|
366
366
|
)),
|
|
367
367
|
'description': ( localize(
|
|
368
|
-
|
|
368
|
+
821,
|
|
369
369
|
"Default path for file dialogs, overriding user's home path. Only used in the absence of a context-specific path, such as most recently opened file or folder."
|
|
370
370
|
)),
|
|
371
371
|
'scope': 2
|
|
@@ -373,7 +373,7 @@ configurationRegistry.registerConfiguration({
|
|
|
373
373
|
'files.simpleDialog.enable': {
|
|
374
374
|
'type': 'boolean',
|
|
375
375
|
'description': ( localize(
|
|
376
|
-
|
|
376
|
+
822,
|
|
377
377
|
"Enables the simple file dialog for opening and saving files and folders. The simple file dialog replaces the system file dialog when enabled."
|
|
378
378
|
)),
|
|
379
379
|
'default': false
|
|
@@ -382,7 +382,7 @@ configurationRegistry.registerConfiguration({
|
|
|
382
382
|
type: 'number',
|
|
383
383
|
default: 60000,
|
|
384
384
|
markdownDescription: ( localize(
|
|
385
|
-
|
|
385
|
+
823,
|
|
386
386
|
"Timeout in milliseconds after which file participants for create, rename, and delete are cancelled. Use `0` to disable participants."
|
|
387
387
|
)),
|
|
388
388
|
}
|
|
@@ -394,7 +394,7 @@ configurationRegistry.registerConfiguration({
|
|
|
394
394
|
'editor.formatOnSave': {
|
|
395
395
|
'type': 'boolean',
|
|
396
396
|
'markdownDescription': ( localize(
|
|
397
|
-
|
|
397
|
+
824,
|
|
398
398
|
"Format a file on save. A formatter must be available and the editor must not be shutting down. When {0} is set to `afterDelay`, the file will only be formatted when saved explicitly.",
|
|
399
399
|
'`#files.autoSave#`'
|
|
400
400
|
)),
|
|
@@ -409,15 +409,15 @@ configurationRegistry.registerConfiguration({
|
|
|
409
409
|
'modificationsIfAvailable'
|
|
410
410
|
],
|
|
411
411
|
'enumDescriptions': [
|
|
412
|
-
( localize(
|
|
413
|
-
( localize(
|
|
412
|
+
( localize(825, "Format the whole file.")),
|
|
413
|
+
( localize(826, "Format modifications (requires source control).")),
|
|
414
414
|
( localize(
|
|
415
|
-
|
|
415
|
+
827,
|
|
416
416
|
"Will attempt to format modifications only (requires source control). If source control can't be used, then the whole file will be formatted."
|
|
417
417
|
)),
|
|
418
418
|
],
|
|
419
419
|
'markdownDescription': ( localize(
|
|
420
|
-
|
|
420
|
+
828,
|
|
421
421
|
"Controls if format on save formats the whole file or only modifications. Only applies when `#editor.formatOnSave#` is enabled."
|
|
422
422
|
)),
|
|
423
423
|
'scope': 5 ,
|
|
@@ -40,10 +40,10 @@ let FileUriLabelContribution = class FileUriLabelContribution {
|
|
|
40
40
|
FileUriLabelContribution = ( (__decorate([
|
|
41
41
|
( (__param(0, ILabelService)))
|
|
42
42
|
], FileUriLabelContribution)));
|
|
43
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(TextFileEditor, TextFileEditor.ID, ( localize(
|
|
43
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(TextFileEditor, TextFileEditor.ID, ( localize(4477, "Text File Editor"))), [
|
|
44
44
|
( (new SyncDescriptor(FileEditorInput)))
|
|
45
45
|
]);
|
|
46
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(BinaryFileEditor, BinaryFileEditor.ID, ( localize(
|
|
46
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(BinaryFileEditor, BinaryFileEditor.ID, ( localize(4478, "Binary File Editor"))), [
|
|
47
47
|
( (new SyncDescriptor(FileEditorInput)))
|
|
48
48
|
]);
|
|
49
49
|
( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(FILE_EDITOR_INPUT_ID, FileEditorInputSerializer);
|