@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
package/api.js
CHANGED
package/extensions.d.ts
CHANGED
|
@@ -171,4 +171,4 @@ declare function registerExtension(manifest: IExtensionManifest, extHostKind: Ex
|
|
|
171
171
|
declare function registerExtension(manifest: IExtensionManifest, extHostKind: ExtensionHostKind.Remote, params?: RegisterRemoteExtensionParams): RegisterRemoteExtensionResult;
|
|
172
172
|
declare function registerExtension(manifest: IExtensionManifest, extHostKind?: ExtensionHostKind, params?: RegisterExtensionParams): RegisterExtensionResult;
|
|
173
173
|
|
|
174
|
-
export { type ApiFactory, ExtensionHostKind, IExtensionManifest, getExtensionManifests, getForcedExtensionHostKind, registerExtension, registerLocalApiFactory, registerRemoteExtension };
|
|
174
|
+
export { type ApiFactory, ExtensionHostKind, IExtensionManifest, type RegisterExtensionParams, type RegisterExtensionResult, type RegisterLocalExtensionResult, type RegisterLocalProcessExtensionResult, type RegisterRemoteExtensionParams, type RegisterRemoteExtensionResult, getExtensionManifests, getForcedExtensionHostKind, registerExtension, registerLocalApiFactory, registerRemoteExtension };
|
package/missing-services.js
CHANGED
|
@@ -1223,8 +1223,8 @@ registerSingleton(IPathService, PathService, 1 );
|
|
|
1223
1223
|
class ProductService {
|
|
1224
1224
|
constructor() {
|
|
1225
1225
|
this._serviceBrand = undefined;
|
|
1226
|
-
this.version = "1.95.
|
|
1227
|
-
this.commit = "
|
|
1226
|
+
this.version = "1.95.3";
|
|
1227
|
+
this.commit = "f1a4fb101478ce6ec82fe9627c43efbf9e98c813";
|
|
1228
1228
|
this.quality = 'oss';
|
|
1229
1229
|
this.nameShort = 'Code - OSS Dev';
|
|
1230
1230
|
this.nameLong = 'Code - OSS Dev';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "11.0
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"description": "VSCode public API plugged on the monaco editor",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": {
|
|
@@ -100,12 +100,12 @@
|
|
|
100
100
|
"@vscode/iconv-lite-umd": "0.7.0",
|
|
101
101
|
"jschardet": "3.1.4",
|
|
102
102
|
"marked": "~14.0.0",
|
|
103
|
-
"@codingame/monaco-vscode-
|
|
104
|
-
"@codingame/monaco-vscode-
|
|
105
|
-
"@codingame/monaco-vscode-
|
|
106
|
-
"@codingame/monaco-vscode-environment-service-override": "11.0
|
|
107
|
-
"@codingame/monaco-vscode-layout-service-override": "11.0
|
|
108
|
-
"@codingame/monaco-vscode-host-service-override": "11.0
|
|
109
|
-
"@codingame/monaco-vscode-base-service-override": "11.0
|
|
103
|
+
"@codingame/monaco-vscode-files-service-override": "11.1.0",
|
|
104
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "11.1.0",
|
|
105
|
+
"@codingame/monaco-vscode-extensions-service-override": "11.1.0",
|
|
106
|
+
"@codingame/monaco-vscode-environment-service-override": "11.1.0",
|
|
107
|
+
"@codingame/monaco-vscode-layout-service-override": "11.1.0",
|
|
108
|
+
"@codingame/monaco-vscode-host-service-override": "11.1.0",
|
|
109
|
+
"@codingame/monaco-vscode-base-service-override": "11.1.0"
|
|
110
110
|
}
|
|
111
111
|
}
|
package/services.js
CHANGED
|
@@ -185,9 +185,9 @@ async function initialize(overrides, container = document.body, configuration =
|
|
|
185
185
|
initialize$1(container, configuration, env);
|
|
186
186
|
const instantiationService = StandaloneServices.initialize({
|
|
187
187
|
[( IProductService.toString())]: mixin({
|
|
188
|
-
version: "1.95.
|
|
188
|
+
version: "1.95.3",
|
|
189
189
|
quality: 'stable',
|
|
190
|
-
commit: "
|
|
190
|
+
commit: "f1a4fb101478ce6ec82fe9627c43efbf9e98c813",
|
|
191
191
|
nameShort: 'Code - OSS',
|
|
192
192
|
nameLong: 'Code - OSS',
|
|
193
193
|
applicationName: 'code-oss',
|
|
@@ -30,7 +30,7 @@ class Dialog extends Disposable {
|
|
|
30
30
|
this.buttons = buttons;
|
|
31
31
|
}
|
|
32
32
|
else if (!this.options.disableDefaultAction) {
|
|
33
|
-
this.buttons = [( localize(
|
|
33
|
+
this.buttons = [( localize(9702, "OK"))];
|
|
34
34
|
}
|
|
35
35
|
else {
|
|
36
36
|
this.buttons = [];
|
|
@@ -94,16 +94,16 @@ class Dialog extends Disposable {
|
|
|
94
94
|
this.applyStyles();
|
|
95
95
|
}
|
|
96
96
|
getIconAriaLabel() {
|
|
97
|
-
let typeLabel = ( localize(
|
|
97
|
+
let typeLabel = ( localize(9703, 'Info'));
|
|
98
98
|
switch (this.options.type) {
|
|
99
99
|
case 'error':
|
|
100
|
-
typeLabel = ( localize(
|
|
100
|
+
typeLabel = ( localize(9704, 'Error'));
|
|
101
101
|
break;
|
|
102
102
|
case 'warning':
|
|
103
|
-
typeLabel = ( localize(
|
|
103
|
+
typeLabel = ( localize(9705, 'Warning'));
|
|
104
104
|
break;
|
|
105
105
|
case 'pending':
|
|
106
|
-
typeLabel = ( localize(
|
|
106
|
+
typeLabel = ( localize(9706, 'In Progress'));
|
|
107
107
|
break;
|
|
108
108
|
}
|
|
109
109
|
return typeLabel;
|
|
@@ -264,7 +264,7 @@ class Dialog extends Disposable {
|
|
|
264
264
|
}
|
|
265
265
|
if (!this.options.disableCloseAction) {
|
|
266
266
|
const actionBar = this._register(( (new ActionBar(this.toolbarContainer, {}))));
|
|
267
|
-
const action = this._register(( (new Action('dialog.close', ( localize(
|
|
267
|
+
const action = this._register(( (new Action('dialog.close', ( localize(9707, "Close Dialog")), ThemeIcon.asClassName(Codicon.dialogClose), true, async () => {
|
|
268
268
|
resolve({
|
|
269
269
|
button: this.options.cancelId || 0,
|
|
270
270
|
checkboxChecked: this.checkbox ? this.checkbox.checked : undefined
|
|
@@ -129,7 +129,7 @@ class ActionWithDropdownActionViewItem extends ActionViewItem {
|
|
|
129
129
|
const separator = h('div.action-dropdown-item-separator', [h('div', {})]).root;
|
|
130
130
|
separator.classList.toggle('prominent', menuActionClassNames.includes('prominent'));
|
|
131
131
|
append(this.element, separator);
|
|
132
|
-
this.dropdownMenuActionViewItem = this._register(( (new DropdownMenuActionViewItem(this._register(( (new Action('dropdownAction', ( localize(
|
|
132
|
+
this.dropdownMenuActionViewItem = this._register(( (new DropdownMenuActionViewItem(this._register(( (new Action('dropdownAction', ( localize(7394, "More Actions...")))))), menuActionsProvider, this.contextMenuProvider, { classNames: ['dropdown', ...ThemeIcon.asClassNameArray(Codicon.dropDownButton), ...menuActionClassNames], hoverDelegate: this.options.hoverDelegate }))));
|
|
133
133
|
this.dropdownMenuActionViewItem.render(this.element);
|
|
134
134
|
this._register(addDisposableListener(this.element, EventType.KEY_DOWN, e => {
|
|
135
135
|
if (menuActionsProvider.getActions().length === 0) {
|
|
@@ -13,13 +13,13 @@ function fromNow(date, appendAgoLabel, useFullTimeWords, disallowNow) {
|
|
|
13
13
|
const seconds = Math.round((( (new Date())).getTime() - date) / 1000);
|
|
14
14
|
if (seconds < -30) {
|
|
15
15
|
return ( localize(
|
|
16
|
-
|
|
16
|
+
832,
|
|
17
17
|
'in {0}',
|
|
18
18
|
fromNow(( (new Date())).getTime() + seconds * 1000, false)
|
|
19
19
|
));
|
|
20
20
|
}
|
|
21
21
|
if (!disallowNow && seconds < 30) {
|
|
22
|
-
return ( localize(
|
|
22
|
+
return ( localize(833, 'now'));
|
|
23
23
|
}
|
|
24
24
|
let value;
|
|
25
25
|
if (seconds < minute) {
|
|
@@ -27,25 +27,25 @@ function fromNow(date, appendAgoLabel, useFullTimeWords, disallowNow) {
|
|
|
27
27
|
if (appendAgoLabel) {
|
|
28
28
|
if (value === 1) {
|
|
29
29
|
return useFullTimeWords
|
|
30
|
-
? ( localize(
|
|
31
|
-
: ( localize(
|
|
30
|
+
? ( localize(834, '{0} second ago', value))
|
|
31
|
+
: ( localize(835, '{0} sec ago', value));
|
|
32
32
|
}
|
|
33
33
|
else {
|
|
34
34
|
return useFullTimeWords
|
|
35
|
-
? ( localize(
|
|
36
|
-
: ( localize(
|
|
35
|
+
? ( localize(836, '{0} seconds ago', value))
|
|
36
|
+
: ( localize(837, '{0} secs ago', value));
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
else {
|
|
40
40
|
if (value === 1) {
|
|
41
41
|
return useFullTimeWords
|
|
42
|
-
? ( localize(
|
|
43
|
-
: ( localize(
|
|
42
|
+
? ( localize(838, '{0} second', value))
|
|
43
|
+
: ( localize(839, '{0} sec', value));
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return useFullTimeWords
|
|
47
|
-
? ( localize(
|
|
48
|
-
: ( localize(
|
|
47
|
+
? ( localize(840, '{0} seconds', value))
|
|
48
|
+
: ( localize(841, '{0} secs', value));
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -54,25 +54,25 @@ function fromNow(date, appendAgoLabel, useFullTimeWords, disallowNow) {
|
|
|
54
54
|
if (appendAgoLabel) {
|
|
55
55
|
if (value === 1) {
|
|
56
56
|
return useFullTimeWords
|
|
57
|
-
? ( localize(
|
|
58
|
-
: ( localize(
|
|
57
|
+
? ( localize(842, '{0} minute ago', value))
|
|
58
|
+
: ( localize(843, '{0} min ago', value));
|
|
59
59
|
}
|
|
60
60
|
else {
|
|
61
61
|
return useFullTimeWords
|
|
62
|
-
? ( localize(
|
|
63
|
-
: ( localize(
|
|
62
|
+
? ( localize(844, '{0} minutes ago', value))
|
|
63
|
+
: ( localize(845, '{0} mins ago', value));
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
else {
|
|
67
67
|
if (value === 1) {
|
|
68
68
|
return useFullTimeWords
|
|
69
|
-
? ( localize(
|
|
70
|
-
: ( localize(
|
|
69
|
+
? ( localize(846, '{0} minute', value))
|
|
70
|
+
: ( localize(847, '{0} min', value));
|
|
71
71
|
}
|
|
72
72
|
else {
|
|
73
73
|
return useFullTimeWords
|
|
74
|
-
? ( localize(
|
|
75
|
-
: ( localize(
|
|
74
|
+
? ( localize(848, '{0} minutes', value))
|
|
75
|
+
: ( localize(849, '{0} mins', value));
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -81,25 +81,25 @@ function fromNow(date, appendAgoLabel, useFullTimeWords, disallowNow) {
|
|
|
81
81
|
if (appendAgoLabel) {
|
|
82
82
|
if (value === 1) {
|
|
83
83
|
return useFullTimeWords
|
|
84
|
-
? ( localize(
|
|
85
|
-
: ( localize(
|
|
84
|
+
? ( localize(850, '{0} hour ago', value))
|
|
85
|
+
: ( localize(851, '{0} hr ago', value));
|
|
86
86
|
}
|
|
87
87
|
else {
|
|
88
88
|
return useFullTimeWords
|
|
89
|
-
? ( localize(
|
|
90
|
-
: ( localize(
|
|
89
|
+
? ( localize(852, '{0} hours ago', value))
|
|
90
|
+
: ( localize(853, '{0} hrs ago', value));
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
else {
|
|
94
94
|
if (value === 1) {
|
|
95
95
|
return useFullTimeWords
|
|
96
|
-
? ( localize(
|
|
97
|
-
: ( localize(
|
|
96
|
+
? ( localize(854, '{0} hour', value))
|
|
97
|
+
: ( localize(855, '{0} hr', value));
|
|
98
98
|
}
|
|
99
99
|
else {
|
|
100
100
|
return useFullTimeWords
|
|
101
|
-
? ( localize(
|
|
102
|
-
: ( localize(
|
|
101
|
+
? ( localize(856, '{0} hours', value))
|
|
102
|
+
: ( localize(857, '{0} hrs', value));
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -107,13 +107,13 @@ function fromNow(date, appendAgoLabel, useFullTimeWords, disallowNow) {
|
|
|
107
107
|
value = Math.floor(seconds / day);
|
|
108
108
|
if (appendAgoLabel) {
|
|
109
109
|
return value === 1
|
|
110
|
-
? ( localize(
|
|
111
|
-
: ( localize(
|
|
110
|
+
? ( localize(858, '{0} day ago', value))
|
|
111
|
+
: ( localize(859, '{0} days ago', value));
|
|
112
112
|
}
|
|
113
113
|
else {
|
|
114
114
|
return value === 1
|
|
115
|
-
? ( localize(
|
|
116
|
-
: ( localize(
|
|
115
|
+
? ( localize(860, '{0} day', value))
|
|
116
|
+
: ( localize(861, '{0} days', value));
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
if (seconds < month) {
|
|
@@ -121,25 +121,25 @@ function fromNow(date, appendAgoLabel, useFullTimeWords, disallowNow) {
|
|
|
121
121
|
if (appendAgoLabel) {
|
|
122
122
|
if (value === 1) {
|
|
123
123
|
return useFullTimeWords
|
|
124
|
-
? ( localize(
|
|
125
|
-
: ( localize(
|
|
124
|
+
? ( localize(862, '{0} week ago', value))
|
|
125
|
+
: ( localize(863, '{0} wk ago', value));
|
|
126
126
|
}
|
|
127
127
|
else {
|
|
128
128
|
return useFullTimeWords
|
|
129
|
-
? ( localize(
|
|
130
|
-
: ( localize(
|
|
129
|
+
? ( localize(864, '{0} weeks ago', value))
|
|
130
|
+
: ( localize(865, '{0} wks ago', value));
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
else {
|
|
134
134
|
if (value === 1) {
|
|
135
135
|
return useFullTimeWords
|
|
136
|
-
? ( localize(
|
|
137
|
-
: ( localize(
|
|
136
|
+
? ( localize(866, '{0} week', value))
|
|
137
|
+
: ( localize(867, '{0} wk', value));
|
|
138
138
|
}
|
|
139
139
|
else {
|
|
140
140
|
return useFullTimeWords
|
|
141
|
-
? ( localize(
|
|
142
|
-
: ( localize(
|
|
141
|
+
? ( localize(868, '{0} weeks', value))
|
|
142
|
+
: ( localize(869, '{0} wks', value));
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
}
|
|
@@ -148,25 +148,25 @@ function fromNow(date, appendAgoLabel, useFullTimeWords, disallowNow) {
|
|
|
148
148
|
if (appendAgoLabel) {
|
|
149
149
|
if (value === 1) {
|
|
150
150
|
return useFullTimeWords
|
|
151
|
-
? ( localize(
|
|
152
|
-
: ( localize(
|
|
151
|
+
? ( localize(870, '{0} month ago', value))
|
|
152
|
+
: ( localize(871, '{0} mo ago', value));
|
|
153
153
|
}
|
|
154
154
|
else {
|
|
155
155
|
return useFullTimeWords
|
|
156
|
-
? ( localize(
|
|
157
|
-
: ( localize(
|
|
156
|
+
? ( localize(872, '{0} months ago', value))
|
|
157
|
+
: ( localize(873, '{0} mos ago', value));
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
else {
|
|
161
161
|
if (value === 1) {
|
|
162
162
|
return useFullTimeWords
|
|
163
|
-
? ( localize(
|
|
164
|
-
: ( localize(
|
|
163
|
+
? ( localize(874, '{0} month', value))
|
|
164
|
+
: ( localize(875, '{0} mo', value));
|
|
165
165
|
}
|
|
166
166
|
else {
|
|
167
167
|
return useFullTimeWords
|
|
168
|
-
? ( localize(
|
|
169
|
-
: ( localize(
|
|
168
|
+
? ( localize(876, '{0} months', value))
|
|
169
|
+
: ( localize(877, '{0} mos', value));
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
}
|
|
@@ -174,25 +174,25 @@ function fromNow(date, appendAgoLabel, useFullTimeWords, disallowNow) {
|
|
|
174
174
|
if (appendAgoLabel) {
|
|
175
175
|
if (value === 1) {
|
|
176
176
|
return useFullTimeWords
|
|
177
|
-
? ( localize(
|
|
178
|
-
: ( localize(
|
|
177
|
+
? ( localize(878, '{0} year ago', value))
|
|
178
|
+
: ( localize(879, '{0} yr ago', value));
|
|
179
179
|
}
|
|
180
180
|
else {
|
|
181
181
|
return useFullTimeWords
|
|
182
|
-
? ( localize(
|
|
183
|
-
: ( localize(
|
|
182
|
+
? ( localize(880, '{0} years ago', value))
|
|
183
|
+
: ( localize(881, '{0} yrs ago', value));
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
else {
|
|
187
187
|
if (value === 1) {
|
|
188
188
|
return useFullTimeWords
|
|
189
|
-
? ( localize(
|
|
190
|
-
: ( localize(
|
|
189
|
+
? ( localize(882, '{0} year', value))
|
|
190
|
+
: ( localize(883, '{0} yr', value));
|
|
191
191
|
}
|
|
192
192
|
else {
|
|
193
193
|
return useFullTimeWords
|
|
194
|
-
? ( localize(
|
|
195
|
-
: ( localize(
|
|
194
|
+
? ( localize(884, '{0} years', value))
|
|
195
|
+
: ( localize(885, '{0} yrs', value));
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
}
|
|
@@ -205,28 +205,28 @@ function fromNowByDay(date, appendAgoLabel, useFullTimeWords) {
|
|
|
205
205
|
const yesterdayMidnightTime = ( (new Date(todayMidnightTime.getTime())));
|
|
206
206
|
yesterdayMidnightTime.setDate(yesterdayMidnightTime.getDate() - 1);
|
|
207
207
|
if (date > todayMidnightTime.getTime()) {
|
|
208
|
-
return ( localize(
|
|
208
|
+
return ( localize(886, 'Today'));
|
|
209
209
|
}
|
|
210
210
|
if (date > yesterdayMidnightTime.getTime()) {
|
|
211
|
-
return ( localize(
|
|
211
|
+
return ( localize(887, 'Yesterday'));
|
|
212
212
|
}
|
|
213
213
|
return fromNow(date, appendAgoLabel, useFullTimeWords);
|
|
214
214
|
}
|
|
215
215
|
function getDurationString(ms, useFullTimeWords) {
|
|
216
216
|
const seconds = Math.abs(ms / 1000);
|
|
217
217
|
if (seconds < 1) {
|
|
218
|
-
return ( localize(
|
|
218
|
+
return ( localize(889, '{0}ms', ms));
|
|
219
219
|
}
|
|
220
220
|
if (seconds < minute) {
|
|
221
|
-
return ( localize(
|
|
221
|
+
return ( localize(891, '{0}s', Math.round(ms) / 1000));
|
|
222
222
|
}
|
|
223
223
|
if (seconds < hour) {
|
|
224
|
-
return ( localize(
|
|
224
|
+
return ( localize(893, '{0} mins', Math.round(ms / (1000 * minute))));
|
|
225
225
|
}
|
|
226
226
|
if (seconds < day) {
|
|
227
|
-
return ( localize(
|
|
227
|
+
return ( localize(895, '{0} hrs', Math.round(ms / (1000 * hour))));
|
|
228
228
|
}
|
|
229
|
-
return ( localize(
|
|
229
|
+
return ( localize(896, '{0} days', Math.round(ms / (1000 * day))));
|
|
230
230
|
}
|
|
231
231
|
function toLocalISOString(date) {
|
|
232
232
|
return date.getFullYear() +
|
|
@@ -5,7 +5,7 @@ import { localize } from '../../nls.js';
|
|
|
5
5
|
function exceptionToErrorMessage(exception, verbose) {
|
|
6
6
|
if (verbose && (exception.stack || exception.stacktrace)) {
|
|
7
7
|
return ( localize(
|
|
8
|
-
|
|
8
|
+
1168,
|
|
9
9
|
"{0}: {1}",
|
|
10
10
|
detectSystemErrorMessage(exception),
|
|
11
11
|
stackToString(exception.stack) || stackToString(exception.stacktrace)
|
|
@@ -24,19 +24,25 @@ function detectSystemErrorMessage(exception) {
|
|
|
24
24
|
return `${exception.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`;
|
|
25
25
|
}
|
|
26
26
|
if (typeof exception.code === 'string' && typeof exception.errno === 'number' && typeof exception.syscall === 'string') {
|
|
27
|
-
return ( localize(
|
|
27
|
+
return ( localize(1169, "A system error occurred ({0})", exception.message));
|
|
28
28
|
}
|
|
29
|
-
return exception.message || ( localize(
|
|
29
|
+
return exception.message || ( localize(
|
|
30
|
+
1170,
|
|
31
|
+
"An unknown error occurred. Please consult the log for more details."
|
|
32
|
+
));
|
|
30
33
|
}
|
|
31
34
|
function toErrorMessage(error = null, verbose = false) {
|
|
32
35
|
if (!error) {
|
|
33
|
-
return ( localize(
|
|
36
|
+
return ( localize(
|
|
37
|
+
1170,
|
|
38
|
+
"An unknown error occurred. Please consult the log for more details."
|
|
39
|
+
));
|
|
34
40
|
}
|
|
35
41
|
if (Array.isArray(error)) {
|
|
36
42
|
const errors = coalesce(error);
|
|
37
43
|
const msg = toErrorMessage(errors[0], verbose);
|
|
38
44
|
if (errors.length > 1) {
|
|
39
|
-
return ( localize(
|
|
45
|
+
return ( localize(1171, "{0} ({1} errors in total)", msg, errors.length));
|
|
40
46
|
}
|
|
41
47
|
return msg;
|
|
42
48
|
}
|
|
@@ -58,7 +64,10 @@ function toErrorMessage(error = null, verbose = false) {
|
|
|
58
64
|
if (error.message) {
|
|
59
65
|
return error.message;
|
|
60
66
|
}
|
|
61
|
-
return ( localize(
|
|
67
|
+
return ( localize(
|
|
68
|
+
1170,
|
|
69
|
+
"An unknown error occurred. Please consult the log for more details."
|
|
70
|
+
));
|
|
62
71
|
}
|
|
63
72
|
function isErrorWithActions(obj) {
|
|
64
73
|
const candidate = obj;
|
|
@@ -845,7 +845,7 @@ var CoreNavigationCommands;
|
|
|
845
845
|
type: 'object',
|
|
846
846
|
properties: {
|
|
847
847
|
'sticky': {
|
|
848
|
-
description: ( localize(
|
|
848
|
+
description: ( localize(1342, "Stick to the end even when going to longer lines")),
|
|
849
849
|
type: 'boolean',
|
|
850
850
|
default: false
|
|
851
851
|
}
|
|
@@ -873,7 +873,7 @@ var CoreNavigationCommands;
|
|
|
873
873
|
type: 'object',
|
|
874
874
|
properties: {
|
|
875
875
|
'sticky': {
|
|
876
|
-
description: ( localize(
|
|
876
|
+
description: ( localize(1342, "Stick to the end even when going to longer lines")),
|
|
877
877
|
type: 'boolean',
|
|
878
878
|
default: false
|
|
879
879
|
}
|
|
@@ -1415,7 +1415,7 @@ var CoreNavigationCommands;
|
|
|
1415
1415
|
viewModel.getPrimaryCursorState()
|
|
1416
1416
|
]);
|
|
1417
1417
|
viewModel.revealAllCursors(args.source, true);
|
|
1418
|
-
status(( localize(
|
|
1418
|
+
status(( localize(1343, "Removed secondary cursors")));
|
|
1419
1419
|
}
|
|
1420
1420
|
}));
|
|
1421
1421
|
CoreNavigationCommands.RevealLine = registerEditorCommand(new (class extends CoreEditorCommand {
|
|
@@ -388,12 +388,12 @@ const UndoCommand = registerCommand(( (new MultiCommand({
|
|
|
388
388
|
menuOpts: [{
|
|
389
389
|
menuId: MenuId.MenubarEditMenu,
|
|
390
390
|
group: '1_do',
|
|
391
|
-
title: ( localize(
|
|
391
|
+
title: ( localize(491, "&&Undo")),
|
|
392
392
|
order: 1
|
|
393
393
|
}, {
|
|
394
394
|
menuId: MenuId.CommandPalette,
|
|
395
395
|
group: '',
|
|
396
|
-
title: ( localize(
|
|
396
|
+
title: ( localize(492, "Undo")),
|
|
397
397
|
order: 1
|
|
398
398
|
}]
|
|
399
399
|
}))));
|
|
@@ -410,12 +410,12 @@ const RedoCommand = registerCommand(( (new MultiCommand({
|
|
|
410
410
|
menuOpts: [{
|
|
411
411
|
menuId: MenuId.MenubarEditMenu,
|
|
412
412
|
group: '1_do',
|
|
413
|
-
title: ( localize(
|
|
413
|
+
title: ( localize(493, "&&Redo")),
|
|
414
414
|
order: 2
|
|
415
415
|
}, {
|
|
416
416
|
menuId: MenuId.CommandPalette,
|
|
417
417
|
group: '',
|
|
418
|
-
title: ( localize(
|
|
418
|
+
title: ( localize(494, "Redo")),
|
|
419
419
|
order: 1
|
|
420
420
|
}]
|
|
421
421
|
}))));
|
|
@@ -431,12 +431,12 @@ const SelectAllCommand = registerCommand(( (new MultiCommand({
|
|
|
431
431
|
menuOpts: [{
|
|
432
432
|
menuId: MenuId.MenubarSelectionMenu,
|
|
433
433
|
group: '1_basic',
|
|
434
|
-
title: ( localize(
|
|
434
|
+
title: ( localize(495, "&&Select All")),
|
|
435
435
|
order: 1
|
|
436
436
|
}, {
|
|
437
437
|
menuId: MenuId.CommandPalette,
|
|
438
438
|
group: '',
|
|
439
|
-
title: ( localize(
|
|
439
|
+
title: ( localize(496, "Select All")),
|
|
440
440
|
order: 1
|
|
441
441
|
}]
|
|
442
442
|
}))));
|
|
@@ -1302,7 +1302,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
|
|
|
1302
1302
|
if (e.reachedMaxCursorCount) {
|
|
1303
1303
|
const multiCursorLimit = this.getOption(81 );
|
|
1304
1304
|
const message = ( localize(
|
|
1305
|
-
|
|
1305
|
+
1344,
|
|
1306
1306
|
"The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.",
|
|
1307
1307
|
multiCursorLimit
|
|
1308
1308
|
));
|
|
@@ -1314,7 +1314,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
|
|
|
1314
1314
|
}
|
|
1315
1315
|
},
|
|
1316
1316
|
{
|
|
1317
|
-
label: ( localize(
|
|
1317
|
+
label: ( localize(1345, 'Increase Multi Cursor Limit')),
|
|
1318
1318
|
run: () => {
|
|
1319
1319
|
this._commandService.executeCommand('workbench.action.openSettings2', {
|
|
1320
1320
|
query: 'editor.multiCursorLimit'
|
|
@@ -11,6 +11,6 @@ import '../../../../platform/theme/common/colors/miscColors.js';
|
|
|
11
11
|
import '../../../../platform/theme/common/colors/quickpickColors.js';
|
|
12
12
|
import '../../../../platform/theme/common/colors/searchColors.js';
|
|
13
13
|
|
|
14
|
-
registerColor('multiDiffEditor.headerBackground', { dark: '#262626', light: 'tab.inactiveBackground', hcDark: 'tab.inactiveBackground', hcLight: 'tab.inactiveBackground', }, ( localize(
|
|
15
|
-
registerColor('multiDiffEditor.background', editorBackground, ( localize(
|
|
16
|
-
registerColor('multiDiffEditor.border', { dark: 'sideBarSectionHeader.border', light: '#cccccc', hcDark: 'sideBarSectionHeader.border', hcLight: '#cccccc', }, ( localize(
|
|
14
|
+
registerColor('multiDiffEditor.headerBackground', { dark: '#262626', light: 'tab.inactiveBackground', hcDark: 'tab.inactiveBackground', hcLight: 'tab.inactiveBackground', }, ( localize(9542, 'The background color of the diff editor\'s header')));
|
|
15
|
+
registerColor('multiDiffEditor.background', editorBackground, ( localize(9543, 'The background color of the multi file diff editor')));
|
|
16
|
+
registerColor('multiDiffEditor.border', { dark: 'sideBarSectionHeader.border', light: '#cccccc', hcDark: 'sideBarSectionHeader.border', hcLight: '#cccccc', }, ( localize(9544, 'The border color of the multi file diff editor')));
|
|
@@ -131,8 +131,8 @@ let MultiDiffEditorWidgetImpl = class MultiDiffEditorWidgetImpl extends Disposab
|
|
|
131
131
|
}
|
|
132
132
|
const vm = this._viewModel.read(reader);
|
|
133
133
|
return (!vm || vm.isLoading.read(reader))
|
|
134
|
-
? ( localize(
|
|
135
|
-
: ( localize(
|
|
134
|
+
? ( localize(9545, 'Loading...'))
|
|
135
|
+
: ( localize(9546, 'No Changed Files'));
|
|
136
136
|
});
|
|
137
137
|
this._register(autorun((reader) => {
|
|
138
138
|
const message = placeholderMessage.read(reader);
|