@theia/editor 1.18.0 → 1.19.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.
Files changed (36) hide show
  1. package/lib/browser/editor-command.d.ts +2 -0
  2. package/lib/browser/editor-command.d.ts.map +1 -1
  3. package/lib/browser/editor-command.js +80 -65
  4. package/lib/browser/editor-command.js.map +1 -1
  5. package/lib/browser/editor-contribution.d.ts +1 -2
  6. package/lib/browser/editor-contribution.d.ts.map +1 -1
  7. package/lib/browser/editor-contribution.js +6 -5
  8. package/lib/browser/editor-contribution.js.map +1 -1
  9. package/lib/browser/editor-manager.d.ts +1 -2
  10. package/lib/browser/editor-manager.d.ts.map +1 -1
  11. package/lib/browser/editor-manager.js.map +1 -1
  12. package/lib/browser/editor-menu.d.ts +13 -1
  13. package/lib/browser/editor-menu.d.ts.map +1 -1
  14. package/lib/browser/editor-menu.js +32 -7
  15. package/lib/browser/editor-menu.js.map +1 -1
  16. package/lib/browser/editor-preferences.d.ts +2 -0
  17. package/lib/browser/editor-preferences.d.ts.map +1 -1
  18. package/lib/browser/editor-preferences.js +302 -291
  19. package/lib/browser/editor-preferences.js.map +1 -1
  20. package/lib/browser/editor-widget-factory.js +1 -1
  21. package/lib/browser/editor-widget-factory.js.map +1 -1
  22. package/lib/browser/editor.d.ts +1 -2
  23. package/lib/browser/editor.d.ts.map +1 -1
  24. package/lib/browser/editor.js.map +1 -1
  25. package/lib/browser/quick-editor-service.d.ts +1 -2
  26. package/lib/browser/quick-editor-service.d.ts.map +1 -1
  27. package/lib/browser/quick-editor-service.js.map +1 -1
  28. package/package.json +5 -5
  29. package/src/browser/editor-command.ts +80 -65
  30. package/src/browser/editor-contribution.ts +7 -7
  31. package/src/browser/editor-manager.ts +1 -2
  32. package/src/browser/editor-menu.ts +35 -7
  33. package/src/browser/editor-preferences.ts +302 -291
  34. package/src/browser/editor-widget-factory.ts +2 -2
  35. package/src/browser/editor.ts +1 -2
  36. package/src/browser/quick-editor-service.ts +1 -2
@@ -25,6 +25,7 @@ import {
25
25
  PreferenceSchemaProperties
26
26
  } from '@theia/core/lib/browser/preferences';
27
27
  import { isWindows, isOSX, OS } from '@theia/core/lib/common/os';
28
+ import { nls } from '@theia/core/lib/common/nls';
28
29
 
29
30
  const DEFAULT_WINDOWS_FONT_FAMILY = 'Consolas, \'Courier New\', monospace';
30
31
  const DEFAULT_MAC_FONT_FAMILY = 'Menlo, Monaco, \'Courier New\', monospace';
@@ -77,7 +78,7 @@ const codeEditorPreferenceProperties = {
77
78
  'type': 'number',
78
79
  'default': EDITOR_MODEL_DEFAULTS.tabSize,
79
80
  'minimum': 1,
80
- 'markdownDescription': 'The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.'
81
+ 'markdownDescription': nls.localize('vscode/commonEditorConfig/tabSize', 'The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.')
81
82
  },
82
83
  'editor.defaultFormatter': {
83
84
  'type': 'string',
@@ -87,105 +88,105 @@ const codeEditorPreferenceProperties = {
87
88
  'editor.insertSpaces': {
88
89
  'type': 'boolean',
89
90
  'default': EDITOR_MODEL_DEFAULTS.insertSpaces,
90
- 'markdownDescription': 'Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.'
91
+ 'markdownDescription': nls.localize('vscode/commonEditorConfig/insertSpaces', 'Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.')
91
92
  },
92
93
  'editor.detectIndentation': {
93
94
  'type': 'boolean',
94
95
  'default': EDITOR_MODEL_DEFAULTS.detectIndentation,
95
- 'markdownDescription': 'Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.'
96
+ 'markdownDescription': nls.localize('vscode/commonEditorConfig/detectIndentation', 'Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.')
96
97
  },
97
98
  'editor.trimAutoWhitespace': {
98
99
  'type': 'boolean',
99
100
  'default': EDITOR_MODEL_DEFAULTS.trimAutoWhitespace,
100
- 'description': 'Remove trailing auto inserted whitespace.'
101
+ 'description': nls.localize('vscode/commonEditorConfig/trimAutoWhitespace', 'Remove trailing auto inserted whitespace.')
101
102
  },
102
103
  'editor.largeFileOptimizations': {
103
104
  'type': 'boolean',
104
105
  'default': EDITOR_MODEL_DEFAULTS.largeFileOptimizations,
105
- 'description': 'Special handling for large files to disable certain memory intensive features.'
106
+ 'description': nls.localize('vscode/commonEditorConfig/largeFileOptimizations', 'Special handling for large files to disable certain memory intensive features.')
106
107
  },
107
108
  'editor.wordBasedSuggestions': {
108
109
  'type': 'boolean',
109
110
  'default': true,
110
- 'description': 'Controls whether completions should be computed based on words in the document.'
111
+ 'description': nls.localize('vscode/commonEditorConfig/wordBasedSuggestions', 'Controls whether completions should be computed based on words in the document.')
111
112
  },
112
113
  'editor.wordBasedSuggestionsMode': {
113
114
  'enum': ['currentDocument', 'matchingDocuments', 'allDocuments'],
114
115
  'default': 'matchingDocuments',
115
116
  'enumDescriptions': [
116
- 'Only suggest words from the active document.',
117
- 'Suggest words from all open documents of the same language.',
118
- 'Suggest words from all open documents.'
117
+ nls.localize('vscode/commonEditorConfig/wordBasedSuggestionsMode.currentDocument', 'Only suggest words from the active document.'),
118
+ nls.localize('vscode/commonEditorConfig/wordBasedSuggestionsMode.matchingDocuments', 'Suggest words from all open documents of the same language.'),
119
+ nls.localize('vscode/commonEditorConfig/wordBasedSuggestionsMode.allDocuments', 'Suggest words from all open documents.')
119
120
  ],
120
- 'description': 'Controls form what documents word based completions are computed.'
121
+ 'description': nls.localize('vscode/commonEditorConfig/wordBasedSuggestionsMode', 'Controls form what documents word based completions are computed.')
121
122
  },
122
123
  'editor.semanticHighlighting.enabled': {
123
124
  'enum': [true, false, 'configuredByTheme'],
124
125
  'enumDescriptions': [
125
- 'Semantic highlighting enabled for all color themes.',
126
- 'Semantic highlighting disabled for all color themes.',
127
- 'Semantic highlighting is configured by the current color theme\'s `semanticHighlighting` setting.'
126
+ nls.localize('vscode/commonEditorConfig/semanticHighlighting.true', 'Semantic highlighting enabled for all color themes.'),
127
+ nls.localize('vscode/commonEditorConfig/semanticHighlighting.false', 'Semantic highlighting disabled for all color themes.'),
128
+ nls.localize('vscode/commonEditorConfig/semanticHighlighting.configuredByTheme', 'Semantic highlighting is configured by the current color theme\'s `semanticHighlighting` setting.')
128
129
  ],
129
130
  'default': 'configuredByTheme',
130
- 'description': 'Controls whether the semanticHighlighting is shown for the languages that support it.'
131
+ 'description': nls.localize('vscode/commonEditorConfig/emanticHighlighting.enabled', 'Controls whether the semanticHighlighting is shown for the languages that support it.')
131
132
  },
132
133
  'editor.stablePeek': {
133
134
  'type': 'boolean',
134
135
  'default': false,
135
- 'markdownDescription': 'Keep peek editors open even when double clicking their content or when hitting `Escape`.'
136
+ 'markdownDescription': nls.localize('vscode/commonEditorConfig/stablePeek', 'Keep peek editors open even when double clicking their content or when hitting `Escape`.')
136
137
  },
137
138
  'editor.maxTokenizationLineLength': {
138
139
  'type': 'integer',
139
140
  'default': 400,
140
- 'description': 'Lines above this length will not be tokenized for performance reasons.'
141
+ 'description': nls.localize('vscode/commonEditorConfig/maxTokenizationLineLength', 'Lines above this length will not be tokenized for performance reasons.')
141
142
  },
142
143
  'diffEditor.maxComputationTime': {
143
144
  'type': 'number',
144
145
  'default': 5000,
145
- 'description': 'Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.'
146
+ 'description': nls.localize('vscode/commonEditorConfig/maxComputationTime', 'Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.')
146
147
  },
147
148
  'diffEditor.renderSideBySide': {
148
149
  'type': 'boolean',
149
150
  'default': true,
150
- 'description': 'Controls whether the diff editor shows the diff side by side or inline.'
151
+ 'description': nls.localize('vscode/commonEditorConfig/sideBySide', 'Controls whether the diff editor shows the diff side by side or inline.')
151
152
  },
152
153
  'diffEditor.ignoreTrimWhitespace': {
153
154
  'type': 'boolean',
154
155
  'default': true,
155
- 'description': 'When enabled, the diff editor ignores changes in leading or trailing whitespace.'
156
+ 'description': nls.localize('vscode/commonEditorConfig/ignoreTrimWhitespace', 'When enabled, the diff editor ignores changes in leading or trailing whitespace.')
156
157
  },
157
158
  'diffEditor.renderIndicators': {
158
159
  'type': 'boolean',
159
160
  'default': true,
160
- 'description': 'Controls whether the diff editor shows +/- indicators for added/removed changes.'
161
+ 'description': nls.localize('vscode/commonEditorConfig/renderIndicators', 'Controls whether the diff editor shows +/- indicators for added/removed changes.')
161
162
  },
162
163
  'diffEditor.codeLens': {
163
164
  'type': 'boolean',
164
165
  'default': false,
165
- 'description': 'Controls whether the editor shows CodeLens.'
166
+ 'description': nls.localize('vscode/commonEditorConfig/codeLens', 'Controls whether the editor shows CodeLens.')
166
167
  },
167
168
  'diffEditor.wordWrap': {
168
169
  'type': 'string',
169
170
  'enum': ['off', 'on', 'inherit'],
170
171
  'default': 'inherit',
171
172
  'markdownEnumDescriptions': [
172
- 'Lines will never wrap.',
173
- 'Lines will wrap at the viewport width.',
174
- 'Lines will wrap according to the `#editor.wordWrap#` setting.'
173
+ nls.localize('vscode/commonEditorConfig/wordWrap.off', 'Lines will never wrap.'),
174
+ nls.localize('vscode/commonEditorConfig/wordWrap.on', 'Lines will wrap at the viewport width.'),
175
+ nls.localize('vscode/commonEditorConfig/wordWrap.inherit', 'Lines will wrap according to the `#editor.wordWrap#` setting.')
175
176
  ]
176
177
  },
177
178
  'editor.acceptSuggestionOnCommitCharacter': {
178
- 'markdownDescription': 'Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.',
179
+ 'markdownDescription': nls.localize('vscode/editorOptions/acceptSuggestionOnCommitCharacter', 'Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.'),
179
180
  'type': 'boolean',
180
181
  'default': true
181
182
  },
182
183
  'editor.acceptSuggestionOnEnter': {
183
184
  'markdownEnumDescriptions': [
184
185
  '',
185
- 'Only accept a suggestion with `Enter` when it makes a textual change.',
186
+ nls.localize('vscode/editorOptions/acceptSuggestionOnEnterSmart', 'Only accept a suggestion with `Enter` when it makes a textual change.'),
186
187
  ''
187
188
  ],
188
- 'markdownDescription': 'Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.',
189
+ 'markdownDescription': nls.localize('vscode/editorOptions/acceptSuggestionOnEnter', 'Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.'),
189
190
  'type': 'string',
190
191
  'enum': [
191
192
  'on',
@@ -202,15 +203,15 @@ const codeEditorPreferenceProperties = {
202
203
  'off'
203
204
  ],
204
205
  'enumDescriptions': [
205
- 'The editor will use platform APIs to detect when a Screen Reader is attached.',
206
- 'The editor will be permanently optimized for usage with a Screen Reader.',
207
- 'The editor will never be optimized for usage with a Screen Reader.'
206
+ nls.localize('vscode/editorOptions/accessibilitySupport.auto', 'The editor will use platform APIs to detect when a Screen Reader is attached.'),
207
+ nls.localize('vscode/editorOptions/accessibilitySupport.on', 'The editor will be permanently optimized for usage with a Screen Reader.'),
208
+ nls.localize('vscode/editorOptions/accessibilitySupport.off', 'The editor will never be optimized for usage with a Screen Reader.')
208
209
  ],
209
210
  'default': 'auto',
210
- 'description': 'Controls whether the editor should run in a mode where it is optimized for screen readers.'
211
+ 'description': nls.localize('vscode/editorOptions/accessibilitySupport', 'Controls whether the editor should run in a mode where it is optimized for screen readers.')
211
212
  },
212
213
  'editor.accessibilityPageSize': {
213
- 'description': 'Controls the number of lines in the editor that can be read out by a screen reader. Warning: this has a performance implication for numbers larger than the default.',
214
+ 'description': nls.localize('vscode/editorOptions/accessibilityPageSize', 'Controls the number of lines in the editor that can be read out by a screen reader. Warning: this has a performance implication for numbers larger than the default.'),
214
215
  'type': 'integer',
215
216
  'default': 10,
216
217
  'minimum': 1,
@@ -219,11 +220,11 @@ const codeEditorPreferenceProperties = {
219
220
  'editor.autoClosingBrackets': {
220
221
  'enumDescriptions': [
221
222
  '',
222
- 'Use language configurations to determine when to autoclose brackets.',
223
- 'Autoclose brackets only when the cursor is to the left of whitespace.',
223
+ nls.localize('vscode/editorOptions/languageDefined', 'Use language configurations to determine when to autoclose brackets.'),
224
+ nls.localize('vscode/editorOptions/beforeWhitespace', 'Autoclose brackets only when the cursor is to the left of whitespace.'),
224
225
  ''
225
226
  ],
226
- 'description': 'Controls whether the editor should automatically close brackets after the user adds an opening bracket.',
227
+ 'description': nls.localize('vscode/editorOptions/autoClosingBrackets', 'Controls whether the editor should automatically close brackets after the user adds an opening bracket.'),
227
228
  'type': 'string',
228
229
  'enum': [
229
230
  'always',
@@ -236,10 +237,10 @@ const codeEditorPreferenceProperties = {
236
237
  'editor.autoClosingOvertype': {
237
238
  'enumDescriptions': [
238
239
  '',
239
- 'Type over closing quotes or brackets only if they were automatically inserted.',
240
+ nls.localize('vscode/editorOptions/editor.autoClosingDelete.auto', 'Type over closing quotes or brackets only if they were automatically inserted.'),
240
241
  ''
241
242
  ],
242
- 'description': 'Controls whether the editor should type over closing quotes or brackets.',
243
+ 'description': nls.localize('vscode/editorOptions/autoClosingDelete', 'Controls whether the editor should type over closing quotes or brackets.'),
243
244
  'type': 'string',
244
245
  'enum': [
245
246
  'always',
@@ -251,11 +252,11 @@ const codeEditorPreferenceProperties = {
251
252
  'editor.autoClosingQuotes': {
252
253
  'enumDescriptions': [
253
254
  '',
254
- 'Use language configurations to determine when to autoclose quotes.',
255
- 'Autoclose quotes only when the cursor is to the left of whitespace.',
255
+ nls.localize('vscode/editorOptions/editor.autoClosingQuotes.languageDefined', 'Use language configurations to determine when to autoclose quotes.'),
256
+ nls.localize('vscode/editorOptions/editor.autoClosingQuotes.beforeWhitespace', 'Autoclose quotes only when the cursor is to the left of whitespace.'),
256
257
  ''
257
258
  ],
258
- 'description': 'Controls whether the editor should automatically close quotes after the user adds an opening quote.',
259
+ 'description': nls.localize('vscode/editorOptions/autoClosingQuotes', 'Controls whether the editor should automatically close quotes after the user adds an opening quote.'),
259
260
  'type': 'string',
260
261
  'enum': [
261
262
  'always',
@@ -267,13 +268,13 @@ const codeEditorPreferenceProperties = {
267
268
  },
268
269
  'editor.autoIndent': {
269
270
  'enumDescriptions': [
270
- 'The editor will not insert indentation automatically.',
271
- 'The editor will keep the current line\'s indentation.',
272
- 'The editor will keep the current line\'s indentation and honor language defined brackets.',
273
- 'The editor will keep the current line\'s indentation, honor language defined brackets and invoke special onEnterRules defined by languages.',
274
- 'The editor will keep the current line\'s indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.'
271
+ nls.localize('vscode/editorOptions/editor.autoIndent.none', 'The editor will not insert indentation automatically.'),
272
+ nls.localize('vscode/editorOptions/editor.autoIndent.keep', 'The editor will keep the current line\'s indentation.'),
273
+ nls.localize('vscode/editorOptions/editor.autoIndent.brackets', 'The editor will keep the current line\'s indentation and honor language defined brackets.'),
274
+ nls.localize('vscode/editorOptions/editor.autoIndent.advanced', 'The editor will keep the current line\'s indentation, honor language defined brackets and invoke special onEnterRules defined by languages.'),
275
+ nls.localize('vscode/editorOptions/editor.autoIndent.full', 'The editor will keep the current line\'s indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.')
275
276
  ],
276
- 'description': 'Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.',
277
+ 'description': nls.localize('vscode/editorOptions/autoIndent', 'Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.'),
277
278
  'type': 'string',
278
279
  'enum': [
279
280
  'none',
@@ -286,12 +287,12 @@ const codeEditorPreferenceProperties = {
286
287
  },
287
288
  'editor.autoSurround': {
288
289
  'enumDescriptions': [
289
- 'Use language configurations to determine when to automatically surround selections.',
290
- 'Surround with quotes but not brackets.',
291
- 'Surround with brackets but not quotes.',
290
+ nls.localize('vscode/editorOptions/editor.autoSurround.languageDefined', 'Use language configurations to determine when to automatically surround selections.'),
291
+ nls.localize('vscode/editorOptions/editor.autoSurround.quotes', 'Surround with quotes but not brackets.'),
292
+ nls.localize('vscode/editorOptions/editor.autoSurround.brackets', 'Surround with brackets but not quotes.'),
292
293
  ''
293
294
  ],
294
- 'description': 'Controls whether the editor should automatically surround selections.',
295
+ 'description': nls.localize('vscode/editorOptions/autoSurround', 'Controls whether the editor should automatically surround selections.'),
295
296
  'type': 'string',
296
297
  'enum': [
297
298
  'languageDefined',
@@ -303,21 +304,21 @@ const codeEditorPreferenceProperties = {
303
304
  },
304
305
  'editor.ariaLabel': {
305
306
  'type': 'string',
306
- 'description': 'The aria label for the editor\'s textarea when focused.',
307
+ 'description': nls.localize('theia/editor/ariaLabel', 'The aria label for the editor\'s textarea when focused.'),
307
308
  'default': 'ariaLabel'
308
309
  },
309
310
  'editor.automaticLayout': {
310
311
  'type': 'boolean',
311
312
  'default': false,
312
- 'description': 'Enable that the editor will install an interval to check if its container dom node size has changed. Enabling this might have a severe performance impact.'
313
+ 'description': nls.localize('theia/editor/automaticLayout', 'Enable that the editor will install an interval to check if its container dom node size has changed. Enabling this might have a severe performance impact.')
313
314
  },
314
315
  'editor.codeLens': {
315
- 'description': 'Controls whether the editor shows CodeLens.',
316
+ 'description': nls.localize('vscode/editorOptions/codeLens', 'Controls whether the editor shows CodeLens.'),
316
317
  'type': 'boolean',
317
318
  'default': true
318
319
  },
319
320
  'editor.codeLensFontFamily': {
320
- 'description': 'Controls the font family for CodeLens.',
321
+ 'description': nls.localize('vscode/editorOptions/codeLensFontFamily', 'Controls the font family for CodeLens.'),
321
322
  'type': 'string',
322
323
  'default': true
323
324
  },
@@ -326,35 +327,35 @@ const codeEditorPreferenceProperties = {
326
327
  'default': 0,
327
328
  'minimum': 0,
328
329
  'maximum': 100,
329
- 'description': 'Controls the font size in pixels for CodeLens. When set to `0`, the 90% of `#editor.fontSize#` is used.'
330
+ 'description': nls.localize('vscode/editorOptions/codeLensFontSize', 'Controls the font size in pixels for CodeLens. When set to `0`, the 90% of `#editor.fontSize#` is used.')
330
331
  },
331
332
  'editor.colorDecorators': {
332
- 'description': 'Controls whether the editor should render the inline color decorators and color picker.',
333
+ 'description': nls.localize('vscode/editorOptions/colorDecorators', 'Controls whether the editor should render the inline color decorators and color picker.'),
333
334
  'type': 'boolean',
334
335
  'default': true
335
336
  },
336
337
  'editor.comments.insertSpace': {
337
338
  'type': 'boolean',
338
339
  'default': true,
339
- 'description': 'Controls whether a space character is inserted when commenting.'
340
+ 'description': nls.localize('vscode/editorOptions/comments.insertSpace', 'Controls whether a space character is inserted when commenting.')
340
341
  },
341
342
  'editor.comments.ignoreEmptyLines': {
342
343
  'type': 'boolean',
343
344
  'default': true,
344
- 'description': 'Controls if empty lines should be ignored with toggle, add or remove actions for line comments.'
345
+ 'description': nls.localize('vscode/editorOptions/comments.ignoreEmptyLines', 'Controls if empty lines should be ignored with toggle, add or remove actions for line comments.')
345
346
  },
346
347
  'editor.contextmenu': {
347
- 'description': 'Controls whether to enable the custom contextmenu.',
348
+ 'description': nls.localize('theia/editor/contextmenu', 'Controls whether to enable the custom contextmenu.'),
348
349
  'type': 'boolean',
349
350
  'default': true,
350
351
  },
351
352
  'editor.copyWithSyntaxHighlighting': {
352
- 'description': 'Controls whether syntax highlighting should be copied into the clipboard.',
353
+ 'description': nls.localize('vscode/editorOptions/copyWithSyntaxHighlighting', 'Controls whether syntax highlighting should be copied into the clipboard.'),
353
354
  'type': 'boolean',
354
355
  'default': true
355
356
  },
356
357
  'editor.cursorBlinking': {
357
- 'description': 'Control the cursor animation style.',
358
+ 'description': nls.localize('vscode/editorOptions/cursorBlinking', 'Control the cursor animation style.'),
358
359
  'type': 'string',
359
360
  'enum': [
360
361
  'blink',
@@ -366,12 +367,12 @@ const codeEditorPreferenceProperties = {
366
367
  'default': 'blink'
367
368
  },
368
369
  'editor.cursorSmoothCaretAnimation': {
369
- 'description': 'Controls whether the smooth caret animation should be enabled.',
370
+ 'description': nls.localize('vscode/editorOptions/cursorSmoothCaretAnimation', 'Controls whether the smooth caret animation should be enabled.'),
370
371
  'type': 'boolean',
371
372
  'default': false
372
373
  },
373
374
  'editor.cursorStyle': {
374
- 'description': 'Controls the cursor style.',
375
+ 'description': nls.localize('vscode/editorOptions/cursorStyle', 'Controls the cursor style.'),
375
376
  'type': 'string',
376
377
  'enum': [
377
378
  'line',
@@ -384,7 +385,7 @@ const codeEditorPreferenceProperties = {
384
385
  'default': 'line'
385
386
  },
386
387
  'editor.cursorSurroundingLines': {
387
- 'description': 'Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as `scrollOff` or `scrollOffset` in some other editors.',
388
+ 'description': nls.localize('vscode/editorOptions/cursorSurroundingLines', 'Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as `scrollOff` or `scrollOffset` in some other editors.'),
388
389
  'type': 'integer',
389
390
  'default': 0,
390
391
  'minimum': 0,
@@ -392,10 +393,10 @@ const codeEditorPreferenceProperties = {
392
393
  },
393
394
  'editor.cursorSurroundingLinesStyle': {
394
395
  'enumDescriptions': [
395
- '`cursorSurroundingLines` is enforced only when triggered via the keyboard or API.',
396
- '`cursorSurroundingLines` is enforced always.'
396
+ nls.localize('vscode/editorOptions/cursorSurroundingLinesStyle.default', '`cursorSurroundingLines` is enforced only when triggered via the keyboard or API.'),
397
+ nls.localize('vscode/editorOptions/cursorSurroundingLinesStyle.all', '`cursorSurroundingLines` is enforced always.')
397
398
  ],
398
- 'description': 'Controls when `cursorSurroundingLines` should be enforced.',
399
+ 'description': nls.localize('vscode/editorOptions/cursorSurroundingLinesStyle', 'Controls when `cursorSurroundingLines` should be enforced.'),
399
400
  'type': 'string',
400
401
  'enum': [
401
402
  'default',
@@ -404,51 +405,51 @@ const codeEditorPreferenceProperties = {
404
405
  'default': 'default'
405
406
  },
406
407
  'editor.cursorWidth': {
407
- 'markdownDescription': 'Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.',
408
+ 'markdownDescription': nls.localize('vscode/editorOptions/cursorWidth', 'Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.'),
408
409
  'type': 'integer',
409
410
  'default': 0,
410
411
  'minimum': 0,
411
412
  'maximum': 1073741824
412
413
  },
413
414
  'editor.disableLayerHinting': {
414
- 'markdownDescription': 'Disable the use of `transform: translate3d(0px, 0px, 0px)` for the editor margin and lines layers. The usage of `transform: translate3d(0px, 0px, 0px)` acts as a hint for browsers to create an extra layer.',
415
+ 'markdownDescription': nls.localize('theia/editor/disableLayerHinting', 'Disable the use of `transform: translate3d(0px, 0px, 0px)` for the editor margin and lines layers. The usage of `transform: translate3d(0px, 0px, 0px)` acts as a hint for browsers to create an extra layer.'),
415
416
  'type': 'boolean',
416
417
  'default': false
417
418
  },
418
419
  'editor.disableMonospaceOptimizations': {
419
- 'description': 'Controls whether to enable optimizations for monospace fonts.',
420
+ 'description': nls.localize('theia/editor/disableMonospaceOptimizations', 'Controls whether to enable optimizations for monospace fonts.'),
420
421
  'type': 'boolean',
421
422
  'default': false
422
423
  },
423
424
  'editor.dragAndDrop': {
424
- 'description': 'Controls whether the editor should allow moving selections via drag and drop.',
425
+ 'description': nls.localize('vscode/editorOptions/dragAndDrop', 'Controls whether the editor should allow moving selections via drag and drop.'),
425
426
  'type': 'boolean',
426
427
  'default': true
427
428
  },
428
429
  'editor.emptySelectionClipboard': {
429
- 'description': 'Controls whether copying without a selection copies the current line.',
430
+ 'description': nls.localize('vscode/editorOptions/emptySelectionClipboard', 'Controls whether copying without a selection copies the current line.'),
430
431
  'type': 'boolean',
431
432
  'default': true
432
433
  },
433
434
  'editor.extraEditorClassName': {
434
- 'description': 'Additional class name to be added to the editor.',
435
+ 'description': nls.localize('theia/editor/extraEditorClassName', 'Additional class name to be added to the editor.'),
435
436
  'type': 'string',
436
437
  'default': ''
437
438
  },
438
439
  'editor.fastScrollSensitivity': {
439
- 'markdownDescription': 'Scrolling speed multiplier when pressing `Alt`.',
440
+ 'markdownDescription': nls.localize('vscode/editorOptions/fastScrollSensitivity', 'Scrolling speed multiplier when pressing `Alt`.'),
440
441
  'type': 'number',
441
442
  'default': 5
442
443
  },
443
444
  'editor.find.cursorMoveOnType': {
444
- 'description': 'Controls whether the cursor should jump to find matches while typing.',
445
+ 'description': nls.localize('vscode/editorOptions/find.cursorMoveOnType', 'Controls whether the cursor should jump to find matches while typing.'),
445
446
  'type': 'boolean',
446
447
  'default': true
447
448
  },
448
449
  'editor.find.seedSearchStringFromSelection': {
449
450
  'type': 'boolean',
450
451
  'default': true,
451
- 'description': 'Controls whether the search string in the Find Widget is seeded from the editor selection.'
452
+ 'description': nls.localize('vscode/editorOptions/find.seedSearchStringFromSelection', 'Controls whether the search string in the Find Widget is seeded from the editor selection.')
452
453
  },
453
454
  'editor.find.autoFindInSelection': {
454
455
  'type': 'string',
@@ -459,59 +460,63 @@ const codeEditorPreferenceProperties = {
459
460
  ],
460
461
  'default': 'never',
461
462
  'enumDescriptions': [
462
- 'Never turn on Find in selection automatically (default)',
463
- 'Always turn on Find in selection automatically',
464
- 'Turn on Find in selection automatically when multiple lines of content are selected.'
463
+ nls.localize('vscode/editorOptions/editor.find.autoFindInSelection.never', 'Never turn on Find in selection automatically (default)'),
464
+ nls.localize('vscode/editorOptions/editor.find.autoFindInSelection.always', 'Always turn on Find in selection automatically'),
465
+ nls.localize('vscode/editorOptions/editor.find.autoFindInSelection.multiline', 'Turn on Find in selection automatically when multiple lines of content are selected.')
465
466
  ],
466
- 'description': 'Controls whether the find operation is carried out on selected text or the entire file in the editor.'
467
+ 'description': nls.localize('vscode/editorOptions/find.autoFindInSelection', 'Controls whether the find operation is carried out on selected text or the entire file in the editor.')
467
468
  },
468
469
  'editor.find.globalFindClipboard': {
469
470
  'type': 'boolean',
470
471
  'default': false,
471
- 'description': 'Controls whether the Find Widget should read or modify the shared find clipboard on macOS.',
472
+ 'description': nls.localize('vscode/editorOptions/find.globalFindClipboard', 'Controls whether the Find Widget should read or modify the shared find clipboard on macOS.'),
472
473
  'included': isOSX
473
474
  },
474
475
  'editor.find.addExtraSpaceOnTop': {
475
476
  'type': 'boolean',
476
477
  'default': true,
477
- 'description': 'Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.'
478
+ 'description': nls.localize('vscode/editorOptions/find.addExtraSpaceOnTop', 'Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.')
478
479
  },
479
480
  'editor.find.loop': {
480
481
  'type': 'boolean',
481
482
  'default': true,
482
- 'description': 'Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.'
483
+ 'description': nls.localize('vscode/editorOptions/find.loop', 'Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.')
483
484
  },
484
485
  'editor.fixedOverflowWidgets': {
485
- 'markdownDescription': 'Controls whether to display overflow widgets as `fixed`.',
486
+ 'markdownDescription': nls.localize('theia/editor/fixedOverflowWidgets', 'Controls whether to display overflow widgets as `fixed`.'),
486
487
  'type': 'boolean',
487
488
  'default': false,
488
489
  },
489
490
  'editor.folding': {
490
- 'description': 'Controls whether the editor has code folding enabled.',
491
+ 'description': nls.localize('vscode/editorOptions/folding', 'Controls whether the editor has code folding enabled.'),
491
492
  'type': 'boolean',
492
493
  'default': true
493
494
  },
494
495
  'editor.foldingStrategy': {
495
- 'markdownDescription': 'Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.',
496
+ 'markdownDescription': nls.localize('vscode/editorOptions/foldingStrategy', 'Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.'),
496
497
  'type': 'string',
497
498
  'enum': [
498
499
  'auto',
499
500
  'indentation'
500
501
  ],
502
+ 'enumDescriptions': [
503
+ nls.localize('vscode/editorOptions/foldingStrategy.auto', 'Use a language-specific folding strategy if available, else the indentation-based one.'),
504
+ nls.localize('vscode/editorOptions/foldingStrategy.indentation', 'Use the indentation-based folding strategy.'),
505
+ ],
501
506
  'default': 'auto'
502
507
  },
503
508
  'editor.foldingHighlight': {
504
- 'description': 'Controls whether the editor should highlight folded ranges.',
509
+ 'description': nls.localize('vscode/editorOptions/foldingHighlight', 'Controls whether the editor should highlight folded ranges.'),
505
510
  'type': 'boolean',
506
511
  'default': true
507
512
  },
508
513
  'editor.unfoldOnClickAfterEndOfLine': {
509
- 'description': 'Controls whether clicking on the empty content after a folded line will unfold the line.',
514
+ 'description': nls.localize('vscode/editorOptions/unfoldOnClickAfterEndOfLine', 'Controls whether clicking on the empty content after a folded line will unfold the line.'),
510
515
  'type': 'boolean',
511
516
  'default': false
512
517
  },
513
518
  'editor.fontFamily': {
514
- 'description': 'Controls the font family.',
519
+ 'description': nls.localize('vscode/editorOptions/fontFamily', 'Controls the font family.'),
515
520
  'type': 'string',
516
521
  'default': EDITOR_FONT_DEFAULTS.fontFamily
517
522
  },
@@ -519,14 +524,14 @@ const codeEditorPreferenceProperties = {
519
524
  'anyOf': [
520
525
  {
521
526
  'type': 'boolean',
522
- 'description': 'Enables/Disables font ligatures.'
527
+ 'description': nls.localize('vscode/editorOptions/fontLigatures', 'Enables/Disables font ligatures.')
523
528
  },
524
529
  {
525
530
  'type': 'string',
526
- 'description': 'Explicit font-feature-settings.'
531
+ 'description': nls.localize('vscode/editorOptions/fontFeatureSettings', 'Explicit font-feature-settings.')
527
532
  }
528
533
  ],
529
- 'description': 'Configures font ligatures.',
534
+ 'description': nls.localize('vscode/editorOptions/fontLigaturesGeneral', 'Configures font ligatures.'),
530
535
  'default': false
531
536
  },
532
537
  'editor.fontSize': {
@@ -534,7 +539,7 @@ const codeEditorPreferenceProperties = {
534
539
  'minimum': 6,
535
540
  'maximum': 100,
536
541
  'default': EDITOR_FONT_DEFAULTS.fontSize,
537
- 'description': 'Controls the font size in pixels.'
542
+ 'description': nls.localize('vscode/editorOptions/fontSize', 'Controls the font size in pixels.')
538
543
  },
539
544
  'editor.fontWeight': {
540
545
  'enum': [
@@ -550,32 +555,32 @@ const codeEditorPreferenceProperties = {
550
555
  '800',
551
556
  '900'
552
557
  ],
553
- 'description': 'Controls the font weight.',
558
+ 'description': nls.localize('vscode/editorOptions/fontWeight', 'Controls the font weight.'),
554
559
  'type': 'string',
555
560
  'default': EDITOR_FONT_DEFAULTS.fontWeight
556
561
  },
557
562
  'editor.formatOnPaste': {
558
- 'description': 'Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.',
563
+ 'description': nls.localize('vscode/editorOptions/formatOnPaste', 'Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.'),
559
564
  'type': 'boolean',
560
565
  'default': false
561
566
  },
562
567
  'editor.formatOnType': {
563
- 'description': 'Controls whether the editor should automatically format the line after typing.',
568
+ 'description': nls.localize('vscode/editorOptions/formatOnType', 'Controls whether the editor should automatically format the line after typing.'),
564
569
  'type': 'boolean',
565
570
  'default': false
566
571
  },
567
572
  'editor.glyphMargin': {
568
- 'description': 'Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.',
573
+ 'description': nls.localize('vscode/editorOptions/glyphMargin', 'Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.'),
569
574
  'type': 'boolean',
570
575
  'default': true
571
576
  },
572
577
  'editor.gotoLocation.multiple': {
573
578
  'type': 'string',
574
579
  'default': '',
575
- 'deprecationMessage': 'This setting is deprecated, please use separate settings like `editor.editor.gotoLocation.multipleDefinitions` or `editor.editor.gotoLocation.multipleImplementations` instead.'
580
+ 'deprecationMessage': nls.localize('vscode/editorOptions/insertSpaces', 'This setting is deprecated, please use separate settings like `editor.editor.gotoLocation.multipleDefinitions` or `editor.editor.gotoLocation.multipleImplementations` instead.')
576
581
  },
577
582
  'editor.gotoLocation.multipleDefinitions': {
578
- 'description': 'Controls the behavior the `Go to Definition`-command when multiple target locations exist.',
583
+ 'description': nls.localize('vscode/editorOptions/editor.editor.gotoLocation.multipleDefinitions', 'Controls the behavior the `Go to Definition`-command when multiple target locations exist.'),
579
584
  'type': 'string',
580
585
  'enum': [
581
586
  'peek',
@@ -584,13 +589,13 @@ const codeEditorPreferenceProperties = {
584
589
  ],
585
590
  'default': 'peek',
586
591
  'enumDescriptions': [
587
- 'Show peek view of the results (default)',
588
- 'Go to the primary result and show a peek view',
589
- 'Go to the primary result and enable peek-less navigation to others'
592
+ nls.localize('vscode/editorOptions/editor.gotoLocation.multiple.peek', 'Show peek view of the results (default)'),
593
+ nls.localize('vscode/editorOptions/editor.gotoLocation.multiple.gotoAndPeek', 'Go to the primary result and show a peek view'),
594
+ nls.localize('vscode/editorOptions/editor.gotoLocation.multiple.goto', 'Go to the primary result and enable peek-less navigation to others')
590
595
  ]
591
596
  },
592
597
  'editor.gotoLocation.multipleTypeDefinitions': {
593
- 'description': 'Controls the behavior the `Go to Type Definition`-command when multiple target locations exist.',
598
+ 'description': nls.localize('vscode/editorOptions/editor.editor.gotoLocation.multipleTypeDefinitions', 'Controls the behavior the `Go to Type Definition`-command when multiple target locations exist.'),
594
599
  'type': 'string',
595
600
  'enum': [
596
601
  'peek',
@@ -599,13 +604,13 @@ const codeEditorPreferenceProperties = {
599
604
  ],
600
605
  'default': 'peek',
601
606
  'enumDescriptions': [
602
- 'Show peek view of the results (default)',
603
- 'Go to the primary result and show a peek view',
604
- 'Go to the primary result and enable peek-less navigation to others'
607
+ nls.localize('vscode/editorOptions/editor.gotoLocation.multiple.peek', 'Show peek view of the results (default)'),
608
+ nls.localize('vscode/editorOptions/editor.gotoLocation.multiple.gotoAndPeek', 'Go to the primary result and show a peek view'),
609
+ nls.localize('vscode/editorOptions/editor.gotoLocation.multiple.goto', 'Go to the primary result and enable peek-less navigation to others')
605
610
  ]
606
611
  },
607
612
  'editor.gotoLocation.multipleDeclarations': {
608
- 'description': 'Controls the behavior the `Go to Declaration`-command when multiple target locations exist.',
613
+ 'description': nls.localize('vscode/editorOptions/editor.editor.gotoLocation.multipleDeclarations', 'Controls the behavior the `Go to Declaration`-command when multiple target locations exist.'),
609
614
  'type': 'string',
610
615
  'enum': [
611
616
  'peek',
@@ -614,13 +619,13 @@ const codeEditorPreferenceProperties = {
614
619
  ],
615
620
  'default': 'peek',
616
621
  'enumDescriptions': [
617
- 'Show peek view of the results (default)',
618
- 'Go to the primary result and show a peek view',
619
- 'Go to the primary result and enable peek-less navigation to others'
622
+ nls.localize('vscode/editorOptions/editor.gotoLocation.multiple.peek', 'Show peek view of the results (default)'),
623
+ nls.localize('vscode/editorOptions/editor.gotoLocation.multiple.gotoAndPeek', 'Go to the primary result and show a peek view'),
624
+ nls.localize('vscode/editorOptions/editor.gotoLocation.multiple.goto', 'Go to the primary result and enable peek-less navigation to others')
620
625
  ]
621
626
  },
622
627
  'editor.gotoLocation.multipleImplementations': {
623
- 'description': 'Controls the behavior the `Go to Implementations`-command when multiple target locations exist.',
628
+ 'description': nls.localize('vscode/editorOptions/editor.editor.gotoLocation.multipleImplemenattions', 'Controls the behavior the `Go to Implementations`-command when multiple target locations exist.'),
624
629
  'type': 'string',
625
630
  'enum': [
626
631
  'peek',
@@ -629,13 +634,13 @@ const codeEditorPreferenceProperties = {
629
634
  ],
630
635
  'default': 'peek',
631
636
  'enumDescriptions': [
632
- 'Show peek view of the results (default)',
633
- 'Go to the primary result and show a peek view',
634
- 'Go to the primary result and enable peek-less navigation to others'
637
+ nls.localize('vscode/editorOptions/editor.gotoLocation.multiple.peek', 'Show peek view of the results (default)'),
638
+ nls.localize('vscode/editorOptions/editor.gotoLocation.multiple.gotoAndPeek', 'Go to the primary result and show a peek view'),
639
+ nls.localize('vscode/editorOptions/editor.gotoLocation.multiple.goto', 'Go to the primary result and enable peek-less navigation to others')
635
640
  ]
636
641
  },
637
642
  'editor.gotoLocation.multipleReferences': {
638
- 'description': 'Controls the behavior the `Go to References`-command when multiple target locations exist.',
643
+ 'description': nls.localize('vscode/editorOptions/editor.editor.gotoLocation.multipleReferences', 'Controls the behavior the `Go to References`-command when multiple target locations exist.'),
639
644
  'type': 'string',
640
645
  'enum': [
641
646
  'peek',
@@ -644,77 +649,77 @@ const codeEditorPreferenceProperties = {
644
649
  ],
645
650
  'default': 'peek',
646
651
  'enumDescriptions': [
647
- 'Show peek view of the results (default)',
648
- 'Go to the primary result and show a peek view',
649
- 'Go to the primary result and enable peek-less navigation to others'
652
+ nls.localize('vscode/editorOptions/editor.gotoLocation.multiple.peek', 'Show peek view of the results (default)'),
653
+ nls.localize('vscode/editorOptions/editor.gotoLocation.multiple.gotoAndPeek', 'Go to the primary result and show a peek view'),
654
+ nls.localize('vscode/editorOptions/editor.gotoLocation.multiple.goto', 'Go to the primary result and enable peek-less navigation to others')
650
655
  ]
651
656
  },
652
657
  'editor.gotoLocation.alternativeDefinitionCommand': {
653
658
  'type': 'string',
654
659
  'default': 'editor.action.goToReferences',
655
- 'description': 'Alternative command id that is being executed when the result of `Go to Definition` is the current location.'
660
+ 'description': nls.localize('vscode/editorOptions/alternativeDefinitionCommand', 'Alternative command id that is being executed when the result of `Go to Definition` is the current location.')
656
661
  },
657
662
  'editor.gotoLocation.alternativeTypeDefinitionCommand': {
658
663
  'type': 'string',
659
664
  'default': 'editor.action.goToReferences',
660
- 'description': 'Alternative command id that is being executed when the result of `Go to Type Definition` is the current location.'
665
+ 'description': nls.localize('vscode/editorOptions/alternativeTypeDefinitionCommand', 'Alternative command id that is being executed when the result of `Go to Type Definition` is the current location.')
661
666
  },
662
667
  'editor.gotoLocation.alternativeDeclarationCommand': {
663
668
  'type': 'string',
664
669
  'default': 'editor.action.goToReferences',
665
- 'description': 'Alternative command id that is being executed when the result of `Go to Declaration` is the current location.'
670
+ 'description': nls.localize('vscode/editorOptions/alternativeDeclarationCommand', 'Alternative command id that is being executed when the result of `Go to Declaration` is the current location.')
666
671
  },
667
672
  'editor.gotoLocation.alternativeImplementationCommand': {
668
673
  'type': 'string',
669
674
  'default': '',
670
- 'description': 'Alternative command id that is being executed when the result of `Go to Implementation` is the current location.'
675
+ 'description': nls.localize('vscode/editorOptions/alternativeImplementationCommand', 'Alternative command id that is being executed when the result of `Go to Implementation` is the current location.')
671
676
  },
672
677
  'editor.gotoLocation.alternativeReferenceCommand': {
673
678
  'type': 'string',
674
679
  'default': '',
675
- 'description': 'Alternative command id that is being executed when the result of `Go to Reference` is the current location.'
680
+ 'description': nls.localize('vscode/editorOptions/alternativeReferenceCommand', 'Alternative command id that is being executed when the result of `Go to Reference` is the current location.')
676
681
  },
677
682
  'editor.hideCursorInOverviewRuler': {
678
- 'description': 'Controls whether the cursor should be hidden in the overview ruler.',
683
+ 'description': nls.localize('vscode/editorOptions/hideCursorInOverviewRuler', 'Controls whether the cursor should be hidden in the overview ruler.'),
679
684
  'type': 'boolean',
680
685
  'default': false
681
686
  },
682
687
  'editor.highlightActiveIndentGuide': {
683
- 'description': 'Controls whether the editor should highlight the active indent guide.',
688
+ 'description': nls.localize('theia/editor/highlightActiveIndentGuide', 'Controls whether the editor should highlight the active indent guide.'),
684
689
  'type': 'boolean',
685
690
  'default': true
686
691
  },
687
692
  'editor.hover.enabled': {
688
693
  'type': 'boolean',
689
694
  'default': true,
690
- 'description': 'Controls whether the hover is shown.'
695
+ 'description': nls.localize('vscode/editorOptions/hover.enabled', 'Controls whether the hover is shown.')
691
696
  },
692
697
  'editor.hover.delay': {
693
698
  'type': 'number',
694
699
  'default': 300,
695
- 'description': 'Controls the delay in milliseconds after which the hover is shown.'
700
+ 'description': nls.localize('vscode/editorOptions/hover.delay', 'Controls the delay in milliseconds after which the hover is shown.')
696
701
  },
697
702
  'editor.hover.sticky': {
698
703
  'type': 'boolean',
699
704
  'default': true,
700
- 'description': 'Controls whether the hover should remain visible when mouse is moved over it.'
705
+ 'description': nls.localize('vscode/editorOptions/hover.sticky', 'Controls whether the hover should remain visible when mouse is moved over it.')
701
706
  },
702
707
  'editor.inDiffEditor': {
703
708
  'type': 'boolean',
704
709
  'default': true,
705
710
  },
706
711
  'editor.letterSpacing': {
707
- 'description': 'Controls the letter spacing in pixels.',
712
+ 'description': nls.localize('vscode/editorOptions/letterSpacing', 'Controls the letter spacing in pixels.'),
708
713
  'type': 'number',
709
714
  'default': EDITOR_FONT_DEFAULTS.letterSpacing
710
715
  },
711
716
  'editor.lightbulb.enabled': {
712
717
  'type': 'boolean',
713
718
  'default': true,
714
- 'description': 'Enables the code action lightbulb in the editor.'
719
+ 'description': nls.localize('vscode/editorOptions/codeActions', 'Enables the code action lightbulb in the editor.')
715
720
  },
716
721
  'editor.lineHeight': {
717
- 'description': 'Controls the line height. Use 0 to compute the line height from the font size.',
722
+ 'description': nls.localize('vscode/editorOptions/lineHeight', 'Controls the line height. Use 0 to compute the line height from the font size.'),
718
723
  'type': 'integer',
719
724
  'default': EDITOR_FONT_DEFAULTS.lineHeight,
720
725
  'minimum': 0,
@@ -729,33 +734,33 @@ const codeEditorPreferenceProperties = {
729
734
  'interval'
730
735
  ],
731
736
  'enumDescriptions': [
732
- 'Line numbers are not rendered.',
733
- 'Line numbers are rendered as absolute number.',
734
- 'Line numbers are rendered as distance in lines to cursor position.',
735
- 'Line numbers are rendered every 10 lines.'
737
+ nls.localize('vscode/editorOptions/lineNumbers.off', 'Line numbers are not rendered.'),
738
+ nls.localize('vscode/editorOptions/lineNumbers.on', 'Line numbers are rendered as absolute number.'),
739
+ nls.localize('vscode/editorOptions/lineNumbers.relative', 'Line numbers are rendered as distance in lines to cursor position.'),
740
+ nls.localize('vscode/editorOptions/lineNumbers.interval', 'Line numbers are rendered every 10 lines.')
736
741
  ],
737
742
  'default': 'on',
738
- 'description': 'Controls the display of line numbers.'
743
+ 'description': nls.localize('vscode/editorOptions/lineNumbers', 'Controls the display of line numbers.')
739
744
  },
740
745
  'editor.lineNumbersMinChars': {
741
- 'description': 'Controls the line height. Use 0 to compute the line height from the font size.',
746
+ 'description': nls.localize('theia/editor/lineNumbersMinChars', 'Controls the line height. Use 0 to compute the line height from the font size.'),
742
747
  'type': 'integer',
743
748
  'default': 5,
744
749
  'minimum': 1,
745
750
  'maximum': 300
746
751
  },
747
752
  'editor.linkedEditing': {
748
- 'description': 'Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.',
753
+ 'description': nls.localize('vscode/editorOptions/linkedEditing', 'Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.'),
749
754
  'type': 'boolean',
750
755
  'default': false
751
756
  },
752
757
  'editor.links': {
753
- 'description': 'Controls whether the editor should detect links and make them clickable.',
758
+ 'description': nls.localize('vscode/editorOptions/links', 'Controls whether the editor should detect links and make them clickable.'),
754
759
  'type': 'boolean',
755
760
  'default': true
756
761
  },
757
762
  'editor.matchBrackets': {
758
- 'description': 'Highlight matching brackets.',
763
+ 'description': nls.localize('vscode/editorOptions/matchBrackets', 'Highlight matching brackets.'),
759
764
  'type': 'string',
760
765
  'enum': [
761
766
  'always',
@@ -767,7 +772,7 @@ const codeEditorPreferenceProperties = {
767
772
  'editor.minimap.enabled': {
768
773
  'type': 'boolean',
769
774
  'default': true,
770
- 'description': 'Controls whether the minimap is shown.'
775
+ 'description': nls.localize('vscode/editorOptions/minimap.enabled', 'Controls whether the minimap is shown.')
771
776
  },
772
777
  'editor.minimap.side': {
773
778
  'type': 'string',
@@ -776,7 +781,7 @@ const codeEditorPreferenceProperties = {
776
781
  'right'
777
782
  ],
778
783
  'default': 'right',
779
- 'description': 'Controls the side where to render the minimap.'
784
+ 'description': nls.localize('vscode/editorOptions/minimap.side', 'Controls the side where to render the minimap.')
780
785
  },
781
786
  'editor.minimap.showSlider': {
782
787
  'type': 'string',
@@ -785,52 +790,52 @@ const codeEditorPreferenceProperties = {
785
790
  'mouseover'
786
791
  ],
787
792
  'default': 'mouseover',
788
- 'description': 'Controls when the minimap slider is shown.'
793
+ 'description': nls.localize('vscode/editorOptions/minimap.showSlider', 'Controls when the minimap slider is shown.')
789
794
  },
790
795
  'editor.minimap.scale': {
791
796
  'type': 'number',
792
797
  'default': 1,
793
798
  'minimum': 1,
794
799
  'maximum': 3,
795
- 'description': 'Scale of content drawn in the minimap.'
800
+ 'description': nls.localize('vscode/editorOptions/minimap.scale', 'Scale of content drawn in the minimap.')
796
801
  },
797
802
  'editor.minimap.renderCharacters': {
798
803
  'type': 'boolean',
799
804
  'default': true,
800
- 'description': 'Render the actual characters on a line as opposed to color blocks.'
805
+ 'description': nls.localize('vscode/editorOptions/minimap.renderCharacters', 'Render the actual characters on a line as opposed to color blocks.')
801
806
  },
802
807
  'editor.minimap.maxColumn': {
803
808
  'type': 'number',
804
809
  'default': 120,
805
- 'description': 'Limit the width of the minimap to render at most a certain number of columns.'
810
+ 'description': nls.localize('vscode/editorOptions/minimap.maxColumn', 'Limit the width of the minimap to render at most a certain number of columns.')
806
811
  },
807
812
  'editor.mouseStyle': {
808
- 'description': 'Controls the mouse pointer style.',
813
+ 'description': nls.localize('theia/editor/mouseStyle', 'Controls the mouse pointer style.'),
809
814
  'type': 'string',
810
815
  'enum': ['text', 'default', 'copy'],
811
816
  'default': 'text'
812
817
  },
813
818
  'editor.mouseWheelScrollSensitivity': {
814
- 'markdownDescription': 'A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.',
819
+ 'markdownDescription': nls.localize('vscode/editorOptions/mouseWheelScrollSensitivity', 'A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.'),
815
820
  'type': 'number',
816
821
  'default': 1
817
822
  },
818
823
  'editor.mouseWheelZoom': {
819
- 'markdownDescription': 'Zoom the font of the editor when using mouse wheel and holding `Ctrl`.',
824
+ 'markdownDescription': nls.localize('vscode/editorOptions/mouseWheelZoom', 'Zoom the font of the editor when using mouse wheel and holding `Ctrl`.'),
820
825
  'type': 'boolean',
821
826
  'default': false
822
827
  },
823
828
  'editor.multiCursorMergeOverlapping': {
824
- 'description': 'Merge multiple cursors when they are overlapping.',
829
+ 'description': nls.localize('vscode/editorOptions/multiCursorMergeOverlapping', 'Merge multiple cursors when they are overlapping.'),
825
830
  'type': 'boolean',
826
831
  'default': true
827
832
  },
828
833
  'editor.multiCursorModifier': {
829
834
  'markdownEnumDescriptions': [
830
- 'Maps to `Control` on Windows and Linux and to `Command` on macOS.',
831
- 'Maps to `Alt` on Windows and Linux and to `Option` on macOS.'
835
+ nls.localize('vscode/editorOptions/multiCursorModifier.ctrlCmd', 'Maps to `Control` on Windows and Linux and to `Command` on macOS.'),
836
+ nls.localize('vscode/editorOptions/multiCursorModifier.alt', 'Maps to `Alt` on Windows and Linux and to `Option` on macOS.')
832
837
  ],
833
- 'markdownDescription': 'The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).',
838
+ 'markdownDescription': nls.localize('vscode/editorOptions/multiCursorModifier', 'The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).'),
834
839
  'type': 'string',
835
840
  'enum': [
836
841
  'ctrlCmd',
@@ -840,10 +845,10 @@ const codeEditorPreferenceProperties = {
840
845
  },
841
846
  'editor.multiCursorPaste': {
842
847
  'markdownEnumDescriptions': [
843
- 'Each cursor pastes a single line of the text.',
844
- 'Each cursor pastes the full text.'
848
+ nls.localize('vscode/editorOptions/multiCursorPaste.spread', 'Each cursor pastes a single line of the text.'),
849
+ nls.localize('vscode/editorOptions/multiCursorPaste.full', 'Each cursor pastes the full text.')
845
850
  ],
846
- 'markdownDescription': 'Controls pasting when the line count of the pasted text matches the cursor count.',
851
+ 'markdownDescription': nls.localize('vscode/editorOptions/multiCursorPaste', 'Controls pasting when the line count of the pasted text matches the cursor count.'),
847
852
  'type': 'string',
848
853
  'enum': [
849
854
  'spread',
@@ -852,12 +857,12 @@ const codeEditorPreferenceProperties = {
852
857
  'default': 'spread'
853
858
  },
854
859
  'editor.occurrencesHighlight': {
855
- 'description': 'Controls whether the editor should highlight semantic symbol occurrences.',
860
+ 'description': nls.localize('vscode/editorOptions/occurrencesHighlight', 'Controls whether the editor should highlight semantic symbol occurrences.'),
856
861
  'type': 'boolean',
857
862
  'default': true
858
863
  },
859
864
  'editor.overviewRulerBorder': {
860
- 'description': 'Controls whether a border should be drawn around the overview ruler.',
865
+ 'description': nls.localize('vscode/editorOptions/overviewRulerBorder', 'Controls whether a border should be drawn around the overview ruler.'),
861
866
  'type': 'boolean',
862
867
  'default': true
863
868
  },
@@ -866,38 +871,38 @@ const codeEditorPreferenceProperties = {
866
871
  'default': 3,
867
872
  'minimum': 0,
868
873
  'maximum': 3,
869
- 'description': 'The number of vertical lanes the overview ruler should render.'
874
+ 'description': nls.localize('theia/editor/overviewRulerLanes', 'The number of vertical lanes the overview ruler should render.')
870
875
  },
871
876
  'editor.padding.top': {
872
877
  'type': 'number',
873
878
  'default': 0,
874
879
  'minimum': 0,
875
880
  'maximum': 1000,
876
- 'description': 'Controls the amount of space between the top edge of the editor and the first line.'
881
+ 'description': nls.localize('vscode/editorOptions/padding.top', 'Controls the amount of space between the top edge of the editor and the first line.')
877
882
  },
878
883
  'editor.padding.bottom': {
879
884
  'type': 'number',
880
885
  'default': 0,
881
886
  'minimum': 0,
882
887
  'maximum': 1000,
883
- 'description': 'Controls the amount of space between the bottom edge of the editor and the last line.'
888
+ 'description': nls.localize('vscode/editorOptions/padding.bottom', 'Controls the amount of space between the bottom edge of the editor and the last line.')
884
889
  },
885
890
  'editor.parameterHints.enabled': {
886
891
  'type': 'boolean',
887
892
  'default': true,
888
- 'description': 'Enables a pop-up that shows parameter documentation and type information as you type.'
893
+ 'description': nls.localize('vscode/editorOptions/parameterHints.enabled', 'Enables a pop-up that shows parameter documentation and type information as you type.')
889
894
  },
890
895
  'editor.parameterHints.cycle': {
891
896
  'type': 'boolean',
892
897
  'default': false,
893
- 'description': 'Controls whether the parameter hints menu cycles or closes when reaching the end of the list.'
898
+ 'description': nls.localize('vscode/editorOptions/parameterHints.cycle', 'Controls whether the parameter hints menu cycles or closes when reaching the end of the list.')
894
899
  },
895
900
  'editor.peekWidgetDefaultFocus': {
896
901
  'enumDescriptions': [
897
- 'Focus the tree when opening peek',
898
- 'Focus the editor when opening peek'
902
+ nls.localize('vscode/editorOptions/peekWidgetDefaultFocus.tree', 'Focus the tree when opening peek'),
903
+ nls.localize('vscode/editorOptions/peekWidgetDefaultFocus.editor', 'Focus the editor when opening peek')
899
904
  ],
900
- 'description': 'Controls whether to focus the inline editor or the tree in the peek widget.',
905
+ 'description': nls.localize('vscode/editorOptions/peekWidgetDefaultFocus', 'Controls whether to focus the inline editor or the tree in the peek widget.'),
901
906
  'type': 'string',
902
907
  'enum': [
903
908
  'tree',
@@ -908,7 +913,7 @@ const codeEditorPreferenceProperties = {
908
913
  'editor.definitionLinkOpensInPeek': {
909
914
  'type': 'boolean',
910
915
  'default': false,
911
- 'description': 'Controls whether the Go to Definition mouse gesture always opens the peek widget.'
916
+ 'description': nls.localize('vscode/editorOptions/definitionLinkOpensInPeek', 'Controls whether the Go to Definition mouse gesture always opens the peek widget.')
912
917
  },
913
918
  'editor.quickSuggestions': {
914
919
  'anyOf': [
@@ -921,17 +926,17 @@ const codeEditorPreferenceProperties = {
921
926
  'strings': {
922
927
  'type': 'boolean',
923
928
  'default': false,
924
- 'description': 'Enable quick suggestions inside strings.'
929
+ 'description': nls.localize('vscode/editorOptions/quickSuggestions.strings', 'Enable quick suggestions inside strings.')
925
930
  },
926
931
  'comments': {
927
932
  'type': 'boolean',
928
933
  'default': false,
929
- 'description': 'Enable quick suggestions inside comments.'
934
+ 'description': nls.localize('vscode/editorOptions/quickSuggestions.comments', 'Enable quick suggestions inside comments.')
930
935
  },
931
936
  'other': {
932
937
  'type': 'boolean',
933
938
  'default': true,
934
- 'description': 'Enable quick suggestions outside of strings and comments.'
939
+ 'description': nls.localize('vscode/editorOptions/quickSuggestions.other', 'Enable quick suggestions outside of strings and comments.')
935
940
  }
936
941
  }
937
942
  }
@@ -941,37 +946,37 @@ const codeEditorPreferenceProperties = {
941
946
  'comments': false,
942
947
  'strings': false
943
948
  },
944
- 'description': 'Controls whether suggestions should automatically show up while typing.'
949
+ 'description': nls.localize('vscode/editorOptions/quickSuggestions', 'Controls whether suggestions should automatically show up while typing.')
945
950
  },
946
951
  'editor.quickSuggestionsDelay': {
947
- 'description': 'Controls the delay in milliseconds after which quick suggestions will show up.',
952
+ 'description': nls.localize('vscode/editorOptions/quickSuggestionsDelay', 'Controls the delay in milliseconds after which quick suggestions will show up.'),
948
953
  'type': 'integer',
949
954
  'default': 10,
950
955
  'minimum': 0,
951
956
  'maximum': 1073741824
952
957
  },
953
958
  'editor.readOnly': {
954
- 'description': 'Controls whether the editor is readonly.',
959
+ 'description': nls.localize('theia/editor/readOnly', 'Controls whether the editor is readonly.'),
955
960
  'type': 'boolean',
956
961
  'default': false
957
962
  },
958
963
  'editor.rename.enablePreview': {
959
- 'description': 'Controls whether the editor should display refactor preview pane for rename.',
964
+ 'description': nls.localize('vscode/rename/enablePreview', 'Controls whether the editor should display refactor preview pane for rename.'),
960
965
  'type': 'boolean',
961
966
  'default': true
962
967
  },
963
968
  'editor.renderControlCharacters': {
964
- 'description': 'Controls whether the editor should render control characters.',
969
+ 'description': nls.localize('vscode/editorOptions/renderControlCharacters', 'Controls whether the editor should render control characters.'),
965
970
  'type': 'boolean',
966
971
  'default': false
967
972
  },
968
973
  'editor.renderIndentGuides': {
969
- 'description': 'Controls whether the editor should render indent guides.',
974
+ 'description': nls.localize('vscode/editorOptions/editor.guides.indentation', 'Controls whether the editor should render indent guides.'),
970
975
  'type': 'boolean',
971
976
  'default': true
972
977
  },
973
978
  'editor.renderFinalNewline': {
974
- 'description': 'Render last line number when the file ends with a newline.',
979
+ 'description': nls.localize('vscode/editorOptions/renderFinalNewline', 'Render last line number when the file ends with a newline.'),
975
980
  'type': 'boolean',
976
981
  'default': true
977
982
  },
@@ -980,9 +985,9 @@ const codeEditorPreferenceProperties = {
980
985
  '',
981
986
  '',
982
987
  '',
983
- 'Highlights both the gutter and the current line.'
988
+ nls.localize('vscode/editorOptions/renderLineHighlight.all', 'Highlights both the gutter and the current line.')
984
989
  ],
985
- 'description': 'Controls how the editor should render the current line highlight.',
990
+ 'description': nls.localize('vscode/editorOptions/renderLineHighlight', 'Controls how the editor should render the current line highlight.'),
986
991
  'type': 'string',
987
992
  'enum': [
988
993
  'none',
@@ -993,12 +998,12 @@ const codeEditorPreferenceProperties = {
993
998
  'default': 'line'
994
999
  },
995
1000
  'editor.renderLineHighlightOnlyWhenFocus': {
996
- 'description': 'Controls if the editor should render the current line highlight only when the editor is focused.',
1001
+ 'description': nls.localize('vscode/editorOptions/renderLineHighlightOnlyWhenFocus', 'Controls if the editor should render the current line highlight only when the editor is focused.'),
997
1002
  'type': 'boolean',
998
1003
  'default': false
999
1004
  },
1000
1005
  'editor.renderValidationDecorations': {
1001
- 'description': 'Controls whether the editor renders validation decorations.',
1006
+ 'description': nls.localize('theia/editor/renderValidationDecorations', 'Controls whether the editor renders validation decorations.'),
1002
1007
  'type': 'string',
1003
1008
  'enum': ['editable', 'on', 'off'],
1004
1009
  'default': 'editable'
@@ -1006,29 +1011,31 @@ const codeEditorPreferenceProperties = {
1006
1011
  'editor.renderWhitespace': {
1007
1012
  'enumDescriptions': [
1008
1013
  '',
1009
- 'Render whitespace characters except for single spaces between words.',
1010
- 'Render whitespace characters only on selected text.',
1014
+ nls.localize('vscode/editorOptions/renderWhitespace.boundary', 'Render whitespace characters except for single spaces between words.'),
1015
+ nls.localize('vscode/editorOptions/renderWhitespace.selection', 'Render whitespace characters only on selected text.'),
1016
+ nls.localize('vscode/editorOptions/renderWhitespace.trailing', 'Render only trailing whitespace characters.'),
1011
1017
  ''
1012
1018
  ],
1013
- 'description': 'Controls how the editor should render whitespace characters.',
1019
+ 'description': nls.localize('vscode/editorOptions/renderWhitespace', 'Controls how the editor should render whitespace characters.'),
1014
1020
  'type': 'string',
1015
1021
  'enum': [
1016
1022
  'none',
1017
1023
  'boundary',
1018
1024
  'selection',
1025
+ 'trailing',
1019
1026
  'all'
1020
1027
  ],
1021
1028
  'default': 'none'
1022
1029
  },
1023
1030
  'editor.revealHorizontalRightPadding': {
1024
- 'description': 'When revealing the cursor, a virtual padding (px) is added to the cursor, turning it into a rectangle. This virtual padding ensures that the cursor gets revealed before hitting the edge of the viewport.',
1031
+ 'description': nls.localize('theia/editor/revealHorizontalRightPadding', 'When revealing the cursor, a virtual padding (px) is added to the cursor, turning it into a rectangle. This virtual padding ensures that the cursor gets revealed before hitting the edge of the viewport.'),
1025
1032
  'type': 'integer',
1026
1033
  'default': 30,
1027
1034
  'minimum': 0,
1028
1035
  'maximum': 1000
1029
1036
  },
1030
1037
  'editor.roundedSelection': {
1031
- 'description': 'Controls whether selections should have rounded corners.',
1038
+ 'description': nls.localize('vscode/editorOptions/roundedSelection', 'Controls whether selections should have rounded corners.'),
1032
1039
  'type': 'boolean',
1033
1040
  'default': true
1034
1041
  },
@@ -1038,83 +1045,87 @@ const codeEditorPreferenceProperties = {
1038
1045
  'type': 'number'
1039
1046
  },
1040
1047
  'default': [],
1041
- 'description': 'Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.'
1048
+ 'description': nls.localize('vscode/editorOptions/rulers', 'Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.')
1042
1049
  },
1043
1050
  'editor.scrollBeyondLastColumn': {
1044
- 'description': 'Controls the number of extra characters beyond which the editor will scroll horizontally.',
1051
+ 'description': nls.localize('vscode/editorOptions/scrollBeyondLastColumn', 'Controls the number of extra characters beyond which the editor will scroll horizontally.'),
1045
1052
  'type': 'integer',
1046
1053
  'default': 5,
1047
1054
  'minimum': 0,
1048
1055
  'maximum': 1073741824
1049
1056
  },
1050
1057
  'editor.scrollBeyondLastLine': {
1051
- 'description': 'Controls whether the editor will scroll beyond the last line.',
1058
+ 'description': nls.localize('vscode/editorOptions/scrollBeyondLastLine', 'Controls whether the editor will scroll beyond the last line.'),
1052
1059
  'type': 'boolean',
1053
1060
  'default': true
1054
1061
  },
1055
1062
  'editor.scrollPredominantAxis': {
1056
- 'description': 'Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.',
1063
+ 'description': nls.localize('vscode/editorOptions/scrollPredominantAxis', 'Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.'),
1057
1064
  'type': 'boolean',
1058
1065
  'default': true
1059
1066
  },
1060
1067
  'editor.selectionClipboard': {
1061
- 'description': 'Controls whether the Linux primary clipboard should be supported.',
1068
+ 'description': nls.localize('vscode/editorOptions/selectionClipboard', 'Controls whether the Linux primary clipboard should be supported.'),
1062
1069
  'included': platform.isLinux,
1063
1070
  'type': 'boolean',
1064
1071
  'default': true
1065
1072
  },
1066
1073
  'editor.selectionHighlight': {
1067
- 'description': 'Controls whether the editor should highlight matches similar to the selection.',
1074
+ 'description': nls.localize('vscode/editorOptions/selectionHighlight', 'Controls whether the editor should highlight matches similar to the selection.'),
1068
1075
  'type': 'boolean',
1069
1076
  'default': true
1070
1077
  },
1071
1078
  'editor.selectOnLineNumbers': {
1072
- 'description': 'Controls whether to select the corresponding line when clicking on the line number',
1079
+ 'description': nls.localize('vscode/editorOptions/selectOnLineNumbers', 'Controls whether to select the corresponding line when clicking on the line number'),
1073
1080
  'type': 'boolean',
1074
1081
  'default': true
1075
1082
  },
1076
1083
  'editor.showFoldingControls': {
1077
- 'description': 'Controls whether the fold controls on the gutter are automatically hidden.',
1084
+ 'description': nls.localize('vscode/editorOptions/showFoldingControls', 'Controls whether the fold controls on the gutter are automatically hidden.'),
1078
1085
  'type': 'string',
1079
1086
  'enum': [
1080
1087
  'always',
1081
1088
  'mouseover'
1082
1089
  ],
1090
+ 'enumDescriptions': [
1091
+ nls.localize('vscode/editorOptions/showFoldingControls.always', 'Always show the folding controls.'),
1092
+ nls.localize('vscode/editorOptions/showFoldingControls.mouseover', 'Only show the folding controls when the mouse is over the gutter.'),
1093
+ ],
1083
1094
  'default': 'mouseover'
1084
1095
  },
1085
1096
  'editor.showUnused': {
1086
- 'description': 'Controls fading out of unused code.',
1097
+ 'description': nls.localize('vscode/editorOptions/showUnused', 'Controls fading out of unused code.'),
1087
1098
  'type': 'boolean',
1088
1099
  'default': true
1089
1100
  },
1090
1101
  'editor.showDeprecated': {
1091
- 'description': 'Controls strikethrough deprecated variables.',
1102
+ 'description': nls.localize('vscode/editorOptions/showDeprecated', 'Controls strikethrough deprecated variables.'),
1092
1103
  'type': 'boolean',
1093
1104
  'default': true
1094
1105
  },
1095
1106
  'editor.inlineHints.enabled': {
1096
1107
  'type': 'boolean',
1097
1108
  'default': true,
1098
- 'description': 'Enables the inline hints in the editor.'
1109
+ 'description': nls.localize('vscode/editorOptions/editor.inlayHints.enabled', 'Enables the inline hints in the editor.')
1099
1110
  },
1100
1111
  'editor.inlineHints.fontSize': {
1101
1112
  'type': 'number',
1102
1113
  'default': EDITOR_FONT_DEFAULTS.fontSize,
1103
- description: 'Controls font size of inline hints in the editor. When set to `0`, the 90% of `#editor.fontSize#` is used.'
1114
+ description: nls.localize('vscode/editorOptions/editor.inlayHints.fontSize', 'Controls font size of inline hints in the editor. When set to `0`, the 90% of `#editor.fontSize#` is used.')
1104
1115
  },
1105
1116
  'editor.inlineHints.fontFamily': {
1106
1117
  'type': 'string',
1107
1118
  'default': EDITOR_FONT_DEFAULTS.fontFamily,
1108
- 'description': 'Controls font family of inline hints in the editor.'
1119
+ 'description': nls.localize('vscode/editorOptions/inlayHints.fontFamily', 'Controls font family of inline hints in the editor.')
1109
1120
  },
1110
1121
  'editor.snippetSuggestions': {
1111
1122
  'enumDescriptions': [
1112
- 'Show snippet suggestions on top of other suggestions.',
1113
- 'Show snippet suggestions below other suggestions.',
1114
- 'Show snippets suggestions with other suggestions.',
1115
- 'Do not show snippet suggestions.'
1123
+ nls.localize('vscode/editorOptions/snippetSuggestions.top', 'Show snippet suggestions on top of other suggestions.'),
1124
+ nls.localize('vscode/editorOptions/snippetSuggestions.bottom', 'Show snippet suggestions below other suggestions.'),
1125
+ nls.localize('vscode/editorOptions/snippetSuggestions.inline', 'Show snippets suggestions with other suggestions.'),
1126
+ nls.localize('vscode/editorOptions/snippetSuggestions.none', 'Do not show snippet suggestions.')
1116
1127
  ],
1117
- 'description': 'Controls whether snippets are shown with other suggestions and how they are sorted.',
1128
+ 'description': nls.localize('vscode/editorOptions/snippetSuggestions', 'Controls whether snippets are shown with other suggestions and how they are sorted.'),
1118
1129
  'type': 'string',
1119
1130
  'enum': [
1120
1131
  'top',
@@ -1125,22 +1136,22 @@ const codeEditorPreferenceProperties = {
1125
1136
  'default': 'inline'
1126
1137
  },
1127
1138
  'editor.smartSelect.selectLeadingAndTrailingWhitespace': {
1128
- 'description': 'Whether leading and trailing whitespace should always be selected.',
1139
+ 'description': nls.localize('vscode/editorOptions/selectLeadingAndTrailingWhitespace', 'Whether leading and trailing whitespace should always be selected.'),
1129
1140
  'default': true,
1130
1141
  'type': 'boolean'
1131
1142
  },
1132
1143
  'editor.smoothScrolling': {
1133
- 'description': 'Controls whether the editor will scroll using an animation.',
1144
+ 'description': nls.localize('vscode/editorOptions/smoothScrolling', 'Controls whether the editor will scroll using an animation.'),
1134
1145
  'type': 'boolean',
1135
1146
  'default': false
1136
1147
  },
1137
1148
  'editor.stickyTabStops': {
1138
- 'description': 'Emulate selection behaviour of tab characters when using spaces for indentation. Selection will stick to tab stops.',
1149
+ 'description': nls.localize('vscode/editorOptions/stickyTabStops', 'Emulate selection behaviour of tab characters when using spaces for indentation. Selection will stick to tab stops.'),
1139
1150
  'type': 'boolean',
1140
1151
  'default': false
1141
1152
  },
1142
1153
  'editor.stopRenderingLineAfter': {
1143
- 'description': 'Performance guard: Stop rendering a line after x characters.',
1154
+ 'description': nls.localize('theia/editor/stopRenderingLineAfter', 'Performance guard: Stop rendering a line after x characters.'),
1144
1155
  'type': 'integer',
1145
1156
  'default': 10000,
1146
1157
  'minimum': -1,
@@ -1153,215 +1164,215 @@ const codeEditorPreferenceProperties = {
1153
1164
  'replace'
1154
1165
  ],
1155
1166
  'enumDescriptions': [
1156
- 'Insert suggestion without overwriting text right of the cursor.',
1157
- 'Insert suggestion and overwrite text right of the cursor.'
1167
+ nls.localize('vscode/editorOptions/suggest.insertMode.insert', 'Insert suggestion without overwriting text right of the cursor.'),
1168
+ nls.localize('vscode/editorOptions/suggest.insertMode.replace', 'Insert suggestion and overwrite text right of the cursor.')
1158
1169
  ],
1159
1170
  'default': 'insert',
1160
- 'description': 'Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.'
1171
+ 'description': nls.localize('vscode/editorOptions/suggest.insertMode', 'Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.')
1161
1172
  },
1162
1173
  'editor.suggest.insertHighlight': {
1163
1174
  'type': 'boolean',
1164
1175
  'default': false,
1165
- 'description': 'Controls whether unexpected text modifications while accepting completions should be highlighted, e.g `insertMode` is `replace` but the completion only supports `insert`.'
1176
+ 'description': nls.localize('theia/editor/suggest.insertHighlight', 'Controls whether unexpected text modifications while accepting completions should be highlighted, e.g `insertMode` is `replace` but the completion only supports `insert`.')
1166
1177
  },
1167
1178
  'editor.suggest.filterGraceful': {
1168
1179
  'type': 'boolean',
1169
1180
  'default': true,
1170
- 'description': 'Controls whether filtering and sorting suggestions accounts for small typos.'
1181
+ 'description': nls.localize('vscode/editorOptions/suggest.filterGraceful', 'Controls whether filtering and sorting suggestions accounts for small typos.')
1171
1182
  },
1172
1183
  'editor.suggest.localityBonus': {
1173
1184
  'type': 'boolean',
1174
1185
  'default': false,
1175
- 'description': 'Controls whether sorting favours words that appear close to the cursor.'
1186
+ 'description': nls.localize('vscode/editorOptions/suggest.localityBonus', 'Controls whether sorting favours words that appear close to the cursor.')
1176
1187
  },
1177
1188
  'editor.suggest.shareSuggestSelections': {
1178
1189
  'type': 'boolean',
1179
1190
  'default': false,
1180
- 'markdownDescription': 'Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).'
1191
+ 'markdownDescription': nls.localize('vscode/editorOptions/suggest.shareSuggestSelections', 'Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).')
1181
1192
  },
1182
1193
  'editor.suggest.snippetsPreventQuickSuggestions': {
1183
1194
  'type': 'boolean',
1184
1195
  'default': true,
1185
- 'description': 'Controls whether an active snippet prevents quick suggestions.'
1196
+ 'description': nls.localize('vscode/editorOptions/suggest.snippetsPreventQuickSuggestions', 'Controls whether an active snippet prevents quick suggestions.')
1186
1197
  },
1187
1198
  'editor.suggest.showIcons': {
1188
1199
  'type': 'boolean',
1189
1200
  'default': true,
1190
- 'description': 'Controls whether to show or hide icons in suggestions.'
1201
+ 'description': nls.localize('vscode/editorOptions/suggest.showIcons', 'Controls whether to show or hide icons in suggestions.')
1191
1202
  },
1192
1203
  'editor.suggest.maxVisibleSuggestions': {
1193
1204
  'type': 'number',
1194
1205
  'default': 12,
1195
1206
  'minimum': 1,
1196
1207
  'maximum': 15,
1197
- 'description': 'Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).'
1208
+ 'description': nls.localize('vscode/editorOptions/suggest.maxVisibleSuggestions.dep', 'Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).')
1198
1209
  },
1199
1210
  'editor.suggest.filteredTypes': {
1200
1211
  'type': 'object',
1201
1212
  'default': {},
1202
- 'deprecationMessage': 'This setting is deprecated, please use separate settings like `editor.suggest.showKeywords` or `editor.suggest.showSnippets` instead.'
1213
+ 'deprecationMessage': nls.localize('vscode/editorOptions/deprecated', 'This setting is deprecated, please use separate settings like `editor.suggest.showKeywords` or `editor.suggest.showSnippets` instead.')
1203
1214
  },
1204
1215
  'editor.suggest.showMethods': {
1205
1216
  'type': 'boolean',
1206
1217
  'default': true,
1207
- 'markdownDescription': 'When enabled IntelliSense shows `method`-suggestions.'
1218
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showMethods', 'When enabled IntelliSense shows `method`-suggestions.')
1208
1219
  },
1209
1220
  'editor.suggest.showFunctions': {
1210
1221
  'type': 'boolean',
1211
1222
  'default': true,
1212
- 'markdownDescription': 'When enabled IntelliSense shows `function`-suggestions.'
1223
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showFunctions', 'When enabled IntelliSense shows `function`-suggestions.')
1213
1224
  },
1214
1225
  'editor.suggest.showConstructors': {
1215
1226
  'type': 'boolean',
1216
1227
  'default': true,
1217
- 'markdownDescription': 'When enabled IntelliSense shows `constructor`-suggestions.'
1228
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showConstructors', 'When enabled IntelliSense shows `constructor`-suggestions.')
1218
1229
  },
1219
1230
  'editor.suggest.showFields': {
1220
1231
  'type': 'boolean',
1221
1232
  'default': true,
1222
- 'markdownDescription': 'When enabled IntelliSense shows `field`-suggestions.'
1233
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showFields', 'When enabled IntelliSense shows `field`-suggestions.')
1223
1234
  },
1224
1235
  'editor.suggest.showVariables': {
1225
1236
  'type': 'boolean',
1226
1237
  'default': true,
1227
- 'markdownDescription': 'When enabled IntelliSense shows `variable`-suggestions.'
1238
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showVariables', 'When enabled IntelliSense shows `variable`-suggestions.')
1228
1239
  },
1229
1240
  'editor.suggest.showClasses': {
1230
1241
  'type': 'boolean',
1231
1242
  'default': true,
1232
- 'markdownDescription': 'When enabled IntelliSense shows `class`-suggestions.'
1243
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showClasss', 'When enabled IntelliSense shows `class`-suggestions.')
1233
1244
  },
1234
1245
  'editor.suggest.showStructs': {
1235
1246
  'type': 'boolean',
1236
1247
  'default': true,
1237
- 'markdownDescription': 'When enabled IntelliSense shows `struct`-suggestions.'
1248
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showStructs', 'When enabled IntelliSense shows `struct`-suggestions.')
1238
1249
  },
1239
1250
  'editor.suggest.showInterfaces': {
1240
1251
  'type': 'boolean',
1241
1252
  'default': true,
1242
- 'markdownDescription': 'When enabled IntelliSense shows `interface`-suggestions.'
1253
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showInterfaces', 'When enabled IntelliSense shows `interface`-suggestions.')
1243
1254
  },
1244
1255
  'editor.suggest.showModules': {
1245
1256
  'type': 'boolean',
1246
1257
  'default': true,
1247
- 'markdownDescription': 'When enabled IntelliSense shows `module`-suggestions.'
1258
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showModules', 'When enabled IntelliSense shows `module`-suggestions.')
1248
1259
  },
1249
1260
  'editor.suggest.showProperties': {
1250
1261
  'type': 'boolean',
1251
1262
  'default': true,
1252
- 'markdownDescription': 'When enabled IntelliSense shows `property`-suggestions.'
1263
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showPropertys', 'When enabled IntelliSense shows `property`-suggestions.')
1253
1264
  },
1254
1265
  'editor.suggest.showEvents': {
1255
1266
  'type': 'boolean',
1256
1267
  'default': true,
1257
- 'markdownDescription': 'When enabled IntelliSense shows `event`-suggestions.'
1268
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showEvents', 'When enabled IntelliSense shows `event`-suggestions.')
1258
1269
  },
1259
1270
  'editor.suggest.showOperators': {
1260
1271
  'type': 'boolean',
1261
1272
  'default': true,
1262
- 'markdownDescription': 'When enabled IntelliSense shows `operator`-suggestions.'
1273
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showOperators', 'When enabled IntelliSense shows `operator`-suggestions.')
1263
1274
  },
1264
1275
  'editor.suggest.showUnits': {
1265
1276
  'type': 'boolean',
1266
1277
  'default': true,
1267
- 'markdownDescription': 'When enabled IntelliSense shows `unit`-suggestions.'
1278
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showUnits', 'When enabled IntelliSense shows `unit`-suggestions.')
1268
1279
  },
1269
1280
  'editor.suggest.showValues': {
1270
1281
  'type': 'boolean',
1271
1282
  'default': true,
1272
- 'markdownDescription': 'When enabled IntelliSense shows `value`-suggestions.'
1283
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showValues', 'When enabled IntelliSense shows `value`-suggestions.')
1273
1284
  },
1274
1285
  'editor.suggest.showConstants': {
1275
1286
  'type': 'boolean',
1276
1287
  'default': true,
1277
- 'markdownDescription': 'When enabled IntelliSense shows `constant`-suggestions.'
1288
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showConstants', 'When enabled IntelliSense shows `constant`-suggestions.')
1278
1289
  },
1279
1290
  'editor.suggest.showEnums': {
1280
1291
  'type': 'boolean',
1281
1292
  'default': true,
1282
- 'markdownDescription': 'When enabled IntelliSense shows `enum`-suggestions.'
1293
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showEnums', 'When enabled IntelliSense shows `enum`-suggestions.')
1283
1294
  },
1284
1295
  'editor.suggest.showEnumMembers': {
1285
1296
  'type': 'boolean',
1286
1297
  'default': true,
1287
- 'markdownDescription': 'When enabled IntelliSense shows `enumMember`-suggestions.'
1298
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showEnumMembers', 'When enabled IntelliSense shows `enumMember`-suggestions.')
1288
1299
  },
1289
1300
  'editor.suggest.showKeywords': {
1290
1301
  'type': 'boolean',
1291
1302
  'default': true,
1292
- 'markdownDescription': 'When enabled IntelliSense shows `keyword`-suggestions.'
1303
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showKeywords', 'When enabled IntelliSense shows `keyword`-suggestions.')
1293
1304
  },
1294
1305
  'editor.suggest.showWords': {
1295
1306
  'type': 'boolean',
1296
1307
  'default': true,
1297
- 'markdownDescription': 'When enabled IntelliSense shows `text`-suggestions.'
1308
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showTexts', 'When enabled IntelliSense shows `text`-suggestions.')
1298
1309
  },
1299
1310
  'editor.suggest.showColors': {
1300
1311
  'type': 'boolean',
1301
1312
  'default': true,
1302
- 'markdownDescription': 'When enabled IntelliSense shows `color`-suggestions.'
1313
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showColors', 'When enabled IntelliSense shows `color`-suggestions.')
1303
1314
  },
1304
1315
  'editor.suggest.showFiles': {
1305
1316
  'type': 'boolean',
1306
1317
  'default': true,
1307
- 'markdownDescription': 'When enabled IntelliSense shows `file`-suggestions.'
1318
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showFiles', 'When enabled IntelliSense shows `file`-suggestions.')
1308
1319
  },
1309
1320
  'editor.suggest.showReferences': {
1310
1321
  'type': 'boolean',
1311
1322
  'default': true,
1312
- 'markdownDescription': 'When enabled IntelliSense shows `reference`-suggestions.'
1323
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showReferences', 'When enabled IntelliSense shows `reference`-suggestions.')
1313
1324
  },
1314
1325
  'editor.suggest.showCustomcolors': {
1315
1326
  'type': 'boolean',
1316
1327
  'default': true,
1317
- 'markdownDescription': 'When enabled IntelliSense shows `customcolor`-suggestions.'
1328
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showCustomcolors', 'When enabled IntelliSense shows `customcolor`-suggestions.')
1318
1329
  },
1319
1330
  'editor.suggest.showFolders': {
1320
1331
  'type': 'boolean',
1321
1332
  'default': true,
1322
- 'markdownDescription': 'When enabled IntelliSense shows `folder`-suggestions.'
1333
+ 'markdownDescription': nls.localize('vscode/editorOptions/ineditor.suggest.showFolderssertSpaces', 'When enabled IntelliSense shows `folder`-suggestions.')
1323
1334
  },
1324
1335
  'editor.suggest.showTypeParameters': {
1325
1336
  'type': 'boolean',
1326
1337
  'default': true,
1327
- 'markdownDescription': 'When enabled IntelliSense shows `typeParameter`-suggestions.'
1338
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showTypeParameters', 'When enabled IntelliSense shows `typeParameter`-suggestions.')
1328
1339
  },
1329
1340
  'editor.suggest.showSnippets': {
1330
1341
  'type': 'boolean',
1331
1342
  'default': true,
1332
- 'markdownDescription': 'When enabled IntelliSense shows `snippet`-suggestions.'
1343
+ 'markdownDescription': nls.localize('vscode/editorOptions/editor.suggest.showSnippets', 'When enabled IntelliSense shows `snippet`-suggestions.')
1333
1344
  },
1334
1345
  'editor.suggest.hideStatusBar': {
1335
1346
  'type': 'boolean',
1336
1347
  'default': true,
1337
- 'markdownDescription': 'Controls the visibility of the status bar at the bottom of the suggest widget.'
1348
+ 'markdownDescription': nls.localize('vscode/editorOptions/suggest.showStatusBar', 'Controls the visibility of the status bar at the bottom of the suggest widget.')
1338
1349
  },
1339
1350
  'editor.suggestFontSize': {
1340
- 'markdownDescription': 'Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.',
1351
+ 'markdownDescription': nls.localize('vscode/editorOptions/suggestFontSize', 'Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.'),
1341
1352
  'type': 'integer',
1342
1353
  'default': 0,
1343
1354
  'minimum': 0,
1344
1355
  'maximum': 1000
1345
1356
  },
1346
1357
  'editor.suggestLineHeight': {
1347
- 'markdownDescription': 'Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.',
1358
+ 'markdownDescription': nls.localize('vscode/editorOptions/suggestLineHeight', 'Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.'),
1348
1359
  'type': 'integer',
1349
1360
  'default': 0,
1350
1361
  'minimum': 0,
1351
1362
  'maximum': 1000
1352
1363
  },
1353
1364
  'editor.suggestOnTriggerCharacters': {
1354
- 'description': 'Controls whether suggestions should automatically show up when typing trigger characters.',
1365
+ 'description': nls.localize('vscode/editorOptions/suggestOnTriggerCharacters', 'Controls whether suggestions should automatically show up when typing trigger characters.'),
1355
1366
  'type': 'boolean',
1356
1367
  'default': true
1357
1368
  },
1358
1369
  'editor.suggestSelection': {
1359
1370
  'markdownEnumDescriptions': [
1360
- 'Always select the first suggestion.',
1361
- 'Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently.',
1362
- 'Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.'
1371
+ nls.localize('vscode/editorOptions/suggestSelection.first', 'Always select the first suggestion.'),
1372
+ nls.localize('vscode/editorOptions/suggestSelection.recentlyUsed', 'Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently.'),
1373
+ nls.localize('vscode/editorOptions/suggestSelection.recentlyUsedByPrefix', 'Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.')
1363
1374
  ],
1364
- 'description': 'Controls how suggestions are pre-selected when showing the suggest list.',
1375
+ 'description': nls.localize('vscode/editorOptions/suggestSelection', 'Controls how suggestions are pre-selected when showing the suggest list.'),
1365
1376
  'type': 'string',
1366
1377
  'enum': [
1367
1378
  'first',
@@ -1372,11 +1383,11 @@ const codeEditorPreferenceProperties = {
1372
1383
  },
1373
1384
  'editor.tabCompletion': {
1374
1385
  'enumDescriptions': [
1375
- 'Tab complete will insert the best matching suggestion when pressing tab.',
1376
- 'Disable tab completions.',
1377
- 'Tab complete snippets when their prefix match. Works best when `quickSuggestions` aren\'t enabled.'
1386
+ nls.localize('vscode/editorOptions/tabCompletion.on', 'Tab complete will insert the best matching suggestion when pressing tab.'),
1387
+ nls.localize('vscode/editorOptions/tabCompletion.off', 'Disable tab completions.'),
1388
+ nls.localize('vscode/editorOptions/tabCompletion.onlySnippets', 'Tab complete snippets when their prefix match. Works best when `quickSuggestions` aren\'t enabled.')
1378
1389
  ],
1379
- 'description': 'Enables tab completions.',
1390
+ 'description': nls.localize('vscode/editorOptions/tabCompletion', 'Enables tab completions.'),
1380
1391
  'type': 'string',
1381
1392
  'enum': [
1382
1393
  'on',
@@ -1386,7 +1397,7 @@ const codeEditorPreferenceProperties = {
1386
1397
  'default': 'off'
1387
1398
  },
1388
1399
  'editor.tabIndex': {
1389
- 'markdownDescription': 'Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.',
1400
+ 'markdownDescription': nls.localize('theia/editor/tabIndex', 'Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.'),
1390
1401
  'type': 'integer',
1391
1402
  'default': 0,
1392
1403
  'minimum': -1,
@@ -1394,33 +1405,33 @@ const codeEditorPreferenceProperties = {
1394
1405
  },
1395
1406
  'editor.unusualLineTerminators': {
1396
1407
  'markdownEnumDescriptions': [
1397
- 'Unusual line terminators are automatically removed.',
1398
- 'Unusual line terminators are ignored.',
1399
- 'Unusual line terminators prompt to be removed.'
1408
+ nls.localize('unusualLineTerminators.auto', 'Unusual line terminators are automatically removed.'),
1409
+ nls.localize('unusualLineTerminators.off', 'Unusual line terminators are ignored.'),
1410
+ nls.localize('unusualLineTerminators.prompt', 'Unusual line terminators prompt to be removed.')
1400
1411
  ],
1401
- 'description': 'Remove unusual line terminators that might cause problems.',
1412
+ 'description': nls.localize('vscode/editorOptions/unusualLineTerminators', 'Remove unusual line terminators that might cause problems.'),
1402
1413
  'type': 'string',
1403
1414
  'enum': ['auto', 'off', 'prompt'],
1404
1415
  'default': 'prompt'
1405
1416
  },
1406
1417
  'editor.useTabStops': {
1407
- 'description': 'Inserting and deleting whitespace follows tab stops.',
1418
+ 'description': nls.localize('vscode/editorOptions/useTabStops', 'Inserting and deleting whitespace follows tab stops.'),
1408
1419
  'type': 'boolean',
1409
1420
  'default': true
1410
1421
  },
1411
1422
  'editor.wordSeparators': {
1412
- 'description': 'Characters that will be used as word separators when doing word related navigations or operations.',
1423
+ 'description': nls.localize('vscode/editorOptions/wordSeparators', 'Characters that will be used as word separators when doing word related navigations or operations.'),
1413
1424
  'type': 'string',
1414
1425
  'default': DEFAULT_WORD_SEPARATORS
1415
1426
  },
1416
1427
  'editor.wordWrap': {
1417
1428
  'markdownEnumDescriptions': [
1418
- 'Lines will never wrap.',
1419
- 'Lines will wrap at the viewport width.',
1420
- 'Lines will wrap at `#editor.wordWrapColumn#`.',
1421
- 'Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.'
1429
+ nls.localize('vscode/editorOptions/wordWrap.off', 'Lines will never wrap.'),
1430
+ nls.localize('vscode/editorOptions/wordWrap.on', 'Lines will wrap at the viewport width.'),
1431
+ nls.localize('vscode/editorOptions/wordWrap.wordWrapColumn', 'Lines will wrap at `#editor.wordWrapColumn#`.'),
1432
+ nls.localize('vscode/editorOptions/wordWrap.bounded', 'Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.')
1422
1433
  ],
1423
- 'description': 'Controls how lines should wrap.',
1434
+ 'description': nls.localize('vscode/editorOptions/wordWrap', 'Controls how lines should wrap.'),
1424
1435
  'type': 'string',
1425
1436
  'enum': [
1426
1437
  'off',
@@ -1431,42 +1442,42 @@ const codeEditorPreferenceProperties = {
1431
1442
  'default': 'off'
1432
1443
  },
1433
1444
  'editor.wordWrapBreakAfterCharacters': {
1434
- 'description': 'Configure word wrapping characters. A break will be introduced after these characters.',
1445
+ 'description': nls.localize('theia/editor/wordWrapBreakAfterCharacters', 'Configure word wrapping characters. A break will be introduced after these characters.'),
1435
1446
  'type': 'string',
1436
1447
  'default': ' \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」',
1437
1448
  },
1438
1449
  'editor.wordWrapBreakBeforeCharacters': {
1439
- 'description': 'Configure word wrapping characters. A break will be introduced before these characters.',
1450
+ 'description': nls.localize('theia/editor/wordWrapBreakBeforeCharacters', 'Configure word wrapping characters. A break will be introduced before these characters.'),
1440
1451
  'type': 'string',
1441
1452
  'default': '([{‘“〈《「『【〔([{「£¥$£¥++',
1442
1453
  },
1443
1454
  'editor.wordWrapColumn': {
1444
- 'markdownDescription': 'Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.',
1455
+ 'markdownDescription': nls.localize('vscode/editorOptions/wordWrapColumn', 'Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.'),
1445
1456
  'type': 'integer',
1446
1457
  'default': 80,
1447
1458
  'minimum': 1,
1448
1459
  'maximum': 1073741824
1449
1460
  },
1450
1461
  'editor.wordWrapOverride1': {
1451
- 'markdownDescription': 'Override the `wordWrap` setting.',
1462
+ 'markdownDescription': nls.localize('theia/editor/wordWrapOverride1', 'Override the `wordWrap` setting.'),
1452
1463
  'type': 'string',
1453
1464
  'enum': ['off', 'on', 'inherit'],
1454
1465
  'default': 'inherit'
1455
1466
  },
1456
1467
  'editor.wordWrapOverride2': {
1457
- 'markdownDescription': 'Override the `wordWrapOverride1` setting.',
1468
+ 'markdownDescription': nls.localize('theia/editor/wordWrapOverride2', 'Override the `wordWrapOverride1` setting.'),
1458
1469
  'type': 'string',
1459
1470
  'enum': ['off', 'on', 'inherit'],
1460
1471
  'default': 'inherit'
1461
1472
  },
1462
1473
  'editor.wrappingIndent': {
1463
1474
  'enumDescriptions': [
1464
- 'No indentation. Wrapped lines begin at column 1.',
1465
- 'Wrapped lines get the same indentation as the parent.',
1466
- 'Wrapped lines get +1 indentation toward the parent.',
1467
- 'Wrapped lines get +2 indentation toward the parent.'
1475
+ nls.localize('vscode/editorOptions/wrappingIndent.none', 'No indentation. Wrapped lines begin at column 1.'),
1476
+ nls.localize('vscode/editorOptions/wrappingIndent.same', 'Wrapped lines get the same indentation as the parent.'),
1477
+ nls.localize('vscode/editorOptions/wrappingIndent.indent', 'Wrapped lines get +1 indentation toward the parent.'),
1478
+ nls.localize('vscode/editorOptions/wrappingIndent.deepIndent', 'Wrapped lines get +2 indentation toward the parent.')
1468
1479
  ],
1469
- 'description': 'Controls the indentation of wrapped lines.',
1480
+ 'description': nls.localize('vscode/editorOptions/wrappingIndent', 'Controls the indentation of wrapped lines.'),
1470
1481
  'type': 'string',
1471
1482
  'enum': [
1472
1483
  'none',
@@ -1478,10 +1489,10 @@ const codeEditorPreferenceProperties = {
1478
1489
  },
1479
1490
  'editor.wrappingStrategy': {
1480
1491
  'enumDescriptions': [
1481
- 'Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width.',
1482
- 'Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.'
1492
+ nls.localize('vscode/editorOptions/wrappingStrategy.simple', 'Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width.'),
1493
+ nls.localize('vscode/editorOptions/wrappingStrategy.advanced', 'Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.')
1483
1494
  ],
1484
- 'description': 'Controls the algorithm that computes wrapping points.',
1495
+ 'description': nls.localize('vscode/editorOptions/wrappingStrategy', 'Controls the algorithm that computes wrapping points.'),
1485
1496
  'type': 'string',
1486
1497
  'enum': [
1487
1498
  'simple',
@@ -1504,29 +1515,29 @@ export const editorPreferenceSchema: PreferenceSchema = {
1504
1515
  'off'
1505
1516
  ],
1506
1517
  'default': 'off',
1507
- 'description': 'Controls auto save of dirty files.',
1518
+ 'description': nls.localize('vscode/files.contribution/autoSave', 'Controls auto save of dirty files.'),
1508
1519
  overridable: false
1509
1520
  },
1510
1521
  'editor.autoSaveDelay': {
1511
1522
  'type': 'number',
1512
1523
  'default': 500,
1513
- 'description': 'Configure the auto save delay in milliseconds.',
1524
+ 'description': nls.localize('vscode/files.contribution/autoSaveDelay', 'Configure the auto save delay in milliseconds.'),
1514
1525
  overridable: false
1515
1526
  },
1516
1527
  'editor.formatOnSave': {
1517
1528
  'type': 'boolean',
1518
1529
  'default': false,
1519
- 'description': 'Enable format on manual save.'
1530
+ 'description': nls.localize('vscode/files.contribution/formatOnSave', 'Enable format on manual save.')
1520
1531
  },
1521
1532
  'editor.formatOnSaveTimeout': {
1522
1533
  'type': 'number',
1523
1534
  'default': 750,
1524
- 'description': 'Timeout in milliseconds after which the formatting that is run on file save is cancelled.'
1535
+ 'description': nls.localize('theia/editor/formatOnSaveTimeout', 'Timeout in milliseconds after which the formatting that is run on file save is cancelled.')
1525
1536
  },
1526
1537
  'editor.history.persistClosedEditors': {
1527
1538
  'type': 'boolean',
1528
1539
  'default': false,
1529
- 'description': 'Controls whether to persist closed editor history for the workspace across window reloads.'
1540
+ 'description': nls.localize('theia/editor/persistClosedEditors', 'Controls whether to persist closed editor history for the workspace across window reloads.')
1530
1541
  },
1531
1542
  'files.eol': {
1532
1543
  'type': 'string',
@@ -1536,12 +1547,12 @@ export const editorPreferenceSchema: PreferenceSchema = {
1536
1547
  'auto'
1537
1548
  ],
1538
1549
  'enumDescriptions': [
1539
- 'LF',
1540
- 'CRLF',
1541
- 'Uses operating system specific end of line character.'
1550
+ nls.localize('vscode/files.contribution/eol.LF', 'LF'),
1551
+ nls.localize('vscode/files.contribution/eol.CRLF', 'CRLF'),
1552
+ nls.localize('vscode/files.contribution/eol.auto', 'Uses operating system specific end of line character.')
1542
1553
  ],
1543
1554
  'default': 'auto',
1544
- 'description': 'The default end of line character.'
1555
+ 'description': nls.localize('vscode/files.contribution/eol', 'The default end of line character.')
1545
1556
  }
1546
1557
  }
1547
1558
  };