From 3e01535cfcdf79aad478eb7a06b576627dcdb355 Mon Sep 17 00:00:00 2001 From: gjsjohnmurray Date: Thu, 15 Aug 2024 15:27:43 +0100 Subject: [PATCH 1/2] Improve description of `workbench.editor.enablePreview` setting (fix #225453) --- src/vs/workbench/browser/workbench.contribution.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/browser/workbench.contribution.ts b/src/vs/workbench/browser/workbench.contribution.ts index d83ac066c6e21..3c992624d7304 100644 --- a/src/vs/workbench/browser/workbench.contribution.ts +++ b/src/vs/workbench/browser/workbench.contribution.ts @@ -295,7 +295,7 @@ const registry = Registry.as(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 preview mode is used when documents open. There is a maximum of one preview mode editor per editor group. This editor displays its filename in italics on its tab or title label and in the Open Editors view. Its contents will be replaced by the next document opened in preview mode. Editing a preview mode document will persist it, as will a double-click on its label, or the 'Keep Open' option in its label context menu. Opening a document from Explorer with a double-click persists it immediately."), 'default': true }, 'workbench.editor.enablePreviewFromQuickOpen': { From 8561839e3bc3268b95caa3180c25624b2b3a1fa3 Mon Sep 17 00:00:00 2001 From: gjsjohnmurray Date: Thu, 15 Aug 2024 16:50:34 +0100 Subject: [PATCH 2/2] Amend new description --- src/vs/workbench/browser/workbench.contribution.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/browser/workbench.contribution.ts b/src/vs/workbench/browser/workbench.contribution.ts index 3c992624d7304..bf162986ab65e 100644 --- a/src/vs/workbench/browser/workbench.contribution.ts +++ b/src/vs/workbench/browser/workbench.contribution.ts @@ -295,7 +295,7 @@ const registry = Registry.as(ConfigurationExtensions.Con }, 'workbench.editor.enablePreview': { 'type': 'boolean', - 'description': localize('enablePreview', "Controls whether preview mode is used when documents open. There is a maximum of one preview mode editor per editor group. This editor displays its filename in italics on its tab or title label and in the Open Editors view. Its contents will be replaced by the next document opened in preview mode. Editing a preview mode document will persist it, as will a double-click on its label, or the 'Keep Open' option in its label context menu. Opening a document from Explorer with a double-click persists it immediately."), + 'description': localize('enablePreview', "Controls whether preview mode is used when editors open. There is a maximum of one preview mode editor per editor group. This editor displays its filename in italics on its tab or title label and in the Open Editors view. Its contents will be replaced by the next editor opened in preview mode. Making a change in a preview mode editor will persist it, as will a double-click on its label, or the 'Keep Open' option in its label context menu. Opening a file from Explorer with a double-click persists its editor immediately."), 'default': true }, 'workbench.editor.enablePreviewFromQuickOpen': {