@theia/editor 1.32.0-next.8 → 1.32.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.
- package/lib/browser/decorations/editor-decoration.d.ts +1 -1
- package/lib/browser/decorations/editor-decoration.d.ts.map +1 -1
- package/lib/browser/editor-generated-preference-schema.d.ts +16 -6
- package/lib/browser/editor-generated-preference-schema.d.ts.map +1 -1
- package/lib/browser/editor-generated-preference-schema.js +176 -102
- package/lib/browser/editor-generated-preference-schema.js.map +1 -1
- package/lib/browser/editor.d.ts +1 -1
- package/lib/browser/editor.d.ts.map +1 -1
- package/lib/browser/editor.js.map +1 -1
- package/package.json +5 -5
- package/src/browser/decorations/editor-decoration.ts +1 -1
- package/src/browser/editor-generated-preference-schema.ts +192 -108
- package/src/browser/editor.ts +2 -4
|
@@ -26,13 +26,6 @@ import { PreferenceSchema } from '@theia/core/lib/browser';
|
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
export const editorGeneratedPreferenceProperties: PreferenceSchema['properties'] = {
|
|
29
|
-
"editor.rename.enablePreview": {
|
|
30
|
-
"scope": "language-overridable",
|
|
31
|
-
"description": nls.localizeByDefault("Enable/disable the ability to preview changes before renaming"),
|
|
32
|
-
"default": true,
|
|
33
|
-
"type": "boolean",
|
|
34
|
-
"restricted": false
|
|
35
|
-
},
|
|
36
29
|
"editor.tabSize": {
|
|
37
30
|
"type": "number",
|
|
38
31
|
"default": 4,
|
|
@@ -88,7 +81,7 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
|
|
|
88
81
|
nls.localizeByDefault("Suggest words from all open documents of the same language."),
|
|
89
82
|
nls.localizeByDefault("Suggest words from all open documents.")
|
|
90
83
|
],
|
|
91
|
-
"description": nls.
|
|
84
|
+
"description": nls.localizeByDefault("Controls from which documents word based completions are computed."),
|
|
92
85
|
"scope": "language-overridable",
|
|
93
86
|
"restricted": false
|
|
94
87
|
},
|
|
@@ -189,6 +182,13 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
|
|
|
189
182
|
"scope": "language-overridable",
|
|
190
183
|
"restricted": false
|
|
191
184
|
},
|
|
185
|
+
"diffEditor.renderMarginRevertIcon": {
|
|
186
|
+
"type": "boolean",
|
|
187
|
+
"default": true,
|
|
188
|
+
"description": nls.localize("theia/editor/diffEditor.renderMarginRevertIcon", "When enabled, the diff editor shows arrows in its glyph margin to revert changes."),
|
|
189
|
+
"scope": "language-overridable",
|
|
190
|
+
"restricted": false
|
|
191
|
+
},
|
|
192
192
|
"diffEditor.ignoreTrimWhitespace": {
|
|
193
193
|
"type": "boolean",
|
|
194
194
|
"default": true,
|
|
@@ -226,6 +226,20 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
|
|
|
226
226
|
"scope": "language-overridable",
|
|
227
227
|
"restricted": false
|
|
228
228
|
},
|
|
229
|
+
"diffEditor.diffAlgorithm": {
|
|
230
|
+
"type": "string",
|
|
231
|
+
"enum": [
|
|
232
|
+
"smart",
|
|
233
|
+
"experimental"
|
|
234
|
+
],
|
|
235
|
+
"default": "smart",
|
|
236
|
+
"markdownEnumDescriptions": [
|
|
237
|
+
nls.localize("theia/editor/diffEditor.diffAlgorithm.smart", "Uses the default diffing algorithm."),
|
|
238
|
+
nls.localize("theia/editor/diffEditor.diffAlgorithm.experimental", "Uses an experimental diffing algorithm.")
|
|
239
|
+
],
|
|
240
|
+
"scope": "language-overridable",
|
|
241
|
+
"restricted": false
|
|
242
|
+
},
|
|
229
243
|
"editor.acceptSuggestionOnCommitCharacter": {
|
|
230
244
|
"markdownDescription": nls.localizeByDefault("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."),
|
|
231
245
|
"type": "boolean",
|
|
@@ -298,10 +312,10 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
|
|
|
298
312
|
"editor.autoClosingDelete": {
|
|
299
313
|
"enumDescriptions": [
|
|
300
314
|
"",
|
|
301
|
-
nls.
|
|
315
|
+
nls.localizeByDefault("Remove adjacent closing quotes or brackets only if they were automatically inserted."),
|
|
302
316
|
""
|
|
303
317
|
],
|
|
304
|
-
"description": nls.
|
|
318
|
+
"description": nls.localizeByDefault("Controls whether the editor should remove adjacent closing quotes or brackets when deleting."),
|
|
305
319
|
"type": "string",
|
|
306
320
|
"enum": [
|
|
307
321
|
"always",
|
|
@@ -610,6 +624,13 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
|
|
|
610
624
|
"scope": "language-overridable",
|
|
611
625
|
"restricted": false
|
|
612
626
|
},
|
|
627
|
+
"editor.dropIntoEditor.enabled": {
|
|
628
|
+
"type": "boolean",
|
|
629
|
+
"default": true,
|
|
630
|
+
"markdownDescription": nls.localize("theia/editor/editor.dropIntoEditor.enabled", "Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor)."),
|
|
631
|
+
"scope": "language-overridable",
|
|
632
|
+
"restricted": false
|
|
633
|
+
},
|
|
613
634
|
"editor.emptySelectionClipboard": {
|
|
614
635
|
"description": nls.localizeByDefault("Controls whether copying without a selection copies the current line."),
|
|
615
636
|
"type": "boolean",
|
|
@@ -657,20 +678,14 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
|
|
|
657
678
|
],
|
|
658
679
|
"default": "never",
|
|
659
680
|
"enumDescriptions": [
|
|
660
|
-
nls.
|
|
661
|
-
nls.
|
|
662
|
-
nls.localizeByDefault('Turn on Find in selection automatically when multiple lines of content are selected.')
|
|
681
|
+
nls.localizeByDefault('Never turn on Find in selection automatically (default).'),
|
|
682
|
+
nls.localizeByDefault('Always turn on Find in selection automatically.'),
|
|
683
|
+
nls.localizeByDefault('Turn on Find in selection automatically when multiple lines of content are selected.'),
|
|
663
684
|
],
|
|
664
|
-
"description": nls.localizeByDefault(
|
|
685
|
+
"description": nls.localizeByDefault("Controls the condition for turning on find in selection automatically."),
|
|
665
686
|
"scope": "language-overridable",
|
|
666
687
|
"restricted": false
|
|
667
688
|
},
|
|
668
|
-
"editor.find.globalFindClipboard": {
|
|
669
|
-
"type": "boolean",
|
|
670
|
-
"default": false,
|
|
671
|
-
"description": nls.localizeByDefault("Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),
|
|
672
|
-
"included": isOSX
|
|
673
|
-
},
|
|
674
689
|
"editor.find.addExtraSpaceOnTop": {
|
|
675
690
|
"type": "boolean",
|
|
676
691
|
"default": true,
|
|
@@ -825,7 +840,6 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
|
|
|
825
840
|
},
|
|
826
841
|
"editor.gotoLocation.multiple": {
|
|
827
842
|
"deprecationMessage": "This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.",
|
|
828
|
-
"type": ["string", "null"],
|
|
829
843
|
"default": null,
|
|
830
844
|
"scope": "language-overridable",
|
|
831
845
|
"restricted": false
|
|
@@ -1137,6 +1151,13 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
|
|
|
1137
1151
|
"scope": "language-overridable",
|
|
1138
1152
|
"restricted": false
|
|
1139
1153
|
},
|
|
1154
|
+
"editor.minimap.autohide": {
|
|
1155
|
+
"type": "boolean",
|
|
1156
|
+
"default": false,
|
|
1157
|
+
"description": nls.localize("theia/editor/editor.minimap.autohide", "Controls whether the minimap is hidden automatically."),
|
|
1158
|
+
"scope": "language-overridable",
|
|
1159
|
+
"restricted": false
|
|
1160
|
+
},
|
|
1140
1161
|
"editor.minimap.size": {
|
|
1141
1162
|
"type": "string",
|
|
1142
1163
|
"enum": [
|
|
@@ -1230,7 +1251,7 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
|
|
|
1230
1251
|
nls.localizeByDefault("Maps to `Control` on Windows and Linux and to `Command` on macOS."),
|
|
1231
1252
|
nls.localizeByDefault("Maps to `Alt` on Windows and Linux and to `Option` on macOS.")
|
|
1232
1253
|
],
|
|
1233
|
-
"markdownDescription": nls.
|
|
1254
|
+
"markdownDescription": nls.localize("theia/editor/editor.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](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier)."),
|
|
1234
1255
|
"type": "string",
|
|
1235
1256
|
"enum": [
|
|
1236
1257
|
"ctrlCmd",
|
|
@@ -1324,88 +1345,82 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
|
|
|
1324
1345
|
"restricted": false
|
|
1325
1346
|
},
|
|
1326
1347
|
"editor.quickSuggestions": {
|
|
1327
|
-
"
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
"enum": [
|
|
1342
|
-
"on",
|
|
1343
|
-
"inline",
|
|
1344
|
-
"off"
|
|
1345
|
-
],
|
|
1346
|
-
"enumDescriptions": [
|
|
1347
|
-
nls.localize("theia/editor/editor.quickSuggestions0", "Quick suggestions show inside the suggest widget"),
|
|
1348
|
-
nls.localize("theia/editor/editor.quickSuggestions1", "Quick suggestions show as ghost text"),
|
|
1349
|
-
nls.localize("theia/editor/editor.quickSuggestions2", "Quick suggestions are disabled")
|
|
1350
|
-
]
|
|
1351
|
-
}
|
|
1348
|
+
"type": "object",
|
|
1349
|
+
"additionalProperties": false,
|
|
1350
|
+
"properties": {
|
|
1351
|
+
"strings": {
|
|
1352
|
+
"anyOf": [
|
|
1353
|
+
{
|
|
1354
|
+
"type": "boolean"
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
"type": "string",
|
|
1358
|
+
"enum": [
|
|
1359
|
+
"on",
|
|
1360
|
+
"inline",
|
|
1361
|
+
"off"
|
|
1352
1362
|
],
|
|
1353
|
-
"
|
|
1354
|
-
|
|
1363
|
+
"enumDescriptions": [
|
|
1364
|
+
nls.localize("theia/editor/editor.quickSuggestions0", "Quick suggestions show inside the suggest widget"),
|
|
1365
|
+
nls.localize("theia/editor/editor.quickSuggestions1", "Quick suggestions show as ghost text"),
|
|
1366
|
+
nls.localize("theia/editor/editor.quickSuggestions2", "Quick suggestions are disabled")
|
|
1367
|
+
]
|
|
1368
|
+
}
|
|
1369
|
+
],
|
|
1370
|
+
"default": "off",
|
|
1371
|
+
"description": nls.localizeByDefault("Enable quick suggestions inside strings.")
|
|
1372
|
+
},
|
|
1373
|
+
"comments": {
|
|
1374
|
+
"anyOf": [
|
|
1375
|
+
{
|
|
1376
|
+
"type": "boolean"
|
|
1355
1377
|
},
|
|
1356
|
-
|
|
1357
|
-
"
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
"type": "string",
|
|
1363
|
-
"enum": [
|
|
1364
|
-
"on",
|
|
1365
|
-
"inline",
|
|
1366
|
-
"off"
|
|
1367
|
-
],
|
|
1368
|
-
"enumDescriptions": [
|
|
1369
|
-
nls.localize("theia/editor/editor.quickSuggestions0", "Quick suggestions show inside the suggest widget"),
|
|
1370
|
-
nls.localize("theia/editor/editor.quickSuggestions1", "Quick suggestions show as ghost text"),
|
|
1371
|
-
nls.localize("theia/editor/editor.quickSuggestions2", "Quick suggestions are disabled")
|
|
1372
|
-
]
|
|
1373
|
-
}
|
|
1378
|
+
{
|
|
1379
|
+
"type": "string",
|
|
1380
|
+
"enum": [
|
|
1381
|
+
"on",
|
|
1382
|
+
"inline",
|
|
1383
|
+
"off"
|
|
1374
1384
|
],
|
|
1375
|
-
"
|
|
1376
|
-
|
|
1385
|
+
"enumDescriptions": [
|
|
1386
|
+
nls.localize("theia/editor/editor.quickSuggestions0", "Quick suggestions show inside the suggest widget"),
|
|
1387
|
+
nls.localize("theia/editor/editor.quickSuggestions1", "Quick suggestions show as ghost text"),
|
|
1388
|
+
nls.localize("theia/editor/editor.quickSuggestions2", "Quick suggestions are disabled")
|
|
1389
|
+
]
|
|
1390
|
+
}
|
|
1391
|
+
],
|
|
1392
|
+
"default": "off",
|
|
1393
|
+
"description": nls.localizeByDefault("Enable quick suggestions inside comments.")
|
|
1394
|
+
},
|
|
1395
|
+
"other": {
|
|
1396
|
+
"anyOf": [
|
|
1397
|
+
{
|
|
1398
|
+
"type": "boolean"
|
|
1377
1399
|
},
|
|
1378
|
-
|
|
1379
|
-
"
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
"type": "string",
|
|
1385
|
-
"enum": [
|
|
1386
|
-
"on",
|
|
1387
|
-
"inline",
|
|
1388
|
-
"off"
|
|
1389
|
-
],
|
|
1390
|
-
"enumDescriptions": [
|
|
1391
|
-
nls.localize("theia/editor/editor.quickSuggestions0", "Quick suggestions show inside the suggest widget"),
|
|
1392
|
-
nls.localize("theia/editor/editor.quickSuggestions1", "Quick suggestions show as ghost text"),
|
|
1393
|
-
nls.localize("theia/editor/editor.quickSuggestions2", "Quick suggestions are disabled")
|
|
1394
|
-
]
|
|
1395
|
-
}
|
|
1400
|
+
{
|
|
1401
|
+
"type": "string",
|
|
1402
|
+
"enum": [
|
|
1403
|
+
"on",
|
|
1404
|
+
"inline",
|
|
1405
|
+
"off"
|
|
1396
1406
|
],
|
|
1397
|
-
"
|
|
1398
|
-
|
|
1407
|
+
"enumDescriptions": [
|
|
1408
|
+
nls.localize("theia/editor/editor.quickSuggestions0", "Quick suggestions show inside the suggest widget"),
|
|
1409
|
+
nls.localize("theia/editor/editor.quickSuggestions1", "Quick suggestions show as ghost text"),
|
|
1410
|
+
nls.localize("theia/editor/editor.quickSuggestions2", "Quick suggestions are disabled")
|
|
1411
|
+
]
|
|
1399
1412
|
}
|
|
1400
|
-
|
|
1413
|
+
],
|
|
1414
|
+
"default": "on",
|
|
1415
|
+
"description": nls.localizeByDefault("Enable quick suggestions outside of strings and comments.")
|
|
1401
1416
|
}
|
|
1402
|
-
|
|
1417
|
+
},
|
|
1403
1418
|
"default": {
|
|
1404
1419
|
"other": "on",
|
|
1405
1420
|
"comments": "off",
|
|
1406
1421
|
"strings": "off"
|
|
1407
1422
|
},
|
|
1408
|
-
"markdownDescription": nls.
|
|
1423
|
+
"markdownDescription": nls.localize("theia/editor/editor.quickSuggestions", "Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '#editor.suggestOnTriggerCharacters#'-setting which controls if suggestions are triggered by special characters."),
|
|
1409
1424
|
"scope": "language-overridable",
|
|
1410
1425
|
"restricted": false
|
|
1411
1426
|
},
|
|
@@ -1461,7 +1476,7 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
|
|
|
1461
1476
|
"restricted": false
|
|
1462
1477
|
},
|
|
1463
1478
|
"editor.renderLineHighlightOnlyWhenFocus": {
|
|
1464
|
-
"description": nls.
|
|
1479
|
+
"description": nls.localizeByDefault("Controls if the editor should render the current line highlight only when the editor is focused."),
|
|
1465
1480
|
"type": "boolean",
|
|
1466
1481
|
"default": false,
|
|
1467
1482
|
"scope": "language-overridable",
|
|
@@ -1472,7 +1487,7 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
|
|
|
1472
1487
|
"",
|
|
1473
1488
|
nls.localizeByDefault("Render whitespace characters except for single spaces between words."),
|
|
1474
1489
|
nls.localizeByDefault("Render whitespace characters only on selected text."),
|
|
1475
|
-
nls.
|
|
1490
|
+
nls.localizeByDefault("Render only trailing whitespace characters."),
|
|
1476
1491
|
""
|
|
1477
1492
|
],
|
|
1478
1493
|
"description": nls.localizeByDefault("Controls how the editor should render whitespace characters."),
|
|
@@ -1584,7 +1599,7 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
|
|
|
1584
1599
|
"editor.scrollBeyondLastColumn": {
|
|
1585
1600
|
"description": nls.localizeByDefault("Controls the number of extra characters beyond which the editor will scroll horizontally."),
|
|
1586
1601
|
"type": "integer",
|
|
1587
|
-
"default":
|
|
1602
|
+
"default": 4,
|
|
1588
1603
|
"minimum": 0,
|
|
1589
1604
|
"maximum": 1073741824,
|
|
1590
1605
|
"scope": "language-overridable",
|
|
@@ -1604,6 +1619,12 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
|
|
|
1604
1619
|
"scope": "language-overridable",
|
|
1605
1620
|
"restricted": false
|
|
1606
1621
|
},
|
|
1622
|
+
"editor.selectionClipboard": {
|
|
1623
|
+
"type": "boolean",
|
|
1624
|
+
"default": true,
|
|
1625
|
+
"description": nls.localizeByDefault("Controls whether the Linux primary clipboard should be supported."),
|
|
1626
|
+
"included": !isOSX && !isWindows
|
|
1627
|
+
},
|
|
1607
1628
|
"editor.selectionHighlight": {
|
|
1608
1629
|
"description": nls.localizeByDefault("Controls whether the editor should highlight matches similar to the selection."),
|
|
1609
1630
|
"type": "boolean",
|
|
@@ -1614,12 +1635,14 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
|
|
|
1614
1635
|
"editor.showFoldingControls": {
|
|
1615
1636
|
"enumDescriptions": [
|
|
1616
1637
|
nls.localizeByDefault("Always show the folding controls."),
|
|
1638
|
+
nls.localize("theia/editor/editor.showFoldingControls1", "Never show the folding controls and reduce the gutter size."),
|
|
1617
1639
|
nls.localizeByDefault("Only show the folding controls when the mouse is over the gutter.")
|
|
1618
1640
|
],
|
|
1619
1641
|
"description": nls.localizeByDefault("Controls when the folding controls on the gutter are shown."),
|
|
1620
1642
|
"type": "string",
|
|
1621
1643
|
"enum": [
|
|
1622
1644
|
"always",
|
|
1645
|
+
"never",
|
|
1623
1646
|
"mouseover"
|
|
1624
1647
|
],
|
|
1625
1648
|
"default": "mouseover",
|
|
@@ -1666,8 +1689,24 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
|
|
|
1666
1689
|
"scope": "language-overridable",
|
|
1667
1690
|
"restricted": false
|
|
1668
1691
|
},
|
|
1692
|
+
"editor.stickyScroll.enabled": {
|
|
1693
|
+
"type": "boolean",
|
|
1694
|
+
"default": false,
|
|
1695
|
+
"description": nls.localize("theia/editor/editor.stickyScroll.enabled", "Shows the nested current scopes during the scroll at the top of the editor."),
|
|
1696
|
+
"scope": "language-overridable",
|
|
1697
|
+
"restricted": false
|
|
1698
|
+
},
|
|
1699
|
+
"editor.stickyScroll.maxLineCount": {
|
|
1700
|
+
"type": "number",
|
|
1701
|
+
"default": 5,
|
|
1702
|
+
"minimum": 1,
|
|
1703
|
+
"maximum": 10,
|
|
1704
|
+
"description": nls.localize("theia/editor/editor.stickyScroll.maxLineCount", "Defines the maximum number of sticky lines to show."),
|
|
1705
|
+
"scope": "language-overridable",
|
|
1706
|
+
"restricted": false
|
|
1707
|
+
},
|
|
1669
1708
|
"editor.stickyTabStops": {
|
|
1670
|
-
"description": nls.
|
|
1709
|
+
"description": nls.localizeByDefault("Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops."),
|
|
1671
1710
|
"type": "boolean",
|
|
1672
1711
|
"default": false,
|
|
1673
1712
|
"scope": "language-overridable",
|
|
@@ -1698,7 +1737,7 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
|
|
|
1698
1737
|
"editor.suggest.localityBonus": {
|
|
1699
1738
|
"type": "boolean",
|
|
1700
1739
|
"default": false,
|
|
1701
|
-
"description": nls.
|
|
1740
|
+
"description": nls.localizeByDefault("Controls whether sorting favors words that appear close to the cursor."),
|
|
1702
1741
|
"scope": "language-overridable",
|
|
1703
1742
|
"restricted": false
|
|
1704
1743
|
},
|
|
@@ -1786,6 +1825,13 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
|
|
|
1786
1825
|
"scope": "language-overridable",
|
|
1787
1826
|
"restricted": false
|
|
1788
1827
|
},
|
|
1828
|
+
"editor.suggest.matchOnWordStartOnly": {
|
|
1829
|
+
"type": "boolean",
|
|
1830
|
+
"default": true,
|
|
1831
|
+
"markdownDescription": nls.localize("theia/editor/editor.suggest.matchOnWordStartOnly", "When enabled IntelliSense filtering requires that the first character matches on a word start, e.g `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality."),
|
|
1832
|
+
"scope": "language-overridable",
|
|
1833
|
+
"restricted": false
|
|
1834
|
+
},
|
|
1789
1835
|
"editor.suggest.showFields": {
|
|
1790
1836
|
"type": "boolean",
|
|
1791
1837
|
"default": true,
|
|
@@ -2214,8 +2260,8 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
|
|
|
2214
2260
|
],
|
|
2215
2261
|
"markdownEnumDescriptions": [
|
|
2216
2262
|
nls.localize("theia/editor/editor.inlayHints.enabled0", "Inlay hints are enabled"),
|
|
2217
|
-
nls.localize("theia/editor/editor.inlayHints.enabled1", "Inlay hints are showing by default and hide when holding
|
|
2218
|
-
nls.localize("theia/editor/editor.inlayHints.enabled2", "Inlay hints are hidden by default and show when holding
|
|
2263
|
+
nls.localize("theia/editor/editor.inlayHints.enabled1", "Inlay hints are showing by default and hide when holding Ctrl+Alt"),
|
|
2264
|
+
nls.localize("theia/editor/editor.inlayHints.enabled2", "Inlay hints are hidden by default and show when holding Ctrl+Alt"),
|
|
2219
2265
|
nls.localize("theia/editor/editor.inlayHints.enabled3", "Inlay hints are disabled")
|
|
2220
2266
|
],
|
|
2221
2267
|
"scope": "language-overridable",
|
|
@@ -2235,18 +2281,45 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
|
|
|
2235
2281
|
"scope": "language-overridable",
|
|
2236
2282
|
"restricted": false
|
|
2237
2283
|
},
|
|
2238
|
-
"editor.
|
|
2284
|
+
"editor.inlayHints.padding": {
|
|
2239
2285
|
"type": "boolean",
|
|
2286
|
+
"default": false,
|
|
2287
|
+
"description": nls.localize("theia/editor/editor.inlayHints.padding", "Enables the padding around the inlay hints in the editor."),
|
|
2288
|
+
"scope": "language-overridable",
|
|
2289
|
+
"restricted": false
|
|
2290
|
+
},
|
|
2291
|
+
"editor.codeActionWidget.showHeaders": {
|
|
2292
|
+
"type": "boolean",
|
|
2293
|
+
"description": nls.localize("theia/editor/editor.codeActionWidget.showHeaders", "Enable/disable showing group headers in the code action menu."),
|
|
2240
2294
|
"default": true,
|
|
2241
|
-
"
|
|
2242
|
-
"
|
|
2295
|
+
"scope": "language-overridable",
|
|
2296
|
+
"restricted": false
|
|
2297
|
+
},
|
|
2298
|
+
"editor.experimental.pasteActions.enabled": {
|
|
2299
|
+
"type": "boolean",
|
|
2300
|
+
"description": nls.localize("theia/editor/editor.experimental.pasteActions.enabled", "Enable/disable running edits from extensions on paste."),
|
|
2301
|
+
"default": false,
|
|
2302
|
+
"scope": "language-overridable",
|
|
2303
|
+
"restricted": false
|
|
2304
|
+
},
|
|
2305
|
+
"editor.rename.enablePreview": {
|
|
2306
|
+
"description": nls.localizeByDefault("Enable/disable the ability to preview changes before renaming"),
|
|
2307
|
+
"default": true,
|
|
2308
|
+
"type": "boolean",
|
|
2309
|
+
"scope": "language-overridable",
|
|
2310
|
+
"restricted": false
|
|
2311
|
+
},
|
|
2312
|
+
"editor.find.globalFindClipboard": {
|
|
2313
|
+
"type": "boolean",
|
|
2314
|
+
"default": false,
|
|
2315
|
+
"description": nls.localizeByDefault("Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),
|
|
2316
|
+
"included": isOSX
|
|
2243
2317
|
}
|
|
2244
2318
|
};
|
|
2245
2319
|
|
|
2246
2320
|
type QuickSuggestionValues = boolean | 'on' | 'inline' | 'off';
|
|
2247
2321
|
|
|
2248
2322
|
export interface GeneratedEditorPreferences {
|
|
2249
|
-
'editor.rename.enablePreview': boolean;
|
|
2250
2323
|
'editor.tabSize': number;
|
|
2251
2324
|
'editor.insertSpaces': boolean;
|
|
2252
2325
|
'editor.detectIndentation': boolean;
|
|
@@ -2257,15 +2330,17 @@ export interface GeneratedEditorPreferences {
|
|
|
2257
2330
|
'editor.semanticHighlighting.enabled': true | false | 'configuredByTheme';
|
|
2258
2331
|
'editor.stablePeek': boolean;
|
|
2259
2332
|
'editor.maxTokenizationLineLength': number;
|
|
2260
|
-
'editor.language.brackets': Array<[string, string]> | null;
|
|
2333
|
+
'editor.language.brackets': Array<[string, string]> | null | 'null';
|
|
2261
2334
|
'editor.language.colorizedBracketPairs': Array<[string, string]> | null;
|
|
2262
2335
|
'diffEditor.maxComputationTime': number;
|
|
2263
2336
|
'diffEditor.maxFileSize': number;
|
|
2264
2337
|
'diffEditor.renderSideBySide': boolean;
|
|
2338
|
+
'diffEditor.renderMarginRevertIcon': boolean;
|
|
2265
2339
|
'diffEditor.ignoreTrimWhitespace': boolean;
|
|
2266
2340
|
'diffEditor.renderIndicators': boolean;
|
|
2267
2341
|
'diffEditor.codeLens': boolean;
|
|
2268
2342
|
'diffEditor.wordWrap': 'off' | 'on' | 'inherit';
|
|
2343
|
+
'diffEditor.diffAlgorithm': 'smart' | 'experimental';
|
|
2269
2344
|
'editor.acceptSuggestionOnCommitCharacter': boolean;
|
|
2270
2345
|
'editor.acceptSuggestionOnEnter': 'on' | 'smart' | 'off';
|
|
2271
2346
|
'editor.accessibilitySupport': 'auto' | 'on' | 'off';
|
|
@@ -2298,12 +2373,12 @@ export interface GeneratedEditorPreferences {
|
|
|
2298
2373
|
'editor.cursorSurroundingLinesStyle': 'default' | 'all';
|
|
2299
2374
|
'editor.cursorWidth': number;
|
|
2300
2375
|
'editor.dragAndDrop': boolean;
|
|
2376
|
+
'editor.dropIntoEditor.enabled': boolean;
|
|
2301
2377
|
'editor.emptySelectionClipboard': boolean;
|
|
2302
2378
|
'editor.fastScrollSensitivity': number;
|
|
2303
2379
|
'editor.find.cursorMoveOnType': boolean;
|
|
2304
2380
|
'editor.find.seedSearchStringFromSelection': 'never' | 'always' | 'selection';
|
|
2305
2381
|
'editor.find.autoFindInSelection': 'never' | 'always' | 'multiline';
|
|
2306
|
-
'editor.find.globalFindClipboard': boolean;
|
|
2307
2382
|
'editor.find.addExtraSpaceOnTop': boolean;
|
|
2308
2383
|
'editor.find.loop': boolean;
|
|
2309
2384
|
'editor.folding': boolean;
|
|
@@ -2319,7 +2394,7 @@ export interface GeneratedEditorPreferences {
|
|
|
2319
2394
|
'editor.formatOnPaste': boolean;
|
|
2320
2395
|
'editor.formatOnType': boolean;
|
|
2321
2396
|
'editor.glyphMargin': boolean;
|
|
2322
|
-
'editor.gotoLocation.multiple': null
|
|
2397
|
+
'editor.gotoLocation.multiple': null;
|
|
2323
2398
|
'editor.gotoLocation.multipleDefinitions': 'peek' | 'gotoAndPeek' | 'goto';
|
|
2324
2399
|
'editor.gotoLocation.multipleTypeDefinitions': 'peek' | 'gotoAndPeek' | 'goto';
|
|
2325
2400
|
'editor.gotoLocation.multipleDeclarations': 'peek' | 'gotoAndPeek' | 'goto';
|
|
@@ -2344,6 +2419,7 @@ export interface GeneratedEditorPreferences {
|
|
|
2344
2419
|
'editor.links': boolean;
|
|
2345
2420
|
'editor.matchBrackets': 'always' | 'near' | 'never';
|
|
2346
2421
|
'editor.minimap.enabled': boolean;
|
|
2422
|
+
'editor.minimap.autohide': boolean;
|
|
2347
2423
|
'editor.minimap.size': 'proportional' | 'fill' | 'fit';
|
|
2348
2424
|
'editor.minimap.side': 'left' | 'right';
|
|
2349
2425
|
'editor.minimap.showSlider': 'always' | 'mouseover';
|
|
@@ -2381,12 +2457,15 @@ export interface GeneratedEditorPreferences {
|
|
|
2381
2457
|
'editor.scrollBeyondLastColumn': number;
|
|
2382
2458
|
'editor.scrollBeyondLastLine': boolean;
|
|
2383
2459
|
'editor.scrollPredominantAxis': boolean;
|
|
2460
|
+
'editor.selectionClipboard': boolean;
|
|
2384
2461
|
'editor.selectionHighlight': boolean;
|
|
2385
|
-
'editor.showFoldingControls': 'always' | 'mouseover';
|
|
2462
|
+
'editor.showFoldingControls': 'always' | 'never' | 'mouseover';
|
|
2386
2463
|
'editor.showUnused': boolean;
|
|
2387
2464
|
'editor.snippetSuggestions': 'top' | 'bottom' | 'inline' | 'none';
|
|
2388
2465
|
'editor.smartSelect.selectLeadingAndTrailingWhitespace': boolean;
|
|
2389
2466
|
'editor.smoothScrolling': boolean;
|
|
2467
|
+
'editor.stickyScroll.enabled': boolean;
|
|
2468
|
+
'editor.stickyScroll.maxLineCount': number;
|
|
2390
2469
|
'editor.stickyTabStops': boolean;
|
|
2391
2470
|
'editor.suggest.insertMode': 'insert' | 'replace';
|
|
2392
2471
|
'editor.suggest.filterGraceful': boolean;
|
|
@@ -2403,6 +2482,7 @@ export interface GeneratedEditorPreferences {
|
|
|
2403
2482
|
'editor.suggest.showFunctions': boolean;
|
|
2404
2483
|
'editor.suggest.showConstructors': boolean;
|
|
2405
2484
|
'editor.suggest.showDeprecated': boolean;
|
|
2485
|
+
'editor.suggest.matchOnWordStartOnly': boolean;
|
|
2406
2486
|
'editor.suggest.showFields': boolean;
|
|
2407
2487
|
'editor.suggest.showVariables': boolean;
|
|
2408
2488
|
'editor.suggest.showClasses': boolean;
|
|
@@ -2451,5 +2531,9 @@ export interface GeneratedEditorPreferences {
|
|
|
2451
2531
|
'editor.inlayHints.enabled': 'on' | 'onUnlessPressed' | 'offUnlessPressed' | 'off';
|
|
2452
2532
|
'editor.inlayHints.fontSize': number;
|
|
2453
2533
|
'editor.inlayHints.fontFamily': string;
|
|
2454
|
-
'editor.
|
|
2534
|
+
'editor.inlayHints.padding': boolean;
|
|
2535
|
+
'editor.codeActionWidget.showHeaders': boolean;
|
|
2536
|
+
'editor.experimental.pasteActions.enabled': boolean;
|
|
2537
|
+
'editor.rename.enablePreview': boolean;
|
|
2538
|
+
'editor.find.globalFindClipboard': boolean;
|
|
2455
2539
|
}
|
package/src/browser/editor.ts
CHANGED
|
@@ -19,11 +19,9 @@ import * as lsp from '@theia/core/shared/vscode-languageserver-protocol';
|
|
|
19
19
|
import URI from '@theia/core/lib/common/uri';
|
|
20
20
|
import { Event, Disposable, TextDocumentContentChangeDelta, Reference } from '@theia/core/lib/common';
|
|
21
21
|
import { Saveable, Navigatable, Widget } from '@theia/core/lib/browser';
|
|
22
|
-
import { EditorDecoration } from './decorations';
|
|
22
|
+
import { EditorDecoration } from './decorations/editor-decoration';
|
|
23
23
|
|
|
24
|
-
export {
|
|
25
|
-
Position, Range, Location
|
|
26
|
-
};
|
|
24
|
+
export { Position, Range, Location };
|
|
27
25
|
|
|
28
26
|
export const TextEditorProvider = Symbol('TextEditorProvider');
|
|
29
27
|
export type TextEditorProvider = (uri: URI) => Promise<TextEditor>;
|