From 2f7fb6c5e6c4d9af7767b8ec5ed75e37bb6bd681 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Thu, 30 Mar 2017 14:09:51 +0200 Subject: [PATCH] Fixes #22541 --- src/vs/editor/common/config/commonEditorConfig.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/vs/editor/common/config/commonEditorConfig.ts b/src/vs/editor/common/config/commonEditorConfig.ts index b30e1c52def..395b2aaac6e 100644 --- a/src/vs/editor/common/config/commonEditorConfig.ts +++ b/src/vs/editor/common/config/commonEditorConfig.ts @@ -709,7 +709,14 @@ const editorConfiguration: IConfigurationNode = { nls.localize('wordWrap.off', "Lines will never wrap."), nls.localize('wordWrap.on', "Lines will wrap at the viewport width."), nls.localize('wordWrap.wordWrapColumn', "Lines will wrap at `editor.wordWrapColumn`."), - nls.localize('wordWrap.bounded', "Lines will wrap at the minimum of viewport and `editor.wordWrapColumn`."), + nls.localize({ + key: 'wordWrap.bounded', + comment: [ + '- viewport means the edge of the visible window size.', + '- `editor.wordWrapColumn` refers to a different setting that is numeric.', + '- the minimum will be computed at runtime and chosen to be the wrapping column.' + ] + }, "Lines will wrap at the minimum of viewport and `editor.wordWrapColumn`."), ], 'default': DefaultConfig.editor.wordWrap, 'description': nls.localize('wordWrap', "Controls how lines should wrap. Can be:\n - 'off' (disable wrapping),\n - 'on' (viewport wrapping),\n - 'wordWrapColumn' (wrap at `editor.wordWrapColumn`) or\n - 'bounded' (wrap at minimum of viewport and `editor.wordWrapColumn`).") -- GitLab