mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-19 01:51:47 +01:00
Merge pull request #166758 from hughlilly/double-clicking-copyedit
Copyedit: “Double-clicking” -> “Double-clicking”
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"markdown.preview.breaks.desc": "Sets how line-breaks are rendered in the Markdown preview. Setting it to 'true' creates a <br> for newlines inside paragraphs.",
|
||||
"markdown.preview.linkify": "Convert URL-like text to links in the Markdown preview.",
|
||||
"markdown.preview.typographer": "Enable some language-neutral replacement and quotes beautification in the Markdown preview.",
|
||||
"markdown.preview.doubleClickToSwitchToEditor.desc": "Double click in the Markdown preview to switch to the editor.",
|
||||
"markdown.preview.doubleClickToSwitchToEditor.desc": "Double-click in the Markdown preview to switch to the editor.",
|
||||
"markdown.preview.fontFamily.desc": "Controls the font family used in the Markdown preview.",
|
||||
"markdown.preview.fontSize.desc": "Controls the font size in pixels used in the Markdown preview.",
|
||||
"markdown.preview.lineHeight.desc": "Controls the line height used in the Markdown preview. This number is relative to the font size.",
|
||||
|
||||
@@ -88,7 +88,7 @@ const editorConfiguration: IConfigurationNode = {
|
||||
'editor.stablePeek': {
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
markdownDescription: nls.localize('stablePeek', "Keep peek editors open even when double clicking their content or when hitting `Escape`.")
|
||||
markdownDescription: nls.localize('stablePeek', "Keep peek editors open even when double-clicking their content or when hitting `Escape`.")
|
||||
},
|
||||
'editor.maxTokenizationLineLength': {
|
||||
type: 'integer',
|
||||
|
||||
@@ -96,7 +96,7 @@ export class InlayHintsHover extends MarkdownHoverParticipant implements IEditor
|
||||
}
|
||||
// (1.2) Inlay dbl-click gesture
|
||||
if (isNonEmptyArray(part.item.hint.textEdits)) {
|
||||
executor.emitOne(new MarkdownHover(this, anchor.range, [new MarkdownString().appendText(localize('hint.dbl', "Double click to insert"))], false, 10001));
|
||||
executor.emitOne(new MarkdownHover(this, anchor.range, [new MarkdownString().appendText(localize('hint.dbl', "Double-click to insert"))], false, 10001));
|
||||
}
|
||||
|
||||
// (2) Inlay Label Part Tooltip
|
||||
|
||||
@@ -132,7 +132,7 @@ export interface IGlobalEditorOptions {
|
||||
*/
|
||||
'semanticHighlighting.enabled'?: true | false | 'configuredByTheme';
|
||||
/**
|
||||
* Keep peek editors open even when double clicking their content or when hitting `Escape`.
|
||||
* Keep peek editors open even when double-clicking their content or when hitting `Escape`.
|
||||
* Defaults to false.
|
||||
*/
|
||||
stablePeek?: boolean;
|
||||
|
||||
Vendored
+1
-1
@@ -1256,7 +1256,7 @@ declare namespace monaco.editor {
|
||||
*/
|
||||
'semanticHighlighting.enabled'?: true | false | 'configuredByTheme';
|
||||
/**
|
||||
* Keep peek editors open even when double clicking their content or when hitting `Escape`.
|
||||
* Keep peek editors open even when double-clicking their content or when hitting `Escape`.
|
||||
* Defaults to false.
|
||||
*/
|
||||
stablePeek?: boolean;
|
||||
|
||||
@@ -242,7 +242,7 @@ export class TabsTitleControl extends TitleControl {
|
||||
}
|
||||
}));
|
||||
|
||||
// New file when double clicking on tabs container (but not tabs)
|
||||
// New file when double-clicking on tabs container (but not tabs)
|
||||
for (const eventType of [TouchEventType.Tap, EventType.DBLCLICK]) {
|
||||
this._register(addDisposableListener(tabsContainer, eventType, (e: MouseEvent | GestureEvent) => {
|
||||
if (eventType === EventType.DBLCLICK) {
|
||||
|
||||
@@ -187,17 +187,17 @@ const registry = Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Con
|
||||
},
|
||||
'workbench.editor.enablePreview': {
|
||||
'type': 'boolean',
|
||||
'description': localize('enablePreview', "Controls whether opened editors show as preview editors. Preview editors do not stay open, are reused until explicitly set to be kept open (via double click or editing), and show file names in italics."),
|
||||
'description': localize('enablePreview', "Controls whether opened editors show as preview editors. Preview editors do not stay open, are reused until explicitly set to be kept open (via double-click or editing), and show file names in italics."),
|
||||
'default': true
|
||||
},
|
||||
'workbench.editor.enablePreviewFromQuickOpen': {
|
||||
'type': 'boolean',
|
||||
'markdownDescription': localize('enablePreviewFromQuickOpen', "Controls whether editors opened from Quick Open show as preview editors. Preview editors do not stay open, and are reused until explicitly set to be kept open (via double click or editing). When enabled, hold Ctrl before selection to open an editor as a non-preview. This value is ignored when `#workbench.editor.enablePreview#` is disabled."),
|
||||
'markdownDescription': localize('enablePreviewFromQuickOpen', "Controls whether editors opened from Quick Open show as preview editors. Preview editors do not stay open, and are reused until explicitly set to be kept open (via double-click or editing). When enabled, hold Ctrl before selection to open an editor as a non-preview. This value is ignored when `#workbench.editor.enablePreview#` is disabled."),
|
||||
'default': false
|
||||
},
|
||||
'workbench.editor.enablePreviewFromCodeNavigation': {
|
||||
'type': 'boolean',
|
||||
'markdownDescription': localize('enablePreviewFromCodeNavigation', "Controls whether editors remain in preview when a code navigation is started from them. Preview editors do not stay open, and are reused until explicitly set to be kept open (via double click or editing). This value is ignored when `#workbench.editor.enablePreview#` is disabled."),
|
||||
'markdownDescription': localize('enablePreviewFromCodeNavigation', "Controls whether editors remain in preview when a code navigation is started from them. Preview editors do not stay open, and are reused until explicitly set to be kept open (via double-click or editing). This value is ignored when `#workbench.editor.enablePreview#` is disabled."),
|
||||
'default': false
|
||||
},
|
||||
'workbench.editor.closeOnFileDelete': {
|
||||
|
||||
@@ -373,7 +373,7 @@ export class CodeCell extends Disposable {
|
||||
const expandIcon = DOM.$('span.expandInputIcon');
|
||||
const keybinding = this.keybindingService.lookupKeybinding(EXPAND_CELL_INPUT_COMMAND_ID);
|
||||
if (keybinding) {
|
||||
element.title = localize('cellExpandInputButtonLabelWithDoubleClick', "Double click to expand cell input ({0})", keybinding.getLabel());
|
||||
element.title = localize('cellExpandInputButtonLabelWithDoubleClick', "Double-click to expand cell input ({0})", keybinding.getLabel());
|
||||
expandIcon.title = localize('cellExpandInputButtonLabel', "Expand Cell Input ({0})", keybinding.getLabel());
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ export class CollapsedCellOutput extends CellContentPart {
|
||||
|
||||
const keybinding = keybindingService.lookupKeybinding(EXPAND_CELL_OUTPUT_COMMAND_ID);
|
||||
if (keybinding) {
|
||||
placeholder.title = localize('cellExpandOutputButtonLabelWithDoubleClick', "Double click to expand cell output ({0})", keybinding.getLabel());
|
||||
placeholder.title = localize('cellExpandOutputButtonLabelWithDoubleClick', "Double-click to expand cell output ({0})", keybinding.getLabel());
|
||||
cellOutputCollapseContainer.title = localize('cellExpandOutputButtonLabel', "Expand Cell Output (${0})", keybinding.getLabel());
|
||||
}
|
||||
|
||||
|
||||
@@ -267,7 +267,7 @@ export class MarkupCell extends Disposable {
|
||||
expandIcon.classList.add(...CSSIcon.asClassNameArray(Codicon.more));
|
||||
const keybinding = this.keybindingService.lookupKeybinding(EXPAND_CELL_INPUT_COMMAND_ID);
|
||||
if (keybinding) {
|
||||
element.title = localize('cellExpandInputButtonLabelWithDoubleClick', "Double click to expand cell input ({0})", keybinding.getLabel());
|
||||
element.title = localize('cellExpandInputButtonLabelWithDoubleClick', "Double-click to expand cell input ({0})", keybinding.getLabel());
|
||||
expandIcon.title = localize('cellExpandInputButtonLabel', "Expand Cell Input ({0})", keybinding.getLabel());
|
||||
}
|
||||
|
||||
|
||||
@@ -249,7 +249,7 @@ export class BackLayerWebView<T extends ICommonCellInfo> extends Themable {
|
||||
'notebook-cell-output-line-height': `${this.options.outputLineHeight}px`,
|
||||
'notebook-cell-output-max-height': `${this.options.outputLineHeight * this.options.outputLineLimit}px`,
|
||||
'notebook-cell-output-font-family': this.options.outputFontFamily || this.options.fontFamily,
|
||||
'notebook-cell-markup-empty-content': nls.localize('notebook.emptyMarkdownPlaceholder', "Empty markdown cell, double click or press enter to edit."),
|
||||
'notebook-cell-markup-empty-content': nls.localize('notebook.emptyMarkdownPlaceholder', "Empty markdown cell, double-click or press enter to edit."),
|
||||
'notebook-cell-renderer-not-found-error': nls.localize({
|
||||
key: 'notebook.error.rendererNotFound',
|
||||
comment: ['$0 is a placeholder for the mime type']
|
||||
|
||||
@@ -300,11 +300,11 @@ configurationRegistry.registerConfiguration({
|
||||
enum: ['selectWord', 'goToLocation', 'openLocationToSide'],
|
||||
default: 'goToLocation',
|
||||
enumDescriptions: [
|
||||
nls.localize('search.searchEditor.doubleClickBehaviour.selectWord', "Double clicking selects the word under the cursor."),
|
||||
nls.localize('search.searchEditor.doubleClickBehaviour.goToLocation', "Double clicking opens the result in the active editor group."),
|
||||
nls.localize('search.searchEditor.doubleClickBehaviour.openLocationToSide', "Double clicking opens the result in the editor group to the side, creating one if it does not yet exist."),
|
||||
nls.localize('search.searchEditor.doubleClickBehaviour.selectWord', "Double-clicking selects the word under the cursor."),
|
||||
nls.localize('search.searchEditor.doubleClickBehaviour.goToLocation', "Double-clicking opens the result in the active editor group."),
|
||||
nls.localize('search.searchEditor.doubleClickBehaviour.openLocationToSide', "Double-clicking opens the result in the editor group to the side, creating one if it does not yet exist."),
|
||||
],
|
||||
markdownDescription: nls.localize('search.searchEditor.doubleClickBehaviour', "Configure effect of double clicking a result in a search editor.")
|
||||
markdownDescription: nls.localize('search.searchEditor.doubleClickBehaviour', "Configure effect of double-clicking a result in a search editor.")
|
||||
},
|
||||
'search.searchEditor.reusePriorSearchConfiguration': {
|
||||
type: 'boolean',
|
||||
|
||||
@@ -121,7 +121,7 @@ const terminalConfiguration: IConfigurationNode = {
|
||||
enum: ['singleClick', 'doubleClick'],
|
||||
enumDescriptions: [
|
||||
localize('terminal.integrated.tabs.focusMode.singleClick', "Focus the terminal when clicking a terminal tab"),
|
||||
localize('terminal.integrated.tabs.focusMode.doubleClick', "Focus the terminal when double clicking a terminal tab")
|
||||
localize('terminal.integrated.tabs.focusMode.doubleClick', "Focus the terminal when double-clicking a terminal tab")
|
||||
],
|
||||
default: 'doubleClick',
|
||||
description: localize('terminal.integrated.tabs.focusMode', "Controls whether focusing the terminal of a tab happens on double or single click.")
|
||||
@@ -437,7 +437,7 @@ const terminalConfiguration: IConfigurationNode = {
|
||||
default: true
|
||||
},
|
||||
[TerminalSettingId.WordSeparators]: {
|
||||
description: localize('terminal.integrated.wordSeparators', "A string containing all characters to be considered word separators by the double click to select word feature."),
|
||||
description: localize('terminal.integrated.wordSeparators', "A string containing all characters to be considered word separators by the double-click to select word feature."),
|
||||
type: 'string',
|
||||
// allow-any-unicode-next-line
|
||||
default: ' ()[]{}\',"`─‘’'
|
||||
|
||||
@@ -214,7 +214,7 @@ import { applicationConfigurationNodeBase } from 'vs/workbench/common/configurat
|
||||
'type': 'boolean',
|
||||
'default': false,
|
||||
'scope': ConfigurationScope.APPLICATION,
|
||||
'markdownDescription': localize('window.doubleClickIconToClose', "If enabled, double clicking the application icon in the title bar will close the window and the window cannot be dragged by the icon. This setting only has an effect when `#window.titleBarStyle#` is set to `custom`.")
|
||||
'markdownDescription': localize('window.doubleClickIconToClose', "If enabled, this setting will close the window when the application icon in the title bar is double-clicked. The window will not be able to be dragged by the icon. This setting is effective only if `#window.titleBarStyle#` is set to `custom`.")
|
||||
},
|
||||
'window.titleBarStyle': {
|
||||
'type': 'string',
|
||||
|
||||
Reference in New Issue
Block a user