@opensumi/ide-editor 2.12.1-next-a6199cbc → 2.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/breadcrumb/default.d.ts.map +1 -1
- package/lib/browser/breadcrumb/default.js +22 -23
- package/lib/browser/breadcrumb/default.js.map +1 -1
- package/lib/browser/breadcrumb/document-symbol.d.ts +1 -1
- package/lib/browser/breadcrumb/document-symbol.d.ts.map +1 -1
- package/lib/browser/breadcrumb/document-symbol.js +1 -3
- package/lib/browser/breadcrumb/document-symbol.js.map +1 -1
- package/lib/browser/breadcrumb/index.d.ts.map +1 -1
- package/lib/browser/breadcrumb/index.js.map +1 -1
- package/lib/browser/component/scroll/scroll.d.ts.map +1 -1
- package/lib/browser/component/scroll/scroll.js +12 -9
- package/lib/browser/component/scroll/scroll.js.map +1 -1
- package/lib/browser/component/scroll/scroll.module.less +31 -31
- package/lib/browser/component.d.ts.map +1 -1
- package/lib/browser/component.js +5 -3
- package/lib/browser/component.js.map +1 -1
- package/lib/browser/decoration-applier.d.ts.map +1 -1
- package/lib/browser/decoration-applier.js.map +1 -1
- package/lib/browser/diff/compare.d.ts.map +1 -1
- package/lib/browser/diff/compare.js.map +1 -1
- package/lib/browser/diff/index.d.ts.map +1 -1
- package/lib/browser/diff/index.js.map +1 -1
- package/lib/browser/doc-cache/local-storage-cache.d.ts.map +1 -1
- package/lib/browser/doc-cache/local-storage-cache.js +1 -3
- package/lib/browser/doc-cache/local-storage-cache.js.map +1 -1
- package/lib/browser/doc-model/editor-document-model-service.d.ts.map +1 -1
- package/lib/browser/doc-model/editor-document-model-service.js +15 -7
- package/lib/browser/doc-model/editor-document-model-service.js.map +1 -1
- package/lib/browser/doc-model/editor-document-model.d.ts.map +1 -1
- package/lib/browser/doc-model/editor-document-model.js +8 -5
- package/lib/browser/doc-model/editor-document-model.js.map +1 -1
- package/lib/browser/doc-model/editor-document-registry.d.ts.map +1 -1
- package/lib/browser/doc-model/editor-document-registry.js +2 -6
- package/lib/browser/doc-model/editor-document-registry.js.map +1 -1
- package/lib/browser/doc-model/override.d.ts.map +1 -1
- package/lib/browser/doc-model/override.js.map +1 -1
- package/lib/browser/doc-model/save-task.d.ts.map +1 -1
- package/lib/browser/doc-model/save-task.js.map +1 -1
- package/lib/browser/doc-model/saveParticipants.d.ts.map +1 -1
- package/lib/browser/doc-model/saveParticipants.js.map +1 -1
- package/lib/browser/doc-model/types.d.ts +6 -6
- package/lib/browser/doc-model/types.d.ts.map +1 -1
- package/lib/browser/doc-model/types.js.map +1 -1
- package/lib/browser/editor-collection.service.d.ts +1 -2
- package/lib/browser/editor-collection.service.d.ts.map +1 -1
- package/lib/browser/editor-collection.service.js +14 -3
- package/lib/browser/editor-collection.service.js.map +1 -1
- package/lib/browser/editor-opener.d.ts.map +1 -1
- package/lib/browser/editor-opener.js.map +1 -1
- package/lib/browser/editor.contribution.d.ts.map +1 -1
- package/lib/browser/editor.contribution.js +18 -10
- package/lib/browser/editor.contribution.js.map +1 -1
- package/lib/browser/editor.decoration.service.d.ts.map +1 -1
- package/lib/browser/editor.decoration.service.js.map +1 -1
- package/lib/browser/editor.less +3 -3
- package/lib/browser/editor.module.less +64 -69
- package/lib/browser/editor.override.d.ts.map +1 -1
- package/lib/browser/editor.override.js +6 -3
- package/lib/browser/editor.override.js.map +1 -1
- package/lib/browser/editor.status-bar.service.d.ts.map +1 -1
- package/lib/browser/editor.status-bar.service.js +3 -1
- package/lib/browser/editor.status-bar.service.js.map +1 -1
- package/lib/browser/editor.view.d.ts +2 -1
- package/lib/browser/editor.view.d.ts.map +1 -1
- package/lib/browser/editor.view.js +56 -68
- package/lib/browser/editor.view.js.map +1 -1
- package/lib/browser/error.d.ts.map +1 -1
- package/lib/browser/error.js +1 -1
- package/lib/browser/error.js.map +1 -1
- package/lib/browser/feature.d.ts.map +1 -1
- package/lib/browser/feature.js +1 -3
- package/lib/browser/feature.js.map +1 -1
- package/lib/browser/format/formatterSelect.d.ts.map +1 -1
- package/lib/browser/format/formatterSelect.js.map +1 -1
- package/lib/browser/fs-resource/file-tree-set.d.ts.map +1 -1
- package/lib/browser/fs-resource/file-tree-set.js.map +1 -1
- package/lib/browser/fs-resource/fs-editor-doc.d.ts.map +1 -1
- package/lib/browser/fs-resource/fs-editor-doc.js +5 -2
- package/lib/browser/fs-resource/fs-editor-doc.js.map +1 -1
- package/lib/browser/fs-resource/fs-resource.d.ts.map +1 -1
- package/lib/browser/fs-resource/fs-resource.js +16 -15
- package/lib/browser/fs-resource/fs-resource.js.map +1 -1
- package/lib/browser/fs-resource/index.d.ts.map +1 -1
- package/lib/browser/fs-resource/index.js.map +1 -1
- package/lib/browser/grid/grid.service.d.ts.map +1 -1
- package/lib/browser/grid/grid.service.js +1 -1
- package/lib/browser/grid/grid.service.js.map +1 -1
- package/lib/browser/history/index.d.ts.map +1 -1
- package/lib/browser/history/index.js +5 -2
- package/lib/browser/history/index.js.map +1 -1
- package/lib/browser/index.d.ts +1 -0
- package/lib/browser/index.d.ts.map +1 -1
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/language/diagnostic-collection.d.ts.map +1 -1
- package/lib/browser/language/diagnostic-collection.js +1 -1
- package/lib/browser/language/diagnostic-collection.js.map +1 -1
- package/lib/browser/language/language.service.d.ts.map +1 -1
- package/lib/browser/language/language.service.js +8 -4
- package/lib/browser/language/language.service.js.map +1 -1
- package/lib/browser/language/workspace-symbol-quickopen.d.ts.map +1 -1
- package/lib/browser/language/workspace-symbol-quickopen.js +17 -9
- package/lib/browser/language/workspace-symbol-quickopen.js.map +1 -1
- package/lib/browser/menu/editor.context.d.ts.map +1 -1
- package/lib/browser/menu/editor.context.js +1 -3
- package/lib/browser/menu/editor.context.js.map +1 -1
- package/lib/browser/menu/editor.menu.d.ts.map +1 -1
- package/lib/browser/menu/editor.menu.js +6 -2
- package/lib/browser/menu/editor.menu.js.map +1 -1
- package/lib/browser/menu/title-context.menu.d.ts.map +1 -1
- package/lib/browser/menu/title-context.menu.js.map +1 -1
- package/lib/browser/monaco-contrib/callHierarchy/callHierarchy.contribution.d.ts.map +1 -1
- package/lib/browser/monaco-contrib/callHierarchy/callHierarchy.contribution.js +3 -9
- package/lib/browser/monaco-contrib/callHierarchy/callHierarchy.contribution.js.map +1 -1
- package/lib/browser/monaco-contrib/callHierarchy/callHierarchy.service.d.ts.map +1 -1
- package/lib/browser/monaco-contrib/callHierarchy/callHierarchy.service.js +4 -4
- package/lib/browser/monaco-contrib/callHierarchy/callHierarchy.service.js.map +1 -1
- package/lib/browser/monaco-contrib/command/command.service.d.ts.map +1 -1
- package/lib/browser/monaco-contrib/command/command.service.js +9 -5
- package/lib/browser/monaco-contrib/command/command.service.js.map +1 -1
- package/lib/browser/monaco-contrib/tokenizer/textmate-registry.d.ts +1 -1
- package/lib/browser/monaco-contrib/tokenizer/textmate-registry.d.ts.map +1 -1
- package/lib/browser/monaco-contrib/tokenizer/textmate-registry.js +1 -1
- package/lib/browser/monaco-contrib/tokenizer/textmate-registry.js.map +1 -1
- package/lib/browser/monaco-contrib/tokenizer/textmate-tokenizer.d.ts +1 -1
- package/lib/browser/monaco-contrib/tokenizer/textmate-tokenizer.d.ts.map +1 -1
- package/lib/browser/monaco-contrib/tokenizer/textmate-tokenizer.js +4 -7
- package/lib/browser/monaco-contrib/tokenizer/textmate-tokenizer.js.map +1 -1
- package/lib/browser/monaco-contrib/tokenizer/textmate.service.d.ts.map +1 -1
- package/lib/browser/monaco-contrib/tokenizer/textmate.service.js +3 -7
- package/lib/browser/monaco-contrib/tokenizer/textmate.service.js.map +1 -1
- package/lib/browser/navigation.module.less +14 -14
- package/lib/browser/navigation.view.d.ts.map +1 -1
- package/lib/browser/navigation.view.js +39 -33
- package/lib/browser/navigation.view.js.map +1 -1
- package/lib/browser/preference/converter.d.ts.map +1 -1
- package/lib/browser/preference/converter.js +44 -29
- package/lib/browser/preference/converter.js.map +1 -1
- package/lib/browser/preference/schema.d.ts.map +1 -1
- package/lib/browser/preference/schema.js +353 -373
- package/lib/browser/preference/schema.js.map +1 -1
- package/lib/browser/preference/util.d.ts.map +1 -1
- package/lib/browser/preference/util.js.map +1 -1
- package/lib/browser/resource.service.d.ts.map +1 -1
- package/lib/browser/resource.service.js.map +1 -1
- package/lib/browser/tab.view.d.ts.map +1 -1
- package/lib/browser/tab.view.js +22 -23
- package/lib/browser/tab.view.js.map +1 -1
- package/lib/browser/types.d.ts.map +1 -1
- package/lib/browser/types.js.map +1 -1
- package/lib/browser/untitled-resource.d.ts.map +1 -1
- package/lib/browser/untitled-resource.js +1 -2
- package/lib/browser/untitled-resource.js.map +1 -1
- package/lib/browser/view/editor.react.d.ts.map +1 -1
- package/lib/browser/view/editor.react.js.map +1 -1
- package/lib/browser/view/react-hook.d.ts.map +1 -1
- package/lib/browser/view/react-hook.js.map +1 -1
- package/lib/browser/view/suggest-widget.d.ts.map +1 -1
- package/lib/browser/view/suggest-widget.js.map +1 -1
- package/lib/browser/view/topPadding.d.ts.map +1 -1
- package/lib/browser/view/topPadding.js.map +1 -1
- package/lib/browser/workbench-editor.service.d.ts +1 -1
- package/lib/browser/workbench-editor.service.d.ts.map +1 -1
- package/lib/browser/workbench-editor.service.js +32 -31
- package/lib/browser/workbench-editor.service.js.map +1 -1
- package/lib/common/doc-cache.d.ts.map +1 -1
- package/lib/common/doc-cache.js +2 -8
- package/lib/common/doc-cache.js.map +1 -1
- package/lib/common/editor.d.ts.map +1 -1
- package/lib/common/editor.js.map +1 -1
- package/lib/common/language.d.ts +6 -6
- package/lib/common/language.d.ts.map +1 -1
- package/lib/common/language.js.map +1 -1
- package/lib/common/mocks/workbench-editor.service.d.ts.map +1 -1
- package/lib/common/mocks/workbench-editor.service.js.map +1 -1
- package/lib/common/resource.d.ts.map +1 -1
- package/lib/common/resource.js.map +1 -1
- package/package.json +11 -11
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EditorPreferences = exports.editorPreferenceSchema = exports.EDITOR_DEFAULTS = exports.EDITOR_INLINE_SUGGEST_DEFAULTS = exports.EDITOR_SUGGEST_DEFAULTS = exports.EDITOR_MODEL_DEFAULTS = exports.EDITOR_FONT_DEFAULTS = exports.USUAL_WORD_SEPARATORS = void 0;
|
|
4
4
|
const ide_core_browser_1 = require("@opensumi/ide-core-browser");
|
|
5
5
|
exports.USUAL_WORD_SEPARATORS = '`~!@#$%^&*()-=+[{]}\\|;:\'",.<>/?';
|
|
6
|
-
const DEFAULT_WINDOWS_FONT_FAMILY =
|
|
7
|
-
const DEFAULT_MAC_FONT_FAMILY =
|
|
8
|
-
const DEFAULT_LINUX_FONT_FAMILY = '
|
|
6
|
+
const DEFAULT_WINDOWS_FONT_FAMILY = "Consolas, 'Courier New', monospace";
|
|
7
|
+
const DEFAULT_MAC_FONT_FAMILY = "Menlo, Monaco, 'Courier New', monospace";
|
|
8
|
+
const DEFAULT_LINUX_FONT_FAMILY = "'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'";
|
|
9
9
|
exports.EDITOR_FONT_DEFAULTS = {
|
|
10
|
-
fontFamily:
|
|
10
|
+
fontFamily: ide_core_browser_1.isOSX ? DEFAULT_MAC_FONT_FAMILY : ide_core_browser_1.isLinux ? DEFAULT_LINUX_FONT_FAMILY : DEFAULT_WINDOWS_FONT_FAMILY,
|
|
11
11
|
fontWeight: 'normal',
|
|
12
12
|
fontSize: 12,
|
|
13
13
|
tabSize: 2,
|
|
@@ -205,77 +205,77 @@ exports.EDITOR_DEFAULTS = {
|
|
|
205
205
|
};
|
|
206
206
|
const monacoEditorSchema = {
|
|
207
207
|
'editor.ariaLabel': {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
208
|
+
type: 'string',
|
|
209
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.ariaLabel,
|
|
210
|
+
description: (0, ide_core_browser_1.localize)('ariaLabel', "The aria label for the editor's textarea (when it is focused)."),
|
|
211
211
|
},
|
|
212
212
|
'editor.extraEditorClassName': {
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
type: 'string',
|
|
214
|
+
description: (0, ide_core_browser_1.localize)('extraEditorClassName', 'Class name to be added to the editor.'),
|
|
215
215
|
},
|
|
216
216
|
'editor.fixedOverflowWidgets': {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
217
|
+
type: 'boolean',
|
|
218
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.fixedOverflowWidgets,
|
|
219
|
+
description: (0, ide_core_browser_1.localize)('fixedOverflowWidgets', 'Display overflow widgets as fixed.'),
|
|
220
220
|
},
|
|
221
221
|
'editor.revealHorizontalRightPadding': {
|
|
222
|
-
|
|
223
|
-
|
|
222
|
+
type: 'number',
|
|
223
|
+
description: (0, ide_core_browser_1.localize)('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. Defaults to 30 (px).'),
|
|
224
224
|
},
|
|
225
225
|
'editor.selectOnLineNumbers': {
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
type: 'boolean',
|
|
227
|
+
description: (0, ide_core_browser_1.localize)('selectOnLineNumbers', 'Should the corresponding line be selected when clicking on the line number? Defaults to true.'),
|
|
228
228
|
},
|
|
229
229
|
'editor.wordWrapMinified': {
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
type: 'boolean',
|
|
231
|
+
description: (0, ide_core_browser_1.localize)('wordWrapMinified', 'Force word wrapping when the text appears to be of a minified/generated file. Defaults to true.'),
|
|
232
232
|
},
|
|
233
233
|
'editor.wordWrapBreakAfterCharacters': {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
234
|
+
type: 'string',
|
|
235
|
+
default: ' \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」',
|
|
236
|
+
description: (0, ide_core_browser_1.localize)('wordWrapBreakAfterCharacters', "Configure word wrapping characters. A break will be introduced after these characters. Defaults to ' \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」'."),
|
|
237
237
|
},
|
|
238
238
|
'editor.wrappingStrategy': {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
239
|
+
type: 'string',
|
|
240
|
+
enum: ['advanced', 'simple'],
|
|
241
|
+
default: 'simple',
|
|
242
|
+
description: (0, ide_core_browser_1.localize)('wrappingStrategy', 'Controls the algorithm that computes wrapping points.'),
|
|
243
243
|
},
|
|
244
244
|
'editor.wordWrapBreakBeforeCharacters': {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
type: 'string',
|
|
246
|
+
default: '([{‘“〈《「『【〔([{「£¥$£¥++',
|
|
247
|
+
description: (0, ide_core_browser_1.localize)('wordWrapBreakBeforeCharacters', "Configure word wrapping characters. A break will be introduced before these characters. Defaults to '([{‘“〈《「『【〔([{「£¥$£¥++'."),
|
|
248
248
|
},
|
|
249
249
|
'editor.lineNumbersMinChars': {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
250
|
+
type: 'number',
|
|
251
|
+
default: exports.EDITOR_DEFAULTS.lineNumbersMinChars,
|
|
252
|
+
description: (0, ide_core_browser_1.localize)('lineNumbersMinChars', 'Control the width of line numbers, by reserving horizontal space for rendering at least an amount of digits. Defaults to 5.'),
|
|
253
253
|
},
|
|
254
254
|
'editor.lineDecorationsWidth': {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
255
|
+
type: 'number',
|
|
256
|
+
default: exports.EDITOR_DEFAULTS.lineDecorationsWidth,
|
|
257
|
+
description: (0, ide_core_browser_1.localize)('lineDecorationsWidth', 'The width reserved for line decorations (in px). Line decorations are placed between line numbers and the editor content. You can pass in a string in the format floating point followed by "ch". e.g. 1.3ch. Defaults to 10.'),
|
|
258
258
|
},
|
|
259
259
|
'editor.fontFamily': {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
260
|
+
type: 'string',
|
|
261
|
+
default: exports.EDITOR_FONT_DEFAULTS.fontFamily,
|
|
262
|
+
description: (0, ide_core_browser_1.localize)('fontFamily', 'Controls the font family.'),
|
|
263
263
|
},
|
|
264
264
|
'editor.fontWeight': {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
265
|
+
type: 'string',
|
|
266
|
+
enum: ['normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900'],
|
|
267
|
+
default: exports.EDITOR_FONT_DEFAULTS.fontWeight,
|
|
268
|
+
description: (0, ide_core_browser_1.localize)('fontWeight', 'Controls the font weight.'),
|
|
269
269
|
},
|
|
270
270
|
'editor.fontSize': {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
271
|
+
type: 'number',
|
|
272
|
+
default: exports.EDITOR_FONT_DEFAULTS.fontSize,
|
|
273
|
+
description: (0, ide_core_browser_1.localize)('fontSize', 'Controls the font size in pixels.'),
|
|
274
274
|
},
|
|
275
275
|
'editor.lineHeight': {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
276
|
+
type: 'number',
|
|
277
|
+
default: exports.EDITOR_FONT_DEFAULTS.lineHeight,
|
|
278
|
+
description: (0, ide_core_browser_1.localize)('lineHeight', 'Controls the line height. Use 0 to compute the line height from the font size.'),
|
|
279
279
|
},
|
|
280
280
|
'editor.suggest.insertMode': {
|
|
281
281
|
type: 'string',
|
|
@@ -475,45 +475,45 @@ const monacoEditorSchema = {
|
|
|
475
475
|
description: (0, ide_core_browser_1.localize)('inlineSuggest.enabled', 'Enable or disable the rendering of automatic inline completions.'),
|
|
476
476
|
},
|
|
477
477
|
'editor.letterSpacing': {
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
478
|
+
type: 'number',
|
|
479
|
+
default: exports.EDITOR_FONT_DEFAULTS.letterSpacing,
|
|
480
|
+
description: (0, ide_core_browser_1.localize)('letterSpacing', 'Controls the letter spacing in pixels.'),
|
|
481
481
|
},
|
|
482
482
|
'editor.lineNumbers': {
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
483
|
+
type: 'string',
|
|
484
|
+
enum: ['off', 'on', 'relative', 'interval'],
|
|
485
|
+
enumDescriptions: [
|
|
486
486
|
(0, ide_core_browser_1.localize)('lineNumbers.off', 'Line numbers are not rendered.'),
|
|
487
487
|
(0, ide_core_browser_1.localize)('lineNumbers.on', 'Line numbers are rendered as absolute number.'),
|
|
488
488
|
(0, ide_core_browser_1.localize)('lineNumbers.relative', 'Line numbers are rendered as distance in lines to cursor position.'),
|
|
489
489
|
(0, ide_core_browser_1.localize)('lineNumbers.interval', 'Line numbers are rendered every 10 lines.'),
|
|
490
490
|
],
|
|
491
|
-
|
|
492
|
-
|
|
491
|
+
default: 'on',
|
|
492
|
+
description: (0, ide_core_browser_1.localize)('lineNumbers', 'Controls the display of line numbers.'),
|
|
493
493
|
},
|
|
494
494
|
'editor.renderFinalNewline': {
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
495
|
+
type: 'boolean',
|
|
496
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.renderFinalNewline,
|
|
497
|
+
description: (0, ide_core_browser_1.localize)('renderFinalNewline', 'Render last line number when the file ends with a newline.'),
|
|
498
498
|
},
|
|
499
499
|
'editor.rulers': {
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
500
|
+
type: 'array',
|
|
501
|
+
items: {
|
|
502
|
+
type: 'number',
|
|
503
503
|
},
|
|
504
|
-
|
|
505
|
-
|
|
504
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.rulers,
|
|
505
|
+
description: (0, ide_core_browser_1.localize)('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.'),
|
|
506
506
|
},
|
|
507
507
|
'editor.wordSeparators': {
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
508
|
+
type: 'string',
|
|
509
|
+
default: exports.EDITOR_DEFAULTS.wordSeparators,
|
|
510
|
+
description: (0, ide_core_browser_1.localize)('wordSeparators', 'Characters that will be used as word separators when doing word related navigations or operations.'),
|
|
511
511
|
},
|
|
512
512
|
'editor.tabSize': {
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
513
|
+
type: 'number',
|
|
514
|
+
default: exports.EDITOR_MODEL_DEFAULTS.tabSize,
|
|
515
|
+
minimum: 1,
|
|
516
|
+
markdownDescription: (0, ide_core_browser_1.localize)('tabSize', 'The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.'),
|
|
517
517
|
},
|
|
518
518
|
// 'editor.indentSize': {
|
|
519
519
|
// 'anyOf': [
|
|
@@ -530,155 +530,155 @@ const monacoEditorSchema = {
|
|
|
530
530
|
// 'markdownDescription': localize('indentSize', "The number of spaces used for indentation or 'tabSize' to use the value from `#editor.tabSize#`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")
|
|
531
531
|
// },
|
|
532
532
|
'editor.insertSpaces': {
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
533
|
+
type: 'boolean',
|
|
534
|
+
default: exports.EDITOR_MODEL_DEFAULTS.insertSpaces,
|
|
535
|
+
markdownDescription: (0, ide_core_browser_1.localize)('insertSpaces', 'Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.'),
|
|
536
536
|
},
|
|
537
537
|
'editor.detectIndentation': {
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
538
|
+
type: 'boolean',
|
|
539
|
+
default: exports.EDITOR_MODEL_DEFAULTS.detectIndentation,
|
|
540
|
+
markdownDescription: (0, ide_core_browser_1.localize)('detectIndentation', 'Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.'),
|
|
541
541
|
},
|
|
542
542
|
'editor.roundedSelection': {
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
543
|
+
type: 'boolean',
|
|
544
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.roundedSelection,
|
|
545
|
+
description: (0, ide_core_browser_1.localize)('roundedSelection', 'Controls whether selections should have rounded corners.'),
|
|
546
546
|
},
|
|
547
547
|
'editor.scrollBeyondLastLine': {
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
548
|
+
type: 'boolean',
|
|
549
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.scrollBeyondLastLine,
|
|
550
|
+
description: (0, ide_core_browser_1.localize)('scrollBeyondLastLine', 'Controls whether the editor will scroll beyond the last line.'),
|
|
551
551
|
},
|
|
552
552
|
'editor.scrollBeyondLastColumn': {
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
553
|
+
type: 'number',
|
|
554
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.scrollBeyondLastColumn,
|
|
555
|
+
description: (0, ide_core_browser_1.localize)('scrollBeyondLastColumn', 'Controls the number of extra characters beyond which the editor will scroll horizontally.'),
|
|
556
556
|
},
|
|
557
557
|
'editor.smoothScrolling': {
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
558
|
+
type: 'boolean',
|
|
559
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.smoothScrolling,
|
|
560
|
+
description: (0, ide_core_browser_1.localize)('smoothScrolling', 'Controls whether the editor will scroll using an animation.'),
|
|
561
561
|
},
|
|
562
562
|
'editor.minimap.enabled': {
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
563
|
+
type: 'boolean',
|
|
564
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.minimap.enabled,
|
|
565
|
+
description: (0, ide_core_browser_1.localize)('minimap.enabled', 'Controls whether the minimap is shown.'),
|
|
566
566
|
},
|
|
567
567
|
'editor.minimap.side': {
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
568
|
+
type: 'string',
|
|
569
|
+
enum: ['left', 'right'],
|
|
570
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.minimap.side,
|
|
571
|
+
description: (0, ide_core_browser_1.localize)('minimap.side', 'Controls the side where to render the minimap.'),
|
|
572
572
|
},
|
|
573
573
|
'editor.minimap.showSlider': {
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
574
|
+
type: 'string',
|
|
575
|
+
enum: ['always', 'mouseover'],
|
|
576
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.minimap.showSlider,
|
|
577
|
+
description: (0, ide_core_browser_1.localize)('minimap.showSlider', 'Controls whether the minimap slider is automatically hidden.'),
|
|
578
578
|
},
|
|
579
579
|
'editor.minimap.renderCharacters': {
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
580
|
+
type: 'boolean',
|
|
581
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.minimap.renderCharacters,
|
|
582
|
+
description: (0, ide_core_browser_1.localize)('minimap.renderCharacters', 'Render the actual characters on a line as opposed to color blocks.'),
|
|
583
583
|
},
|
|
584
584
|
'editor.minimap.maxColumn': {
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
585
|
+
type: 'number',
|
|
586
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.minimap.maxColumn,
|
|
587
|
+
description: (0, ide_core_browser_1.localize)('minimap.maxColumn', 'Limit the width of the minimap to render at most a certain number of columns.'),
|
|
588
588
|
},
|
|
589
589
|
'editor.hover.enabled': {
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
590
|
+
type: 'boolean',
|
|
591
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.hover.enabled,
|
|
592
|
+
description: (0, ide_core_browser_1.localize)('hover.enabled', 'Controls whether the hover is shown.'),
|
|
593
593
|
},
|
|
594
594
|
'editor.hover.delay': {
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
595
|
+
type: 'number',
|
|
596
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.hover.delay,
|
|
597
|
+
description: (0, ide_core_browser_1.localize)('hover.delay', 'Controls the delay in milliseconds after which the hover is shown.'),
|
|
598
598
|
},
|
|
599
599
|
'editor.hover.sticky': {
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
600
|
+
type: 'boolean',
|
|
601
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.hover.sticky,
|
|
602
|
+
description: (0, ide_core_browser_1.localize)('hover.sticky', 'Controls whether the hover should remain visible when mouse is moved over it.'),
|
|
603
603
|
},
|
|
604
604
|
'editor.find.seedSearchStringFromSelection': {
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
605
|
+
type: 'boolean',
|
|
606
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.find.seedSearchStringFromSelection,
|
|
607
|
+
description: (0, ide_core_browser_1.localize)('find.seedSearchStringFromSelection', 'Controls whether the search string in the Find Widget is seeded from the editor selection.'),
|
|
608
608
|
},
|
|
609
609
|
'editor.find.autoFindInSelection': {
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
610
|
+
type: 'boolean',
|
|
611
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.find.autoFindInSelection,
|
|
612
|
+
description: (0, ide_core_browser_1.localize)('find.autoFindInSelection', 'Controls whether the find operation is carried out on selected text or the entire file in the editor.'),
|
|
613
613
|
},
|
|
614
614
|
'editor.find.globalFindClipboard': {
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
615
|
+
type: 'boolean',
|
|
616
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.find.globalFindClipboard,
|
|
617
|
+
description: (0, ide_core_browser_1.localize)('find.globalFindClipboard', 'Controls whether the Find Widget should read or modify the shared find clipboard on macOS.'),
|
|
618
|
+
included: ide_core_browser_1.isOSX,
|
|
619
619
|
},
|
|
620
620
|
'editor.find.addExtraSpaceOnTop': {
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
621
|
+
type: 'boolean',
|
|
622
|
+
default: true,
|
|
623
|
+
description: (0, ide_core_browser_1.localize)('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.'),
|
|
624
624
|
},
|
|
625
625
|
'editor.wordWrap': {
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
626
|
+
type: 'string',
|
|
627
|
+
enum: ['off', 'on', 'wordWrapColumn', 'bounded'],
|
|
628
|
+
markdownEnumDescriptions: [
|
|
629
629
|
(0, ide_core_browser_1.localize)('wordWrap.off', 'Lines will never wrap.'),
|
|
630
630
|
(0, ide_core_browser_1.localize)('wordWrap.on', 'Lines will wrap at the viewport width.'),
|
|
631
631
|
(0, ide_core_browser_1.localize)('wordWrap.wordWrapColumn', 'Lines will wrap at `#editor.wordWrapColumn#`.'),
|
|
632
632
|
(0, ide_core_browser_1.localize)('wordWrap.bounded', 'Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.'),
|
|
633
633
|
],
|
|
634
|
-
|
|
635
|
-
|
|
634
|
+
default: exports.EDITOR_DEFAULTS.wordWrap,
|
|
635
|
+
description: (0, ide_core_browser_1.localize)('wordWrap', 'Controls how lines should wrap.'),
|
|
636
636
|
},
|
|
637
637
|
'editor.wordWrapColumn': {
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
638
|
+
type: 'integer',
|
|
639
|
+
default: exports.EDITOR_DEFAULTS.wordWrapColumn,
|
|
640
|
+
minimum: 1,
|
|
641
|
+
markdownDescription: (0, ide_core_browser_1.localize)('wordWrapColumn', 'Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.'),
|
|
642
642
|
},
|
|
643
643
|
'editor.wrappingIndent': {
|
|
644
|
-
|
|
645
|
-
|
|
644
|
+
type: 'string',
|
|
645
|
+
enum: ['none', 'same', 'indent', 'deepIndent'],
|
|
646
646
|
enumDescriptions: [
|
|
647
647
|
(0, ide_core_browser_1.localize)('wrappingIndent.none', 'No indentation. Wrapped lines begin at column 1.'),
|
|
648
648
|
(0, ide_core_browser_1.localize)('wrappingIndent.same', 'Wrapped lines get the same indentation as the parent.'),
|
|
649
649
|
(0, ide_core_browser_1.localize)('wrappingIndent.indent', 'Wrapped lines get +1 indentation toward the parent.'),
|
|
650
650
|
(0, ide_core_browser_1.localize)('wrappingIndent.deepIndent', 'Wrapped lines get +2 indentation toward the parent.'),
|
|
651
651
|
],
|
|
652
|
-
|
|
653
|
-
|
|
652
|
+
default: 'same',
|
|
653
|
+
description: (0, ide_core_browser_1.localize)('wrappingIndent', 'Controls the indentation of wrapped lines.'),
|
|
654
654
|
},
|
|
655
655
|
'editor.mouseWheelScrollSensitivity': {
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
656
|
+
type: 'number',
|
|
657
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.scrollbar.mouseWheelScrollSensitivity,
|
|
658
|
+
markdownDescription: (0, ide_core_browser_1.localize)('mouseWheelScrollSensitivity', 'A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.'),
|
|
659
659
|
},
|
|
660
660
|
'editor.fastScrollSensitivity': {
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
661
|
+
type: 'number',
|
|
662
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.scrollbar.fastScrollSensitivity,
|
|
663
|
+
markdownDescription: (0, ide_core_browser_1.localize)('fastScrollSensitivity', 'Scrolling speed multiplier when pressing `Alt`.'),
|
|
664
664
|
},
|
|
665
665
|
'editor.multiCursorModifier': {
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
666
|
+
type: 'string',
|
|
667
|
+
enum: ['ctrlCmd', 'alt'],
|
|
668
|
+
markdownEnumDescriptions: [
|
|
669
669
|
(0, ide_core_browser_1.localize)('multiCursorModifier.ctrlCmd', 'Maps to `Control` on Windows and Linux and to `Command` on macOS.'),
|
|
670
670
|
(0, ide_core_browser_1.localize)('multiCursorModifier.alt', 'Maps to `Alt` on Windows and Linux and to `Option` on macOS.'),
|
|
671
671
|
],
|
|
672
|
-
|
|
673
|
-
|
|
672
|
+
default: 'alt',
|
|
673
|
+
markdownDescription: (0, ide_core_browser_1.localize)('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).'),
|
|
674
674
|
},
|
|
675
675
|
'editor.multiCursorMergeOverlapping': {
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
676
|
+
type: 'boolean',
|
|
677
|
+
default: exports.EDITOR_DEFAULTS.multiCursorMergeOverlapping,
|
|
678
|
+
description: (0, ide_core_browser_1.localize)('multiCursorMergeOverlapping', 'Merge multiple cursors when they are overlapping.'),
|
|
679
679
|
},
|
|
680
680
|
'editor.quickSuggestions': {
|
|
681
|
-
|
|
681
|
+
anyOf: [
|
|
682
682
|
{
|
|
683
683
|
type: 'boolean',
|
|
684
684
|
},
|
|
@@ -703,24 +703,24 @@ const monacoEditorSchema = {
|
|
|
703
703
|
},
|
|
704
704
|
},
|
|
705
705
|
],
|
|
706
|
-
|
|
707
|
-
|
|
706
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.quickSuggestions,
|
|
707
|
+
description: (0, ide_core_browser_1.localize)('quickSuggestions', 'Controls whether suggestions should automatically show up while typing.'),
|
|
708
708
|
},
|
|
709
709
|
'editor.quickSuggestionsDelay': {
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
710
|
+
type: 'integer',
|
|
711
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.quickSuggestionsDelay,
|
|
712
|
+
minimum: 0,
|
|
713
|
+
description: (0, ide_core_browser_1.localize)('quickSuggestionsDelay', 'Controls the delay in milliseconds after which quick suggestions will show up.'),
|
|
714
714
|
},
|
|
715
715
|
'editor.parameterHints.enabled': {
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
716
|
+
type: 'boolean',
|
|
717
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.parameterHints.enabled,
|
|
718
|
+
description: (0, ide_core_browser_1.localize)('parameterHints.enabled', 'Enables a pop-up that shows parameter documentation and type information as you type.'),
|
|
719
719
|
},
|
|
720
720
|
'editor.parameterHints.cycle': {
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
721
|
+
type: 'boolean',
|
|
722
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.parameterHints.cycle,
|
|
723
|
+
description: (0, ide_core_browser_1.localize)('parameterHints.cycle', 'Controls whether the parameter hints menu cycles or closes when reaching the end of the list.'),
|
|
724
724
|
},
|
|
725
725
|
'editor.autoClosingBrackets': {
|
|
726
726
|
type: 'string',
|
|
@@ -731,8 +731,8 @@ const monacoEditorSchema = {
|
|
|
731
731
|
(0, ide_core_browser_1.localize)('editor.autoClosingBrackets.beforeWhitespace', 'Autoclose brackets only when the cursor is to the left of whitespace.'),
|
|
732
732
|
'',
|
|
733
733
|
],
|
|
734
|
-
|
|
735
|
-
|
|
734
|
+
default: exports.EDITOR_DEFAULTS.autoClosingBrackets,
|
|
735
|
+
description: (0, ide_core_browser_1.localize)('autoClosingBrackets', 'Controls whether the editor should automatically close brackets after the user adds an opening bracket.'),
|
|
736
736
|
},
|
|
737
737
|
'editor.autoClosingQuotes': {
|
|
738
738
|
type: 'string',
|
|
@@ -743,8 +743,8 @@ const monacoEditorSchema = {
|
|
|
743
743
|
(0, ide_core_browser_1.localize)('editor.autoClosingQuotes.beforeWhitespace', 'Autoclose quotes only when the cursor is to the left of whitespace.'),
|
|
744
744
|
'',
|
|
745
745
|
],
|
|
746
|
-
|
|
747
|
-
|
|
746
|
+
default: exports.EDITOR_DEFAULTS.autoClosingQuotes,
|
|
747
|
+
description: (0, ide_core_browser_1.localize)('autoClosingQuotes', 'Controls whether the editor should automatically close quotes after the user adds an opening quote.'),
|
|
748
748
|
},
|
|
749
749
|
'editor.autoSurround': {
|
|
750
750
|
type: 'string',
|
|
@@ -755,94 +755,94 @@ const monacoEditorSchema = {
|
|
|
755
755
|
(0, ide_core_browser_1.localize)('editor.autoSurround.quotes', 'Surround with quotes but not brackets.'),
|
|
756
756
|
'',
|
|
757
757
|
],
|
|
758
|
-
|
|
759
|
-
|
|
758
|
+
default: exports.EDITOR_DEFAULTS.autoSurround,
|
|
759
|
+
description: (0, ide_core_browser_1.localize)('autoSurround', 'Controls whether the editor should automatically surround selections.'),
|
|
760
760
|
},
|
|
761
761
|
'editor.formatOnType': {
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
762
|
+
type: 'boolean',
|
|
763
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.formatOnType,
|
|
764
|
+
description: (0, ide_core_browser_1.localize)('formatOnType', 'Controls whether the editor should automatically format the line after typing.'),
|
|
765
765
|
},
|
|
766
766
|
'editor.formatOnPaste': {
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
767
|
+
type: 'boolean',
|
|
768
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.formatOnPaste,
|
|
769
|
+
description: (0, ide_core_browser_1.localize)('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.'),
|
|
770
770
|
},
|
|
771
771
|
'editor.autoIndent': {
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
772
|
+
type: 'boolean',
|
|
773
|
+
default: exports.EDITOR_DEFAULTS.autoIndent,
|
|
774
|
+
description: (0, ide_core_browser_1.localize)('autoIndent', 'Controls whether the editor should automatically adjust the indentation when users type, paste or move lines. Extensions with indentation rules of the language must be available.'),
|
|
775
775
|
},
|
|
776
776
|
'editor.suggestOnTriggerCharacters': {
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
777
|
+
type: 'boolean',
|
|
778
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.suggestOnTriggerCharacters,
|
|
779
|
+
description: (0, ide_core_browser_1.localize)('suggestOnTriggerCharacters', 'Controls whether suggestions should automatically show up when typing trigger characters.'),
|
|
780
780
|
},
|
|
781
781
|
'editor.acceptSuggestionOnEnter': {
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
782
|
+
type: 'string',
|
|
783
|
+
enum: ['on', 'smart', 'off'],
|
|
784
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.acceptSuggestionOnEnter,
|
|
785
|
+
markdownEnumDescriptions: [
|
|
786
786
|
'',
|
|
787
787
|
(0, ide_core_browser_1.localize)('acceptSuggestionOnEnterSmart', 'Only accept a suggestion with `Enter` when it makes a textual change.'),
|
|
788
788
|
'',
|
|
789
789
|
],
|
|
790
|
-
|
|
790
|
+
markdownDescription: (0, ide_core_browser_1.localize)('acceptSuggestionOnEnter', 'Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.'),
|
|
791
791
|
},
|
|
792
792
|
'editor.acceptSuggestionOnCommitCharacter': {
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
793
|
+
type: 'boolean',
|
|
794
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.acceptSuggestionOnCommitCharacter,
|
|
795
|
+
markdownDescription: (0, ide_core_browser_1.localize)('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.'),
|
|
796
796
|
},
|
|
797
797
|
'editor.snippetSuggestions': {
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
798
|
+
type: 'string',
|
|
799
|
+
enum: ['top', 'bottom', 'inline', 'none'],
|
|
800
|
+
enumDescriptions: [
|
|
801
801
|
(0, ide_core_browser_1.localize)('snippetSuggestions.top', 'Show snippet suggestions on top of other suggestions.'),
|
|
802
802
|
(0, ide_core_browser_1.localize)('snippetSuggestions.bottom', 'Show snippet suggestions below other suggestions.'),
|
|
803
803
|
(0, ide_core_browser_1.localize)('snippetSuggestions.inline', 'Show snippets suggestions with other suggestions.'),
|
|
804
804
|
(0, ide_core_browser_1.localize)('snippetSuggestions.none', 'Do not show snippet suggestions.'),
|
|
805
805
|
],
|
|
806
|
-
|
|
807
|
-
|
|
806
|
+
default: 'inline',
|
|
807
|
+
description: (0, ide_core_browser_1.localize)('snippetSuggestions', 'Controls whether snippets are shown with other suggestions and how they are sorted.'),
|
|
808
808
|
},
|
|
809
809
|
'editor.emptySelectionClipboard': {
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
810
|
+
type: 'boolean',
|
|
811
|
+
default: exports.EDITOR_DEFAULTS.emptySelectionClipboard,
|
|
812
|
+
description: (0, ide_core_browser_1.localize)('emptySelectionClipboard', 'Controls whether copying without a selection copies the current line.'),
|
|
813
813
|
},
|
|
814
814
|
'editor.copyWithSyntaxHighlighting': {
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
815
|
+
type: 'boolean',
|
|
816
|
+
default: exports.EDITOR_DEFAULTS.copyWithSyntaxHighlighting,
|
|
817
|
+
description: (0, ide_core_browser_1.localize)('copyWithSyntaxHighlighting', 'Controls whether syntax highlighting should be copied into the clipboard.'),
|
|
818
818
|
},
|
|
819
819
|
'editor.wordBasedSuggestions': {
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
820
|
+
type: 'boolean',
|
|
821
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.wordBasedSuggestions,
|
|
822
|
+
description: (0, ide_core_browser_1.localize)('wordBasedSuggestions', 'Controls whether completions should be computed based on words in the document.'),
|
|
823
823
|
},
|
|
824
824
|
'editor.suggestSelection': {
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
825
|
+
type: 'string',
|
|
826
|
+
enum: ['first', 'recentlyUsed', 'recentlyUsedByPrefix'],
|
|
827
|
+
markdownEnumDescriptions: [
|
|
828
828
|
(0, ide_core_browser_1.localize)('suggestSelection.first', 'Always select the first suggestion.'),
|
|
829
829
|
(0, ide_core_browser_1.localize)('suggestSelection.recentlyUsed', 'Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently.'),
|
|
830
830
|
(0, ide_core_browser_1.localize)('suggestSelection.recentlyUsedByPrefix', 'Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.'),
|
|
831
831
|
],
|
|
832
|
-
|
|
833
|
-
|
|
832
|
+
default: 'recentlyUsed',
|
|
833
|
+
description: (0, ide_core_browser_1.localize)('suggestSelection', 'Controls how suggestions are pre-selected when showing the suggest list.'),
|
|
834
834
|
},
|
|
835
835
|
'editor.suggestFontSize': {
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
836
|
+
type: 'integer',
|
|
837
|
+
default: 0,
|
|
838
|
+
minimum: 0,
|
|
839
|
+
markdownDescription: (0, ide_core_browser_1.localize)('suggestFontSize', 'Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.'),
|
|
840
840
|
},
|
|
841
841
|
'editor.suggestLineHeight': {
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
842
|
+
type: 'integer',
|
|
843
|
+
default: 0,
|
|
844
|
+
minimum: 0,
|
|
845
|
+
markdownDescription: (0, ide_core_browser_1.localize)('suggestLineHeight', 'Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.'),
|
|
846
846
|
},
|
|
847
847
|
'editor.tabCompletion': {
|
|
848
848
|
type: 'string',
|
|
@@ -1004,66 +1004,66 @@ const monacoEditorSchema = {
|
|
|
1004
1004
|
],
|
|
1005
1005
|
},
|
|
1006
1006
|
'editor.selectionHighlight': {
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1007
|
+
type: 'boolean',
|
|
1008
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.selectionHighlight,
|
|
1009
|
+
description: (0, ide_core_browser_1.localize)('selectionHighlight', 'Controls whether the editor should highlight matches similar to the selection.'),
|
|
1010
1010
|
},
|
|
1011
1011
|
'editor.occurrencesHighlight': {
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1012
|
+
type: 'boolean',
|
|
1013
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.occurrencesHighlight,
|
|
1014
|
+
description: (0, ide_core_browser_1.localize)('occurrencesHighlight', 'Controls whether the editor should highlight semantic symbol occurrences.'),
|
|
1015
1015
|
},
|
|
1016
1016
|
'editor.overviewRulerLanes': {
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1017
|
+
type: 'integer',
|
|
1018
|
+
default: 3,
|
|
1019
|
+
description: (0, ide_core_browser_1.localize)('overviewRulerLanes', 'Controls the number of decorations that can show up at the same position in the overview ruler.'),
|
|
1020
1020
|
},
|
|
1021
1021
|
'editor.overviewRulerBorder': {
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1022
|
+
type: 'boolean',
|
|
1023
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.overviewRulerBorder,
|
|
1024
|
+
description: (0, ide_core_browser_1.localize)('overviewRulerBorder', 'Controls whether a border should be drawn around the overview ruler.'),
|
|
1025
1025
|
},
|
|
1026
1026
|
'editor.cursorBlinking': {
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1027
|
+
type: 'string',
|
|
1028
|
+
enum: ['blink', 'smooth', 'phase', 'expand', 'solid'],
|
|
1029
|
+
default: 'blink',
|
|
1030
|
+
description: (0, ide_core_browser_1.localize)('cursorBlinking', 'Control the cursor animation style.'),
|
|
1031
1031
|
},
|
|
1032
1032
|
'editor.mouseWheelZoom': {
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1033
|
+
type: 'boolean',
|
|
1034
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.mouseWheelZoom,
|
|
1035
|
+
markdownDescription: (0, ide_core_browser_1.localize)('mouseWheelZoom', 'Zoom the font of the editor when using mouse wheel and holding `Ctrl`.'),
|
|
1036
1036
|
},
|
|
1037
1037
|
'editor.cursorSmoothCaretAnimation': {
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1038
|
+
type: 'boolean',
|
|
1039
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.cursorSmoothCaretAnimation,
|
|
1040
|
+
description: (0, ide_core_browser_1.localize)('cursorSmoothCaretAnimation', 'Controls whether the smooth caret animation should be enabled.'),
|
|
1041
1041
|
},
|
|
1042
1042
|
'editor.cursorStyle': {
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1043
|
+
type: 'string',
|
|
1044
|
+
enum: ['block', 'block-outline', 'line', 'line-thin', 'underline', 'underline-thin'],
|
|
1045
|
+
default: exports.EDITOR_FONT_DEFAULTS.cursorStyle,
|
|
1046
|
+
description: (0, ide_core_browser_1.localize)('cursorStyle', 'Controls the cursor style.'),
|
|
1047
1047
|
},
|
|
1048
1048
|
'editor.cursorWidth': {
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1049
|
+
type: 'integer',
|
|
1050
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.cursorWidth,
|
|
1051
|
+
markdownDescription: (0, ide_core_browser_1.localize)('cursorWidth', 'Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.'),
|
|
1052
1052
|
},
|
|
1053
1053
|
'editor.fontLigatures': {
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1054
|
+
type: 'boolean',
|
|
1055
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.fontLigatures,
|
|
1056
|
+
description: (0, ide_core_browser_1.localize)('fontLigatures', 'Enables/Disables font ligatures.'),
|
|
1057
1057
|
},
|
|
1058
1058
|
'editor.hideCursorInOverviewRuler': {
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1059
|
+
type: 'boolean',
|
|
1060
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.hideCursorInOverviewRuler,
|
|
1061
|
+
description: (0, ide_core_browser_1.localize)('hideCursorInOverviewRuler', 'Controls whether the cursor should be hidden in the overview ruler.'),
|
|
1062
1062
|
},
|
|
1063
1063
|
'editor.renderWhitespace': {
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1064
|
+
type: 'string',
|
|
1065
|
+
enum: ['none', 'boundary', 'selection', 'all'],
|
|
1066
|
+
enumDescriptions: [
|
|
1067
1067
|
'',
|
|
1068
1068
|
(0, ide_core_browser_1.localize)('renderWhitespace.boundary', 'Render whitespace characters except for single spaces between words.'),
|
|
1069
1069
|
(0, ide_core_browser_1.localize)('renderWhitespace.selection', 'Render whitespace characters only on selected text.'),
|
|
@@ -1078,17 +1078,17 @@ const monacoEditorSchema = {
|
|
|
1078
1078
|
description: 'Enable/disable the ability to preview changes before renaming',
|
|
1079
1079
|
},
|
|
1080
1080
|
'editor.renderControlCharacters': {
|
|
1081
|
-
|
|
1081
|
+
type: 'boolean',
|
|
1082
1082
|
default: exports.EDITOR_DEFAULTS.viewInfo.renderControlCharacters,
|
|
1083
1083
|
description: (0, ide_core_browser_1.localize)('renderControlCharacters', 'Controls whether the editor should render control characters.'),
|
|
1084
1084
|
},
|
|
1085
1085
|
'editor.guides.indentation': {
|
|
1086
|
-
|
|
1086
|
+
type: 'boolean',
|
|
1087
1087
|
default: exports.EDITOR_DEFAULTS.viewInfo.guides.indentation,
|
|
1088
1088
|
description: (0, ide_core_browser_1.localize)('editor.guides.indentation', 'Controls whether the editor should render indent guides.'),
|
|
1089
1089
|
},
|
|
1090
1090
|
'editor.guides.highlightActiveIndentation': {
|
|
1091
|
-
|
|
1091
|
+
type: 'boolean',
|
|
1092
1092
|
default: exports.EDITOR_DEFAULTS.viewInfo.guides.highlightActiveIndentGuide,
|
|
1093
1093
|
description: (0, ide_core_browser_1.localize)('editor.guides.highlightActiveIndentation', 'Controls whether the editor should highlight the active indent guide.'),
|
|
1094
1094
|
},
|
|
@@ -1098,9 +1098,9 @@ const monacoEditorSchema = {
|
|
|
1098
1098
|
description: (0, ide_core_browser_1.localize)('editor.configuration.guides.bracketPairs', 'Controls whether bracket pair guides are enabled or not.'),
|
|
1099
1099
|
},
|
|
1100
1100
|
'editor.renderLineHighlight': {
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1101
|
+
type: 'string',
|
|
1102
|
+
enum: ['none', 'gutter', 'line', 'all'],
|
|
1103
|
+
enumDescriptions: [
|
|
1104
1104
|
'',
|
|
1105
1105
|
'',
|
|
1106
1106
|
'',
|
|
@@ -1110,135 +1110,135 @@ const monacoEditorSchema = {
|
|
|
1110
1110
|
description: (0, ide_core_browser_1.localize)('renderLineHighlight', 'Controls how the editor should render the current line highlight.'),
|
|
1111
1111
|
},
|
|
1112
1112
|
'editor.codeLens': {
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1113
|
+
type: 'boolean',
|
|
1114
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.codeLens,
|
|
1115
|
+
description: (0, ide_core_browser_1.localize)('codeLens', 'Controls whether the editor shows CodeLens.'),
|
|
1116
1116
|
},
|
|
1117
1117
|
'editor.folding': {
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1118
|
+
type: 'boolean',
|
|
1119
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.folding,
|
|
1120
|
+
description: (0, ide_core_browser_1.localize)('folding', 'Controls whether the editor has code folding enabled.'),
|
|
1121
1121
|
},
|
|
1122
1122
|
'editor.foldingStrategy': {
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1123
|
+
type: 'string',
|
|
1124
|
+
enum: ['auto', 'indentation'],
|
|
1125
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.foldingStrategy,
|
|
1126
|
+
markdownDescription: (0, ide_core_browser_1.localize)('foldingStrategy', 'Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.'),
|
|
1127
1127
|
},
|
|
1128
1128
|
'editor.showFoldingControls': {
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1129
|
+
type: 'string',
|
|
1130
|
+
enum: ['always', 'mouseover'],
|
|
1131
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.showFoldingControls,
|
|
1132
|
+
description: (0, ide_core_browser_1.localize)('showFoldingControls', 'Controls whether the fold controls on the gutter are automatically hidden.'),
|
|
1133
1133
|
},
|
|
1134
1134
|
'editor.matchBrackets': {
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1135
|
+
type: 'boolean',
|
|
1136
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.matchBrackets,
|
|
1137
|
+
description: (0, ide_core_browser_1.localize)('matchBrackets', 'Highlight matching brackets when one of them is selected.'),
|
|
1138
1138
|
},
|
|
1139
1139
|
'editor.glyphMargin': {
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1140
|
+
type: 'boolean',
|
|
1141
|
+
default: exports.EDITOR_DEFAULTS.viewInfo.glyphMargin,
|
|
1142
|
+
description: (0, ide_core_browser_1.localize)('glyphMargin', 'Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.'),
|
|
1143
1143
|
},
|
|
1144
1144
|
'editor.useTabStops': {
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1145
|
+
type: 'boolean',
|
|
1146
|
+
default: exports.EDITOR_DEFAULTS.useTabStops,
|
|
1147
|
+
description: (0, ide_core_browser_1.localize)('useTabStops', 'Inserting and deleting whitespace follows tab stops.'),
|
|
1148
1148
|
},
|
|
1149
1149
|
'editor.trimAutoWhitespace': {
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1150
|
+
type: 'boolean',
|
|
1151
|
+
default: exports.EDITOR_MODEL_DEFAULTS.trimAutoWhitespace,
|
|
1152
|
+
description: (0, ide_core_browser_1.localize)('trimAutoWhitespace', 'Remove trailing auto inserted whitespace.'),
|
|
1153
1153
|
},
|
|
1154
1154
|
'editor.stablePeek': {
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1155
|
+
type: 'boolean',
|
|
1156
|
+
default: false,
|
|
1157
|
+
markdownDescription: (0, ide_core_browser_1.localize)('stablePeek', 'Keep peek editors open even when double clicking their content or when hitting `Escape`.'),
|
|
1158
1158
|
},
|
|
1159
1159
|
'editor.dragAndDrop': {
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1160
|
+
type: 'boolean',
|
|
1161
|
+
default: exports.EDITOR_DEFAULTS.dragAndDrop,
|
|
1162
|
+
description: (0, ide_core_browser_1.localize)('dragAndDrop', 'Controls whether the editor should allow moving selections via drag and drop.'),
|
|
1163
1163
|
},
|
|
1164
1164
|
'editor.accessibilitySupport': {
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1165
|
+
type: 'string',
|
|
1166
|
+
enum: ['auto', 'on', 'off'],
|
|
1167
|
+
enumDescriptions: [
|
|
1168
1168
|
(0, ide_core_browser_1.localize)('accessibilitySupport.auto', 'The editor will use platform APIs to detect when a Screen Reader is attached.'),
|
|
1169
1169
|
(0, ide_core_browser_1.localize)('accessibilitySupport.on', 'The editor will be permanently optimized for usage with a Screen Reader.'),
|
|
1170
1170
|
(0, ide_core_browser_1.localize)('accessibilitySupport.off', 'The editor will never be optimized for usage with a Screen Reader.'),
|
|
1171
1171
|
],
|
|
1172
|
-
|
|
1173
|
-
|
|
1172
|
+
default: exports.EDITOR_DEFAULTS.accessibilitySupport,
|
|
1173
|
+
description: (0, ide_core_browser_1.localize)('accessibilitySupport', 'Controls whether the editor should run in a mode where it is optimized for screen readers.'),
|
|
1174
1174
|
},
|
|
1175
1175
|
'editor.showUnused': {
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1176
|
+
type: 'boolean',
|
|
1177
|
+
default: exports.EDITOR_DEFAULTS.showUnused,
|
|
1178
|
+
description: (0, ide_core_browser_1.localize)('showUnused', 'Controls fading out of unused code.'),
|
|
1179
1179
|
},
|
|
1180
1180
|
'editor.links': {
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1181
|
+
type: 'boolean',
|
|
1182
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.links,
|
|
1183
|
+
description: (0, ide_core_browser_1.localize)('links', 'Controls whether the editor should detect links and make them clickable.'),
|
|
1184
1184
|
},
|
|
1185
1185
|
'editor.colorDecorators': {
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1186
|
+
type: 'boolean',
|
|
1187
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.colorDecorators,
|
|
1188
|
+
description: (0, ide_core_browser_1.localize)('colorDecorators', 'Controls whether the editor should render the inline color decorators and color picker.'),
|
|
1189
1189
|
},
|
|
1190
1190
|
'editor.lightbulb.enabled': {
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1191
|
+
type: 'boolean',
|
|
1192
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.lightbulbEnabled,
|
|
1193
|
+
description: (0, ide_core_browser_1.localize)('codeActions', 'Enables the code action lightbulb in the editor.'),
|
|
1194
1194
|
},
|
|
1195
1195
|
'editor.maxTokenizationLineLength': {
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1196
|
+
type: 'integer',
|
|
1197
|
+
default: 20000,
|
|
1198
|
+
description: (0, ide_core_browser_1.localize)('maxTokenizationLineLength', 'Lines above this length will not be tokenized for performance reasons'),
|
|
1199
1199
|
},
|
|
1200
1200
|
'editor.codeActionsOnSave': {
|
|
1201
|
-
|
|
1202
|
-
|
|
1201
|
+
type: 'object',
|
|
1202
|
+
properties: {
|
|
1203
1203
|
'source.organizeImports': {
|
|
1204
|
-
|
|
1205
|
-
|
|
1204
|
+
type: 'boolean',
|
|
1205
|
+
description: (0, ide_core_browser_1.localize)('codeActionsOnSave.organizeImports', 'Controls whether organize imports action should be run on file save.'),
|
|
1206
1206
|
},
|
|
1207
1207
|
'source.fixAll': {
|
|
1208
|
-
|
|
1209
|
-
|
|
1208
|
+
type: 'boolean',
|
|
1209
|
+
description: (0, ide_core_browser_1.localize)('codeActionsOnSave.fixAll', 'Controls whether auto fix action should be run on file save.'),
|
|
1210
1210
|
},
|
|
1211
1211
|
},
|
|
1212
|
-
|
|
1213
|
-
|
|
1212
|
+
additionalProperties: {
|
|
1213
|
+
type: 'boolean',
|
|
1214
1214
|
},
|
|
1215
|
-
|
|
1216
|
-
|
|
1215
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.codeActionsOnSave,
|
|
1216
|
+
description: (0, ide_core_browser_1.localize)('codeActionsOnSave', 'Code action kinds to be run on save.'),
|
|
1217
1217
|
},
|
|
1218
1218
|
'editor.codeActionsOnSaveTimeout': {
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1219
|
+
type: 'number',
|
|
1220
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.codeActionsOnSaveTimeout,
|
|
1221
|
+
description: (0, ide_core_browser_1.localize)('codeActionsOnSaveTimeout', 'Timeout in milliseconds after which the code actions that are run on save are cancelled.'),
|
|
1222
1222
|
},
|
|
1223
1223
|
'editor.selectionClipboard': {
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1224
|
+
type: 'boolean',
|
|
1225
|
+
default: exports.EDITOR_DEFAULTS.contribInfo.selectionClipboard,
|
|
1226
|
+
description: (0, ide_core_browser_1.localize)('selectionClipboard', 'Controls whether the Linux primary clipboard should be supported.'),
|
|
1227
|
+
included: ide_core_browser_1.isLinux,
|
|
1228
1228
|
},
|
|
1229
1229
|
'editor.largeFileOptimizations': {
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1230
|
+
type: 'boolean',
|
|
1231
|
+
default: exports.EDITOR_MODEL_DEFAULTS.largeFileOptimizations,
|
|
1232
|
+
description: (0, ide_core_browser_1.localize)('largeFileOptimizations', 'Special handling for large files to disable certain memory intensive features.'),
|
|
1233
1233
|
},
|
|
1234
1234
|
'diffEditor.renderIndicators': {
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1235
|
+
type: 'boolean',
|
|
1236
|
+
default: true,
|
|
1237
|
+
description: (0, ide_core_browser_1.localize)('renderIndicators', 'Controls whether the diff editor shows +/- indicators for added/removed changes.'),
|
|
1238
1238
|
},
|
|
1239
1239
|
'editor.defaultFormatter': {
|
|
1240
|
-
|
|
1241
|
-
|
|
1240
|
+
type: 'string',
|
|
1241
|
+
description: (0, ide_core_browser_1.localize)('defaultFormatter', 'Default code formatter'),
|
|
1242
1242
|
},
|
|
1243
1243
|
};
|
|
1244
1244
|
const customEditorSchema = {
|
|
@@ -1259,12 +1259,7 @@ const customEditorSchema = {
|
|
|
1259
1259
|
},
|
|
1260
1260
|
'editor.autoSave': {
|
|
1261
1261
|
type: 'string',
|
|
1262
|
-
enum: [
|
|
1263
|
-
'off',
|
|
1264
|
-
'afterDelay',
|
|
1265
|
-
'editorFocusChange',
|
|
1266
|
-
'windowLostFocus',
|
|
1267
|
-
],
|
|
1262
|
+
enum: ['off', 'afterDelay', 'editorFocusChange', 'windowLostFocus'],
|
|
1268
1263
|
default: 'off',
|
|
1269
1264
|
description: '%editor.configuration.autoSave%',
|
|
1270
1265
|
},
|
|
@@ -1315,12 +1310,7 @@ const customEditorSchema = {
|
|
|
1315
1310
|
},
|
|
1316
1311
|
'editor.renderLineHighlight': {
|
|
1317
1312
|
type: 'string',
|
|
1318
|
-
enum: [
|
|
1319
|
-
'none',
|
|
1320
|
-
'gutter',
|
|
1321
|
-
'line',
|
|
1322
|
-
'all',
|
|
1323
|
-
],
|
|
1313
|
+
enum: ['none', 'gutter', 'line', 'all'],
|
|
1324
1314
|
default: 'all',
|
|
1325
1315
|
description: '%editor.configuration.renderLineHighlight%',
|
|
1326
1316
|
},
|
|
@@ -1356,14 +1346,7 @@ const customEditorSchema = {
|
|
|
1356
1346
|
},
|
|
1357
1347
|
'editor.cursorStyle': {
|
|
1358
1348
|
type: 'string',
|
|
1359
|
-
enum: [
|
|
1360
|
-
'line',
|
|
1361
|
-
'block',
|
|
1362
|
-
'block-outline',
|
|
1363
|
-
'line-thin',
|
|
1364
|
-
'underline',
|
|
1365
|
-
'underline-thin',
|
|
1366
|
-
],
|
|
1349
|
+
enum: ['line', 'block', 'block-outline', 'line-thin', 'underline', 'underline-thin'],
|
|
1367
1350
|
default: exports.EDITOR_FONT_DEFAULTS.cursorStyle,
|
|
1368
1351
|
},
|
|
1369
1352
|
'editor.insertSpaces': {
|
|
@@ -1372,10 +1355,7 @@ const customEditorSchema = {
|
|
|
1372
1355
|
},
|
|
1373
1356
|
'editor.wordWrap': {
|
|
1374
1357
|
type: 'string',
|
|
1375
|
-
enum: [
|
|
1376
|
-
'off',
|
|
1377
|
-
'on',
|
|
1378
|
-
],
|
|
1358
|
+
enum: ['off', 'on'],
|
|
1379
1359
|
default: exports.EDITOR_FONT_DEFAULTS.wordWrap,
|
|
1380
1360
|
},
|
|
1381
1361
|
'editor.wordWrapColumn': {
|
|
@@ -1415,7 +1395,7 @@ const customEditorSchema = {
|
|
|
1415
1395
|
enumDescriptions: [
|
|
1416
1396
|
(0, ide_core_browser_1.localize)('semanticHighlighting.true', 'Semantic highlighting enabled for all color themes.'),
|
|
1417
1397
|
(0, ide_core_browser_1.localize)('semanticHighlighting.false', 'Semantic highlighting disabled for all color themes.'),
|
|
1418
|
-
(0, ide_core_browser_1.localize)('semanticHighlighting.configuredByTheme',
|
|
1398
|
+
(0, ide_core_browser_1.localize)('semanticHighlighting.configuredByTheme', "Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting."),
|
|
1419
1399
|
],
|
|
1420
1400
|
default: true,
|
|
1421
1401
|
description: (0, ide_core_browser_1.localize)('semanticHighlighting.enabled', 'Controls whether the semanticHighlighting is shown for the languages that support it.'),
|
|
@@ -1440,18 +1420,18 @@ const customEditorSchema = {
|
|
|
1440
1420
|
default: 3000,
|
|
1441
1421
|
},
|
|
1442
1422
|
'diffEditor.renderSideBySide': {
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1423
|
+
type: 'boolean',
|
|
1424
|
+
default: true,
|
|
1425
|
+
description: '%diffEditor.configuration.renderSideBySide%',
|
|
1446
1426
|
},
|
|
1447
1427
|
'diffEditor.ignoreTrimWhitespace': {
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1428
|
+
type: 'boolean',
|
|
1429
|
+
default: false,
|
|
1430
|
+
description: '%diffEditor.configuration.ignoreTrimWhitespace%',
|
|
1451
1431
|
},
|
|
1452
1432
|
};
|
|
1453
1433
|
exports.editorPreferenceSchema = {
|
|
1454
|
-
|
|
1434
|
+
type: 'object',
|
|
1455
1435
|
properties: Object.assign(Object.assign({}, monacoEditorSchema), customEditorSchema),
|
|
1456
1436
|
};
|
|
1457
1437
|
exports.EditorPreferences = Symbol('EditorPreference');
|