@codingame/monaco-vscode-api 1.83.1 → 1.83.3-next.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 +3 -3
- package/extensions.js +31 -33
- package/l10n.d.ts +4 -0
- package/l10n.js +10 -0
- package/missing-services.js +4 -2
- package/monaco-editor-treemending.patch +12268 -1070
- package/monaco-treemending.js +8 -2
- package/package.json +8 -1
- package/service-override/extensions.js +2 -2
- package/service-override/layout.js +2 -2
- package/tools/l10n.js +177 -0
- package/tools.js +22 -1
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +2 -2
- package/vscode/src/vs/base/common/date.js +55 -55
- package/vscode/src/vs/base/common/jsonErrorMessages.js +10 -10
- package/vscode/src/vs/base/common/tfIdf.js +137 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/commandsQuickAccess.js +23 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +115 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +112 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +334 -0
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +10 -14
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +3 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +2 -2
- package/vscode/src/vs/platform/files/common/fileService.js +28 -37
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/files/common/io.js +2 -2
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +3 -9
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +300 -0
- package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +59 -0
- package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +212 -0
- package/vscode/src/vs/platform/request/common/request.js +2 -2
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -63
- package/vscode/src/vs/platform/workspaces/common/workspaces.js +15 -15
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +13 -32
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +50 -52
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +58 -69
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +4 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +38 -50
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystem.js +23 -23
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +21 -53
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +4 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +6 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +4 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +2 -12
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +15 -9
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +16 -20
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +6 -28
- package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +60 -0
- package/vscode/src/vs/workbench/api/common/extHostChat.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +59 -65
- package/vscode/src/vs/workbench/api/common/extHostConsoleForwarder.js +8 -8
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +150 -222
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostProgress.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +54 -58
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +3 -7
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +55 -57
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +28 -28
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +265 -277
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +2 -7
- package/vscode/src/vs/workbench/api/common/extensionHostMain.js +17 -19
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +9 -34
- package/vscode/src/vs/workbench/api/worker/extHostExtensionService.js +5 -5
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +898 -68
- package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +7 -7
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +32 -38
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +103 -13
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +2 -2
- package/vscode/src/vs/workbench/browser/editor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +12 -27
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +12 -12
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +2 -7
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +4 -7
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +42 -90
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +140 -272
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +115 -148
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +21 -33
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +7 -19
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +10 -26
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +7 -17
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +60 -81
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +27 -33
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +19 -32
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +8 -8
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +69 -34
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +58 -34
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +3 -9
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +7 -11
- package/vscode/src/vs/workbench/browser/quickaccess.js +7 -3
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +186 -683
- package/vscode/src/vs/workbench/common/configuration.js +12 -15
- package/vscode/src/vs/workbench/common/contextkeys.js +272 -90
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +2 -2
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +2 -7
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +2 -6
- package/vscode/src/vs/workbench/common/editor.js +5 -5
- package/vscode/src/vs/workbench/common/theme.js +137 -527
- package/vscode/src/vs/workbench/common/views.js +4 -8
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +15 -55
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +3 -8
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +22 -60
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +9 -15
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +18 -48
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkFileEdits.js +58 -74
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +5 -10
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +5 -13
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +8 -27
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +5 -17
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -15
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +7 -20
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +63 -216
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +4 -7
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +5 -8
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +8 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +5 -15
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +3 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +3 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +10 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +6 -15
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +5 -20
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +3 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +3 -20
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +9 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +4 -13
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +19 -19
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +26 -77
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -17
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +31 -40
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +10 -29
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +8 -8
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +25 -21
- package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +20 -20
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +56 -98
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +96 -180
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +25 -79
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -15
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +4 -8
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +56 -19
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +76 -230
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -5
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -103
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +228 -99
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +5 -9
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +5 -5
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +15 -35
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +5 -8
- package/vscode/src/vs/workbench/contrib/files/common/files.js +27 -48
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -6
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +5 -8
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +112 -52
- package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +30 -96
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +73 -126
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +42 -0
- package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +23 -29
- package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +3 -3
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +13 -16
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +15 -34
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +12 -17
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +26 -75
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +4 -19
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +4 -4
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +60 -99
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -14
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +26 -13
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +88 -96
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +5 -17
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +7 -28
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +21 -78
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +21 -53
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +2 -5
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +113 -348
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +2 -5
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +31 -1
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +1 -4
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +2 -2
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +2 -5
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +4 -4
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +27 -29
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +104 -141
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +35 -39
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.js +25 -25
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +80 -296
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +6 -21
- package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +3 -6
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +24 -81
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +2 -2
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +11 -17
- package/vscode/src/vs/workbench/services/keybinding/common/macLinuxKeyboardMapper.js +30 -32
- package/vscode/src/vs/workbench/services/language/common/languageService.js +23 -98
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +83 -95
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -5
- package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +11 -23
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +32 -32
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +2 -7
- package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +2 -2
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +16 -53
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +50 -1
- package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +25 -99
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +16 -16
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +6 -3
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +15 -3
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +32 -42
package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js
CHANGED
|
@@ -64,14 +64,10 @@ let LanguageConfigurationFileHandler = class LanguageConfigurationFileHandler ex
|
|
|
64
64
|
const errors = [];
|
|
65
65
|
let configuration = parse(contents, errors);
|
|
66
66
|
if (errors.length) {
|
|
67
|
-
console.error(
|
|
67
|
+
console.error(nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'parseErrors', "Errors parsing {0}: {1}", ( configFileLocation.toString()), ( errors.map(e => (`[${e.offset}, ${e.length}] ${getParseErrorMessage(e.error)}`))).join('\n')));
|
|
68
68
|
}
|
|
69
69
|
if (getNodeType(configuration) !== 'object') {
|
|
70
|
-
console.error((
|
|
71
|
-
'formatError',
|
|
72
|
-
"{0}: Invalid format, JSON object expected.",
|
|
73
|
-
( configFileLocation.toString())
|
|
74
|
-
)));
|
|
70
|
+
console.error(nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'formatError', "{0}: Invalid format, JSON object expected.", ( configFileLocation.toString())));
|
|
75
71
|
configuration = {};
|
|
76
72
|
}
|
|
77
73
|
return configuration;
|
|
@@ -422,11 +418,11 @@ const schema = {
|
|
|
422
418
|
definitions: {
|
|
423
419
|
openBracket: {
|
|
424
420
|
type: 'string',
|
|
425
|
-
description:
|
|
421
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.openBracket', 'The opening bracket character or string sequence.')
|
|
426
422
|
},
|
|
427
423
|
closeBracket: {
|
|
428
424
|
type: 'string',
|
|
429
|
-
description:
|
|
425
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.closeBracket', 'The closing bracket character or string sequence.')
|
|
430
426
|
},
|
|
431
427
|
bracketPair: {
|
|
432
428
|
type: 'array',
|
|
@@ -443,39 +439,29 @@ const schema = {
|
|
|
443
439
|
blockComment: ['/*', '*/'],
|
|
444
440
|
lineComment: '//'
|
|
445
441
|
},
|
|
446
|
-
description:
|
|
442
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.comments', 'Defines the comment symbols'),
|
|
447
443
|
type: 'object',
|
|
448
444
|
properties: {
|
|
449
445
|
blockComment: {
|
|
450
446
|
type: 'array',
|
|
451
|
-
description:
|
|
447
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.blockComments', 'Defines how block comments are marked.'),
|
|
452
448
|
items: [{
|
|
453
449
|
type: 'string',
|
|
454
|
-
description: (
|
|
455
|
-
'schema.blockComment.begin',
|
|
456
|
-
'The character sequence that starts a block comment.'
|
|
457
|
-
))
|
|
450
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.blockComment.begin', 'The character sequence that starts a block comment.')
|
|
458
451
|
}, {
|
|
459
452
|
type: 'string',
|
|
460
|
-
description: (
|
|
461
|
-
'schema.blockComment.end',
|
|
462
|
-
'The character sequence that ends a block comment.'
|
|
463
|
-
))
|
|
453
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.blockComment.end', 'The character sequence that ends a block comment.')
|
|
464
454
|
}]
|
|
465
455
|
},
|
|
466
456
|
lineComment: {
|
|
467
457
|
type: 'string',
|
|
468
|
-
description:
|
|
458
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.lineComment', 'The character sequence that starts a line comment.')
|
|
469
459
|
}
|
|
470
460
|
}
|
|
471
461
|
},
|
|
472
462
|
brackets: {
|
|
473
463
|
default: [['(', ')'], ['[', ']'], ['{', '}']],
|
|
474
|
-
markdownDescription: (
|
|
475
|
-
'schema.brackets',
|
|
476
|
-
'Defines the bracket symbols that increase or decrease the indentation. When bracket pair colorization is enabled and {0} is not defined, this also defines the bracket pairs that are colorized by their nesting level.',
|
|
477
|
-
'\`colorizedBracketPairs\`'
|
|
478
|
-
)),
|
|
464
|
+
markdownDescription: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.brackets', 'Defines the bracket symbols that increase or decrease the indentation. When bracket pair colorization is enabled and {0} is not defined, this also defines the bracket pairs that are colorized by their nesting level.', '\`colorizedBracketPairs\`'),
|
|
479
465
|
type: 'array',
|
|
480
466
|
items: {
|
|
481
467
|
$ref: '#/definitions/bracketPair'
|
|
@@ -483,11 +469,7 @@ const schema = {
|
|
|
483
469
|
},
|
|
484
470
|
colorizedBracketPairs: {
|
|
485
471
|
default: [['(', ')'], ['[', ']'], ['{', '}']],
|
|
486
|
-
markdownDescription: (
|
|
487
|
-
'schema.colorizedBracketPairs',
|
|
488
|
-
'Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled. Any brackets included here that are not included in {0} will be automatically included in {0}.',
|
|
489
|
-
'\`brackets\`'
|
|
490
|
-
)),
|
|
472
|
+
markdownDescription: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.colorizedBracketPairs', 'Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled. Any brackets included here that are not included in {0} will be automatically included in {0}.', '\`brackets\`'),
|
|
491
473
|
type: 'array',
|
|
492
474
|
items: {
|
|
493
475
|
$ref: '#/definitions/bracketPair'
|
|
@@ -495,10 +477,7 @@ const schema = {
|
|
|
495
477
|
},
|
|
496
478
|
autoClosingPairs: {
|
|
497
479
|
default: [['(', ')'], ['[', ']'], ['{', '}']],
|
|
498
|
-
description: (
|
|
499
|
-
'schema.autoClosingPairs',
|
|
500
|
-
'Defines the bracket pairs. When a opening bracket is entered, the closing bracket is inserted automatically.'
|
|
501
|
-
)),
|
|
480
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.autoClosingPairs', 'Defines the bracket pairs. When a opening bracket is entered, the closing bracket is inserted automatically.'),
|
|
502
481
|
type: 'array',
|
|
503
482
|
items: {
|
|
504
483
|
oneOf: [{
|
|
@@ -514,10 +493,7 @@ const schema = {
|
|
|
514
493
|
},
|
|
515
494
|
notIn: {
|
|
516
495
|
type: 'array',
|
|
517
|
-
description: (
|
|
518
|
-
'schema.autoClosingPairs.notIn',
|
|
519
|
-
'Defines a list of scopes where the auto pairs are disabled.'
|
|
520
|
-
)),
|
|
496
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.autoClosingPairs.notIn', 'Defines a list of scopes where the auto pairs are disabled.'),
|
|
521
497
|
items: {
|
|
522
498
|
enum: ['string', 'comment']
|
|
523
499
|
}
|
|
@@ -528,18 +504,12 @@ const schema = {
|
|
|
528
504
|
},
|
|
529
505
|
autoCloseBefore: {
|
|
530
506
|
default: ';:.,=}])> \n\t',
|
|
531
|
-
description: (
|
|
532
|
-
'schema.autoCloseBefore',
|
|
533
|
-
'Defines what characters must be after the cursor in order for bracket or quote autoclosing to occur when using the \'languageDefined\' autoclosing setting. This is typically the set of characters which can not start an expression.'
|
|
534
|
-
)),
|
|
507
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.autoCloseBefore', 'Defines what characters must be after the cursor in order for bracket or quote autoclosing to occur when using the \'languageDefined\' autoclosing setting. This is typically the set of characters which can not start an expression.'),
|
|
535
508
|
type: 'string',
|
|
536
509
|
},
|
|
537
510
|
surroundingPairs: {
|
|
538
511
|
default: [['(', ')'], ['[', ']'], ['{', '}']],
|
|
539
|
-
description: (
|
|
540
|
-
'schema.surroundingPairs',
|
|
541
|
-
'Defines the bracket pairs that can be used to surround a selected string.'
|
|
542
|
-
)),
|
|
512
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.surroundingPairs', 'Defines the bracket pairs that can be used to surround a selected string.'),
|
|
543
513
|
type: 'array',
|
|
544
514
|
items: {
|
|
545
515
|
oneOf: [{
|
|
@@ -559,26 +529,20 @@ const schema = {
|
|
|
559
529
|
},
|
|
560
530
|
wordPattern: {
|
|
561
531
|
default: '',
|
|
562
|
-
description: (
|
|
563
|
-
'schema.wordPattern',
|
|
564
|
-
'Defines what is considered to be a word in the programming language.'
|
|
565
|
-
)),
|
|
532
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.wordPattern', 'Defines what is considered to be a word in the programming language.'),
|
|
566
533
|
type: ['string', 'object'],
|
|
567
534
|
properties: {
|
|
568
535
|
pattern: {
|
|
569
536
|
type: 'string',
|
|
570
|
-
description:
|
|
537
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.wordPattern.pattern', 'The RegExp pattern used to match words.'),
|
|
571
538
|
default: '',
|
|
572
539
|
},
|
|
573
540
|
flags: {
|
|
574
541
|
type: 'string',
|
|
575
|
-
description:
|
|
542
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.wordPattern.flags', 'The RegExp flags used to match words.'),
|
|
576
543
|
default: 'g',
|
|
577
544
|
pattern: '^([gimuy]+)$',
|
|
578
|
-
patternErrorMessage: (
|
|
579
|
-
'schema.wordPattern.flags.errorMessage',
|
|
580
|
-
'Must match the pattern `/^([gimuy]+)$/`.'
|
|
581
|
-
))
|
|
545
|
+
patternErrorMessage: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.wordPattern.flags.errorMessage', 'Must match the pattern `/^([gimuy]+)$/`.')
|
|
582
546
|
}
|
|
583
547
|
}
|
|
584
548
|
},
|
|
@@ -587,126 +551,78 @@ const schema = {
|
|
|
587
551
|
increaseIndentPattern: '',
|
|
588
552
|
decreaseIndentPattern: ''
|
|
589
553
|
},
|
|
590
|
-
description:
|
|
554
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.indentationRules', 'The language\'s indentation settings.'),
|
|
591
555
|
type: 'object',
|
|
592
556
|
properties: {
|
|
593
557
|
increaseIndentPattern: {
|
|
594
558
|
type: ['string', 'object'],
|
|
595
|
-
description: (
|
|
596
|
-
'schema.indentationRules.increaseIndentPattern',
|
|
597
|
-
'If a line matches this pattern, then all the lines after it should be indented once (until another rule matches).'
|
|
598
|
-
)),
|
|
559
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.indentationRules.increaseIndentPattern', 'If a line matches this pattern, then all the lines after it should be indented once (until another rule matches).'),
|
|
599
560
|
properties: {
|
|
600
561
|
pattern: {
|
|
601
562
|
type: 'string',
|
|
602
|
-
description: (
|
|
603
|
-
'schema.indentationRules.increaseIndentPattern.pattern',
|
|
604
|
-
'The RegExp pattern for increaseIndentPattern.'
|
|
605
|
-
)),
|
|
563
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.indentationRules.increaseIndentPattern.pattern', 'The RegExp pattern for increaseIndentPattern.'),
|
|
606
564
|
default: '',
|
|
607
565
|
},
|
|
608
566
|
flags: {
|
|
609
567
|
type: 'string',
|
|
610
|
-
description: (
|
|
611
|
-
'schema.indentationRules.increaseIndentPattern.flags',
|
|
612
|
-
'The RegExp flags for increaseIndentPattern.'
|
|
613
|
-
)),
|
|
568
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.indentationRules.increaseIndentPattern.flags', 'The RegExp flags for increaseIndentPattern.'),
|
|
614
569
|
default: '',
|
|
615
570
|
pattern: '^([gimuy]+)$',
|
|
616
|
-
patternErrorMessage: (
|
|
617
|
-
'schema.indentationRules.increaseIndentPattern.errorMessage',
|
|
618
|
-
'Must match the pattern `/^([gimuy]+)$/`.'
|
|
619
|
-
))
|
|
571
|
+
patternErrorMessage: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.indentationRules.increaseIndentPattern.errorMessage', 'Must match the pattern `/^([gimuy]+)$/`.')
|
|
620
572
|
}
|
|
621
573
|
}
|
|
622
574
|
},
|
|
623
575
|
decreaseIndentPattern: {
|
|
624
576
|
type: ['string', 'object'],
|
|
625
|
-
description: (
|
|
626
|
-
'schema.indentationRules.decreaseIndentPattern',
|
|
627
|
-
'If a line matches this pattern, then all the lines after it should be unindented once (until another rule matches).'
|
|
628
|
-
)),
|
|
577
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.indentationRules.decreaseIndentPattern', 'If a line matches this pattern, then all the lines after it should be unindented once (until another rule matches).'),
|
|
629
578
|
properties: {
|
|
630
579
|
pattern: {
|
|
631
580
|
type: 'string',
|
|
632
|
-
description: (
|
|
633
|
-
'schema.indentationRules.decreaseIndentPattern.pattern',
|
|
634
|
-
'The RegExp pattern for decreaseIndentPattern.'
|
|
635
|
-
)),
|
|
581
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.indentationRules.decreaseIndentPattern.pattern', 'The RegExp pattern for decreaseIndentPattern.'),
|
|
636
582
|
default: '',
|
|
637
583
|
},
|
|
638
584
|
flags: {
|
|
639
585
|
type: 'string',
|
|
640
|
-
description: (
|
|
641
|
-
'schema.indentationRules.decreaseIndentPattern.flags',
|
|
642
|
-
'The RegExp flags for decreaseIndentPattern.'
|
|
643
|
-
)),
|
|
586
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.indentationRules.decreaseIndentPattern.flags', 'The RegExp flags for decreaseIndentPattern.'),
|
|
644
587
|
default: '',
|
|
645
588
|
pattern: '^([gimuy]+)$',
|
|
646
|
-
patternErrorMessage: (
|
|
647
|
-
'schema.indentationRules.decreaseIndentPattern.errorMessage',
|
|
648
|
-
'Must match the pattern `/^([gimuy]+)$/`.'
|
|
649
|
-
))
|
|
589
|
+
patternErrorMessage: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.indentationRules.decreaseIndentPattern.errorMessage', 'Must match the pattern `/^([gimuy]+)$/`.')
|
|
650
590
|
}
|
|
651
591
|
}
|
|
652
592
|
},
|
|
653
593
|
indentNextLinePattern: {
|
|
654
594
|
type: ['string', 'object'],
|
|
655
|
-
description: (
|
|
656
|
-
'schema.indentationRules.indentNextLinePattern',
|
|
657
|
-
'If a line matches this pattern, then **only the next line** after it should be indented once.'
|
|
658
|
-
)),
|
|
595
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.indentationRules.indentNextLinePattern', 'If a line matches this pattern, then **only the next line** after it should be indented once.'),
|
|
659
596
|
properties: {
|
|
660
597
|
pattern: {
|
|
661
598
|
type: 'string',
|
|
662
|
-
description: (
|
|
663
|
-
'schema.indentationRules.indentNextLinePattern.pattern',
|
|
664
|
-
'The RegExp pattern for indentNextLinePattern.'
|
|
665
|
-
)),
|
|
599
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.indentationRules.indentNextLinePattern.pattern', 'The RegExp pattern for indentNextLinePattern.'),
|
|
666
600
|
default: '',
|
|
667
601
|
},
|
|
668
602
|
flags: {
|
|
669
603
|
type: 'string',
|
|
670
|
-
description: (
|
|
671
|
-
'schema.indentationRules.indentNextLinePattern.flags',
|
|
672
|
-
'The RegExp flags for indentNextLinePattern.'
|
|
673
|
-
)),
|
|
604
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.indentationRules.indentNextLinePattern.flags', 'The RegExp flags for indentNextLinePattern.'),
|
|
674
605
|
default: '',
|
|
675
606
|
pattern: '^([gimuy]+)$',
|
|
676
|
-
patternErrorMessage: (
|
|
677
|
-
'schema.indentationRules.indentNextLinePattern.errorMessage',
|
|
678
|
-
'Must match the pattern `/^([gimuy]+)$/`.'
|
|
679
|
-
))
|
|
607
|
+
patternErrorMessage: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.indentationRules.indentNextLinePattern.errorMessage', 'Must match the pattern `/^([gimuy]+)$/`.')
|
|
680
608
|
}
|
|
681
609
|
}
|
|
682
610
|
},
|
|
683
611
|
unIndentedLinePattern: {
|
|
684
612
|
type: ['string', 'object'],
|
|
685
|
-
description: (
|
|
686
|
-
'schema.indentationRules.unIndentedLinePattern',
|
|
687
|
-
'If a line matches this pattern, then its indentation should not be changed and it should not be evaluated against the other rules.'
|
|
688
|
-
)),
|
|
613
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.indentationRules.unIndentedLinePattern', 'If a line matches this pattern, then its indentation should not be changed and it should not be evaluated against the other rules.'),
|
|
689
614
|
properties: {
|
|
690
615
|
pattern: {
|
|
691
616
|
type: 'string',
|
|
692
|
-
description: (
|
|
693
|
-
'schema.indentationRules.unIndentedLinePattern.pattern',
|
|
694
|
-
'The RegExp pattern for unIndentedLinePattern.'
|
|
695
|
-
)),
|
|
617
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.indentationRules.unIndentedLinePattern.pattern', 'The RegExp pattern for unIndentedLinePattern.'),
|
|
696
618
|
default: '',
|
|
697
619
|
},
|
|
698
620
|
flags: {
|
|
699
621
|
type: 'string',
|
|
700
|
-
description: (
|
|
701
|
-
'schema.indentationRules.unIndentedLinePattern.flags',
|
|
702
|
-
'The RegExp flags for unIndentedLinePattern.'
|
|
703
|
-
)),
|
|
622
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.indentationRules.unIndentedLinePattern.flags', 'The RegExp flags for unIndentedLinePattern.'),
|
|
704
623
|
default: '',
|
|
705
624
|
pattern: '^([gimuy]+)$',
|
|
706
|
-
patternErrorMessage: (
|
|
707
|
-
'schema.indentationRules.unIndentedLinePattern.errorMessage',
|
|
708
|
-
'Must match the pattern `/^([gimuy]+)$/`.'
|
|
709
|
-
))
|
|
625
|
+
patternErrorMessage: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.indentationRules.unIndentedLinePattern.errorMessage', 'Must match the pattern `/^([gimuy]+)$/`.')
|
|
710
626
|
}
|
|
711
627
|
}
|
|
712
628
|
}
|
|
@@ -714,35 +630,23 @@ const schema = {
|
|
|
714
630
|
},
|
|
715
631
|
folding: {
|
|
716
632
|
type: 'object',
|
|
717
|
-
description:
|
|
633
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.folding', 'The language\'s folding settings.'),
|
|
718
634
|
properties: {
|
|
719
635
|
offSide: {
|
|
720
636
|
type: 'boolean',
|
|
721
|
-
description: (
|
|
722
|
-
'schema.folding.offSide',
|
|
723
|
-
'A language adheres to the off-side rule if blocks in that language are expressed by their indentation. If set, empty lines belong to the subsequent block.'
|
|
724
|
-
)),
|
|
637
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.folding.offSide', 'A language adheres to the off-side rule if blocks in that language are expressed by their indentation. If set, empty lines belong to the subsequent block.'),
|
|
725
638
|
},
|
|
726
639
|
markers: {
|
|
727
640
|
type: 'object',
|
|
728
|
-
description: (
|
|
729
|
-
'schema.folding.markers',
|
|
730
|
-
'Language specific folding markers such as \'#region\' and \'#endregion\'. The start and end regexes will be tested against the contents of all lines and must be designed efficiently'
|
|
731
|
-
)),
|
|
641
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.folding.markers', 'Language specific folding markers such as \'#region\' and \'#endregion\'. The start and end regexes will be tested against the contents of all lines and must be designed efficiently'),
|
|
732
642
|
properties: {
|
|
733
643
|
start: {
|
|
734
644
|
type: 'string',
|
|
735
|
-
description: (
|
|
736
|
-
'schema.folding.markers.start',
|
|
737
|
-
'The RegExp pattern for the start marker. The regexp must start with \'^\'.'
|
|
738
|
-
))
|
|
645
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.folding.markers.start', 'The RegExp pattern for the start marker. The regexp must start with \'^\'.')
|
|
739
646
|
},
|
|
740
647
|
end: {
|
|
741
648
|
type: 'string',
|
|
742
|
-
description: (
|
|
743
|
-
'schema.folding.markers.end',
|
|
744
|
-
'The RegExp pattern for the end marker. The regexp must start with \'^\'.'
|
|
745
|
-
))
|
|
649
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.folding.markers.end', 'The RegExp pattern for the end marker. The regexp must start with \'^\'.')
|
|
746
650
|
},
|
|
747
651
|
}
|
|
748
652
|
}
|
|
@@ -750,149 +654,92 @@ const schema = {
|
|
|
750
654
|
},
|
|
751
655
|
onEnterRules: {
|
|
752
656
|
type: 'array',
|
|
753
|
-
description: (
|
|
754
|
-
'schema.onEnterRules',
|
|
755
|
-
'The language\'s rules to be evaluated when pressing Enter.'
|
|
756
|
-
)),
|
|
657
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules', 'The language\'s rules to be evaluated when pressing Enter.'),
|
|
757
658
|
items: {
|
|
758
659
|
type: 'object',
|
|
759
|
-
description: (
|
|
760
|
-
'schema.onEnterRules',
|
|
761
|
-
'The language\'s rules to be evaluated when pressing Enter.'
|
|
762
|
-
)),
|
|
660
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules', 'The language\'s rules to be evaluated when pressing Enter.'),
|
|
763
661
|
required: ['beforeText', 'action'],
|
|
764
662
|
properties: {
|
|
765
663
|
beforeText: {
|
|
766
664
|
type: ['string', 'object'],
|
|
767
|
-
description: (
|
|
768
|
-
'schema.onEnterRules.beforeText',
|
|
769
|
-
'This rule will only execute if the text before the cursor matches this regular expression.'
|
|
770
|
-
)),
|
|
665
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules.beforeText', 'This rule will only execute if the text before the cursor matches this regular expression.'),
|
|
771
666
|
properties: {
|
|
772
667
|
pattern: {
|
|
773
668
|
type: 'string',
|
|
774
|
-
description: (
|
|
775
|
-
'schema.onEnterRules.beforeText.pattern',
|
|
776
|
-
'The RegExp pattern for beforeText.'
|
|
777
|
-
)),
|
|
669
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules.beforeText.pattern', 'The RegExp pattern for beforeText.'),
|
|
778
670
|
default: '',
|
|
779
671
|
},
|
|
780
672
|
flags: {
|
|
781
673
|
type: 'string',
|
|
782
|
-
description:
|
|
674
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules.beforeText.flags', 'The RegExp flags for beforeText.'),
|
|
783
675
|
default: '',
|
|
784
676
|
pattern: '^([gimuy]+)$',
|
|
785
|
-
patternErrorMessage: (
|
|
786
|
-
'schema.onEnterRules.beforeText.errorMessage',
|
|
787
|
-
'Must match the pattern `/^([gimuy]+)$/`.'
|
|
788
|
-
))
|
|
677
|
+
patternErrorMessage: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules.beforeText.errorMessage', 'Must match the pattern `/^([gimuy]+)$/`.')
|
|
789
678
|
}
|
|
790
679
|
}
|
|
791
680
|
},
|
|
792
681
|
afterText: {
|
|
793
682
|
type: ['string', 'object'],
|
|
794
|
-
description: (
|
|
795
|
-
'schema.onEnterRules.afterText',
|
|
796
|
-
'This rule will only execute if the text after the cursor matches this regular expression.'
|
|
797
|
-
)),
|
|
683
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules.afterText', 'This rule will only execute if the text after the cursor matches this regular expression.'),
|
|
798
684
|
properties: {
|
|
799
685
|
pattern: {
|
|
800
686
|
type: 'string',
|
|
801
|
-
description: (
|
|
802
|
-
'schema.onEnterRules.afterText.pattern',
|
|
803
|
-
'The RegExp pattern for afterText.'
|
|
804
|
-
)),
|
|
687
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules.afterText.pattern', 'The RegExp pattern for afterText.'),
|
|
805
688
|
default: '',
|
|
806
689
|
},
|
|
807
690
|
flags: {
|
|
808
691
|
type: 'string',
|
|
809
|
-
description:
|
|
692
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules.afterText.flags', 'The RegExp flags for afterText.'),
|
|
810
693
|
default: '',
|
|
811
694
|
pattern: '^([gimuy]+)$',
|
|
812
|
-
patternErrorMessage: (
|
|
813
|
-
'schema.onEnterRules.afterText.errorMessage',
|
|
814
|
-
'Must match the pattern `/^([gimuy]+)$/`.'
|
|
815
|
-
))
|
|
695
|
+
patternErrorMessage: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules.afterText.errorMessage', 'Must match the pattern `/^([gimuy]+)$/`.')
|
|
816
696
|
}
|
|
817
697
|
}
|
|
818
698
|
},
|
|
819
699
|
previousLineText: {
|
|
820
700
|
type: ['string', 'object'],
|
|
821
|
-
description: (
|
|
822
|
-
'schema.onEnterRules.previousLineText',
|
|
823
|
-
'This rule will only execute if the text above the line matches this regular expression.'
|
|
824
|
-
)),
|
|
701
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules.previousLineText', 'This rule will only execute if the text above the line matches this regular expression.'),
|
|
825
702
|
properties: {
|
|
826
703
|
pattern: {
|
|
827
704
|
type: 'string',
|
|
828
|
-
description: (
|
|
829
|
-
'schema.onEnterRules.previousLineText.pattern',
|
|
830
|
-
'The RegExp pattern for previousLineText.'
|
|
831
|
-
)),
|
|
705
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules.previousLineText.pattern', 'The RegExp pattern for previousLineText.'),
|
|
832
706
|
default: '',
|
|
833
707
|
},
|
|
834
708
|
flags: {
|
|
835
709
|
type: 'string',
|
|
836
|
-
description: (
|
|
837
|
-
'schema.onEnterRules.previousLineText.flags',
|
|
838
|
-
'The RegExp flags for previousLineText.'
|
|
839
|
-
)),
|
|
710
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules.previousLineText.flags', 'The RegExp flags for previousLineText.'),
|
|
840
711
|
default: '',
|
|
841
712
|
pattern: '^([gimuy]+)$',
|
|
842
|
-
patternErrorMessage: (
|
|
843
|
-
'schema.onEnterRules.previousLineText.errorMessage',
|
|
844
|
-
'Must match the pattern `/^([gimuy]+)$/`.'
|
|
845
|
-
))
|
|
713
|
+
patternErrorMessage: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules.previousLineText.errorMessage', 'Must match the pattern `/^([gimuy]+)$/`.')
|
|
846
714
|
}
|
|
847
715
|
}
|
|
848
716
|
},
|
|
849
717
|
action: {
|
|
850
718
|
type: ['string', 'object'],
|
|
851
|
-
description:
|
|
719
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules.action', 'The action to execute.'),
|
|
852
720
|
required: ['indent'],
|
|
853
721
|
default: { 'indent': 'indent' },
|
|
854
722
|
properties: {
|
|
855
723
|
indent: {
|
|
856
724
|
type: 'string',
|
|
857
|
-
description: (
|
|
858
|
-
'schema.onEnterRules.action.indent',
|
|
859
|
-
"Describe what to do with the indentation"
|
|
860
|
-
)),
|
|
725
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules.action.indent', "Describe what to do with the indentation"),
|
|
861
726
|
default: 'indent',
|
|
862
727
|
enum: ['none', 'indent', 'indentOutdent', 'outdent'],
|
|
863
728
|
markdownEnumDescriptions: [
|
|
864
|
-
(
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
))
|
|
868
|
-
( nls.localize(
|
|
869
|
-
'schema.onEnterRules.action.indent.indent',
|
|
870
|
-
"Insert new line and indent once (relative to the previous line's indentation)."
|
|
871
|
-
)),
|
|
872
|
-
( nls.localize(
|
|
873
|
-
'schema.onEnterRules.action.indent.indentOutdent',
|
|
874
|
-
"Insert two new lines:\n - the first one indented which will hold the cursor\n - the second one at the same indentation level"
|
|
875
|
-
)),
|
|
876
|
-
( nls.localize(
|
|
877
|
-
'schema.onEnterRules.action.indent.outdent',
|
|
878
|
-
"Insert new line and outdent once (relative to the previous line's indentation)."
|
|
879
|
-
))
|
|
729
|
+
nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules.action.indent.none', "Insert new line and copy the previous line's indentation."),
|
|
730
|
+
nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules.action.indent.indent', "Insert new line and indent once (relative to the previous line's indentation)."),
|
|
731
|
+
nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules.action.indent.indentOutdent', "Insert two new lines:\n - the first one indented which will hold the cursor\n - the second one at the same indentation level"),
|
|
732
|
+
nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules.action.indent.outdent', "Insert new line and outdent once (relative to the previous line's indentation).")
|
|
880
733
|
]
|
|
881
734
|
},
|
|
882
735
|
appendText: {
|
|
883
736
|
type: 'string',
|
|
884
|
-
description: (
|
|
885
|
-
'schema.onEnterRules.action.appendText',
|
|
886
|
-
'Describes text to be appended after the new line and after the indentation.'
|
|
887
|
-
)),
|
|
737
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules.action.appendText', 'Describes text to be appended after the new line and after the indentation.'),
|
|
888
738
|
default: '',
|
|
889
739
|
},
|
|
890
740
|
removeText: {
|
|
891
741
|
type: 'number',
|
|
892
|
-
description: (
|
|
893
|
-
'schema.onEnterRules.action.removeText',
|
|
894
|
-
'Describes the number of characters to remove from the new line\'s indentation.'
|
|
895
|
-
)),
|
|
742
|
+
description: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint', 'schema.onEnterRules.action.removeText', 'Describes the number of characters to remove from the new line\'s indentation.'),
|
|
896
743
|
default: 0,
|
|
897
744
|
}
|
|
898
745
|
}
|
|
@@ -21,21 +21,18 @@ let LargeFileOptimizationsWarner = class LargeFileOptimizationsWarner extends Di
|
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
23
|
if (model.isTooLargeForTokenization()) {
|
|
24
|
-
const message =
|
|
24
|
+
const message = nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/largeFileOptimizations', {
|
|
25
25
|
key: 'largeFile',
|
|
26
26
|
comment: [
|
|
27
27
|
'Variable 0 will be a file name.'
|
|
28
28
|
]
|
|
29
|
-
}, "{0}: tokenization, wrapping, folding, codelens, word highlighting and sticky scroll have been turned off for this large file in order to reduce memory usage and avoid freezing or crashing.", path.basename(model.uri.path))
|
|
29
|
+
}, "{0}: tokenization, wrapping, folding, codelens, word highlighting and sticky scroll have been turned off for this large file in order to reduce memory usage and avoid freezing or crashing.", path.basename(model.uri.path));
|
|
30
30
|
this._notificationService.prompt(Severity.Info, message, [
|
|
31
31
|
{
|
|
32
|
-
label:
|
|
32
|
+
label: nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/largeFileOptimizations', 'removeOptimizations', "Forcefully Enable Features"),
|
|
33
33
|
run: () => {
|
|
34
34
|
this._configurationService.updateValue(`editor.largeFileOptimizations`, false).then(() => {
|
|
35
|
-
this._notificationService.info((
|
|
36
|
-
'reopenFilePrompt',
|
|
37
|
-
"Please reopen file in order for this setting to take effect."
|
|
38
|
-
)));
|
|
35
|
+
this._notificationService.info(nls.localizeWithPath('vs/workbench/contrib/codeEditor/browser/largeFileOptimizations', 'reopenFilePrompt', "Please reopen file in order for this setting to take effect."));
|
|
39
36
|
}, (err) => {
|
|
40
37
|
this._notificationService.error(err);
|
|
41
38
|
});
|
package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
3
3
|
import { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
|
|
4
4
|
import { IEditorService } from '../../../../services/editor/common/editorService.js';
|
|
5
|
-
import { AbstractGotoLineQuickAccessProvider } from '
|
|
5
|
+
import { AbstractGotoLineQuickAccessProvider } from '../../../../../editor/contrib/quickAccess/browser/gotoLineQuickAccess.js';
|
|
6
6
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
7
7
|
import { Extensions } from 'monaco-editor/esm/vs/platform/quickinput/common/quickAccess.js';
|
|
8
8
|
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
@@ -50,7 +50,7 @@ class GotoLineAction extends Action2 {
|
|
|
50
50
|
constructor() {
|
|
51
51
|
super({
|
|
52
52
|
id: GotoLineAction.ID,
|
|
53
|
-
title: { value: (
|
|
53
|
+
title: { value: localizeWithPath('vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess', 'gotoLine', "Go to Line/Column..."), original: 'Go to Line/Column...' },
|
|
54
54
|
f1: true,
|
|
55
55
|
keybinding: {
|
|
56
56
|
weight: 200 ,
|
|
@@ -68,10 +68,7 @@ registerAction2(GotoLineAction);
|
|
|
68
68
|
( Registry.as(Extensions.Quickaccess)).registerQuickAccessProvider({
|
|
69
69
|
ctor: GotoLineQuickAccessProvider,
|
|
70
70
|
prefix: AbstractGotoLineQuickAccessProvider.PREFIX,
|
|
71
|
-
placeholder: (
|
|
72
|
-
|
|
73
|
-
"Type the line number and optional column to go to (e.g. 42:5 for line 42 and column 5)."
|
|
74
|
-
)),
|
|
75
|
-
helpEntries: [{ description: ( localize('gotoLineQuickAccess', "Go to Line/Column")), commandId: GotoLineAction.ID }]
|
|
71
|
+
placeholder: localizeWithPath('vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess', 'gotoLineQuickAccessPlaceholder', "Type the line number and optional column to go to (e.g. 42:5 for line 42 and column 5)."),
|
|
72
|
+
helpEntries: [{ description: localizeWithPath('vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess', 'gotoLineQuickAccess', "Go to Line/Column"), commandId: GotoLineAction.ID }]
|
|
76
73
|
});
|
|
77
74
|
export { GotoLineQuickAccessProvider };
|