@codingame/monaco-vscode-api 11.0.2 → 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/extensions.d.ts +1 -1
- package/package.json +8 -8
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +1 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.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/editorExtensions.js +6 -6
- package/vscode/src/vs/editor/common/config/editorOptions.js +364 -364
- 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/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/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- 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/localizedStrings.js +3 -3
- 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/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/windowActions.js +25 -25
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +15 -15
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
- package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
- package/vscode/src/vs/workbench/browser/window.js +16 -16
- 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/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- 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/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/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/extensionsActions.js +173 -173
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -4
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -33
- 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 +8 -8
- 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/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- 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/remote/browser/remoteExplorer.js +15 -15
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +60 -60
- 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/anythingQuickAccess.js +10 -10
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +10 -10
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +8 -8
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +20 -20
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminal/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/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
- package/vscode/src/vs/workbench/services/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/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
|
@@ -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;
|
|
@@ -25,7 +25,7 @@ const externalUriOpenersConfigurationNode = {
|
|
|
25
25
|
properties: {
|
|
26
26
|
[externalUriOpenersSettingId]: {
|
|
27
27
|
type: 'object',
|
|
28
|
-
markdownDescription: ( localize(
|
|
28
|
+
markdownDescription: ( localize(8883, "Configure the opener to use for external URIs (http, https).")),
|
|
29
29
|
defaultSnippets: [{
|
|
30
30
|
body: {
|
|
31
31
|
'example.com': '$1'
|
|
@@ -36,7 +36,7 @@ const externalUriOpenersConfigurationNode = {
|
|
|
36
36
|
{
|
|
37
37
|
type: 'string',
|
|
38
38
|
markdownDescription: ( localize(
|
|
39
|
-
|
|
39
|
+
8884,
|
|
40
40
|
"Map URI pattern to an opener id.\nExample patterns: \n{0}",
|
|
41
41
|
exampleUriPatterns
|
|
42
42
|
)),
|
|
@@ -44,12 +44,12 @@ const externalUriOpenersConfigurationNode = {
|
|
|
44
44
|
{
|
|
45
45
|
type: 'string',
|
|
46
46
|
markdownDescription: ( localize(
|
|
47
|
-
|
|
47
|
+
8884,
|
|
48
48
|
"Map URI pattern to an opener id.\nExample patterns: \n{0}",
|
|
49
49
|
exampleUriPatterns
|
|
50
50
|
)),
|
|
51
51
|
enum: [defaultExternalUriOpenerId],
|
|
52
|
-
enumDescriptions: [( localize(
|
|
52
|
+
enumDescriptions: [( localize(8885, "Open using VS Code's standard opener."))],
|
|
53
53
|
},
|
|
54
54
|
externalUriOpenerIdSchemaAddition
|
|
55
55
|
]
|
package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js
CHANGED
|
@@ -129,16 +129,16 @@ let ExternalUriOpenerService = class ExternalUriOpenerService extends Disposable
|
|
|
129
129
|
})));
|
|
130
130
|
items.push({
|
|
131
131
|
label: isWeb
|
|
132
|
-
? ( localize(
|
|
133
|
-
: ( localize(
|
|
132
|
+
? ( localize(3589, 'Open in new browser window'))
|
|
133
|
+
: ( localize(3590, 'Open in default browser')),
|
|
134
134
|
opener: undefined
|
|
135
135
|
}, { type: 'separator' }, {
|
|
136
|
-
label: ( localize(
|
|
136
|
+
label: ( localize(3591, "Configure default opener...")),
|
|
137
137
|
opener: 'configureDefault'
|
|
138
138
|
});
|
|
139
139
|
const picked = await this.quickInputService.pick(items, {
|
|
140
140
|
placeHolder: ( localize(
|
|
141
|
-
|
|
141
|
+
3592,
|
|
142
142
|
"How would you like to open: {0}",
|
|
143
143
|
(targetUri.toString())
|
|
144
144
|
))
|
|
@@ -33,7 +33,7 @@ const CONFLICT_RESOLUTION_CONTEXT = 'saveConflictResolutionContext';
|
|
|
33
33
|
const CONFLICT_RESOLUTION_SCHEME = 'conflictResolution';
|
|
34
34
|
const LEARN_MORE_DIRTY_WRITE_IGNORE_KEY = 'learnMoreDirtyWriteError';
|
|
35
35
|
const conflictEditorHelp = ( localize(
|
|
36
|
-
|
|
36
|
+
5533,
|
|
37
37
|
"Use the actions in the editor tool bar to either undo your changes or overwrite the content of the file with your changes."
|
|
38
38
|
));
|
|
39
39
|
let TextFileSaveErrorHandler = class TextFileSaveErrorHandler extends Disposable {
|
|
@@ -97,7 +97,7 @@ let TextFileSaveErrorHandler = class TextFileSaveErrorHandler extends Disposable
|
|
|
97
97
|
}
|
|
98
98
|
else {
|
|
99
99
|
message = ( localize(
|
|
100
|
-
|
|
100
|
+
5534,
|
|
101
101
|
"Failed to save '{0}': The content of the file is newer. Please compare your version with the file contents or overwrite the content of the file with your changes.",
|
|
102
102
|
basename(resource)
|
|
103
103
|
));
|
|
@@ -125,18 +125,18 @@ let TextFileSaveErrorHandler = class TextFileSaveErrorHandler extends Disposable
|
|
|
125
125
|
if (isWriteLocked) {
|
|
126
126
|
if (triedToUnlock && canSaveElevated) {
|
|
127
127
|
message = isWindows ? ( localize(
|
|
128
|
-
|
|
128
|
+
5535,
|
|
129
129
|
"Failed to save '{0}': File is read-only. Select 'Overwrite as Admin' to retry as administrator.",
|
|
130
130
|
basename(resource)
|
|
131
131
|
)) : ( localize(
|
|
132
|
-
|
|
132
|
+
5536,
|
|
133
133
|
"Failed to save '{0}': File is read-only. Select 'Overwrite as Sudo' to retry as superuser.",
|
|
134
134
|
basename(resource)
|
|
135
135
|
));
|
|
136
136
|
}
|
|
137
137
|
else {
|
|
138
138
|
message = ( localize(
|
|
139
|
-
|
|
139
|
+
5537,
|
|
140
140
|
"Failed to save '{0}': File is read-only. Select 'Overwrite' to attempt to make it writeable.",
|
|
141
141
|
basename(resource)
|
|
142
142
|
));
|
|
@@ -144,18 +144,18 @@ let TextFileSaveErrorHandler = class TextFileSaveErrorHandler extends Disposable
|
|
|
144
144
|
}
|
|
145
145
|
else if (canSaveElevated && isPermissionDenied) {
|
|
146
146
|
message = isWindows ? ( localize(
|
|
147
|
-
|
|
147
|
+
5538,
|
|
148
148
|
"Failed to save '{0}': Insufficient permissions. Select 'Retry as Admin' to retry as administrator.",
|
|
149
149
|
basename(resource)
|
|
150
150
|
)) : ( localize(
|
|
151
|
-
|
|
151
|
+
5539,
|
|
152
152
|
"Failed to save '{0}': Insufficient permissions. Select 'Retry as Sudo' to retry as superuser.",
|
|
153
153
|
basename(resource)
|
|
154
154
|
));
|
|
155
155
|
}
|
|
156
156
|
else {
|
|
157
157
|
message = ( localize(
|
|
158
|
-
|
|
158
|
+
5540,
|
|
159
159
|
"Failed to save '{0}': {1}",
|
|
160
160
|
basename(resource),
|
|
161
161
|
toErrorMessage(error, false)
|
|
@@ -195,7 +195,7 @@ function clearPendingResolveSaveConflictMessages() {
|
|
|
195
195
|
}
|
|
196
196
|
let ResolveConflictLearnMoreAction = class ResolveConflictLearnMoreAction extends Action {
|
|
197
197
|
constructor(openerService) {
|
|
198
|
-
super('workbench.files.action.resolveConflictLearnMore', ( localize(
|
|
198
|
+
super('workbench.files.action.resolveConflictLearnMore', ( localize(5541, "Learn More")));
|
|
199
199
|
this.openerService = openerService;
|
|
200
200
|
}
|
|
201
201
|
async run() {
|
|
@@ -207,7 +207,7 @@ ResolveConflictLearnMoreAction = ( (__decorate([
|
|
|
207
207
|
], ResolveConflictLearnMoreAction)));
|
|
208
208
|
let DoNotShowResolveConflictLearnMoreAction = class DoNotShowResolveConflictLearnMoreAction extends Action {
|
|
209
209
|
constructor(storageService) {
|
|
210
|
-
super('workbench.files.action.resolveConflictLearnMoreDoNotShowAgain', ( localize(
|
|
210
|
+
super('workbench.files.action.resolveConflictLearnMoreDoNotShowAgain', ( localize(5542, "Don't Show Again")));
|
|
211
211
|
this.storageService = storageService;
|
|
212
212
|
}
|
|
213
213
|
async run(notification) {
|
|
@@ -220,7 +220,7 @@ DoNotShowResolveConflictLearnMoreAction = ( (__decorate([
|
|
|
220
220
|
], DoNotShowResolveConflictLearnMoreAction)));
|
|
221
221
|
let ResolveSaveConflictAction = class ResolveSaveConflictAction extends Action {
|
|
222
222
|
constructor(model, editorService, notificationService, instantiationService, productService) {
|
|
223
|
-
super('workbench.files.action.resolveConflict', ( localize(
|
|
223
|
+
super('workbench.files.action.resolveConflict', ( localize(5543, "Compare")));
|
|
224
224
|
this.model = model;
|
|
225
225
|
this.editorService = editorService;
|
|
226
226
|
this.notificationService = notificationService;
|
|
@@ -232,7 +232,7 @@ let ResolveSaveConflictAction = class ResolveSaveConflictAction extends Action {
|
|
|
232
232
|
const resource = this.model.resource;
|
|
233
233
|
const name = basename(resource);
|
|
234
234
|
const editorLabel = ( localize(
|
|
235
|
-
|
|
235
|
+
5544,
|
|
236
236
|
"{0} (in file) ↔ {1} (in {2}) - Resolve save conflict",
|
|
237
237
|
name,
|
|
238
238
|
name,
|
|
@@ -260,7 +260,7 @@ ResolveSaveConflictAction = ( (__decorate([
|
|
|
260
260
|
], ResolveSaveConflictAction)));
|
|
261
261
|
class SaveModelElevatedAction extends Action {
|
|
262
262
|
constructor(model, options, triedToUnlock) {
|
|
263
|
-
super('workbench.files.action.saveModelElevated', triedToUnlock ? isWindows ? ( localize(
|
|
263
|
+
super('workbench.files.action.saveModelElevated', triedToUnlock ? isWindows ? ( localize(5545, "Overwrite as Admin...")) : ( localize(5546, "Overwrite as Sudo...")) : isWindows ? ( localize(5547, "Retry as Admin...")) : ( localize(5548, "Retry as Sudo...")));
|
|
264
264
|
this.model = model;
|
|
265
265
|
this.options = options;
|
|
266
266
|
this.triedToUnlock = triedToUnlock;
|
|
@@ -278,7 +278,7 @@ class SaveModelElevatedAction extends Action {
|
|
|
278
278
|
}
|
|
279
279
|
class RetrySaveModelAction extends Action {
|
|
280
280
|
constructor(model, options) {
|
|
281
|
-
super('workbench.files.action.saveModel', ( localize(
|
|
281
|
+
super('workbench.files.action.saveModel', ( localize(5549, "Retry")));
|
|
282
282
|
this.model = model;
|
|
283
283
|
this.options = options;
|
|
284
284
|
}
|
|
@@ -290,7 +290,7 @@ class RetrySaveModelAction extends Action {
|
|
|
290
290
|
}
|
|
291
291
|
class RevertModelAction extends Action {
|
|
292
292
|
constructor(model) {
|
|
293
|
-
super('workbench.files.action.revertModel', ( localize(
|
|
293
|
+
super('workbench.files.action.revertModel', ( localize(5550, "Revert")));
|
|
294
294
|
this.model = model;
|
|
295
295
|
}
|
|
296
296
|
async run() {
|
|
@@ -333,7 +333,7 @@ SaveModelAsAction = ( (__decorate([
|
|
|
333
333
|
], SaveModelAsAction)));
|
|
334
334
|
class UnlockModelAction extends Action {
|
|
335
335
|
constructor(model, options) {
|
|
336
|
-
super('workbench.files.action.unlock', ( localize(
|
|
336
|
+
super('workbench.files.action.unlock', ( localize(5551, "Overwrite")));
|
|
337
337
|
this.model = model;
|
|
338
338
|
this.options = options;
|
|
339
339
|
}
|
|
@@ -345,7 +345,7 @@ class UnlockModelAction extends Action {
|
|
|
345
345
|
}
|
|
346
346
|
class SaveModelIgnoreModifiedSinceAction extends Action {
|
|
347
347
|
constructor(model, options) {
|
|
348
|
-
super('workbench.files.action.saveIgnoreModifiedSince', ( localize(
|
|
348
|
+
super('workbench.files.action.saveIgnoreModifiedSince', ( localize(5551, "Overwrite")));
|
|
349
349
|
this.model = model;
|
|
350
350
|
this.options = options;
|
|
351
351
|
}
|
|
@@ -357,7 +357,7 @@ class SaveModelIgnoreModifiedSinceAction extends Action {
|
|
|
357
357
|
}
|
|
358
358
|
let ConfigureSaveConflictAction = class ConfigureSaveConflictAction extends Action {
|
|
359
359
|
constructor(preferencesService) {
|
|
360
|
-
super('workbench.files.action.configureSaveConflict', ( localize(
|
|
360
|
+
super('workbench.files.action.configureSaveConflict', ( localize(5552, "Configure")));
|
|
361
361
|
this.preferencesService = preferencesService;
|
|
362
362
|
}
|
|
363
363
|
async run() {
|
|
@@ -34,8 +34,8 @@ import { Codicon } from '../../../../base/common/codicons.js';
|
|
|
34
34
|
import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
|
|
35
35
|
import { isMouseEvent } from '../../../../base/browser/dom.js';
|
|
36
36
|
|
|
37
|
-
const explorerViewIcon = registerIcon('explorer-view-icon', Codicon.files, ( localize(
|
|
38
|
-
const openEditorsViewIcon = registerIcon('open-editors-view-icon', Codicon.book, ( localize(
|
|
37
|
+
const explorerViewIcon = registerIcon('explorer-view-icon', Codicon.files, ( localize(5575, 'View icon of the explorer view.')));
|
|
38
|
+
const openEditorsViewIcon = registerIcon('open-editors-view-icon', Codicon.book, ( localize(5576, 'View icon of the open editors view.')));
|
|
39
39
|
let ExplorerViewletViewsContribution = class ExplorerViewletViewsContribution extends Disposable {
|
|
40
40
|
static { this.ID = 'workbench.contrib.explorerViewletViews'; }
|
|
41
41
|
constructor(workspaceContextService, progressService) {
|
|
@@ -117,7 +117,7 @@ let ExplorerViewletViewsContribution = class ExplorerViewletViewsContribution ex
|
|
|
117
117
|
createExplorerViewDescriptor() {
|
|
118
118
|
return {
|
|
119
119
|
id: VIEW_ID,
|
|
120
|
-
name: ( localize2(
|
|
120
|
+
name: ( localize2(5577, "Folders")),
|
|
121
121
|
containerIcon: explorerViewIcon,
|
|
122
122
|
ctorDescriptor: ( (new SyncDescriptor(ExplorerView))),
|
|
123
123
|
order: 1,
|
|
@@ -212,7 +212,7 @@ ExplorerViewPaneContainer = ( (__decorate([
|
|
|
212
212
|
const viewContainerRegistry = ( (Registry.as(Extensions.ViewContainersRegistry)));
|
|
213
213
|
const VIEW_CONTAINER = viewContainerRegistry.registerViewContainer({
|
|
214
214
|
id: VIEWLET_ID,
|
|
215
|
-
title: ( localize2(
|
|
215
|
+
title: ( localize2(5578, "Explorer")),
|
|
216
216
|
ctorDescriptor: ( (new SyncDescriptor(ExplorerViewPaneContainer))),
|
|
217
217
|
storageId: 'workbench.explorer.views.state',
|
|
218
218
|
icon: explorerViewIcon,
|
|
@@ -221,15 +221,15 @@ const VIEW_CONTAINER = viewContainerRegistry.registerViewContainer({
|
|
|
221
221
|
order: 0,
|
|
222
222
|
openCommandActionDescriptor: {
|
|
223
223
|
id: VIEWLET_ID,
|
|
224
|
-
title: ( localize2(
|
|
225
|
-
mnemonicTitle: ( localize(
|
|
224
|
+
title: ( localize2(5578, "Explorer")),
|
|
225
|
+
mnemonicTitle: ( localize(5579, "&&Explorer")),
|
|
226
226
|
keybindings: { primary: 2048 | 1024 | 35 },
|
|
227
227
|
order: 0
|
|
228
228
|
},
|
|
229
229
|
}, 0 , { isDefault: true });
|
|
230
|
-
const openFolder = ( localize(
|
|
231
|
-
const addAFolder = ( localize(
|
|
232
|
-
const openRecent = ( localize(
|
|
230
|
+
const openFolder = ( localize(5580, "Open Folder"));
|
|
231
|
+
const addAFolder = ( localize(5581, "add a folder"));
|
|
232
|
+
const openRecent = ( localize(5582, "Open Recent"));
|
|
233
233
|
const addRootFolderButton = `[${openFolder}](command:${AddRootFolderAction.ID})`;
|
|
234
234
|
const addAFolderButton = `[${addAFolder}](command:${AddRootFolderAction.ID})`;
|
|
235
235
|
const openFolderButton = `[${openFolder}](command:${(isMacintosh && !isWeb) ? OpenFileFolderAction.ID : OpenFolderAction.ID})`;
|
|
@@ -238,7 +238,7 @@ const openRecentButton = `[${openRecent}](command:${OpenRecentAction.ID})`;
|
|
|
238
238
|
const viewsRegistry = ( (Registry.as(Extensions.ViewsRegistry)));
|
|
239
239
|
viewsRegistry.registerViewWelcomeContent(EmptyView.ID, {
|
|
240
240
|
content: ( localize(
|
|
241
|
-
|
|
241
|
+
5583,
|
|
242
242
|
"You have not yet added a folder to the workspace.\n{0}",
|
|
243
243
|
addRootFolderButton
|
|
244
244
|
)),
|
|
@@ -250,7 +250,7 @@ viewsRegistry.registerViewWelcomeContent(EmptyView.ID, {
|
|
|
250
250
|
});
|
|
251
251
|
viewsRegistry.registerViewWelcomeContent(EmptyView.ID, {
|
|
252
252
|
content: ( localize(
|
|
253
|
-
|
|
253
|
+
5584,
|
|
254
254
|
"You have not yet opened a folder.\n{0}\n{1}",
|
|
255
255
|
openFolderViaWorkspaceButton,
|
|
256
256
|
openRecentButton
|
|
@@ -262,7 +262,7 @@ viewsRegistry.registerViewWelcomeContent(EmptyView.ID, {
|
|
|
262
262
|
order: 1
|
|
263
263
|
});
|
|
264
264
|
viewsRegistry.registerViewWelcomeContent(EmptyView.ID, {
|
|
265
|
-
content: ( localize(
|
|
265
|
+
content: ( localize(5585, "Connected to remote.\n{0}", openFolderButton)),
|
|
266
266
|
when: ( (ContextKeyExpr.and(
|
|
267
267
|
(WorkbenchStateContext.notEqualsTo('workspace')),
|
|
268
268
|
(RemoteNameContext.notEqualsTo('')),
|
|
@@ -272,7 +272,7 @@ viewsRegistry.registerViewWelcomeContent(EmptyView.ID, {
|
|
|
272
272
|
});
|
|
273
273
|
viewsRegistry.registerViewWelcomeContent(EmptyView.ID, {
|
|
274
274
|
content: ( localize(
|
|
275
|
-
|
|
275
|
+
5586,
|
|
276
276
|
"You have not yet opened a folder.\n{0}\nOpening a folder will close all currently open editors. To keep them open, {1} instead.",
|
|
277
277
|
openFolderButton,
|
|
278
278
|
addAFolderButton
|
|
@@ -291,7 +291,7 @@ viewsRegistry.registerViewWelcomeContent(EmptyView.ID, {
|
|
|
291
291
|
order: 1
|
|
292
292
|
});
|
|
293
293
|
viewsRegistry.registerViewWelcomeContent(EmptyView.ID, {
|
|
294
|
-
content: ( localize(
|
|
294
|
+
content: ( localize(5587, "You have not yet opened a folder.\n{0}", openFolderButton)),
|
|
295
295
|
when: ( (ContextKeyExpr.and(
|
|
296
296
|
( (ContextKeyExpr.has('editorIsOpen')))?.negate(), (ContextKeyExpr.or(
|
|
297
297
|
(ContextKeyExpr.and(
|