@codingame/monaco-vscode-api 1.83.4 → 1.83.6
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/lifecycle.js +3 -1
- package/missing-services.js +32 -28
- package/monaco-editor-treemending.patch +786 -760
- package/monaco.js +1 -0
- package/package.json +1 -1
- package/service-override/extensions.js +5 -5
- package/service-override/files.js +37 -13
- package/service-override/keybindings.js +10 -4
- package/service-override/layout.js +1 -3
- package/services.d.ts +13 -2
- package/services.js +35 -5
- package/vscode/src/vs/base/browser/broadcast.js +52 -0
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +6 -1
- package/vscode/src/vs/base/common/date.js +244 -54
- package/vscode/src/vs/base/common/jsonErrorMessages.js +45 -9
- package/vscode/src/vs/editor/common/services/textResourceConfiguration.d.ts +65 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +33 -5
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +165 -32
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +30 -9
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +0 -3
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +6 -1
- package/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.js +404 -0
- package/vscode/src/vs/platform/files/common/fileService.js +13 -2
- package/vscode/src/vs/platform/files/common/files.js +25 -5
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +15 -3
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +38 -7
- package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +7 -1
- package/vscode/src/vs/platform/request/common/request.js +1 -1
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +210 -42
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +73 -13
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +5 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +11 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +70 -35
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +108 -20
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +17 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +7 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +14 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +12 -14
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +6 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +32 -5
- package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +0 -60
- package/vscode/src/vs/workbench/api/common/extHostChat.js +11 -2
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +12 -2
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +9 -1
- package/vscode/src/vs/workbench/api/common/extHostProgress.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +11 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +10 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +7 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +49 -9
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +397 -274
- package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +30 -6
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +85 -31
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +56 -102
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +5 -1
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +55 -11
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +63 -11
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +7 -1
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +15 -3
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +205 -41
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +617 -139
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +578 -114
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +96 -20
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +30 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +46 -9
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +30 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +309 -59
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +16 -3
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +35 -7
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +185 -33
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +90 -57
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +16 -3
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +26 -6
- package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +35 -6
- package/vscode/src/vs/workbench/browser/quickaccess.js +6 -6
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +918 -185
- package/vscode/src/vs/workbench/common/configuration.js +25 -11
- package/vscode/src/vs/workbench/common/contextkeys.js +244 -228
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +7 -1
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +44 -0
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +7 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +6 -1
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +23 -0
- package/vscode/src/vs/workbench/common/editor.d.ts +26 -1
- package/vscode/src/vs/workbench/common/editor.js +26 -5
- package/vscode/src/vs/workbench/common/theme.js +676 -136
- package/vscode/src/vs/workbench/common/views.js +8 -3
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +71 -14
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +21 -2
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +133 -21
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +36 -8
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +96 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +0 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +22 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +22 -4
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +41 -8
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +25 -5
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +30 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +34 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorFeatures.js +44 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +320 -63
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +12 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +15 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +30 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +25 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +20 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +25 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +30 -6
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +25 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +16 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +8 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +23 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +15 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +18 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +142 -26
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +33 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +45 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +63 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +45 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +16 -8
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +41 -21
- package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +5 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +5 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +60 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +275 -55
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +7 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +255 -94
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +120 -24
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +22 -4
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +21 -4
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +39 -51
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +394 -75
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +17 -6
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +190 -32
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +5 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +21 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +26 -5
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +81 -14
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +26 -5
- package/vscode/src/vs/workbench/contrib/files/common/files.js +70 -26
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +11 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +5 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +20 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +75 -111
- package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +5 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +6 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +151 -29
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +10 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +0 -42
- package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +115 -23
- package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +17 -3
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +49 -9
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +66 -13
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +52 -10
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +10 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +110 -26
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +21 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +15 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +56 -9
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +25 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +16 -26
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +7 -8
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +20 -4
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +35 -7
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +106 -21
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +81 -21
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +6 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +6 -2
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +592 -112
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +5 -1
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +6 -32
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +5 -1
- package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +5 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +5 -1
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +15 -3
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +58 -10
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +5 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +392 -80
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +28 -5
- package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +10 -2
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +129 -24
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +10 -2
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +20 -10
- package/vscode/src/vs/workbench/services/language/common/languageService.js +122 -22
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +28 -9
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +6 -1
- package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +48 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +5 -1
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +7 -1
- package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +6 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +81 -16
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +1 -50
- package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +126 -25
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +6 -5
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +6 -14
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +6 -1
|
@@ -88,17 +88,32 @@ let CommentThreadWidget = class CommentThreadWidget extends Disposable {
|
|
|
88
88
|
this.currentThreadListeners();
|
|
89
89
|
}
|
|
90
90
|
_setAriaLabel() {
|
|
91
|
-
let ariaLabel = localizeWithPath(
|
|
91
|
+
let ariaLabel = ( localizeWithPath(
|
|
92
|
+
'vs/workbench/contrib/comments/browser/commentThreadWidget',
|
|
93
|
+
'commentLabel',
|
|
94
|
+
"Comment"
|
|
95
|
+
));
|
|
92
96
|
let keybinding;
|
|
93
97
|
const verbose = this.configurationService.getValue("accessibility.verbosity.comments" );
|
|
94
98
|
if (verbose) {
|
|
95
99
|
keybinding = this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp" , this._contextKeyService)?.getLabel() ?? undefined;
|
|
96
100
|
}
|
|
97
101
|
if (keybinding) {
|
|
98
|
-
ariaLabel =
|
|
102
|
+
ariaLabel = ( localizeWithPath(
|
|
103
|
+
'vs/workbench/contrib/comments/browser/commentThreadWidget',
|
|
104
|
+
'commentLabelWithKeybinding',
|
|
105
|
+
"{0}, use ({1}) for accessibility help",
|
|
106
|
+
ariaLabel,
|
|
107
|
+
keybinding
|
|
108
|
+
));
|
|
99
109
|
}
|
|
100
110
|
else {
|
|
101
|
-
ariaLabel = localizeWithPath(
|
|
111
|
+
ariaLabel = ( localizeWithPath(
|
|
112
|
+
'vs/workbench/contrib/comments/browser/commentThreadWidget',
|
|
113
|
+
'commentLabelWithKeybindingNoKeybinding',
|
|
114
|
+
"{0}, run the command Open Accessibility Help which is currently not triggerable via keybinding.",
|
|
115
|
+
ariaLabel
|
|
116
|
+
));
|
|
102
117
|
}
|
|
103
118
|
this._body.container.ariaLabel = ariaLabel;
|
|
104
119
|
}
|
|
@@ -15,64 +15,180 @@ import { ToggleTabFocusModeAction } from 'monaco-editor/esm/vs/editor/contrib/to
|
|
|
15
15
|
( Registry.as(Extensions.Configuration)).registerConfiguration({
|
|
16
16
|
id: 'comments',
|
|
17
17
|
order: 20,
|
|
18
|
-
title: nls.localizeWithPath(
|
|
18
|
+
title: ( nls.localizeWithPath(
|
|
19
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
20
|
+
'commentsConfigurationTitle',
|
|
21
|
+
"Comments"
|
|
22
|
+
)),
|
|
19
23
|
type: 'object',
|
|
20
24
|
properties: {
|
|
21
25
|
'comments.openPanel': {
|
|
22
26
|
enum: ['neverOpen', 'openOnSessionStart', 'openOnSessionStartWithComments'],
|
|
23
27
|
default: 'openOnSessionStartWithComments',
|
|
24
|
-
description: nls.localizeWithPath(
|
|
28
|
+
description: ( nls.localizeWithPath(
|
|
29
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
30
|
+
'openComments',
|
|
31
|
+
"Controls when the comments panel should open."
|
|
32
|
+
)),
|
|
25
33
|
restricted: false,
|
|
26
|
-
markdownDeprecationMessage: nls.localizeWithPath(
|
|
34
|
+
markdownDeprecationMessage: ( nls.localizeWithPath(
|
|
35
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
36
|
+
'comments.openPanel.deprecated',
|
|
37
|
+
"This setting is deprecated in favor of `comments.openView`."
|
|
38
|
+
))
|
|
27
39
|
},
|
|
28
40
|
'comments.openView': {
|
|
29
41
|
enum: ['never', 'file', 'firstFile', 'firstFileUnresolved'],
|
|
30
|
-
enumDescriptions: [
|
|
42
|
+
enumDescriptions: [( nls.localizeWithPath(
|
|
43
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
44
|
+
'comments.openView.never',
|
|
45
|
+
"The comments view will never be opened."
|
|
46
|
+
)), ( nls.localizeWithPath(
|
|
47
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
48
|
+
'comments.openView.file',
|
|
49
|
+
"The comments view will open when a file with comments is active."
|
|
50
|
+
)), ( nls.localizeWithPath(
|
|
51
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
52
|
+
'comments.openView.firstFile',
|
|
53
|
+
"If the comments view has not been opened yet during this session it will open the first time during a session that a file with comments is active."
|
|
54
|
+
)), ( nls.localizeWithPath(
|
|
55
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
56
|
+
'comments.openView.firstFileUnresolved',
|
|
57
|
+
"If the comments view has not been opened yet during this session and the comment is not resolved, it will open the first time during a session that a file with comments is active."
|
|
58
|
+
))],
|
|
31
59
|
default: 'firstFile',
|
|
32
|
-
description: nls.localizeWithPath(
|
|
60
|
+
description: ( nls.localizeWithPath(
|
|
61
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
62
|
+
'comments.openView',
|
|
63
|
+
"Controls when the comments view should open."
|
|
64
|
+
)),
|
|
33
65
|
restricted: false
|
|
34
66
|
},
|
|
35
67
|
'comments.useRelativeTime': {
|
|
36
68
|
type: 'boolean',
|
|
37
69
|
default: true,
|
|
38
|
-
description: nls.localizeWithPath(
|
|
70
|
+
description: ( nls.localizeWithPath(
|
|
71
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
72
|
+
'useRelativeTime',
|
|
73
|
+
"Determines if relative time will be used in comment timestamps (ex. '1 day ago')."
|
|
74
|
+
))
|
|
39
75
|
},
|
|
40
76
|
'comments.visible': {
|
|
41
77
|
type: 'boolean',
|
|
42
78
|
default: true,
|
|
43
|
-
description: nls.localizeWithPath(
|
|
79
|
+
description: ( nls.localizeWithPath(
|
|
80
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
81
|
+
'comments.visible',
|
|
82
|
+
"Controls the visibility of the comments bar and comment threads in editors that have commenting ranges and comments. Comments are still accessible via the Comments view and will cause commenting to be toggled on in the same way running the command \"Comments: Toggle Editor Commenting\" toggles comments."
|
|
83
|
+
))
|
|
44
84
|
},
|
|
45
85
|
'comments.maxHeight': {
|
|
46
86
|
type: 'boolean',
|
|
47
87
|
default: true,
|
|
48
|
-
description: nls.localizeWithPath(
|
|
88
|
+
description: ( nls.localizeWithPath(
|
|
89
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
90
|
+
'comments.maxHeight',
|
|
91
|
+
"Controls whether the comments widget scrolls or expands."
|
|
92
|
+
))
|
|
49
93
|
},
|
|
50
94
|
'comments.collapseOnResolve': {
|
|
51
95
|
type: 'boolean',
|
|
52
96
|
default: true,
|
|
53
|
-
description: nls.localizeWithPath(
|
|
97
|
+
description: ( nls.localizeWithPath(
|
|
98
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
99
|
+
'collapseOnResolve',
|
|
100
|
+
"Controls whether the comment thread should collapse when the thread is resolved."
|
|
101
|
+
))
|
|
54
102
|
}
|
|
55
103
|
}
|
|
56
104
|
});
|
|
57
105
|
var CommentAccessibilityHelpNLS;
|
|
58
106
|
( (function(CommentAccessibilityHelpNLS) {
|
|
59
|
-
CommentAccessibilityHelpNLS.intro = nls.localizeWithPath(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
CommentAccessibilityHelpNLS.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
CommentAccessibilityHelpNLS.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
CommentAccessibilityHelpNLS.
|
|
75
|
-
|
|
107
|
+
CommentAccessibilityHelpNLS.intro = ( nls.localizeWithPath(
|
|
108
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
109
|
+
'intro',
|
|
110
|
+
"The editor contains commentable range(s). Some useful commands include:"
|
|
111
|
+
));
|
|
112
|
+
CommentAccessibilityHelpNLS.introWidget = ( nls.localizeWithPath(
|
|
113
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
114
|
+
'introWidget',
|
|
115
|
+
"This widget contains a text area, for composition of new comments, and actions, that can be tabbed to once tab moves focus mode has been enabled ({0})."
|
|
116
|
+
));
|
|
117
|
+
CommentAccessibilityHelpNLS.introWidgetNoKb = ( nls.localizeWithPath(
|
|
118
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
119
|
+
'introWidgetNoKb',
|
|
120
|
+
"This widget contains a text area, for composition of new comments, and actions, that can be tabbed to once tab moves focus mode has been enabled with the command Toggle Tab Key Moves Focus, which is currently not triggerable via keybinding."
|
|
121
|
+
));
|
|
122
|
+
CommentAccessibilityHelpNLS.commentCommands = ( nls.localizeWithPath(
|
|
123
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
124
|
+
'commentCommands',
|
|
125
|
+
"Some useful comment commands include:"
|
|
126
|
+
));
|
|
127
|
+
CommentAccessibilityHelpNLS.escape = ( nls.localizeWithPath(
|
|
128
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
129
|
+
'escape',
|
|
130
|
+
"- Dismiss Comment (Escape)"
|
|
131
|
+
));
|
|
132
|
+
CommentAccessibilityHelpNLS.nextRange = ( nls.localizeWithPath(
|
|
133
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
134
|
+
'next',
|
|
135
|
+
"- Go to Next Commenting Range ({0})"
|
|
136
|
+
));
|
|
137
|
+
CommentAccessibilityHelpNLS.nextRangeNoKb = ( nls.localizeWithPath(
|
|
138
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
139
|
+
'nextNoKb',
|
|
140
|
+
"- Go to Next Commenting Range, which is currently not triggerable via keybinding."
|
|
141
|
+
));
|
|
142
|
+
CommentAccessibilityHelpNLS.previousRange = ( nls.localizeWithPath(
|
|
143
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
144
|
+
'previous',
|
|
145
|
+
"- Go to Previous Commenting Range ({0})"
|
|
146
|
+
));
|
|
147
|
+
CommentAccessibilityHelpNLS.previousRangeNoKb = ( nls.localizeWithPath(
|
|
148
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
149
|
+
'previousNoKb',
|
|
150
|
+
"- Go to Previous Commenting Range, which is currently not triggerable via keybinding."
|
|
151
|
+
));
|
|
152
|
+
CommentAccessibilityHelpNLS.nextCommentThreadKb = ( nls.localizeWithPath(
|
|
153
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
154
|
+
'nextCommentThreadKb',
|
|
155
|
+
"- Go to Next Comment Thread ({0})"
|
|
156
|
+
));
|
|
157
|
+
CommentAccessibilityHelpNLS.nextCommentThreadNoKb = ( nls.localizeWithPath(
|
|
158
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
159
|
+
'nextCommentThreadNoKb',
|
|
160
|
+
"- Go to Next Comment Thread, which is currently not triggerable via keybinding."
|
|
161
|
+
));
|
|
162
|
+
CommentAccessibilityHelpNLS.previousCommentThreadKb = ( nls.localizeWithPath(
|
|
163
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
164
|
+
'previousCommentThreadKb',
|
|
165
|
+
"- Go to Previous Comment Thread ({0})"
|
|
166
|
+
));
|
|
167
|
+
CommentAccessibilityHelpNLS.previousCommentThreadNoKb = ( nls.localizeWithPath(
|
|
168
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
169
|
+
'previousCommentThreadNoKb',
|
|
170
|
+
"- Go to Previous Comment Thread, which is currently not triggerable via keybinding."
|
|
171
|
+
));
|
|
172
|
+
CommentAccessibilityHelpNLS.addComment = ( nls.localizeWithPath(
|
|
173
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
174
|
+
'addComment',
|
|
175
|
+
"- Add Comment ({0})"
|
|
176
|
+
));
|
|
177
|
+
CommentAccessibilityHelpNLS.addCommentNoKb = ( nls.localizeWithPath(
|
|
178
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
179
|
+
'addCommentNoKb',
|
|
180
|
+
"- Add Comment on Current Selection, which is currently not triggerable via keybinding."
|
|
181
|
+
));
|
|
182
|
+
CommentAccessibilityHelpNLS.submitComment = ( nls.localizeWithPath(
|
|
183
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
184
|
+
'submitComment',
|
|
185
|
+
"- Submit Comment ({0})"
|
|
186
|
+
));
|
|
187
|
+
CommentAccessibilityHelpNLS.submitCommentNoKb = ( nls.localizeWithPath(
|
|
188
|
+
'vs/workbench/contrib/comments/browser/comments.contribution',
|
|
189
|
+
'submitCommentNoKb',
|
|
190
|
+
"- Submit Comment, accessible via tabbing, as it's currently not triggerable with a keybinding."
|
|
191
|
+
));
|
|
76
192
|
})(CommentAccessibilityHelpNLS || (CommentAccessibilityHelpNLS = {})));
|
|
77
193
|
class CommentsAccessibilityHelpContribution extends Disposable {
|
|
78
194
|
constructor() {
|
|
@@ -702,7 +702,18 @@ let CommentController = class CommentController {
|
|
|
702
702
|
const commentRangeEnd = range?.getEndPosition().lineNumber;
|
|
703
703
|
if (commentRangeStart && commentRangeEnd) {
|
|
704
704
|
const oneLine = commentRangeStart === commentRangeEnd;
|
|
705
|
-
oneLine ? status(
|
|
705
|
+
oneLine ? status(( nls.localizeWithPath(
|
|
706
|
+
'vs/workbench/contrib/comments/browser/commentsController',
|
|
707
|
+
'commentRange',
|
|
708
|
+
"Line {0}",
|
|
709
|
+
commentRangeStart
|
|
710
|
+
))) : status(( nls.localizeWithPath(
|
|
711
|
+
'vs/workbench/contrib/comments/browser/commentsController',
|
|
712
|
+
'commentRangeStart',
|
|
713
|
+
"Lines {0} to {1}",
|
|
714
|
+
commentRangeStart,
|
|
715
|
+
commentRangeEnd
|
|
716
|
+
)));
|
|
706
717
|
}
|
|
707
718
|
}
|
|
708
719
|
}
|
|
@@ -818,14 +829,27 @@ let CommentController = class CommentController {
|
|
|
818
829
|
if (verbose) {
|
|
819
830
|
const keybinding = this.keybindingService.lookupKeybinding("editor.action.accessibilityHelp" )?.getAriaLabel();
|
|
820
831
|
if (keybinding) {
|
|
821
|
-
status(nls.localizeWithPath(
|
|
832
|
+
status(( nls.localizeWithPath(
|
|
833
|
+
'vs/workbench/contrib/comments/browser/commentsController',
|
|
834
|
+
'hasCommentRangesKb',
|
|
835
|
+
"Editor has commenting ranges, run the command Open Accessibility Help ({0}), for more information.",
|
|
836
|
+
keybinding
|
|
837
|
+
)));
|
|
822
838
|
}
|
|
823
839
|
else {
|
|
824
|
-
status(nls.localizeWithPath(
|
|
840
|
+
status(( nls.localizeWithPath(
|
|
841
|
+
'vs/workbench/contrib/comments/browser/commentsController',
|
|
842
|
+
'hasCommentRangesNoKb',
|
|
843
|
+
"Editor has commenting ranges, run the command Open Accessibility Help, which is currently not triggerable via keybinding, for more information."
|
|
844
|
+
)));
|
|
825
845
|
}
|
|
826
846
|
}
|
|
827
847
|
else {
|
|
828
|
-
status(nls.localizeWithPath(
|
|
848
|
+
status(( nls.localizeWithPath(
|
|
849
|
+
'vs/workbench/contrib/comments/browser/commentsController',
|
|
850
|
+
'hasCommentRanges',
|
|
851
|
+
"Editor has commenting ranges."
|
|
852
|
+
)));
|
|
829
853
|
}
|
|
830
854
|
}
|
|
831
855
|
}
|
|
@@ -949,7 +973,11 @@ let CommentController = class CommentController {
|
|
|
949
973
|
}
|
|
950
974
|
else {
|
|
951
975
|
const picks = this.getCommentProvidersQuickPicks(newCommentInfos);
|
|
952
|
-
return this.quickInputService.pick(picks, { placeHolder: nls.localizeWithPath(
|
|
976
|
+
return this.quickInputService.pick(picks, { placeHolder: ( nls.localizeWithPath(
|
|
977
|
+
'vs/workbench/contrib/comments/browser/commentsController',
|
|
978
|
+
'pickCommentService',
|
|
979
|
+
"Select Comment Provider"
|
|
980
|
+
)), matchOnDescription: true }).then(pick => {
|
|
953
981
|
if (!pick) {
|
|
954
982
|
return;
|
|
955
983
|
}
|
|
@@ -21,7 +21,11 @@ import { openLinkFromMarkdown } from 'monaco-editor/esm/vs/editor/contrib/markdo
|
|
|
21
21
|
const COMMENTS_VIEW_ID = 'workbench.panel.comments';
|
|
22
22
|
const COMMENTS_VIEW_STORAGE_ID = 'Comments';
|
|
23
23
|
const COMMENTS_VIEW_ORIGINAL_TITLE = 'Comments';
|
|
24
|
-
const COMMENTS_VIEW_TITLE = nls.localizeWithPath(
|
|
24
|
+
const COMMENTS_VIEW_TITLE = ( nls.localizeWithPath(
|
|
25
|
+
'vs/workbench/contrib/comments/browser/commentsTreeViewer',
|
|
26
|
+
'comments.view.title',
|
|
27
|
+
"Comments"
|
|
28
|
+
));
|
|
25
29
|
class CommentsModelVirualDelegate {
|
|
26
30
|
static { this.RESOURCE_ID = 'resource-with-comments'; }
|
|
27
31
|
static { this.COMMENT_ID = 'comment-node'; }
|
|
@@ -99,10 +103,19 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
99
103
|
}
|
|
100
104
|
getCountString(commentCount) {
|
|
101
105
|
if (commentCount > 1) {
|
|
102
|
-
return nls.localizeWithPath(
|
|
106
|
+
return ( nls.localizeWithPath(
|
|
107
|
+
'vs/workbench/contrib/comments/browser/commentsTreeViewer',
|
|
108
|
+
'commentsCount',
|
|
109
|
+
"{0} comments",
|
|
110
|
+
commentCount
|
|
111
|
+
));
|
|
103
112
|
}
|
|
104
113
|
else {
|
|
105
|
-
return nls.localizeWithPath(
|
|
114
|
+
return ( nls.localizeWithPath(
|
|
115
|
+
'vs/workbench/contrib/comments/browser/commentsTreeViewer',
|
|
116
|
+
'commentCount',
|
|
117
|
+
"1 comment"
|
|
118
|
+
));
|
|
106
119
|
}
|
|
107
120
|
}
|
|
108
121
|
getRenderedComment(commentBody, disposables) {
|
|
@@ -117,7 +130,16 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
117
130
|
for (let i = 0; i < images.length; i++) {
|
|
118
131
|
const image = images[i];
|
|
119
132
|
const textDescription = dom.$('');
|
|
120
|
-
textDescription.textContent = image.alt ?
|
|
133
|
+
textDescription.textContent = image.alt ? ( nls.localizeWithPath(
|
|
134
|
+
'vs/workbench/contrib/comments/browser/commentsTreeViewer',
|
|
135
|
+
'imageWithLabel',
|
|
136
|
+
"Image: {0}",
|
|
137
|
+
image.alt
|
|
138
|
+
)) : ( nls.localizeWithPath(
|
|
139
|
+
'vs/workbench/contrib/comments/browser/commentsTreeViewer',
|
|
140
|
+
'image',
|
|
141
|
+
"Image"
|
|
142
|
+
));
|
|
121
143
|
image.parentNode.replaceChild(textDescription, image);
|
|
122
144
|
}
|
|
123
145
|
return renderedComment;
|
|
@@ -158,10 +180,21 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
158
180
|
}
|
|
159
181
|
if (node.element.range) {
|
|
160
182
|
if (node.element.range.startLineNumber === node.element.range.endLineNumber) {
|
|
161
|
-
templateData.threadMetadata.range.textContent = nls.localizeWithPath(
|
|
183
|
+
templateData.threadMetadata.range.textContent = ( nls.localizeWithPath(
|
|
184
|
+
'vs/workbench/contrib/comments/browser/commentsTreeViewer',
|
|
185
|
+
'commentLine',
|
|
186
|
+
"[Ln {0}]",
|
|
187
|
+
node.element.range.startLineNumber
|
|
188
|
+
));
|
|
162
189
|
}
|
|
163
190
|
else {
|
|
164
|
-
templateData.threadMetadata.range.textContent = nls.localizeWithPath(
|
|
191
|
+
templateData.threadMetadata.range.textContent = ( nls.localizeWithPath(
|
|
192
|
+
'vs/workbench/contrib/comments/browser/commentsTreeViewer',
|
|
193
|
+
'commentRange',
|
|
194
|
+
"[Ln {0}-{1}]",
|
|
195
|
+
node.element.range.startLineNumber,
|
|
196
|
+
node.element.range.endLineNumber
|
|
197
|
+
));
|
|
165
198
|
}
|
|
166
199
|
}
|
|
167
200
|
if (!node.element.hasReply()) {
|
|
@@ -171,7 +204,12 @@ let CommentNodeRenderer = class CommentNodeRenderer {
|
|
|
171
204
|
templateData.repliesMetadata.container.style.display = '';
|
|
172
205
|
templateData.repliesMetadata.count.textContent = this.getCountString(commentCount);
|
|
173
206
|
const lastComment = node.element.replies[node.element.replies.length - 1].comment;
|
|
174
|
-
templateData.repliesMetadata.lastReplyDetail.textContent = nls.localizeWithPath(
|
|
207
|
+
templateData.repliesMetadata.lastReplyDetail.textContent = ( nls.localizeWithPath(
|
|
208
|
+
'vs/workbench/contrib/comments/browser/commentsTreeViewer',
|
|
209
|
+
'lastReplyFrom',
|
|
210
|
+
"Last reply from {0}",
|
|
211
|
+
lastComment.userName
|
|
212
|
+
));
|
|
175
213
|
templateData.repliesMetadata.timestamp.setTimestamp(lastComment.timestamp ? ( new Date(lastComment.timestamp)) : undefined);
|
|
176
214
|
}
|
|
177
215
|
getCommentThreadWidgetStateColor(state, theme) {
|
|
@@ -54,8 +54,16 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
54
54
|
super({
|
|
55
55
|
...options,
|
|
56
56
|
filterOptions: {
|
|
57
|
-
placeholder: nls.localizeWithPath(
|
|
58
|
-
|
|
57
|
+
placeholder: ( nls.localizeWithPath(
|
|
58
|
+
'vs/workbench/contrib/comments/browser/commentsView',
|
|
59
|
+
'comments.filter.placeholder',
|
|
60
|
+
"Filter (e.g. text, author)"
|
|
61
|
+
)),
|
|
62
|
+
ariaLabel: ( nls.localizeWithPath(
|
|
63
|
+
'vs/workbench/contrib/comments/browser/commentsView',
|
|
64
|
+
'comments.filter.ariaLabel',
|
|
65
|
+
"Filter comments"
|
|
66
|
+
)),
|
|
59
67
|
history: viewState['filterHistory'] || [],
|
|
60
68
|
text: viewState['filter'] || '',
|
|
61
69
|
focusContextKey: CommentsViewFilterFocusContextKey.key
|
|
@@ -97,7 +105,12 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
97
105
|
return;
|
|
98
106
|
}
|
|
99
107
|
this.totalUnresolved = unresolved;
|
|
100
|
-
const message = nls.localizeWithPath(
|
|
108
|
+
const message = ( nls.localizeWithPath(
|
|
109
|
+
'vs/workbench/contrib/comments/browser/commentsView',
|
|
110
|
+
'totalUnresolvedComments',
|
|
111
|
+
'{0} Unresolved Comments',
|
|
112
|
+
this.totalUnresolved
|
|
113
|
+
));
|
|
101
114
|
this.activity.value = this.activityService.showViewActivity(this.id, { badge: ( new NumberBadge(this.totalUnresolved, () => message)) });
|
|
102
115
|
}
|
|
103
116
|
saveState() {
|
|
@@ -148,7 +161,13 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
148
161
|
this.tree?.filterComments();
|
|
149
162
|
this.cachedFilterStats = undefined;
|
|
150
163
|
const { total, filtered } = this.getFilterStats();
|
|
151
|
-
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : nls.localizeWithPath(
|
|
164
|
+
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( nls.localizeWithPath(
|
|
165
|
+
'vs/workbench/contrib/comments/browser/commentsView',
|
|
166
|
+
'showing filtered results',
|
|
167
|
+
"Showing {0} of {1}",
|
|
168
|
+
filtered,
|
|
169
|
+
total
|
|
170
|
+
)));
|
|
152
171
|
this.filterWidget.checkMoreFilters(!this.filters.showResolved || !this.filters.showUnresolved);
|
|
153
172
|
}
|
|
154
173
|
renderBody(container) {
|
|
@@ -262,17 +281,43 @@ let CommentsPanel = class CommentsPanel extends FilterViewPane {
|
|
|
262
281
|
accessibilityProvider: {
|
|
263
282
|
getAriaLabel(element) {
|
|
264
283
|
if (element instanceof CommentsModel) {
|
|
265
|
-
return nls.localizeWithPath(
|
|
284
|
+
return ( nls.localizeWithPath(
|
|
285
|
+
'vs/workbench/contrib/comments/browser/commentsView',
|
|
286
|
+
'rootCommentsLabel',
|
|
287
|
+
"Comments for current workspace"
|
|
288
|
+
));
|
|
266
289
|
}
|
|
267
290
|
if (element instanceof ResourceWithCommentThreads) {
|
|
268
|
-
return nls.localizeWithPath(
|
|
291
|
+
return ( nls.localizeWithPath(
|
|
292
|
+
'vs/workbench/contrib/comments/browser/commentsView',
|
|
293
|
+
'resourceWithCommentThreadsLabel',
|
|
294
|
+
"Comments in {0}, full path {1}",
|
|
295
|
+
basename(element.resource),
|
|
296
|
+
element.resource.fsPath
|
|
297
|
+
));
|
|
269
298
|
}
|
|
270
299
|
if (element instanceof CommentNode) {
|
|
271
300
|
if (element.range) {
|
|
272
|
-
return nls.localizeWithPath(
|
|
301
|
+
return ( nls.localizeWithPath(
|
|
302
|
+
'vs/workbench/contrib/comments/browser/commentsView',
|
|
303
|
+
'resourceWithCommentLabel',
|
|
304
|
+
"Comment from ${0} at line {1} column {2} in {3}, source: {4}",
|
|
305
|
+
element.comment.userName,
|
|
306
|
+
element.range.startLineNumber,
|
|
307
|
+
element.range.startColumn,
|
|
308
|
+
basename(element.resource),
|
|
309
|
+
(typeof element.comment.body === 'string') ? element.comment.body : element.comment.body.value
|
|
310
|
+
));
|
|
273
311
|
}
|
|
274
312
|
else {
|
|
275
|
-
return nls.localizeWithPath(
|
|
313
|
+
return ( nls.localizeWithPath(
|
|
314
|
+
'vs/workbench/contrib/comments/browser/commentsView',
|
|
315
|
+
'resourceWithCommentLabelFile',
|
|
316
|
+
"Comment from ${0} in {1}, source: {2}",
|
|
317
|
+
element.comment.userName,
|
|
318
|
+
basename(element.resource),
|
|
319
|
+
(typeof element.comment.body === 'string') ? element.comment.body : element.comment.body.value
|
|
320
|
+
));
|
|
276
321
|
}
|
|
277
322
|
}
|
|
278
323
|
return '';
|
|
@@ -450,7 +495,11 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
450
495
|
super({
|
|
451
496
|
viewId: COMMENTS_VIEW_ID,
|
|
452
497
|
id: 'comments.collapse',
|
|
453
|
-
title: nls.localizeWithPath(
|
|
498
|
+
title: ( nls.localizeWithPath(
|
|
499
|
+
'vs/workbench/contrib/comments/browser/commentsView',
|
|
500
|
+
'collapseAll',
|
|
501
|
+
"Collapse All"
|
|
502
|
+
)),
|
|
454
503
|
f1: false,
|
|
455
504
|
icon: Codicon.collapseAll,
|
|
456
505
|
menu: {
|
|
@@ -470,7 +519,11 @@ registerAction2(class Expand extends ViewAction {
|
|
|
470
519
|
super({
|
|
471
520
|
viewId: COMMENTS_VIEW_ID,
|
|
472
521
|
id: 'comments.expand',
|
|
473
|
-
title: nls.localizeWithPath(
|
|
522
|
+
title: ( nls.localizeWithPath(
|
|
523
|
+
'vs/workbench/contrib/comments/browser/commentsView',
|
|
524
|
+
'expandAll',
|
|
525
|
+
"Expand All"
|
|
526
|
+
)),
|
|
474
527
|
f1: false,
|
|
475
528
|
icon: Codicon.expandAll,
|
|
476
529
|
menu: {
|
|
@@ -44,7 +44,11 @@ registerAction2(class extends ViewAction {
|
|
|
44
44
|
constructor() {
|
|
45
45
|
super({
|
|
46
46
|
id: 'commentsFocusViewFromFilter',
|
|
47
|
-
title: localizeWithPath(
|
|
47
|
+
title: ( localizeWithPath(
|
|
48
|
+
'vs/workbench/contrib/comments/browser/commentsViewActions',
|
|
49
|
+
'focusCommentsList',
|
|
50
|
+
"Focus Comments view"
|
|
51
|
+
)),
|
|
48
52
|
keybinding: {
|
|
49
53
|
when: CommentsViewFilterFocusContextKey,
|
|
50
54
|
weight: 200 ,
|
|
@@ -61,7 +65,11 @@ registerAction2(class extends ViewAction {
|
|
|
61
65
|
constructor() {
|
|
62
66
|
super({
|
|
63
67
|
id: 'commentsClearFilterText',
|
|
64
|
-
title: localizeWithPath(
|
|
68
|
+
title: ( localizeWithPath(
|
|
69
|
+
'vs/workbench/contrib/comments/browser/commentsViewActions',
|
|
70
|
+
'commentsClearFilterText',
|
|
71
|
+
"Clear filter text"
|
|
72
|
+
)),
|
|
65
73
|
keybinding: {
|
|
66
74
|
when: CommentsViewFilterFocusContextKey,
|
|
67
75
|
weight: 200 ,
|
|
@@ -78,7 +86,11 @@ registerAction2(class extends ViewAction {
|
|
|
78
86
|
constructor() {
|
|
79
87
|
super({
|
|
80
88
|
id: 'commentsFocusFilter',
|
|
81
|
-
title: localizeWithPath(
|
|
89
|
+
title: ( localizeWithPath(
|
|
90
|
+
'vs/workbench/contrib/comments/browser/commentsViewActions',
|
|
91
|
+
'focusCommentsFilter',
|
|
92
|
+
"Focus comments filter"
|
|
93
|
+
)),
|
|
82
94
|
keybinding: {
|
|
83
95
|
when: ( FocusedViewContext.isEqualTo(COMMENTS_VIEW_ID)),
|
|
84
96
|
weight: 200 ,
|
|
@@ -95,11 +107,23 @@ registerAction2(class extends ViewAction {
|
|
|
95
107
|
constructor() {
|
|
96
108
|
super({
|
|
97
109
|
id: `workbench.actions.${COMMENTS_VIEW_ID}.toggleUnResolvedComments`,
|
|
98
|
-
title: localizeWithPath(
|
|
99
|
-
|
|
110
|
+
title: ( localizeWithPath(
|
|
111
|
+
'vs/workbench/contrib/comments/browser/commentsViewActions',
|
|
112
|
+
'toggle unresolved',
|
|
113
|
+
"Toggle Unresolved Comments"
|
|
114
|
+
)),
|
|
115
|
+
category: ( localizeWithPath(
|
|
116
|
+
'vs/workbench/contrib/comments/browser/commentsViewActions',
|
|
117
|
+
'comments',
|
|
118
|
+
"Comments"
|
|
119
|
+
)),
|
|
100
120
|
toggled: {
|
|
101
121
|
condition: CONTEXT_KEY_SHOW_UNRESOLVED,
|
|
102
|
-
title: localizeWithPath(
|
|
122
|
+
title: ( localizeWithPath(
|
|
123
|
+
'vs/workbench/contrib/comments/browser/commentsViewActions',
|
|
124
|
+
'unresolved',
|
|
125
|
+
"Show Unresolved"
|
|
126
|
+
)),
|
|
103
127
|
},
|
|
104
128
|
menu: {
|
|
105
129
|
id: viewFilterSubmenu,
|
|
@@ -118,11 +142,23 @@ registerAction2(class extends ViewAction {
|
|
|
118
142
|
constructor() {
|
|
119
143
|
super({
|
|
120
144
|
id: `workbench.actions.${COMMENTS_VIEW_ID}.toggleResolvedComments`,
|
|
121
|
-
title: localizeWithPath(
|
|
122
|
-
|
|
145
|
+
title: ( localizeWithPath(
|
|
146
|
+
'vs/workbench/contrib/comments/browser/commentsViewActions',
|
|
147
|
+
'toggle resolved',
|
|
148
|
+
"Toggle Resolved Comments"
|
|
149
|
+
)),
|
|
150
|
+
category: ( localizeWithPath(
|
|
151
|
+
'vs/workbench/contrib/comments/browser/commentsViewActions',
|
|
152
|
+
'comments',
|
|
153
|
+
"Comments"
|
|
154
|
+
)),
|
|
123
155
|
toggled: {
|
|
124
156
|
condition: CONTEXT_KEY_SHOW_RESOLVED,
|
|
125
|
-
title: localizeWithPath(
|
|
157
|
+
title: ( localizeWithPath(
|
|
158
|
+
'vs/workbench/contrib/comments/browser/commentsViewActions',
|
|
159
|
+
'resolved',
|
|
160
|
+
"Show Resolved"
|
|
161
|
+
)),
|
|
126
162
|
},
|
|
127
163
|
menu: {
|
|
128
164
|
id: viewFilterSubmenu,
|