@lvce-editor/settings-view 2.3.0 → 2.5.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/dist/settingsViewWorkerMain.js +1736 -1604
- package/package.json +2 -2
|
@@ -1138,6 +1138,7 @@ const create$1 = (id, uri, x, y, width, height) => {
|
|
|
1138
1138
|
itemHeight: 100,
|
|
1139
1139
|
items: [],
|
|
1140
1140
|
maxLineY: 0,
|
|
1141
|
+
minContentWidth: 300,
|
|
1141
1142
|
minLineY: 0,
|
|
1142
1143
|
modifiedSettings: {},
|
|
1143
1144
|
preferences: {},
|
|
@@ -1158,20 +1159,16 @@ const create$1 = (id, uri, x, y, width, height) => {
|
|
|
1158
1159
|
set$3(id, state, state);
|
|
1159
1160
|
};
|
|
1160
1161
|
|
|
1161
|
-
const isEqual$5 = (oldState, newState) => {
|
|
1162
|
-
return oldState.sideBarWidth === newState.sideBarWidth;
|
|
1163
|
-
};
|
|
1164
|
-
|
|
1165
1162
|
const isEqual$4 = (oldState, newState) => {
|
|
1166
|
-
return oldState.
|
|
1163
|
+
return oldState.sideBarWidth === newState.sideBarWidth && oldState.scrollBarThumbHeight === newState.scrollBarThumbHeight && oldState.scrollBarThumbTop === newState.scrollBarThumbTop;
|
|
1167
1164
|
};
|
|
1168
1165
|
|
|
1169
1166
|
const isEqual$3 = (oldState, newState) => {
|
|
1170
|
-
return oldState.
|
|
1167
|
+
return oldState.focus === newState.focus;
|
|
1171
1168
|
};
|
|
1172
1169
|
|
|
1173
1170
|
const isEqual$2 = (oldState, newState) => {
|
|
1174
|
-
return
|
|
1171
|
+
return oldState.filteredItems === newState.filteredItems && oldState.deltaY === newState.deltaY;
|
|
1175
1172
|
};
|
|
1176
1173
|
|
|
1177
1174
|
const isEqual$1 = (oldState, newState) => {
|
|
@@ -1182,7 +1179,6 @@ const RenderItems = 1;
|
|
|
1182
1179
|
const RenderFocus = 2;
|
|
1183
1180
|
const RenderValue = 3;
|
|
1184
1181
|
const RenderSettingValues = 10;
|
|
1185
|
-
const RenderScrollOffset = 11;
|
|
1186
1182
|
const RenderFocusContext = 12;
|
|
1187
1183
|
const RenderCss = 13;
|
|
1188
1184
|
|
|
@@ -1190,18 +1186,13 @@ const isEqual = (oldState, newState) => {
|
|
|
1190
1186
|
return newState.inputSource === User || oldState.searchValue === newState.searchValue;
|
|
1191
1187
|
};
|
|
1192
1188
|
|
|
1193
|
-
const modules = [isEqual$
|
|
1194
|
-
const numbers = [RenderItems, RenderValue, RenderSettingValues,
|
|
1189
|
+
const modules = [isEqual$2, isEqual, isEqual$1, isEqual$3, isEqual$3, isEqual$4];
|
|
1190
|
+
const numbers = [RenderItems, RenderValue, RenderSettingValues, RenderFocus, RenderFocusContext, RenderCss];
|
|
1195
1191
|
|
|
1196
1192
|
const diff = (oldState, newState) => {
|
|
1197
1193
|
const diffResult = [];
|
|
1198
1194
|
for (let i = 0; i < modules.length; i++) {
|
|
1199
1195
|
const fn = modules[i];
|
|
1200
|
-
|
|
1201
|
-
// TODO enable this
|
|
1202
|
-
if (numbers[i] === RenderScrollOffset) {
|
|
1203
|
-
continue;
|
|
1204
|
-
}
|
|
1205
1196
|
if (!fn(oldState, newState)) {
|
|
1206
1197
|
diffResult.push(numbers[i]);
|
|
1207
1198
|
}
|
|
@@ -1314,13 +1305,13 @@ const ExtensionListItemFooter = 'ExtensionListItemFooter';
|
|
|
1314
1305
|
const ExtensionListItemIcon = 'ExtensionListItemIcon';
|
|
1315
1306
|
const ExtensionListItemName = 'ExtensionListItemName';
|
|
1316
1307
|
const Extensions = 'Extensions';
|
|
1317
|
-
const Feature = 'Feature';
|
|
1308
|
+
const Feature$1 = 'Feature';
|
|
1318
1309
|
const FeatureContent = 'FeatureContent';
|
|
1319
1310
|
const Features = 'Features';
|
|
1320
1311
|
const FeaturesList = 'FeaturesList';
|
|
1321
1312
|
const FeatureWebView = 'FeatureWebView';
|
|
1322
1313
|
const FileIcon = 'FileIcon';
|
|
1323
|
-
const Filter = 'Filter';
|
|
1314
|
+
const Filter$1 = 'Filter';
|
|
1324
1315
|
const FilterBadge = 'FilterBadge';
|
|
1325
1316
|
const FindWidget = 'FindWidget';
|
|
1326
1317
|
const FindWidgetFind = 'FindWidgetFind';
|
|
@@ -1550,13 +1541,13 @@ const ClassNames = {
|
|
|
1550
1541
|
ExtensionListItemIcon,
|
|
1551
1542
|
ExtensionListItemName,
|
|
1552
1543
|
Extensions,
|
|
1553
|
-
Feature,
|
|
1544
|
+
Feature: Feature$1,
|
|
1554
1545
|
FeatureContent,
|
|
1555
1546
|
FeatureWebView,
|
|
1556
1547
|
Features,
|
|
1557
1548
|
FeaturesList,
|
|
1558
1549
|
FileIcon,
|
|
1559
|
-
Filter,
|
|
1550
|
+
Filter: Filter$1,
|
|
1560
1551
|
FilterBadge,
|
|
1561
1552
|
FindWidget,
|
|
1562
1553
|
FindWidgetFind,
|
|
@@ -1733,1943 +1724,2051 @@ const getKeyBindings$1 = () => {
|
|
|
1733
1724
|
}];
|
|
1734
1725
|
};
|
|
1735
1726
|
|
|
1736
|
-
const
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
const getSelectedTabId = tabs => {
|
|
1742
|
-
for (const tab of tabs) {
|
|
1743
|
-
if (tab.selected) {
|
|
1744
|
-
return tab.id;
|
|
1745
|
-
}
|
|
1746
|
-
}
|
|
1747
|
-
return '';
|
|
1748
|
-
};
|
|
1749
|
-
|
|
1750
|
-
const getUpdatedTabs = (tabs, selectedTabId) => {
|
|
1751
|
-
// Check if the clicked tab is already selected
|
|
1752
|
-
const clickedTabId = getSelectedTabId(tabs);
|
|
1753
|
-
if (clickedTabId === selectedTabId) {
|
|
1754
|
-
return tabs;
|
|
1755
|
-
}
|
|
1756
|
-
return tabs.map(tab => ({
|
|
1757
|
-
...tab,
|
|
1758
|
-
selected: tab.id === selectedTabId
|
|
1759
|
-
}));
|
|
1760
|
-
};
|
|
1761
|
-
|
|
1762
|
-
const handleClickTab = (state, name) => {
|
|
1763
|
-
if (!name) {
|
|
1764
|
-
return state;
|
|
1727
|
+
const emptyObject = {};
|
|
1728
|
+
const RE_PLACEHOLDER = /\{(PH\d+)\}/g;
|
|
1729
|
+
const i18nString = (key, placeholders = emptyObject) => {
|
|
1730
|
+
if (placeholders === emptyObject) {
|
|
1731
|
+
return key;
|
|
1765
1732
|
}
|
|
1766
|
-
const {
|
|
1767
|
-
|
|
1768
|
-
itemHeight,
|
|
1769
|
-
items,
|
|
1770
|
-
modifiedSettings,
|
|
1771
|
-
preferences,
|
|
1772
|
-
scrollOffset,
|
|
1773
|
-
searchValue,
|
|
1774
|
-
tabs
|
|
1775
|
-
} = state;
|
|
1776
|
-
const updatedTabs = getUpdatedTabs(tabs, name);
|
|
1777
|
-
const filteredItems = getFilteredItems(items, updatedTabs, searchValue, modifiedSettings, preferences);
|
|
1778
|
-
const {
|
|
1779
|
-
maxLineY,
|
|
1780
|
-
minLineY,
|
|
1781
|
-
visibleItems
|
|
1782
|
-
} = computeVisibleItems(filteredItems, height, scrollOffset, itemHeight);
|
|
1783
|
-
const {
|
|
1784
|
-
scrollBarMinHeight
|
|
1785
|
-
} = state;
|
|
1786
|
-
const {
|
|
1787
|
-
thumbHeight,
|
|
1788
|
-
thumbTop
|
|
1789
|
-
} = computeScrollBar(height, filteredItems.length, itemHeight, scrollOffset, scrollBarMinHeight);
|
|
1790
|
-
return {
|
|
1791
|
-
...state,
|
|
1792
|
-
filteredItems,
|
|
1793
|
-
maxLineY,
|
|
1794
|
-
minLineY,
|
|
1795
|
-
scrollBarThumbHeight: thumbHeight,
|
|
1796
|
-
scrollBarThumbTop: thumbTop,
|
|
1797
|
-
tabs: updatedTabs,
|
|
1798
|
-
visibleItems
|
|
1733
|
+
const replacer = (match, rest) => {
|
|
1734
|
+
return placeholders[rest];
|
|
1799
1735
|
};
|
|
1736
|
+
return key.replaceAll(RE_PLACEHOLDER, replacer);
|
|
1800
1737
|
};
|
|
1801
1738
|
|
|
1802
|
-
const
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1739
|
+
const AutoSave = 'Auto Save';
|
|
1740
|
+
const AutoSaveDescription = 'Automatically save files';
|
|
1741
|
+
const AutoUpdateExtensions = 'Auto Update Extensions';
|
|
1742
|
+
const AutoUpdateExtensionsDescription = 'Automatically update extensions';
|
|
1743
|
+
const AutoUpdates = 'Auto Updates';
|
|
1744
|
+
const AutoUpdatesDescription = 'Automatically check for updates';
|
|
1745
|
+
const Clear$1 = 'Clear';
|
|
1746
|
+
const ExtensionRecommendations = 'Extension Recommendations';
|
|
1747
|
+
const ExtensionRecommendationsDescription = 'Show extension recommendations';
|
|
1748
|
+
const FileEncryption = 'File Encryption';
|
|
1749
|
+
const FileEncryptionDescription = 'Encrypt sensitive files';
|
|
1750
|
+
const FontFamily = 'Font Family';
|
|
1751
|
+
const FontFamilyDescription = 'The font family of the editor';
|
|
1752
|
+
const FontSize = 'Font Size';
|
|
1753
|
+
const FontSizeDescription = 'The font size of the editor';
|
|
1754
|
+
const FormatOnSave = 'Format on Save';
|
|
1755
|
+
const FormatOnSaveDescription = 'Format code when saving';
|
|
1756
|
+
const NumberValue = 'number value';
|
|
1757
|
+
const StringValue = 'string value';
|
|
1758
|
+
const SearchSettings = 'Search Settings';
|
|
1759
|
+
const SettingsContent$1 = 'Settings Content';
|
|
1760
|
+
const SidebarPosition = 'Sidebar Position';
|
|
1761
|
+
const SidebarPositionDescription = 'The position of the sidebar';
|
|
1762
|
+
const Telemetry = 'Telemetry';
|
|
1763
|
+
const TelemetryDescription = 'Enable telemetry collection';
|
|
1764
|
+
const Theme = 'Theme';
|
|
1765
|
+
const ThemeDescription = 'The color theme of the workbench';
|
|
1766
|
+
const TwoFactorAuth = 'Two Factor Auth';
|
|
1767
|
+
const TwoFactorAuthDescription = 'Enable two factor authentication';
|
|
1768
|
+
const WindowSize = 'Window Size';
|
|
1769
|
+
const WindowSizeDescription = 'The default window size';
|
|
1770
|
+
const WindowTitle = 'Window Title';
|
|
1771
|
+
const WindowTitleDescription = 'The title shown in the window';
|
|
1772
|
+
const NoSettingsMatching = 'No settings matching "{PH1}" found';
|
|
1773
|
+
const MatchingSettings = '{PH1} matching settings';
|
|
1812
1774
|
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1775
|
+
// Text Editor Settings
|
|
1776
|
+
const WordWrap = 'Word Wrap';
|
|
1777
|
+
const WordWrapDescription = 'Controls how lines should wrap';
|
|
1778
|
+
const LineNumbers = 'Line Numbers';
|
|
1779
|
+
const LineNumbersDescription = 'Controls the display of line numbers';
|
|
1780
|
+
const Minimap = 'Minimap';
|
|
1781
|
+
const MinimapDescription = 'Controls whether the minimap is shown';
|
|
1782
|
+
const ScrollBeyondLastLine = 'Scroll Beyond Last Line';
|
|
1783
|
+
const ScrollBeyondLastLineDescription = 'Controls whether the editor will scroll beyond the last line';
|
|
1784
|
+
const SmoothScrolling = 'Smooth Scrolling';
|
|
1785
|
+
const SmoothScrollingDescription = 'Controls whether the editor will scroll smoothly';
|
|
1786
|
+
const CursorBlinking = 'Cursor Blinking';
|
|
1787
|
+
const CursorBlinkingDescription = 'Controls how the cursor should blink';
|
|
1788
|
+
const CursorStyle = 'Cursor Style';
|
|
1789
|
+
const CursorStyleDescription = 'Controls the cursor style';
|
|
1790
|
+
const ColorValue = 'Color value';
|
|
1791
|
+
const CursorWidth = 'Cursor Width';
|
|
1792
|
+
const CursorWidthDescription = 'Controls the width of the cursor';
|
|
1793
|
+
const TabSize = 'Tab Size';
|
|
1794
|
+
const TabSizeDescription = 'The number of spaces a tab is equal to';
|
|
1795
|
+
const InsertSpaces = 'Insert Spaces';
|
|
1796
|
+
const InsertSpacesDescription = 'Insert spaces when pressing Tab';
|
|
1797
|
+
const DetectIndentation = 'Detect Indentation';
|
|
1798
|
+
const DetectIndentationDescription = 'Controls whether the editor will automatically adjust the indentation';
|
|
1799
|
+
const TrimAutoWhitespace = 'Trim Auto Whitespace';
|
|
1800
|
+
const TrimAutoWhitespaceDescription = 'Remove trailing auto inserted whitespace';
|
|
1801
|
+
const LargeFileOptimizations = 'Large File Optimizations';
|
|
1802
|
+
const LargeFileOptimizationsDescription = 'Special handling for large files to disable certain features';
|
|
1803
|
+
const RenderWhitespace = 'Render Whitespace';
|
|
1804
|
+
const RenderWhitespaceDescription = 'Controls how the editor should render whitespace characters';
|
|
1805
|
+
const RenderControlCharacters = 'Render Control Characters';
|
|
1806
|
+
const RenderControlCharactersDescription = 'Controls whether the editor should render control characters';
|
|
1807
|
+
const RenderLineHighlight = 'Render Line Highlight';
|
|
1808
|
+
const RenderLineHighlightDescription = 'Controls how the editor should render the current line highlight';
|
|
1809
|
+
const CodeLens = 'Code Lens';
|
|
1810
|
+
const CodeLensDescription = 'Controls whether the editor shows CodeLens';
|
|
1811
|
+
const Folding = 'Folding';
|
|
1812
|
+
const FoldingDescription = 'Controls whether the editor has code folding enabled';
|
|
1813
|
+
const ShowFoldingControls = 'Show Folding Controls';
|
|
1814
|
+
const ShowFoldingControlsDescription = 'Controls when the folding controls on the gutter are automatically hidden';
|
|
1815
|
+
const UnfoldOnClickAfterEnd = 'Unfold On Click After End';
|
|
1816
|
+
const UnfoldOnClickAfterEndDescription = 'Controls whether clicking on the empty content after a folded line will unfold the line';
|
|
1817
|
+
const Links = 'Links';
|
|
1818
|
+
const LinksDescription = 'Controls whether the editor should detect links and make them clickable';
|
|
1819
|
+
const ColorDecorators = 'Color Decorators';
|
|
1820
|
+
const ColorDecoratorsDescription = 'Controls whether the editor should render the inline color decorators and color picker';
|
|
1821
|
+
const Lightbulb = 'Lightbulb';
|
|
1822
|
+
const LightbulbDescription = 'Controls whether the editor should show the lightbulb code action';
|
|
1823
|
+
const CodeActionsOnSave = 'Code Actions On Save';
|
|
1824
|
+
const CodeActionsOnSaveDescription = 'Code actions to be run on save';
|
|
1825
|
+
const FormatOnPaste = 'Format On Paste';
|
|
1826
|
+
const FormatOnPasteDescription = 'Format a file on paste';
|
|
1827
|
+
const FormatOnType = 'Format On Type';
|
|
1828
|
+
const FormatOnTypeDescription = 'Format a file on type';
|
|
1829
|
+
const AcceptSuggestionOnCommitCharacter = 'Accept Suggestion On Commit Character';
|
|
1830
|
+
const AcceptSuggestionOnCommitCharacterDescription = 'Controls if suggestions should be accepted on commit characters';
|
|
1831
|
+
const AcceptSuggestionOnEnter = 'Accept Suggestion On Enter';
|
|
1832
|
+
const AcceptSuggestionOnEnterDescription = 'Controls if suggestions should be accepted on Enter';
|
|
1833
|
+
const TabCompletion = 'Tab Completion';
|
|
1834
|
+
const TabCompletionDescription = 'Enables tab completions';
|
|
1835
|
+
const WordBasedSuggestions = 'Word Based Suggestions';
|
|
1836
|
+
const WordBasedSuggestionsDescription = 'Controls whether completions should be computed based on words in the document';
|
|
1837
|
+
const SuggestOnTriggerCharacters = 'Suggest On Trigger Characters';
|
|
1838
|
+
const SuggestOnTriggerCharactersDescription = 'Controls whether suggestions should automatically show up when typing trigger characters';
|
|
1839
|
+
const QuickSuggestions = 'Quick Suggestions';
|
|
1840
|
+
const QuickSuggestionsDescription = 'Controls whether suggestions should automatically show up while typing';
|
|
1841
|
+
const ParameterHints = 'Parameter Hints';
|
|
1842
|
+
const ParameterHintsDescription = 'Controls whether the editor should show parameter hints';
|
|
1843
|
+
const AutoClosingBrackets = 'Auto Closing Brackets';
|
|
1844
|
+
const AutoClosingBracketsDescription = 'Controls whether the editor should automatically close brackets after opening them';
|
|
1845
|
+
const AutoClosingQuotes = 'Auto Closing Quotes';
|
|
1846
|
+
const AutoClosingQuotesDescription = 'Controls whether the editor should automatically close quotes after opening them';
|
|
1847
|
+
const AutoClosingOvertype = 'Auto Closing Overtype';
|
|
1848
|
+
const AutoClosingOvertypeDescription = 'Controls whether the editor should type over closing quotes or brackets';
|
|
1849
|
+
const AutoClosingDelete = 'Auto Closing Delete';
|
|
1850
|
+
const AutoClosingDeleteDescription = 'Controls whether the editor should remove adjacent closing quotes or brackets when deleting';
|
|
1851
|
+
const AutoSurround = 'Auto Surround';
|
|
1852
|
+
const AutoSurroundDescription = 'Controls whether the editor should automatically surround selections';
|
|
1853
|
+
const BracketPairColorization = 'Bracket Pair Colorization';
|
|
1854
|
+
const BracketPairColorizationDescription = 'Controls whether the editor should enable bracket pair colorization';
|
|
1855
|
+
const Guides = 'Guides';
|
|
1856
|
+
const GuidesDescription = 'Controls whether the editor should render bracket pair guides';
|
|
1857
|
+
const DragAndDrop = 'Drag And Drop';
|
|
1858
|
+
const DragAndDropDescription = 'Controls whether the editor allows moving selections via drag and drop';
|
|
1859
|
+
const CopyWithSyntaxHighlighting = 'Copy With Syntax Highlighting';
|
|
1860
|
+
const CopyWithSyntaxHighlightingDescription = 'Controls whether syntax highlighting should be copied when copying text';
|
|
1861
|
+
const MultiCursorModifier = 'Multi Cursor Modifier';
|
|
1862
|
+
const MultiCursorModifierDescription = 'The modifier to be used to add multiple cursors with the mouse';
|
|
1863
|
+
const MultiCursorPaste = 'Multi Cursor Paste';
|
|
1864
|
+
const MultiCursorPasteDescription = 'Controls how the editor should handle multiple cursors when pasting';
|
|
1865
|
+
const OccurrencesHighlight = 'Occurrences Highlight';
|
|
1866
|
+
const OccurrencesHighlightDescription = 'Controls whether the editor should highlight similar matches to the selection';
|
|
1867
|
+
const SelectionHighlight = 'Selection Highlight';
|
|
1868
|
+
const SelectionHighlightDescription = 'Controls whether the editor should highlight similar matches to the selection';
|
|
1869
|
+
const SemanticHighlighting = 'Semantic Highlighting';
|
|
1870
|
+
const SemanticHighlightingDescription = 'Controls whether the editor should enable semantic highlighting';
|
|
1871
|
+
const TokenColorCustomizations = 'Token Color Customizations';
|
|
1872
|
+
const TokenColorCustomizationsDescription = 'Overrides editor syntax highlighting colors';
|
|
1873
|
+
const WorkbenchColorCustomizations = 'Workbench Color Customizations';
|
|
1874
|
+
const WorkbenchColorCustomizationsDescription = 'Overrides workbench colors';
|
|
1875
|
+
const EditorColorCustomizations = 'Editor Color Customizations';
|
|
1876
|
+
const EditorColorCustomizationsDescription = 'Overrides editor colors';
|
|
1877
|
+
const DiffEditor = 'Diff Editor';
|
|
1878
|
+
const DiffEditorDescription = 'Controls whether the diff editor shows the diff side by side or inline';
|
|
1879
|
+
const DiffWordWrap = 'Diff Word Wrap';
|
|
1880
|
+
const DiffWordWrapDescription = 'Controls whether the diff editor shows the diff side by side or inline';
|
|
1881
|
+
const DiffCodeLens = 'Diff Code Lens';
|
|
1882
|
+
const DiffCodeLensDescription = 'Controls whether the diff editor shows code lens';
|
|
1883
|
+
const DiffRenderSideBySide = 'Diff Render Side By Side';
|
|
1884
|
+
const DiffRenderSideBySideDescription = 'Controls whether the diff editor shows the diff side by side or inline';
|
|
1885
|
+
const DiffIgnoreTrimWhitespace = 'Diff Ignore Trim Whitespace';
|
|
1886
|
+
const DiffIgnoreTrimWhitespaceDescription = 'Controls whether the diff editor ignores changes in whitespace';
|
|
1887
|
+
const DiffRenderIndicators = 'Diff Render Indicators';
|
|
1888
|
+
const DiffRenderIndicatorsDescription = 'Controls whether the diff editor shows indicators';
|
|
1889
|
+
const DiffRenderOverviewRuler = 'Diff Render Overview Ruler';
|
|
1890
|
+
const DiffRenderOverviewRulerDescription = 'Controls whether the diff editor shows the overview ruler';
|
|
1891
|
+
const DiffRenderMarginRevertIcon = 'Diff Render Margin Revert Icon';
|
|
1892
|
+
const DiffRenderMarginRevertIconDescription = 'Controls whether the diff editor shows the revert icon in the margin';
|
|
1822
1893
|
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1894
|
+
// Additional Text Editor Settings
|
|
1895
|
+
const InsertMode = 'Insert Mode';
|
|
1896
|
+
const InsertModeDescription = 'Controls whether the editor is in insert mode';
|
|
1897
|
+
const OverwriteMode = 'Overwrite Mode';
|
|
1898
|
+
const OverwriteModeDescription = 'Controls whether the editor is in overwrite mode';
|
|
1899
|
+
const ReadOnly = 'Read Only';
|
|
1900
|
+
const ReadOnlyDescription = 'Controls whether the editor is read only';
|
|
1901
|
+
const AccessibilitySupport = 'Accessibility Support';
|
|
1902
|
+
const AccessibilitySupportDescription = 'Controls whether the editor should run in a mode where it is optimized for screen readers';
|
|
1903
|
+
const AutoIndent = 'Auto Indent';
|
|
1904
|
+
const AutoIndentDescription = 'Controls whether the editor should automatically adjust the indentation';
|
|
1905
|
+
const BracketMatching = 'Bracket Matching';
|
|
1906
|
+
const BracketMatchingDescription = 'Controls whether the editor should highlight matching brackets';
|
|
1907
|
+
const CenteredLayout = 'Centered Layout';
|
|
1908
|
+
const CenteredLayoutDescription = 'Controls whether the editor should use centered layout';
|
|
1909
|
+
const ColumnSelection = 'Column Selection';
|
|
1910
|
+
const ColumnSelectionDescription = 'Controls whether the editor should support column selection';
|
|
1911
|
+
const Contextmenu = 'Context Menu';
|
|
1912
|
+
const ContextmenuDescription = 'Controls whether the editor should show the context menu';
|
|
1913
|
+
const CursorSmoothCaretAnimation = 'Cursor Smooth Caret Animation';
|
|
1914
|
+
const CursorSmoothCaretAnimationDescription = 'Controls whether the cursor should be animated';
|
|
1915
|
+
const CursorSurroundingLines = 'Cursor Surrounding Lines';
|
|
1916
|
+
const CursorSurroundingLinesDescription = 'Controls the number of extra characters beyond which the editor will scroll horizontally';
|
|
1917
|
+
const CursorSurroundingLinesStyle = 'Cursor Surrounding Lines Style';
|
|
1918
|
+
const CursorSurroundingLinesStyleDescription = 'Controls when the cursor should be hidden';
|
|
1919
|
+
const DisableMonospaceOptimizations = 'Disable Monospace Optimizations';
|
|
1920
|
+
const DisableMonospaceOptimizationsDescription = 'Controls whether the editor should disable optimizations for monospace fonts';
|
|
1921
|
+
const EmptySelectionClipboard = 'Empty Selection Clipboard';
|
|
1922
|
+
const EmptySelectionClipboardDescription = 'Controls whether copying without a selection copies the current line';
|
|
1923
|
+
const ExtraEditorClassName = 'Extra Editor Class Name';
|
|
1924
|
+
const ExtraEditorClassNameDescription = 'An extra class name to add to the editor';
|
|
1925
|
+
const FastScrollSensitivity = 'Fast Scroll Sensitivity';
|
|
1926
|
+
const FastScrollSensitivityDescription = 'Scrolling speed multiplier when pressing Alt';
|
|
1927
|
+
const Find = 'Find';
|
|
1928
|
+
const FindDescription = 'Controls whether the editor should add extra space on the bottom';
|
|
1929
|
+
const FixedOverflowWidgets = 'Fixed Overflow Widgets';
|
|
1930
|
+
const FixedOverflowWidgetsDescription = 'Controls whether the editor should scroll beyond the last line';
|
|
1931
|
+
const FoldingStrategy = 'Folding Strategy';
|
|
1932
|
+
const FoldingStrategyDescription = 'Controls the folding strategy';
|
|
1933
|
+
const FontLigatures = 'Font Ligatures';
|
|
1934
|
+
const FontLigaturesDescription = 'Enables/Disables font ligatures';
|
|
1935
|
+
const GlyphMargin = 'Glyph Margin';
|
|
1936
|
+
const GlyphMarginDescription = 'Controls whether the editor should render the vertical glyph margin';
|
|
1937
|
+
const GotoLocation = 'Go To Location';
|
|
1938
|
+
const GotoLocationDescription = "Controls the behavior the 'Go to Definition'-mouse gesture";
|
|
1939
|
+
const HideCursorInOverviewRuler = 'Hide Cursor In Overview Ruler';
|
|
1940
|
+
const HideCursorInOverviewRulerDescription = 'Controls whether the cursor should be hidden in the overview ruler';
|
|
1941
|
+
const Hover = 'Hover';
|
|
1942
|
+
const HoverDescription = 'Controls whether the editor should show hover';
|
|
1943
|
+
const InDiffEditor = 'In Diff Editor';
|
|
1944
|
+
const InDiffEditorDescription = 'Controls whether the editor should be in a diff editor';
|
|
1945
|
+
const LetterSpacing = 'Letter Spacing';
|
|
1946
|
+
const LetterSpacingDescription = 'The letter spacing';
|
|
1947
|
+
const LightbulbEnabled = 'Lightbulb Enabled';
|
|
1948
|
+
const LightbulbEnabledDescription = 'Controls whether the editor should show the lightbulb code action';
|
|
1949
|
+
const LineDecorationsWidth = 'Line Decorations Width';
|
|
1950
|
+
const LineDecorationsWidthDescription = 'The width reserved for line decorations (in px)';
|
|
1951
|
+
const LineHeight = 'Line Height';
|
|
1952
|
+
const LineHeightDescription = 'The line height';
|
|
1953
|
+
const MatchBrackets = 'Match Brackets';
|
|
1954
|
+
const MatchBracketsDescription = 'Controls whether the editor should highlight matching brackets';
|
|
1955
|
+
const MinimapEnabled = 'Minimap Enabled';
|
|
1956
|
+
const MinimapEnabledDescription = 'Controls whether the minimap is shown';
|
|
1957
|
+
const MouseWheelScrollSensitivity = 'Mouse Wheel Scroll Sensitivity';
|
|
1958
|
+
const MouseWheelScrollSensitivityDescription = 'A multiplier to be used on the deltaX and deltaY of mouse wheel scroll events';
|
|
1959
|
+
const MouseWheelZoom = 'Mouse Wheel Zoom';
|
|
1960
|
+
const MouseWheelZoomDescription = 'Zoom the font of the editor when using mouse wheel and holding Ctrl';
|
|
1961
|
+
const MultiCursorMergeOverlapping = 'Multi Cursor Merge Overlapping';
|
|
1962
|
+
const MultiCursorMergeOverlappingDescription = 'Merge overlapping selections';
|
|
1963
|
+
const OverviewRulerBorder = 'Overview Ruler Border';
|
|
1964
|
+
const OverviewRulerBorderDescription = 'Controls whether a border should be drawn around the overview ruler';
|
|
1965
|
+
const OverviewRulerLanes = 'Overview Ruler Lanes';
|
|
1966
|
+
const OverviewRulerLanesDescription = 'Controls the number of decorations that can show in the overview ruler';
|
|
1967
|
+
const PeekWidgetDefaultFocus = 'Peek Widget Default Focus';
|
|
1968
|
+
const PeekWidgetDefaultFocusDescription = 'Controls if the peek widget should be focused by default';
|
|
1969
|
+
const QuickSuggestionsDelay = 'Quick Suggestions Delay';
|
|
1970
|
+
const QuickSuggestionsDelayDescription = 'Controls the delay in milliseconds after which quick suggestions will show up';
|
|
1971
|
+
const RenderFinalNewline = 'Render Final Newline';
|
|
1972
|
+
const RenderFinalNewlineDescription = 'Controls whether the editor should render the final newline as a space';
|
|
1973
|
+
const RenderValidationDecorations = 'Render Validation Decorations';
|
|
1974
|
+
const RenderValidationDecorationsDescription = 'Controls whether the editor should render validation decorations';
|
|
1975
|
+
const RevealHorizontalRightPadding = 'Reveal Horizontal Right Padding';
|
|
1976
|
+
const RevealHorizontalRightPaddingDescription = 'When revealing the cursor, a virtual padding (px) is added to the cursor, turning on a block cursor';
|
|
1977
|
+
const RoundedSelection = 'Rounded Selection';
|
|
1978
|
+
const RoundedSelectionDescription = 'Controls whether selections should have rounded corners';
|
|
1979
|
+
const Rulers = 'Rulers';
|
|
1980
|
+
const RulersDescription = 'Render vertical rulers at a certain number of monospace characters';
|
|
1981
|
+
const ScrollBeyondLastColumn = 'Scroll Beyond Last Column';
|
|
1982
|
+
const ScrollBeyondLastColumnDescription = 'Controls how many characters the editor will scroll horizontally';
|
|
1983
|
+
const Scrollbar = 'Scrollbar';
|
|
1984
|
+
const ScrollbarDescription = 'Controls the visibility and behavior of the scrollbars';
|
|
1985
|
+
const ScrollPredominantAxis = 'Scroll Predominant Axis';
|
|
1986
|
+
const ScrollPredominantAxisDescription = 'Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time';
|
|
1987
|
+
const SelectionClipboard = 'Selection Clipboard';
|
|
1988
|
+
const SelectionClipboardDescription = 'Controls whether the editor should use the CLIPBOARD selection';
|
|
1989
|
+
const ShowUnused = 'Show Unused';
|
|
1990
|
+
const ShowUnusedDescription = 'Controls fading out of unused code';
|
|
1991
|
+
const SnippetSuggestions = 'Snippet Suggestions';
|
|
1992
|
+
const SnippetSuggestionsDescription = 'Controls whether snippets are shown with other suggestions and how they are sorted';
|
|
1993
|
+
const Suggest = 'Suggest';
|
|
1994
|
+
const SuggestDescription = 'Controls whether suggestions should automatically show up while typing';
|
|
1995
|
+
const SuggestFontSize = 'Suggest Font Size';
|
|
1996
|
+
const SuggestFontSizeDescription = 'Font size for the suggest widget';
|
|
1997
|
+
const SuggestLineHeight = 'Suggest Line Height';
|
|
1998
|
+
const SuggestLineHeightDescription = 'Line height for the suggest widget';
|
|
1999
|
+
const SuggestSelection = 'Suggest Selection';
|
|
2000
|
+
const SuggestSelectionDescription = 'Controls how suggestions are selected when showing the suggest widget';
|
|
2001
|
+
const UseTabStops = 'Use Tab Stops';
|
|
2002
|
+
const UseTabStopsDescription = 'Inserting and deleting whitespace follows tab stops';
|
|
2003
|
+
const WordSeparators = 'Word Separators';
|
|
2004
|
+
const WordSeparatorsDescription = 'Characters that will be used as word separators when doing word related navigations or operations';
|
|
2005
|
+
const WrappingIndent = 'Wrapping Indent';
|
|
2006
|
+
const WrappingIndentDescription = 'Controls the indentation of wrapped lines';
|
|
2007
|
+
const UnknownSettingType = 'Unknown setting type';
|
|
1844
2008
|
|
|
1845
|
-
|
|
2009
|
+
// Menu Entry Labels
|
|
2010
|
+
const Advanced = 'Advanced';
|
|
2011
|
+
const Experimental = 'Experimental';
|
|
2012
|
+
const ExtensionId = 'Extension Id';
|
|
2013
|
+
const Feature = 'Feature';
|
|
2014
|
+
const Language = 'Language';
|
|
2015
|
+
const Modified = 'Modified';
|
|
2016
|
+
const Preview = 'Preview';
|
|
2017
|
+
const SettingId = 'Setting Id';
|
|
2018
|
+
const Stable = 'Stable';
|
|
2019
|
+
const Tag = 'Tag';
|
|
1846
2020
|
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
const afterPrefix = history.slice(firstPrefixIndex).filter(historyItem => !trimmedValue.startsWith(historyItem) || historyItem === trimmedValue);
|
|
1850
|
-
newHistory = [...beforePrefix, trimmedValue, ...afterPrefix];
|
|
1851
|
-
newHistoryIndex = firstPrefixIndex;
|
|
1852
|
-
} else {
|
|
1853
|
-
// Add as new item
|
|
1854
|
-
newHistory = [...history, trimmedValue];
|
|
1855
|
-
newHistoryIndex = newHistory.length - 1;
|
|
1856
|
-
}
|
|
1857
|
-
return {
|
|
1858
|
-
newHistory,
|
|
1859
|
-
newHistoryIndex
|
|
1860
|
-
};
|
|
2021
|
+
const autoSave = () => {
|
|
2022
|
+
return i18nString(AutoSave);
|
|
1861
2023
|
};
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
const {
|
|
1865
|
-
height,
|
|
1866
|
-
history,
|
|
1867
|
-
itemHeight,
|
|
1868
|
-
items,
|
|
1869
|
-
modifiedSettings,
|
|
1870
|
-
preferences,
|
|
1871
|
-
tabs
|
|
1872
|
-
} = state;
|
|
1873
|
-
const filteredItems = getFilteredItems(items, tabs, value, modifiedSettings, preferences);
|
|
1874
|
-
// Reset scroll when filter value changes so the user sees results from the top
|
|
1875
|
-
const nextScrollOffset = 0;
|
|
1876
|
-
const {
|
|
1877
|
-
maxLineY,
|
|
1878
|
-
minLineY,
|
|
1879
|
-
visibleItems
|
|
1880
|
-
} = computeVisibleItems(filteredItems, height, nextScrollOffset, itemHeight);
|
|
1881
|
-
const {
|
|
1882
|
-
scrollBarMinHeight
|
|
1883
|
-
} = state;
|
|
1884
|
-
const {
|
|
1885
|
-
thumbHeight,
|
|
1886
|
-
thumbTop
|
|
1887
|
-
} = computeScrollBar(height, filteredItems.length, itemHeight, nextScrollOffset, scrollBarMinHeight);
|
|
1888
|
-
const {
|
|
1889
|
-
newHistory,
|
|
1890
|
-
newHistoryIndex
|
|
1891
|
-
} = addToHistory(history, value);
|
|
1892
|
-
return {
|
|
1893
|
-
...state,
|
|
1894
|
-
deltaY: 0,
|
|
1895
|
-
filteredItems,
|
|
1896
|
-
history: newHistory,
|
|
1897
|
-
historyIndex: newHistoryIndex,
|
|
1898
|
-
inputSource,
|
|
1899
|
-
maxLineY,
|
|
1900
|
-
minLineY,
|
|
1901
|
-
scrollBarThumbHeight: thumbHeight,
|
|
1902
|
-
scrollBarThumbTop: thumbTop,
|
|
1903
|
-
scrollOffset: nextScrollOffset,
|
|
1904
|
-
searchValue: value,
|
|
1905
|
-
visibleItems
|
|
1906
|
-
};
|
|
2024
|
+
const autoSaveDescription = () => {
|
|
2025
|
+
return i18nString(AutoSaveDescription);
|
|
1907
2026
|
};
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
const SearchInput = 1;
|
|
1911
|
-
|
|
1912
|
-
const handleInputBlur = state => {
|
|
1913
|
-
return {
|
|
1914
|
-
...state,
|
|
1915
|
-
focus: None
|
|
1916
|
-
};
|
|
2027
|
+
const autoUpdateExtensions = () => {
|
|
2028
|
+
return i18nString(AutoUpdateExtensions);
|
|
1917
2029
|
};
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
return {
|
|
1921
|
-
...state,
|
|
1922
|
-
focus: SearchInput
|
|
1923
|
-
};
|
|
2030
|
+
const autoUpdateExtensionsDescription = () => {
|
|
2031
|
+
return i18nString(AutoUpdateExtensionsDescription);
|
|
1924
2032
|
};
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
return state;
|
|
2033
|
+
const autoUpdates = () => {
|
|
2034
|
+
return i18nString(AutoUpdates);
|
|
1928
2035
|
};
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
const {
|
|
1932
|
-
sideBarMinWidth
|
|
1933
|
-
} = state;
|
|
1934
|
-
const newWidth = Math.max(eventX, sideBarMinWidth);
|
|
1935
|
-
return {
|
|
1936
|
-
...state,
|
|
1937
|
-
sideBarWidth: newWidth
|
|
1938
|
-
};
|
|
2036
|
+
const autoUpdatesDescription = () => {
|
|
2037
|
+
return i18nString(AutoUpdatesDescription);
|
|
1939
2038
|
};
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
return state;
|
|
2039
|
+
const clear = () => {
|
|
2040
|
+
return i18nString(Clear$1);
|
|
1943
2041
|
};
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
return {
|
|
1947
|
-
...state,
|
|
1948
|
-
inputSource,
|
|
1949
|
-
scrollOffset: scrollTop
|
|
1950
|
-
};
|
|
2042
|
+
const filter = () => {
|
|
2043
|
+
return 'Filter';
|
|
1951
2044
|
};
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
if (oldModifiedSetings === newModifiedSettings && oldPreferences === newPreferences) {
|
|
1955
|
-
return oldFilteredItems;
|
|
1956
|
-
}
|
|
1957
|
-
return getFilteredItems(items, tabs, searchValue, newModifiedSettings, newPreferences);
|
|
2045
|
+
const extensionRecommendations = () => {
|
|
2046
|
+
return i18nString(ExtensionRecommendations);
|
|
1958
2047
|
};
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
if (name in modifiedSettings) {
|
|
1962
|
-
return modifiedSettings;
|
|
1963
|
-
}
|
|
1964
|
-
return {
|
|
1965
|
-
...modifiedSettings,
|
|
1966
|
-
[name]: true
|
|
1967
|
-
};
|
|
2048
|
+
const extensionRecommendationsDescription = () => {
|
|
2049
|
+
return i18nString(ExtensionRecommendationsDescription);
|
|
1968
2050
|
};
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
const {
|
|
1972
|
-
filteredItems,
|
|
1973
|
-
items,
|
|
1974
|
-
modifiedSettings,
|
|
1975
|
-
preferences,
|
|
1976
|
-
searchValue,
|
|
1977
|
-
tabs
|
|
1978
|
-
} = state;
|
|
1979
|
-
const newModifiedSettings = getNewModifiedSettings(modifiedSettings, name);
|
|
1980
|
-
const newPreferences = {
|
|
1981
|
-
...preferences,
|
|
1982
|
-
[name]: value
|
|
1983
|
-
};
|
|
1984
|
-
const newFilteredItems = getNewFilteredItems(modifiedSettings, newModifiedSettings, items, tabs, searchValue, filteredItems, preferences, newPreferences);
|
|
1985
|
-
return {
|
|
1986
|
-
...state,
|
|
1987
|
-
filteredItems: newFilteredItems,
|
|
1988
|
-
inputSource,
|
|
1989
|
-
preferences: newPreferences
|
|
1990
|
-
};
|
|
2051
|
+
const fileEncryption = () => {
|
|
2052
|
+
return i18nString(FileEncryption);
|
|
1991
2053
|
};
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
return handleSettingUpdate(state, name, value, source);
|
|
2054
|
+
const fileEncryptionDescription = () => {
|
|
2055
|
+
return i18nString(FileEncryptionDescription);
|
|
1995
2056
|
};
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
const String = 2;
|
|
1999
|
-
const Boolean$1 = 3;
|
|
2000
|
-
const Number$1 = 5;
|
|
2001
|
-
const Color = 6;
|
|
2002
|
-
const Url = 7;
|
|
2003
|
-
|
|
2004
|
-
const handleSettingInput = (state, name, value, inputSource = User) => {
|
|
2005
|
-
const {
|
|
2006
|
-
items
|
|
2007
|
-
} = state;
|
|
2008
|
-
|
|
2009
|
-
// TODO maybe have separate input functions for number and string inputs
|
|
2010
|
-
const settingItem = items.find(item => item.id === name);
|
|
2011
|
-
if (settingItem && settingItem.type === Number$1) {
|
|
2012
|
-
const numberValue = value === '' ? '' : Number(value);
|
|
2013
|
-
return handleSettingUpdate(state, name, numberValue, inputSource);
|
|
2014
|
-
}
|
|
2015
|
-
return handleSettingUpdate(state, name, value, inputSource);
|
|
2057
|
+
const fontFamily = () => {
|
|
2058
|
+
return i18nString(FontFamily);
|
|
2016
2059
|
};
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
return handleSettingUpdate(state, name, value, source);
|
|
2060
|
+
const fontFamilyDescription = () => {
|
|
2061
|
+
return i18nString(FontFamilyDescription);
|
|
2020
2062
|
};
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
if (Number.isNaN(value)) {
|
|
2024
|
-
return min;
|
|
2025
|
-
}
|
|
2026
|
-
if (max < min) {
|
|
2027
|
-
return min;
|
|
2028
|
-
}
|
|
2029
|
-
if (value < min) {
|
|
2030
|
-
return min;
|
|
2031
|
-
}
|
|
2032
|
-
if (value > max) {
|
|
2033
|
-
return max;
|
|
2034
|
-
}
|
|
2035
|
-
return value;
|
|
2063
|
+
const fontSize = () => {
|
|
2064
|
+
return i18nString(FontSize);
|
|
2036
2065
|
};
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
const {
|
|
2040
|
-
deltaY: deltaY,
|
|
2041
|
-
filteredItems,
|
|
2042
|
-
height,
|
|
2043
|
-
itemHeight = 1
|
|
2044
|
-
} = state;
|
|
2045
|
-
const itemCount = filteredItems.length;
|
|
2046
|
-
const stepLimit = itemCount === 0 ? 10 : Number.POSITIVE_INFINITY;
|
|
2047
|
-
const limitedEventDelta = Math.max(-stepLimit, Math.min(stepLimit, eventDeltaY));
|
|
2048
|
-
const total = deltaY + limitedEventDelta;
|
|
2049
|
-
// Prevent scrolling beyond the available content height. If content is smaller
|
|
2050
|
-
// than the viewport, the maximum scroll is zero.
|
|
2051
|
-
const totalContentHeight = itemCount * itemHeight;
|
|
2052
|
-
const maxScrollable = Math.max(0, totalContentHeight - height);
|
|
2053
|
-
const clampedDeltaY = clamp(total, 0, maxScrollable);
|
|
2054
|
-
const scrollOffset = clampedDeltaY;
|
|
2055
|
-
const {
|
|
2056
|
-
maxLineY,
|
|
2057
|
-
minLineY,
|
|
2058
|
-
visibleItems
|
|
2059
|
-
} = computeVisibleItems(filteredItems, height, scrollOffset, itemHeight);
|
|
2060
|
-
const {
|
|
2061
|
-
scrollBarMinHeight
|
|
2062
|
-
} = state;
|
|
2063
|
-
const {
|
|
2064
|
-
thumbHeight,
|
|
2065
|
-
thumbTop
|
|
2066
|
-
} = computeScrollBar(height, filteredItems.length, itemHeight, scrollOffset, scrollBarMinHeight);
|
|
2067
|
-
return {
|
|
2068
|
-
...state,
|
|
2069
|
-
deltaY: clampedDeltaY,
|
|
2070
|
-
inputSource,
|
|
2071
|
-
maxLineY,
|
|
2072
|
-
minLineY,
|
|
2073
|
-
scrollBarThumbHeight: thumbHeight,
|
|
2074
|
-
scrollBarThumbTop: thumbTop,
|
|
2075
|
-
scrollOffset,
|
|
2076
|
-
visibleItems
|
|
2077
|
-
};
|
|
2066
|
+
const fontSizeDescription = () => {
|
|
2067
|
+
return i18nString(FontSizeDescription);
|
|
2078
2068
|
};
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
// TODO
|
|
2069
|
+
const formatOnSave = () => {
|
|
2070
|
+
return i18nString(FormatOnSave);
|
|
2082
2071
|
};
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
const modifiedSettings = Object.create(null);
|
|
2086
|
-
for (const key of Object.keys(preferences)) {
|
|
2087
|
-
modifiedSettings[key] = true;
|
|
2088
|
-
}
|
|
2089
|
-
return modifiedSettings;
|
|
2072
|
+
const formatOnSaveDescription = () => {
|
|
2073
|
+
return i18nString(FormatOnSaveDescription);
|
|
2090
2074
|
};
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
const ClientY = 'event.clientY';
|
|
2094
|
-
const DeltaY = 'event.deltaY';
|
|
2095
|
-
const TargetName = 'event.target.name';
|
|
2096
|
-
const TargetValue = 'event.target.value';
|
|
2097
|
-
|
|
2098
|
-
const Script = 2;
|
|
2099
|
-
|
|
2100
|
-
const DebugWorker = 55;
|
|
2101
|
-
const RendererWorker$1 = 1;
|
|
2102
|
-
|
|
2103
|
-
const SetCss = 'Viewlet.setCss';
|
|
2104
|
-
|
|
2105
|
-
const rpcs = Object.create(null);
|
|
2106
|
-
const set$2 = (id, rpc) => {
|
|
2107
|
-
rpcs[id] = rpc;
|
|
2075
|
+
const numberValue = () => {
|
|
2076
|
+
return i18nString(NumberValue);
|
|
2108
2077
|
};
|
|
2109
|
-
const
|
|
2110
|
-
return
|
|
2078
|
+
const colorValue = () => {
|
|
2079
|
+
return i18nString(ColorValue);
|
|
2111
2080
|
};
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
return {
|
|
2115
|
-
async dispose() {
|
|
2116
|
-
const rpc = get(rpcId);
|
|
2117
|
-
await rpc.dispose();
|
|
2118
|
-
},
|
|
2119
|
-
// @ts-ignore
|
|
2120
|
-
invoke(method, ...params) {
|
|
2121
|
-
const rpc = get(rpcId);
|
|
2122
|
-
// @ts-ignore
|
|
2123
|
-
return rpc.invoke(method, ...params);
|
|
2124
|
-
},
|
|
2125
|
-
// @ts-ignore
|
|
2126
|
-
invokeAndTransfer(method, ...params) {
|
|
2127
|
-
const rpc = get(rpcId);
|
|
2128
|
-
// @ts-ignore
|
|
2129
|
-
return rpc.invokeAndTransfer(method, ...params);
|
|
2130
|
-
},
|
|
2131
|
-
set(rpc) {
|
|
2132
|
-
set$2(rpcId, rpc);
|
|
2133
|
-
}
|
|
2134
|
-
};
|
|
2081
|
+
const stringValue = () => {
|
|
2082
|
+
return i18nString(StringValue);
|
|
2135
2083
|
};
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
dispose,
|
|
2139
|
-
invoke,
|
|
2140
|
-
invokeAndTransfer,
|
|
2141
|
-
set: set$1
|
|
2142
|
-
} = create(RendererWorker$1);
|
|
2143
|
-
const searchFileHtml = async uri => {
|
|
2144
|
-
return invoke('ExtensionHost.searchFileWithHtml', uri);
|
|
2084
|
+
const searchSettings = () => {
|
|
2085
|
+
return i18nString(SearchSettings);
|
|
2145
2086
|
};
|
|
2146
|
-
const
|
|
2147
|
-
return
|
|
2087
|
+
const settingsContent = () => {
|
|
2088
|
+
return i18nString(SettingsContent$1);
|
|
2148
2089
|
};
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
*/
|
|
2152
|
-
const showContextMenu = async (x, y, id, ...args) => {
|
|
2153
|
-
return invoke('ContextMenu.show', x, y, id, ...args);
|
|
2090
|
+
const sidebarPosition = () => {
|
|
2091
|
+
return i18nString(SidebarPosition);
|
|
2154
2092
|
};
|
|
2155
|
-
const
|
|
2156
|
-
|
|
2157
|
-
number(menuId);
|
|
2158
|
-
number(x);
|
|
2159
|
-
number(y);
|
|
2160
|
-
// @ts-ignore
|
|
2161
|
-
await invoke('ContextMenu.show2', uid, menuId, x, y, args);
|
|
2093
|
+
const sidebarPositionDescription = () => {
|
|
2094
|
+
return i18nString(SidebarPositionDescription);
|
|
2162
2095
|
};
|
|
2163
|
-
const
|
|
2164
|
-
return
|
|
2096
|
+
const telemetry = () => {
|
|
2097
|
+
return i18nString(Telemetry);
|
|
2165
2098
|
};
|
|
2166
|
-
const
|
|
2167
|
-
|
|
2099
|
+
const telemetryDescription = () => {
|
|
2100
|
+
return i18nString(TelemetryDescription);
|
|
2168
2101
|
};
|
|
2169
|
-
const
|
|
2170
|
-
|
|
2171
|
-
return invoke(/* ColorTheme.setColorTheme */'ColorTheme.setColorTheme', /* colorThemeId */id);
|
|
2102
|
+
const theme = () => {
|
|
2103
|
+
return i18nString(Theme);
|
|
2172
2104
|
};
|
|
2173
|
-
const
|
|
2174
|
-
return
|
|
2105
|
+
const themeDescription = () => {
|
|
2106
|
+
return i18nString(ThemeDescription);
|
|
2175
2107
|
};
|
|
2176
|
-
const
|
|
2177
|
-
return
|
|
2108
|
+
const twoFactorAuth = () => {
|
|
2109
|
+
return i18nString(TwoFactorAuth);
|
|
2178
2110
|
};
|
|
2179
|
-
const
|
|
2180
|
-
return
|
|
2111
|
+
const twoFactorAuthDescription = () => {
|
|
2112
|
+
return i18nString(TwoFactorAuthDescription);
|
|
2181
2113
|
};
|
|
2182
|
-
const
|
|
2183
|
-
|
|
2184
|
-
return files;
|
|
2114
|
+
const windowSize = () => {
|
|
2115
|
+
return i18nString(WindowSize);
|
|
2185
2116
|
};
|
|
2186
|
-
const
|
|
2187
|
-
|
|
2117
|
+
const windowSizeDescription = () => {
|
|
2118
|
+
return i18nString(WindowSizeDescription);
|
|
2188
2119
|
};
|
|
2189
|
-
const
|
|
2190
|
-
|
|
2120
|
+
const windowTitle = () => {
|
|
2121
|
+
return i18nString(WindowTitle);
|
|
2191
2122
|
};
|
|
2192
|
-
const
|
|
2193
|
-
|
|
2123
|
+
const windowTitleDescription = () => {
|
|
2124
|
+
return i18nString(WindowTitleDescription);
|
|
2194
2125
|
};
|
|
2195
|
-
const
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2126
|
+
const noSettingsMatching = searchTerm => {
|
|
2127
|
+
return i18nString(NoSettingsMatching, {
|
|
2128
|
+
PH1: searchTerm
|
|
2129
|
+
});
|
|
2199
2130
|
};
|
|
2200
|
-
const
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2131
|
+
const matchingSettings = count => {
|
|
2132
|
+
return i18nString(MatchingSettings, {
|
|
2133
|
+
PH1: count.toString()
|
|
2134
|
+
});
|
|
2204
2135
|
};
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2136
|
+
|
|
2137
|
+
// Text Editor Settings
|
|
2138
|
+
const wordWrap = () => {
|
|
2139
|
+
return i18nString(WordWrap);
|
|
2209
2140
|
};
|
|
2210
|
-
const
|
|
2211
|
-
|
|
2212
|
-
// @ts-ignore
|
|
2213
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToIconThemeWorker', port, command, rpcId);
|
|
2141
|
+
const wordWrapDescription = () => {
|
|
2142
|
+
return i18nString(WordWrapDescription);
|
|
2214
2143
|
};
|
|
2215
|
-
const
|
|
2216
|
-
|
|
2217
|
-
// @ts-ignore
|
|
2218
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToFileSystemWorker', port, command, rpcId);
|
|
2144
|
+
const lineNumbers = () => {
|
|
2145
|
+
return i18nString(LineNumbers);
|
|
2219
2146
|
};
|
|
2220
|
-
const
|
|
2221
|
-
return
|
|
2147
|
+
const lineNumbersDescription = () => {
|
|
2148
|
+
return i18nString(LineNumbersDescription);
|
|
2222
2149
|
};
|
|
2223
|
-
const
|
|
2224
|
-
|
|
2225
|
-
return invoke('WebView.getSecret', key);
|
|
2150
|
+
const minimap = () => {
|
|
2151
|
+
return i18nString(Minimap);
|
|
2226
2152
|
};
|
|
2227
|
-
const
|
|
2228
|
-
return
|
|
2153
|
+
const minimapDescription = () => {
|
|
2154
|
+
return i18nString(MinimapDescription);
|
|
2229
2155
|
};
|
|
2230
|
-
const
|
|
2231
|
-
return
|
|
2156
|
+
const scrollBeyondLastLine = () => {
|
|
2157
|
+
return i18nString(ScrollBeyondLastLine);
|
|
2232
2158
|
};
|
|
2233
|
-
const
|
|
2234
|
-
return
|
|
2159
|
+
const scrollBeyondLastLineDescription = () => {
|
|
2160
|
+
return i18nString(ScrollBeyondLastLineDescription);
|
|
2235
2161
|
};
|
|
2236
|
-
const
|
|
2237
|
-
return
|
|
2162
|
+
const smoothScrolling = () => {
|
|
2163
|
+
return i18nString(SmoothScrolling);
|
|
2238
2164
|
};
|
|
2239
|
-
const
|
|
2240
|
-
|
|
2241
|
-
return invoke('ExtensionManagement.disable', id);
|
|
2165
|
+
const smoothScrollingDescription = () => {
|
|
2166
|
+
return i18nString(SmoothScrollingDescription);
|
|
2242
2167
|
};
|
|
2243
|
-
const
|
|
2244
|
-
|
|
2245
|
-
return invoke('ExtensionManagement.enable', id);
|
|
2168
|
+
const cursorBlinking = () => {
|
|
2169
|
+
return i18nString(CursorBlinking);
|
|
2246
2170
|
};
|
|
2247
|
-
const
|
|
2248
|
-
|
|
2249
|
-
return invoke('Run And Debug.handleChange', params);
|
|
2171
|
+
const cursorBlinkingDescription = () => {
|
|
2172
|
+
return i18nString(CursorBlinkingDescription);
|
|
2250
2173
|
};
|
|
2251
|
-
const
|
|
2252
|
-
return
|
|
2174
|
+
const cursorStyle = () => {
|
|
2175
|
+
return i18nString(CursorStyle);
|
|
2253
2176
|
};
|
|
2254
|
-
const
|
|
2255
|
-
return
|
|
2177
|
+
const cursorStyleDescription = () => {
|
|
2178
|
+
return i18nString(CursorStyleDescription);
|
|
2256
2179
|
};
|
|
2257
|
-
const
|
|
2258
|
-
return
|
|
2180
|
+
const cursorWidth = () => {
|
|
2181
|
+
return i18nString(CursorWidth);
|
|
2259
2182
|
};
|
|
2260
|
-
const
|
|
2261
|
-
|
|
2262
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker', port, command, rpcId);
|
|
2183
|
+
const cursorWidthDescription = () => {
|
|
2184
|
+
return i18nString(CursorWidthDescription);
|
|
2263
2185
|
};
|
|
2264
|
-
const
|
|
2265
|
-
|
|
2186
|
+
const tabSize = () => {
|
|
2187
|
+
return i18nString(TabSize);
|
|
2266
2188
|
};
|
|
2267
|
-
const
|
|
2268
|
-
|
|
2269
|
-
const result = await invoke('ConfirmPrompt.prompt', message, options);
|
|
2270
|
-
return result;
|
|
2189
|
+
const tabSizeDescription = () => {
|
|
2190
|
+
return i18nString(TabSizeDescription);
|
|
2271
2191
|
};
|
|
2272
|
-
const
|
|
2273
|
-
return
|
|
2192
|
+
const insertSpaces = () => {
|
|
2193
|
+
return i18nString(InsertSpaces);
|
|
2274
2194
|
};
|
|
2275
|
-
const
|
|
2276
|
-
return
|
|
2195
|
+
const insertSpacesDescription = () => {
|
|
2196
|
+
return i18nString(InsertSpacesDescription);
|
|
2277
2197
|
};
|
|
2278
|
-
const
|
|
2279
|
-
|
|
2198
|
+
const detectIndentation = () => {
|
|
2199
|
+
return i18nString(DetectIndentation);
|
|
2280
2200
|
};
|
|
2281
|
-
const
|
|
2282
|
-
return
|
|
2201
|
+
const detectIndentationDescription = () => {
|
|
2202
|
+
return i18nString(DetectIndentationDescription);
|
|
2283
2203
|
};
|
|
2284
|
-
const
|
|
2285
|
-
|
|
2286
|
-
await invoke('ClipBoard.writeImage', /* text */blob);
|
|
2204
|
+
const trimAutoWhitespace = () => {
|
|
2205
|
+
return i18nString(TrimAutoWhitespace);
|
|
2287
2206
|
};
|
|
2288
|
-
const
|
|
2289
|
-
|
|
2290
|
-
return invoke('ExtensionHost.searchFileWithMemory', uri);
|
|
2207
|
+
const trimAutoWhitespaceDescription = () => {
|
|
2208
|
+
return i18nString(TrimAutoWhitespaceDescription);
|
|
2291
2209
|
};
|
|
2292
|
-
const
|
|
2293
|
-
return
|
|
2210
|
+
const largeFileOptimizations = () => {
|
|
2211
|
+
return i18nString(LargeFileOptimizations);
|
|
2294
2212
|
};
|
|
2295
|
-
const
|
|
2296
|
-
return
|
|
2213
|
+
const largeFileOptimizationsDescription = () => {
|
|
2214
|
+
return i18nString(LargeFileOptimizationsDescription);
|
|
2297
2215
|
};
|
|
2298
|
-
const
|
|
2299
|
-
|
|
2216
|
+
const renderWhitespace = () => {
|
|
2217
|
+
return i18nString(RenderWhitespace);
|
|
2300
2218
|
};
|
|
2301
|
-
const
|
|
2302
|
-
|
|
2219
|
+
const renderWhitespaceDescription = () => {
|
|
2220
|
+
return i18nString(RenderWhitespaceDescription);
|
|
2303
2221
|
};
|
|
2304
|
-
const
|
|
2305
|
-
|
|
2306
|
-
return icons;
|
|
2222
|
+
const renderControlCharacters = () => {
|
|
2223
|
+
return i18nString(RenderControlCharacters);
|
|
2307
2224
|
};
|
|
2308
|
-
const
|
|
2309
|
-
return
|
|
2225
|
+
const renderControlCharactersDescription = () => {
|
|
2226
|
+
return i18nString(RenderControlCharactersDescription);
|
|
2310
2227
|
};
|
|
2311
|
-
const
|
|
2312
|
-
|
|
2313
|
-
return invoke('Focus.setAdditionalFocus', focusKey);
|
|
2228
|
+
const renderLineHighlight = () => {
|
|
2229
|
+
return i18nString(RenderLineHighlight);
|
|
2314
2230
|
};
|
|
2315
|
-
const
|
|
2316
|
-
|
|
2317
|
-
return invoke('GetActiveEditor.getActiveEditorId');
|
|
2231
|
+
const renderLineHighlightDescription = () => {
|
|
2232
|
+
return i18nString(RenderLineHighlightDescription);
|
|
2318
2233
|
};
|
|
2319
|
-
const
|
|
2320
|
-
return
|
|
2234
|
+
const codeLens = () => {
|
|
2235
|
+
return i18nString(CodeLens);
|
|
2321
2236
|
};
|
|
2322
|
-
const
|
|
2323
|
-
|
|
2324
|
-
// @ts-ignore
|
|
2325
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToRendererProcess', port, command, DebugWorker);
|
|
2237
|
+
const codeLensDescription = () => {
|
|
2238
|
+
return i18nString(CodeLensDescription);
|
|
2326
2239
|
};
|
|
2327
|
-
const
|
|
2328
|
-
|
|
2329
|
-
// @ts-ignore
|
|
2330
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToTextMeasurementWorker', port, command, 0);
|
|
2240
|
+
const folding = () => {
|
|
2241
|
+
return i18nString(Folding);
|
|
2331
2242
|
};
|
|
2332
|
-
const
|
|
2333
|
-
|
|
2334
|
-
// @ts-ignore
|
|
2335
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToSourceControlWorker', port, command, 0);
|
|
2243
|
+
const foldingDescription = () => {
|
|
2244
|
+
return i18nString(FoldingDescription);
|
|
2336
2245
|
};
|
|
2337
|
-
const
|
|
2338
|
-
|
|
2339
|
-
// @ts-ignore
|
|
2340
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToSharedProcess', port, command, 0);
|
|
2246
|
+
const showFoldingControls = () => {
|
|
2247
|
+
return i18nString(ShowFoldingControls);
|
|
2341
2248
|
};
|
|
2342
|
-
const
|
|
2343
|
-
|
|
2344
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToSharedProcess', port, command, rpcId);
|
|
2249
|
+
const showFoldingControlsDescription = () => {
|
|
2250
|
+
return i18nString(ShowFoldingControlsDescription);
|
|
2345
2251
|
};
|
|
2346
|
-
const
|
|
2347
|
-
|
|
2348
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToIframeWorker', port, command, rpcId);
|
|
2252
|
+
const unfoldOnClickAfterEnd = () => {
|
|
2253
|
+
return i18nString(UnfoldOnClickAfterEnd);
|
|
2349
2254
|
};
|
|
2350
|
-
const
|
|
2351
|
-
|
|
2352
|
-
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionManagementWorker', port, command, rpcId);
|
|
2255
|
+
const unfoldOnClickAfterEndDescription = () => {
|
|
2256
|
+
return i18nString(UnfoldOnClickAfterEndDescription);
|
|
2353
2257
|
};
|
|
2354
|
-
const
|
|
2355
|
-
return
|
|
2258
|
+
const links = () => {
|
|
2259
|
+
return i18nString(Links);
|
|
2356
2260
|
};
|
|
2357
|
-
const
|
|
2358
|
-
return
|
|
2261
|
+
const linksDescription = () => {
|
|
2262
|
+
return i18nString(LinksDescription);
|
|
2359
2263
|
};
|
|
2360
|
-
const
|
|
2361
|
-
|
|
2362
|
-
return invoke('Editor.rerender', key);
|
|
2264
|
+
const colorDecorators = () => {
|
|
2265
|
+
return i18nString(ColorDecorators);
|
|
2363
2266
|
};
|
|
2364
|
-
const
|
|
2365
|
-
|
|
2267
|
+
const colorDecoratorsDescription = () => {
|
|
2268
|
+
return i18nString(ColorDecoratorsDescription);
|
|
2366
2269
|
};
|
|
2367
|
-
const
|
|
2368
|
-
|
|
2270
|
+
const lightbulb = () => {
|
|
2271
|
+
return i18nString(Lightbulb);
|
|
2369
2272
|
};
|
|
2370
|
-
const
|
|
2371
|
-
|
|
2372
|
-
// @ts-ignore
|
|
2373
|
-
'SendMessagePortToSyntaxHighlightingWorker.sendMessagePortToSyntaxHighlightingWorker', port, 'HandleMessagePort.handleMessagePort2');
|
|
2273
|
+
const lightbulbDescription = () => {
|
|
2274
|
+
return i18nString(LightbulbDescription);
|
|
2374
2275
|
};
|
|
2375
|
-
const
|
|
2376
|
-
|
|
2276
|
+
const codeActionsOnSave = () => {
|
|
2277
|
+
return i18nString(CodeActionsOnSave);
|
|
2377
2278
|
};
|
|
2378
|
-
const
|
|
2379
|
-
return
|
|
2279
|
+
const codeActionsOnSaveDescription = () => {
|
|
2280
|
+
return i18nString(CodeActionsOnSaveDescription);
|
|
2380
2281
|
};
|
|
2381
|
-
const
|
|
2382
|
-
|
|
2383
|
-
return invoke('FileSystem.getBlob', uri);
|
|
2282
|
+
const formatOnPaste = () => {
|
|
2283
|
+
return i18nString(FormatOnPaste);
|
|
2384
2284
|
};
|
|
2385
|
-
const
|
|
2386
|
-
return
|
|
2285
|
+
const formatOnPasteDescription = () => {
|
|
2286
|
+
return i18nString(FormatOnPasteDescription);
|
|
2387
2287
|
};
|
|
2388
|
-
const
|
|
2389
|
-
|
|
2390
|
-
await invoke('ErrorHandling.showErrorDialog', errorInfo);
|
|
2288
|
+
const formatOnType = () => {
|
|
2289
|
+
return i18nString(FormatOnType);
|
|
2391
2290
|
};
|
|
2392
|
-
const
|
|
2393
|
-
|
|
2394
|
-
return await invoke('FileSystem.getFolderSize', uri);
|
|
2291
|
+
const formatOnTypeDescription = () => {
|
|
2292
|
+
return i18nString(FormatOnTypeDescription);
|
|
2395
2293
|
};
|
|
2396
|
-
const
|
|
2397
|
-
|
|
2398
|
-
return invoke('ExtensionManagement.getExtension', id);
|
|
2294
|
+
const acceptSuggestionOnCommitCharacter = () => {
|
|
2295
|
+
return i18nString(AcceptSuggestionOnCommitCharacter);
|
|
2399
2296
|
};
|
|
2400
|
-
const
|
|
2401
|
-
|
|
2402
|
-
return invoke('Markdown.getVirtualDom', html);
|
|
2297
|
+
const acceptSuggestionOnCommitCharacterDescription = () => {
|
|
2298
|
+
return i18nString(AcceptSuggestionOnCommitCharacterDescription);
|
|
2403
2299
|
};
|
|
2404
|
-
const
|
|
2405
|
-
|
|
2406
|
-
return invoke('Markdown.renderMarkdown', markdown, options);
|
|
2300
|
+
const acceptSuggestionOnEnter = () => {
|
|
2301
|
+
return i18nString(AcceptSuggestionOnEnter);
|
|
2407
2302
|
};
|
|
2408
|
-
const
|
|
2409
|
-
|
|
2410
|
-
await invoke('OpenNativeFolder.openNativeFolder', uri);
|
|
2303
|
+
const acceptSuggestionOnEnterDescription = () => {
|
|
2304
|
+
return i18nString(AcceptSuggestionOnEnterDescription);
|
|
2411
2305
|
};
|
|
2412
|
-
const
|
|
2413
|
-
return
|
|
2306
|
+
const tabCompletion = () => {
|
|
2307
|
+
return i18nString(TabCompletion);
|
|
2414
2308
|
};
|
|
2415
|
-
const
|
|
2416
|
-
|
|
2417
|
-
return invoke('ExtensionManagement.install', id);
|
|
2309
|
+
const tabCompletionDescription = () => {
|
|
2310
|
+
return i18nString(TabCompletionDescription);
|
|
2418
2311
|
};
|
|
2419
|
-
const
|
|
2420
|
-
|
|
2421
|
-
return invoke('ElectronWindow.minimize');
|
|
2312
|
+
const wordBasedSuggestions = () => {
|
|
2313
|
+
return i18nString(WordBasedSuggestions);
|
|
2422
2314
|
};
|
|
2423
|
-
const
|
|
2424
|
-
|
|
2425
|
-
return invoke('ElectronWindow.unmaximize');
|
|
2315
|
+
const wordBasedSuggestionsDescription = () => {
|
|
2316
|
+
return i18nString(WordBasedSuggestionsDescription);
|
|
2426
2317
|
};
|
|
2427
|
-
const
|
|
2428
|
-
|
|
2429
|
-
return invoke('ElectronWindow.maximize');
|
|
2318
|
+
const suggestOnTriggerCharacters = () => {
|
|
2319
|
+
return i18nString(SuggestOnTriggerCharacters);
|
|
2430
2320
|
};
|
|
2431
|
-
const
|
|
2432
|
-
|
|
2433
|
-
return invoke('ElectronWindow.close');
|
|
2321
|
+
const suggestOnTriggerCharactersDescription = () => {
|
|
2322
|
+
return i18nString(SuggestOnTriggerCharactersDescription);
|
|
2434
2323
|
};
|
|
2435
|
-
const
|
|
2436
|
-
|
|
2437
|
-
return invoke('SideBar.openViewlet', 'Extensions');
|
|
2324
|
+
const quickSuggestions = () => {
|
|
2325
|
+
return i18nString(QuickSuggestions);
|
|
2438
2326
|
};
|
|
2439
|
-
const
|
|
2440
|
-
|
|
2441
|
-
return invoke('Extensions.handleInput', searchValue, Script);
|
|
2327
|
+
const quickSuggestionsDescription = () => {
|
|
2328
|
+
return i18nString(QuickSuggestionsDescription);
|
|
2442
2329
|
};
|
|
2443
|
-
const
|
|
2444
|
-
|
|
2445
|
-
await invoke('Open.openExternal', uri);
|
|
2330
|
+
const parameterHints = () => {
|
|
2331
|
+
return i18nString(ParameterHints);
|
|
2446
2332
|
};
|
|
2447
|
-
const
|
|
2448
|
-
|
|
2449
|
-
await invoke('Open.openUrl', uri);
|
|
2333
|
+
const parameterHintsDescription = () => {
|
|
2334
|
+
return i18nString(ParameterHintsDescription);
|
|
2450
2335
|
};
|
|
2451
|
-
const
|
|
2452
|
-
|
|
2453
|
-
return invoke('Preferences.getAll');
|
|
2336
|
+
const autoClosingBrackets = () => {
|
|
2337
|
+
return i18nString(AutoClosingBrackets);
|
|
2454
2338
|
};
|
|
2455
|
-
const
|
|
2456
|
-
|
|
2457
|
-
return invoke('FilePicker.showSaveFilePicker');
|
|
2339
|
+
const autoClosingBracketsDescription = () => {
|
|
2340
|
+
return i18nString(AutoClosingBracketsDescription);
|
|
2458
2341
|
};
|
|
2459
|
-
const
|
|
2460
|
-
|
|
2461
|
-
return invoke('PlatformPaths.getLogsDir');
|
|
2342
|
+
const autoClosingQuotes = () => {
|
|
2343
|
+
return i18nString(AutoClosingQuotes);
|
|
2462
2344
|
};
|
|
2463
|
-
const
|
|
2464
|
-
return
|
|
2345
|
+
const autoClosingQuotesDescription = () => {
|
|
2346
|
+
return i18nString(AutoClosingQuotesDescription);
|
|
2465
2347
|
};
|
|
2466
|
-
const
|
|
2467
|
-
|
|
2468
|
-
commandMap
|
|
2469
|
-
});
|
|
2470
|
-
set$1(mockRpc);
|
|
2471
|
-
return mockRpc;
|
|
2348
|
+
const autoClosingOvertype = () => {
|
|
2349
|
+
return i18nString(AutoClosingOvertype);
|
|
2472
2350
|
};
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
__proto__: null,
|
|
2476
|
-
activateByEvent,
|
|
2477
|
-
applyBulkReplacement,
|
|
2478
|
-
closeWidget,
|
|
2479
|
-
closeWindow,
|
|
2480
|
-
confirm,
|
|
2481
|
-
disableExtension,
|
|
2482
|
-
dispose,
|
|
2483
|
-
enableExtension,
|
|
2484
|
-
getActiveEditorId,
|
|
2485
|
-
getAllExtensions,
|
|
2486
|
-
getAllPreferences,
|
|
2487
|
-
getBlob,
|
|
2488
|
-
getChromeVersion,
|
|
2489
|
-
getColorThemeNames,
|
|
2490
|
-
getElectronVersion,
|
|
2491
|
-
getExtension,
|
|
2492
|
-
getExtensionCommands,
|
|
2493
|
-
getFileHandles,
|
|
2494
|
-
getFileIcon,
|
|
2495
|
-
getFilePathElectron,
|
|
2496
|
-
getFolderIcon,
|
|
2497
|
-
getFolderSize,
|
|
2498
|
-
getIcons,
|
|
2499
|
-
getKeyBindings,
|
|
2500
|
-
getLogsDir,
|
|
2501
|
-
getMarkdownDom,
|
|
2502
|
-
getNodeVersion,
|
|
2503
|
-
getPreference,
|
|
2504
|
-
getRecentlyOpened,
|
|
2505
|
-
getV8Version,
|
|
2506
|
-
getWebViewSecret,
|
|
2507
|
-
getWindowId,
|
|
2508
|
-
getWorkspacePath,
|
|
2509
|
-
handleDebugChange,
|
|
2510
|
-
handleDebugPaused,
|
|
2511
|
-
handleDebugResumed,
|
|
2512
|
-
handleDebugScriptParsed,
|
|
2513
|
-
handleWorkspaceRefresh,
|
|
2514
|
-
installExtension,
|
|
2515
|
-
invoke,
|
|
2516
|
-
invokeAndTransfer,
|
|
2517
|
-
maximizeWindow,
|
|
2518
|
-
measureTextBlockHeight,
|
|
2519
|
-
minimizeWindow,
|
|
2520
|
-
openExtensionSearch,
|
|
2521
|
-
openExternal,
|
|
2522
|
-
openNativeFolder,
|
|
2523
|
-
openUri,
|
|
2524
|
-
openUrl,
|
|
2525
|
-
openWidget,
|
|
2526
|
-
readClipBoardText,
|
|
2527
|
-
readFile,
|
|
2528
|
-
registerMockRpc,
|
|
2529
|
-
registerWebViewInterceptor,
|
|
2530
|
-
renderMarkdown,
|
|
2531
|
-
rerenderEditor,
|
|
2532
|
-
searchFileFetch,
|
|
2533
|
-
searchFileHtml,
|
|
2534
|
-
searchFileMemory,
|
|
2535
|
-
sendMessagePortToEditorWorker,
|
|
2536
|
-
sendMessagePortToErrorWorker,
|
|
2537
|
-
sendMessagePortToExtensionHostWorker,
|
|
2538
|
-
sendMessagePortToExtensionManagementWorker,
|
|
2539
|
-
sendMessagePortToFileSystemProcess,
|
|
2540
|
-
sendMessagePortToFileSystemWorker,
|
|
2541
|
-
sendMessagePortToIconThemeWorker,
|
|
2542
|
-
sendMessagePortToIframeWorker,
|
|
2543
|
-
sendMessagePortToMarkdownWorker,
|
|
2544
|
-
sendMessagePortToRendererProcess,
|
|
2545
|
-
sendMessagePortToSearchProcess,
|
|
2546
|
-
sendMessagePortToSharedProcess,
|
|
2547
|
-
sendMessagePortToSourceControlWorker,
|
|
2548
|
-
sendMessagePortToSyntaxHighlightingWorker,
|
|
2549
|
-
sendMessagePortToTextMeasurementWorker,
|
|
2550
|
-
set: set$1,
|
|
2551
|
-
setAdditionalFocus,
|
|
2552
|
-
setColorTheme,
|
|
2553
|
-
setExtensionsSearchValue,
|
|
2554
|
-
setFocus,
|
|
2555
|
-
setWebViewPort,
|
|
2556
|
-
setWorkspacePath,
|
|
2557
|
-
showContextMenu,
|
|
2558
|
-
showContextMenu2,
|
|
2559
|
-
showErrorDialog,
|
|
2560
|
-
showMessageBox,
|
|
2561
|
-
showSaveFilePicker,
|
|
2562
|
-
uninstallExtension,
|
|
2563
|
-
unmaximizeWindow,
|
|
2564
|
-
unregisterWebViewInterceptor,
|
|
2565
|
-
writeClipBoardImage,
|
|
2566
|
-
writeClipBoardText
|
|
2351
|
+
const autoClosingOvertypeDescription = () => {
|
|
2352
|
+
return i18nString(AutoClosingOvertypeDescription);
|
|
2567
2353
|
};
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
try {
|
|
2571
|
-
return await getAllPreferences();
|
|
2572
|
-
} catch {
|
|
2573
|
-
return {};
|
|
2574
|
-
}
|
|
2354
|
+
const autoClosingDelete = () => {
|
|
2355
|
+
return i18nString(AutoClosingDelete);
|
|
2575
2356
|
};
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
const Clear$1 = 'Clear';
|
|
2579
|
-
const ExtensionsTab = 'extensions';
|
|
2580
|
-
const FeaturesTab = 'features';
|
|
2581
|
-
const SecurityTab = 'security';
|
|
2582
|
-
const SettingsSearch = 'SettingsSearch';
|
|
2583
|
-
const TextEditorTab = 'text-editor';
|
|
2584
|
-
const WindowTab = 'window';
|
|
2585
|
-
const WorkbenchTab = 'workbench';
|
|
2586
|
-
|
|
2587
|
-
const emptyObject = {};
|
|
2588
|
-
const RE_PLACEHOLDER = /\{(PH\d+)\}/g;
|
|
2589
|
-
const i18nString = (key, placeholders = emptyObject) => {
|
|
2590
|
-
if (placeholders === emptyObject) {
|
|
2591
|
-
return key;
|
|
2592
|
-
}
|
|
2593
|
-
const replacer = (match, rest) => {
|
|
2594
|
-
return placeholders[rest];
|
|
2595
|
-
};
|
|
2596
|
-
return key.replaceAll(RE_PLACEHOLDER, replacer);
|
|
2357
|
+
const autoClosingDeleteDescription = () => {
|
|
2358
|
+
return i18nString(AutoClosingDeleteDescription);
|
|
2597
2359
|
};
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
const AutoSaveDescription = 'Automatically save files';
|
|
2601
|
-
const AutoUpdateExtensions = 'Auto Update Extensions';
|
|
2602
|
-
const AutoUpdateExtensionsDescription = 'Automatically update extensions';
|
|
2603
|
-
const AutoUpdates = 'Auto Updates';
|
|
2604
|
-
const AutoUpdatesDescription = 'Automatically check for updates';
|
|
2605
|
-
const Clear = 'Clear';
|
|
2606
|
-
const ExtensionRecommendations = 'Extension Recommendations';
|
|
2607
|
-
const ExtensionRecommendationsDescription = 'Show extension recommendations';
|
|
2608
|
-
const FileEncryption = 'File Encryption';
|
|
2609
|
-
const FileEncryptionDescription = 'Encrypt sensitive files';
|
|
2610
|
-
const FontFamily = 'Font Family';
|
|
2611
|
-
const FontFamilyDescription = 'The font family of the editor';
|
|
2612
|
-
const FontSize = 'Font Size';
|
|
2613
|
-
const FontSizeDescription = 'The font size of the editor';
|
|
2614
|
-
const FormatOnSave = 'Format on Save';
|
|
2615
|
-
const FormatOnSaveDescription = 'Format code when saving';
|
|
2616
|
-
const NumberValue = 'number value';
|
|
2617
|
-
const StringValue = 'string value';
|
|
2618
|
-
const SearchSettings = 'Search Settings';
|
|
2619
|
-
const SettingsContent$1 = 'Settings Content';
|
|
2620
|
-
const SidebarPosition = 'Sidebar Position';
|
|
2621
|
-
const SidebarPositionDescription = 'The position of the sidebar';
|
|
2622
|
-
const Telemetry = 'Telemetry';
|
|
2623
|
-
const TelemetryDescription = 'Enable telemetry collection';
|
|
2624
|
-
const Theme = 'Theme';
|
|
2625
|
-
const ThemeDescription = 'The color theme of the workbench';
|
|
2626
|
-
const TwoFactorAuth = 'Two Factor Auth';
|
|
2627
|
-
const TwoFactorAuthDescription = 'Enable two factor authentication';
|
|
2628
|
-
const WindowSize = 'Window Size';
|
|
2629
|
-
const WindowSizeDescription = 'The default window size';
|
|
2630
|
-
const WindowTitle = 'Window Title';
|
|
2631
|
-
const WindowTitleDescription = 'The title shown in the window';
|
|
2632
|
-
const NoSettingsMatching = 'No settings matching "{PH1}" found';
|
|
2633
|
-
const MatchingSettings = '{PH1} matching settings';
|
|
2634
|
-
|
|
2635
|
-
// Text Editor Settings
|
|
2636
|
-
const WordWrap = 'Word Wrap';
|
|
2637
|
-
const WordWrapDescription = 'Controls how lines should wrap';
|
|
2638
|
-
const LineNumbers = 'Line Numbers';
|
|
2639
|
-
const LineNumbersDescription = 'Controls the display of line numbers';
|
|
2640
|
-
const Minimap = 'Minimap';
|
|
2641
|
-
const MinimapDescription = 'Controls whether the minimap is shown';
|
|
2642
|
-
const ScrollBeyondLastLine = 'Scroll Beyond Last Line';
|
|
2643
|
-
const ScrollBeyondLastLineDescription = 'Controls whether the editor will scroll beyond the last line';
|
|
2644
|
-
const SmoothScrolling = 'Smooth Scrolling';
|
|
2645
|
-
const SmoothScrollingDescription = 'Controls whether the editor will scroll smoothly';
|
|
2646
|
-
const CursorBlinking = 'Cursor Blinking';
|
|
2647
|
-
const CursorBlinkingDescription = 'Controls how the cursor should blink';
|
|
2648
|
-
const CursorStyle = 'Cursor Style';
|
|
2649
|
-
const CursorStyleDescription = 'Controls the cursor style';
|
|
2650
|
-
const ColorValue = 'Color value';
|
|
2651
|
-
const CursorWidth = 'Cursor Width';
|
|
2652
|
-
const CursorWidthDescription = 'Controls the width of the cursor';
|
|
2653
|
-
const TabSize = 'Tab Size';
|
|
2654
|
-
const TabSizeDescription = 'The number of spaces a tab is equal to';
|
|
2655
|
-
const InsertSpaces = 'Insert Spaces';
|
|
2656
|
-
const InsertSpacesDescription = 'Insert spaces when pressing Tab';
|
|
2657
|
-
const DetectIndentation = 'Detect Indentation';
|
|
2658
|
-
const DetectIndentationDescription = 'Controls whether the editor will automatically adjust the indentation';
|
|
2659
|
-
const TrimAutoWhitespace = 'Trim Auto Whitespace';
|
|
2660
|
-
const TrimAutoWhitespaceDescription = 'Remove trailing auto inserted whitespace';
|
|
2661
|
-
const LargeFileOptimizations = 'Large File Optimizations';
|
|
2662
|
-
const LargeFileOptimizationsDescription = 'Special handling for large files to disable certain features';
|
|
2663
|
-
const RenderWhitespace = 'Render Whitespace';
|
|
2664
|
-
const RenderWhitespaceDescription = 'Controls how the editor should render whitespace characters';
|
|
2665
|
-
const RenderControlCharacters = 'Render Control Characters';
|
|
2666
|
-
const RenderControlCharactersDescription = 'Controls whether the editor should render control characters';
|
|
2667
|
-
const RenderLineHighlight = 'Render Line Highlight';
|
|
2668
|
-
const RenderLineHighlightDescription = 'Controls how the editor should render the current line highlight';
|
|
2669
|
-
const CodeLens = 'Code Lens';
|
|
2670
|
-
const CodeLensDescription = 'Controls whether the editor shows CodeLens';
|
|
2671
|
-
const Folding = 'Folding';
|
|
2672
|
-
const FoldingDescription = 'Controls whether the editor has code folding enabled';
|
|
2673
|
-
const ShowFoldingControls = 'Show Folding Controls';
|
|
2674
|
-
const ShowFoldingControlsDescription = 'Controls when the folding controls on the gutter are automatically hidden';
|
|
2675
|
-
const UnfoldOnClickAfterEnd = 'Unfold On Click After End';
|
|
2676
|
-
const UnfoldOnClickAfterEndDescription = 'Controls whether clicking on the empty content after a folded line will unfold the line';
|
|
2677
|
-
const Links = 'Links';
|
|
2678
|
-
const LinksDescription = 'Controls whether the editor should detect links and make them clickable';
|
|
2679
|
-
const ColorDecorators = 'Color Decorators';
|
|
2680
|
-
const ColorDecoratorsDescription = 'Controls whether the editor should render the inline color decorators and color picker';
|
|
2681
|
-
const Lightbulb = 'Lightbulb';
|
|
2682
|
-
const LightbulbDescription = 'Controls whether the editor should show the lightbulb code action';
|
|
2683
|
-
const CodeActionsOnSave = 'Code Actions On Save';
|
|
2684
|
-
const CodeActionsOnSaveDescription = 'Code actions to be run on save';
|
|
2685
|
-
const FormatOnPaste = 'Format On Paste';
|
|
2686
|
-
const FormatOnPasteDescription = 'Format a file on paste';
|
|
2687
|
-
const FormatOnType = 'Format On Type';
|
|
2688
|
-
const FormatOnTypeDescription = 'Format a file on type';
|
|
2689
|
-
const AcceptSuggestionOnCommitCharacter = 'Accept Suggestion On Commit Character';
|
|
2690
|
-
const AcceptSuggestionOnCommitCharacterDescription = 'Controls if suggestions should be accepted on commit characters';
|
|
2691
|
-
const AcceptSuggestionOnEnter = 'Accept Suggestion On Enter';
|
|
2692
|
-
const AcceptSuggestionOnEnterDescription = 'Controls if suggestions should be accepted on Enter';
|
|
2693
|
-
const TabCompletion = 'Tab Completion';
|
|
2694
|
-
const TabCompletionDescription = 'Enables tab completions';
|
|
2695
|
-
const WordBasedSuggestions = 'Word Based Suggestions';
|
|
2696
|
-
const WordBasedSuggestionsDescription = 'Controls whether completions should be computed based on words in the document';
|
|
2697
|
-
const SuggestOnTriggerCharacters = 'Suggest On Trigger Characters';
|
|
2698
|
-
const SuggestOnTriggerCharactersDescription = 'Controls whether suggestions should automatically show up when typing trigger characters';
|
|
2699
|
-
const QuickSuggestions = 'Quick Suggestions';
|
|
2700
|
-
const QuickSuggestionsDescription = 'Controls whether suggestions should automatically show up while typing';
|
|
2701
|
-
const ParameterHints = 'Parameter Hints';
|
|
2702
|
-
const ParameterHintsDescription = 'Controls whether the editor should show parameter hints';
|
|
2703
|
-
const AutoClosingBrackets = 'Auto Closing Brackets';
|
|
2704
|
-
const AutoClosingBracketsDescription = 'Controls whether the editor should automatically close brackets after opening them';
|
|
2705
|
-
const AutoClosingQuotes = 'Auto Closing Quotes';
|
|
2706
|
-
const AutoClosingQuotesDescription = 'Controls whether the editor should automatically close quotes after opening them';
|
|
2707
|
-
const AutoClosingOvertype = 'Auto Closing Overtype';
|
|
2708
|
-
const AutoClosingOvertypeDescription = 'Controls whether the editor should type over closing quotes or brackets';
|
|
2709
|
-
const AutoClosingDelete = 'Auto Closing Delete';
|
|
2710
|
-
const AutoClosingDeleteDescription = 'Controls whether the editor should remove adjacent closing quotes or brackets when deleting';
|
|
2711
|
-
const AutoSurround = 'Auto Surround';
|
|
2712
|
-
const AutoSurroundDescription = 'Controls whether the editor should automatically surround selections';
|
|
2713
|
-
const BracketPairColorization = 'Bracket Pair Colorization';
|
|
2714
|
-
const BracketPairColorizationDescription = 'Controls whether the editor should enable bracket pair colorization';
|
|
2715
|
-
const Guides = 'Guides';
|
|
2716
|
-
const GuidesDescription = 'Controls whether the editor should render bracket pair guides';
|
|
2717
|
-
const DragAndDrop = 'Drag And Drop';
|
|
2718
|
-
const DragAndDropDescription = 'Controls whether the editor allows moving selections via drag and drop';
|
|
2719
|
-
const CopyWithSyntaxHighlighting = 'Copy With Syntax Highlighting';
|
|
2720
|
-
const CopyWithSyntaxHighlightingDescription = 'Controls whether syntax highlighting should be copied when copying text';
|
|
2721
|
-
const MultiCursorModifier = 'Multi Cursor Modifier';
|
|
2722
|
-
const MultiCursorModifierDescription = 'The modifier to be used to add multiple cursors with the mouse';
|
|
2723
|
-
const MultiCursorPaste = 'Multi Cursor Paste';
|
|
2724
|
-
const MultiCursorPasteDescription = 'Controls how the editor should handle multiple cursors when pasting';
|
|
2725
|
-
const OccurrencesHighlight = 'Occurrences Highlight';
|
|
2726
|
-
const OccurrencesHighlightDescription = 'Controls whether the editor should highlight similar matches to the selection';
|
|
2727
|
-
const SelectionHighlight = 'Selection Highlight';
|
|
2728
|
-
const SelectionHighlightDescription = 'Controls whether the editor should highlight similar matches to the selection';
|
|
2729
|
-
const SemanticHighlighting = 'Semantic Highlighting';
|
|
2730
|
-
const SemanticHighlightingDescription = 'Controls whether the editor should enable semantic highlighting';
|
|
2731
|
-
const TokenColorCustomizations = 'Token Color Customizations';
|
|
2732
|
-
const TokenColorCustomizationsDescription = 'Overrides editor syntax highlighting colors';
|
|
2733
|
-
const WorkbenchColorCustomizations = 'Workbench Color Customizations';
|
|
2734
|
-
const WorkbenchColorCustomizationsDescription = 'Overrides workbench colors';
|
|
2735
|
-
const EditorColorCustomizations = 'Editor Color Customizations';
|
|
2736
|
-
const EditorColorCustomizationsDescription = 'Overrides editor colors';
|
|
2737
|
-
const DiffEditor = 'Diff Editor';
|
|
2738
|
-
const DiffEditorDescription = 'Controls whether the diff editor shows the diff side by side or inline';
|
|
2739
|
-
const DiffWordWrap = 'Diff Word Wrap';
|
|
2740
|
-
const DiffWordWrapDescription = 'Controls whether the diff editor shows the diff side by side or inline';
|
|
2741
|
-
const DiffCodeLens = 'Diff Code Lens';
|
|
2742
|
-
const DiffCodeLensDescription = 'Controls whether the diff editor shows code lens';
|
|
2743
|
-
const DiffRenderSideBySide = 'Diff Render Side By Side';
|
|
2744
|
-
const DiffRenderSideBySideDescription = 'Controls whether the diff editor shows the diff side by side or inline';
|
|
2745
|
-
const DiffIgnoreTrimWhitespace = 'Diff Ignore Trim Whitespace';
|
|
2746
|
-
const DiffIgnoreTrimWhitespaceDescription = 'Controls whether the diff editor ignores changes in whitespace';
|
|
2747
|
-
const DiffRenderIndicators = 'Diff Render Indicators';
|
|
2748
|
-
const DiffRenderIndicatorsDescription = 'Controls whether the diff editor shows indicators';
|
|
2749
|
-
const DiffRenderOverviewRuler = 'Diff Render Overview Ruler';
|
|
2750
|
-
const DiffRenderOverviewRulerDescription = 'Controls whether the diff editor shows the overview ruler';
|
|
2751
|
-
const DiffRenderMarginRevertIcon = 'Diff Render Margin Revert Icon';
|
|
2752
|
-
const DiffRenderMarginRevertIconDescription = 'Controls whether the diff editor shows the revert icon in the margin';
|
|
2753
|
-
|
|
2754
|
-
// Additional Text Editor Settings
|
|
2755
|
-
const InsertMode = 'Insert Mode';
|
|
2756
|
-
const InsertModeDescription = 'Controls whether the editor is in insert mode';
|
|
2757
|
-
const OverwriteMode = 'Overwrite Mode';
|
|
2758
|
-
const OverwriteModeDescription = 'Controls whether the editor is in overwrite mode';
|
|
2759
|
-
const ReadOnly = 'Read Only';
|
|
2760
|
-
const ReadOnlyDescription = 'Controls whether the editor is read only';
|
|
2761
|
-
const AccessibilitySupport = 'Accessibility Support';
|
|
2762
|
-
const AccessibilitySupportDescription = 'Controls whether the editor should run in a mode where it is optimized for screen readers';
|
|
2763
|
-
const AutoIndent = 'Auto Indent';
|
|
2764
|
-
const AutoIndentDescription = 'Controls whether the editor should automatically adjust the indentation';
|
|
2765
|
-
const BracketMatching = 'Bracket Matching';
|
|
2766
|
-
const BracketMatchingDescription = 'Controls whether the editor should highlight matching brackets';
|
|
2767
|
-
const CenteredLayout = 'Centered Layout';
|
|
2768
|
-
const CenteredLayoutDescription = 'Controls whether the editor should use centered layout';
|
|
2769
|
-
const ColumnSelection = 'Column Selection';
|
|
2770
|
-
const ColumnSelectionDescription = 'Controls whether the editor should support column selection';
|
|
2771
|
-
const Contextmenu = 'Context Menu';
|
|
2772
|
-
const ContextmenuDescription = 'Controls whether the editor should show the context menu';
|
|
2773
|
-
const CursorSmoothCaretAnimation = 'Cursor Smooth Caret Animation';
|
|
2774
|
-
const CursorSmoothCaretAnimationDescription = 'Controls whether the cursor should be animated';
|
|
2775
|
-
const CursorSurroundingLines = 'Cursor Surrounding Lines';
|
|
2776
|
-
const CursorSurroundingLinesDescription = 'Controls the number of extra characters beyond which the editor will scroll horizontally';
|
|
2777
|
-
const CursorSurroundingLinesStyle = 'Cursor Surrounding Lines Style';
|
|
2778
|
-
const CursorSurroundingLinesStyleDescription = 'Controls when the cursor should be hidden';
|
|
2779
|
-
const DisableMonospaceOptimizations = 'Disable Monospace Optimizations';
|
|
2780
|
-
const DisableMonospaceOptimizationsDescription = 'Controls whether the editor should disable optimizations for monospace fonts';
|
|
2781
|
-
const EmptySelectionClipboard = 'Empty Selection Clipboard';
|
|
2782
|
-
const EmptySelectionClipboardDescription = 'Controls whether copying without a selection copies the current line';
|
|
2783
|
-
const ExtraEditorClassName = 'Extra Editor Class Name';
|
|
2784
|
-
const ExtraEditorClassNameDescription = 'An extra class name to add to the editor';
|
|
2785
|
-
const FastScrollSensitivity = 'Fast Scroll Sensitivity';
|
|
2786
|
-
const FastScrollSensitivityDescription = 'Scrolling speed multiplier when pressing Alt';
|
|
2787
|
-
const Find = 'Find';
|
|
2788
|
-
const FindDescription = 'Controls whether the editor should add extra space on the bottom';
|
|
2789
|
-
const FixedOverflowWidgets = 'Fixed Overflow Widgets';
|
|
2790
|
-
const FixedOverflowWidgetsDescription = 'Controls whether the editor should scroll beyond the last line';
|
|
2791
|
-
const FoldingStrategy = 'Folding Strategy';
|
|
2792
|
-
const FoldingStrategyDescription = 'Controls the folding strategy';
|
|
2793
|
-
const FontLigatures = 'Font Ligatures';
|
|
2794
|
-
const FontLigaturesDescription = 'Enables/Disables font ligatures';
|
|
2795
|
-
const GlyphMargin = 'Glyph Margin';
|
|
2796
|
-
const GlyphMarginDescription = 'Controls whether the editor should render the vertical glyph margin';
|
|
2797
|
-
const GotoLocation = 'Go To Location';
|
|
2798
|
-
const GotoLocationDescription = "Controls the behavior the 'Go to Definition'-mouse gesture";
|
|
2799
|
-
const HideCursorInOverviewRuler = 'Hide Cursor In Overview Ruler';
|
|
2800
|
-
const HideCursorInOverviewRulerDescription = 'Controls whether the cursor should be hidden in the overview ruler';
|
|
2801
|
-
const Hover = 'Hover';
|
|
2802
|
-
const HoverDescription = 'Controls whether the editor should show hover';
|
|
2803
|
-
const InDiffEditor = 'In Diff Editor';
|
|
2804
|
-
const InDiffEditorDescription = 'Controls whether the editor should be in a diff editor';
|
|
2805
|
-
const LetterSpacing = 'Letter Spacing';
|
|
2806
|
-
const LetterSpacingDescription = 'The letter spacing';
|
|
2807
|
-
const LightbulbEnabled = 'Lightbulb Enabled';
|
|
2808
|
-
const LightbulbEnabledDescription = 'Controls whether the editor should show the lightbulb code action';
|
|
2809
|
-
const LineDecorationsWidth = 'Line Decorations Width';
|
|
2810
|
-
const LineDecorationsWidthDescription = 'The width reserved for line decorations (in px)';
|
|
2811
|
-
const LineHeight = 'Line Height';
|
|
2812
|
-
const LineHeightDescription = 'The line height';
|
|
2813
|
-
const MatchBrackets = 'Match Brackets';
|
|
2814
|
-
const MatchBracketsDescription = 'Controls whether the editor should highlight matching brackets';
|
|
2815
|
-
const MinimapEnabled = 'Minimap Enabled';
|
|
2816
|
-
const MinimapEnabledDescription = 'Controls whether the minimap is shown';
|
|
2817
|
-
const MouseWheelScrollSensitivity = 'Mouse Wheel Scroll Sensitivity';
|
|
2818
|
-
const MouseWheelScrollSensitivityDescription = 'A multiplier to be used on the deltaX and deltaY of mouse wheel scroll events';
|
|
2819
|
-
const MouseWheelZoom = 'Mouse Wheel Zoom';
|
|
2820
|
-
const MouseWheelZoomDescription = 'Zoom the font of the editor when using mouse wheel and holding Ctrl';
|
|
2821
|
-
const MultiCursorMergeOverlapping = 'Multi Cursor Merge Overlapping';
|
|
2822
|
-
const MultiCursorMergeOverlappingDescription = 'Merge overlapping selections';
|
|
2823
|
-
const OverviewRulerBorder = 'Overview Ruler Border';
|
|
2824
|
-
const OverviewRulerBorderDescription = 'Controls whether a border should be drawn around the overview ruler';
|
|
2825
|
-
const OverviewRulerLanes = 'Overview Ruler Lanes';
|
|
2826
|
-
const OverviewRulerLanesDescription = 'Controls the number of decorations that can show in the overview ruler';
|
|
2827
|
-
const PeekWidgetDefaultFocus = 'Peek Widget Default Focus';
|
|
2828
|
-
const PeekWidgetDefaultFocusDescription = 'Controls if the peek widget should be focused by default';
|
|
2829
|
-
const QuickSuggestionsDelay = 'Quick Suggestions Delay';
|
|
2830
|
-
const QuickSuggestionsDelayDescription = 'Controls the delay in milliseconds after which quick suggestions will show up';
|
|
2831
|
-
const RenderFinalNewline = 'Render Final Newline';
|
|
2832
|
-
const RenderFinalNewlineDescription = 'Controls whether the editor should render the final newline as a space';
|
|
2833
|
-
const RenderValidationDecorations = 'Render Validation Decorations';
|
|
2834
|
-
const RenderValidationDecorationsDescription = 'Controls whether the editor should render validation decorations';
|
|
2835
|
-
const RevealHorizontalRightPadding = 'Reveal Horizontal Right Padding';
|
|
2836
|
-
const RevealHorizontalRightPaddingDescription = 'When revealing the cursor, a virtual padding (px) is added to the cursor, turning on a block cursor';
|
|
2837
|
-
const RoundedSelection = 'Rounded Selection';
|
|
2838
|
-
const RoundedSelectionDescription = 'Controls whether selections should have rounded corners';
|
|
2839
|
-
const Rulers = 'Rulers';
|
|
2840
|
-
const RulersDescription = 'Render vertical rulers at a certain number of monospace characters';
|
|
2841
|
-
const ScrollBeyondLastColumn = 'Scroll Beyond Last Column';
|
|
2842
|
-
const ScrollBeyondLastColumnDescription = 'Controls how many characters the editor will scroll horizontally';
|
|
2843
|
-
const Scrollbar = 'Scrollbar';
|
|
2844
|
-
const ScrollbarDescription = 'Controls the visibility and behavior of the scrollbars';
|
|
2845
|
-
const ScrollPredominantAxis = 'Scroll Predominant Axis';
|
|
2846
|
-
const ScrollPredominantAxisDescription = 'Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time';
|
|
2847
|
-
const SelectionClipboard = 'Selection Clipboard';
|
|
2848
|
-
const SelectionClipboardDescription = 'Controls whether the editor should use the CLIPBOARD selection';
|
|
2849
|
-
const ShowUnused = 'Show Unused';
|
|
2850
|
-
const ShowUnusedDescription = 'Controls fading out of unused code';
|
|
2851
|
-
const SnippetSuggestions = 'Snippet Suggestions';
|
|
2852
|
-
const SnippetSuggestionsDescription = 'Controls whether snippets are shown with other suggestions and how they are sorted';
|
|
2853
|
-
const Suggest = 'Suggest';
|
|
2854
|
-
const SuggestDescription = 'Controls whether suggestions should automatically show up while typing';
|
|
2855
|
-
const SuggestFontSize = 'Suggest Font Size';
|
|
2856
|
-
const SuggestFontSizeDescription = 'Font size for the suggest widget';
|
|
2857
|
-
const SuggestLineHeight = 'Suggest Line Height';
|
|
2858
|
-
const SuggestLineHeightDescription = 'Line height for the suggest widget';
|
|
2859
|
-
const SuggestSelection = 'Suggest Selection';
|
|
2860
|
-
const SuggestSelectionDescription = 'Controls how suggestions are selected when showing the suggest widget';
|
|
2861
|
-
const UseTabStops = 'Use Tab Stops';
|
|
2862
|
-
const UseTabStopsDescription = 'Inserting and deleting whitespace follows tab stops';
|
|
2863
|
-
const WordSeparators = 'Word Separators';
|
|
2864
|
-
const WordSeparatorsDescription = 'Characters that will be used as word separators when doing word related navigations or operations';
|
|
2865
|
-
const WrappingIndent = 'Wrapping Indent';
|
|
2866
|
-
const WrappingIndentDescription = 'Controls the indentation of wrapped lines';
|
|
2867
|
-
const UnknownSettingType = 'Unknown setting type';
|
|
2868
|
-
|
|
2869
|
-
const autoSave = () => {
|
|
2870
|
-
return i18nString(AutoSave);
|
|
2360
|
+
const autoSurround = () => {
|
|
2361
|
+
return i18nString(AutoSurround);
|
|
2871
2362
|
};
|
|
2872
|
-
const
|
|
2873
|
-
return i18nString(
|
|
2363
|
+
const autoSurroundDescription = () => {
|
|
2364
|
+
return i18nString(AutoSurroundDescription);
|
|
2874
2365
|
};
|
|
2875
|
-
const
|
|
2876
|
-
return i18nString(
|
|
2366
|
+
const bracketPairColorization = () => {
|
|
2367
|
+
return i18nString(BracketPairColorization);
|
|
2877
2368
|
};
|
|
2878
|
-
const
|
|
2879
|
-
return i18nString(
|
|
2369
|
+
const bracketPairColorizationDescription = () => {
|
|
2370
|
+
return i18nString(BracketPairColorizationDescription);
|
|
2880
2371
|
};
|
|
2881
|
-
const
|
|
2882
|
-
return i18nString(
|
|
2372
|
+
const guides = () => {
|
|
2373
|
+
return i18nString(Guides);
|
|
2883
2374
|
};
|
|
2884
|
-
const
|
|
2885
|
-
return i18nString(
|
|
2375
|
+
const guidesDescription = () => {
|
|
2376
|
+
return i18nString(GuidesDescription);
|
|
2886
2377
|
};
|
|
2887
|
-
const
|
|
2888
|
-
return i18nString(
|
|
2378
|
+
const dragAndDrop = () => {
|
|
2379
|
+
return i18nString(DragAndDrop);
|
|
2889
2380
|
};
|
|
2890
|
-
const
|
|
2891
|
-
return i18nString(
|
|
2381
|
+
const dragAndDropDescription = () => {
|
|
2382
|
+
return i18nString(DragAndDropDescription);
|
|
2892
2383
|
};
|
|
2893
|
-
const
|
|
2894
|
-
return i18nString(
|
|
2384
|
+
const copyWithSyntaxHighlighting = () => {
|
|
2385
|
+
return i18nString(CopyWithSyntaxHighlighting);
|
|
2895
2386
|
};
|
|
2896
|
-
const
|
|
2897
|
-
return i18nString(
|
|
2387
|
+
const copyWithSyntaxHighlightingDescription = () => {
|
|
2388
|
+
return i18nString(CopyWithSyntaxHighlightingDescription);
|
|
2898
2389
|
};
|
|
2899
|
-
const
|
|
2900
|
-
return i18nString(
|
|
2390
|
+
const multiCursorModifier = () => {
|
|
2391
|
+
return i18nString(MultiCursorModifier);
|
|
2901
2392
|
};
|
|
2902
|
-
const
|
|
2903
|
-
return i18nString(
|
|
2393
|
+
const multiCursorModifierDescription = () => {
|
|
2394
|
+
return i18nString(MultiCursorModifierDescription);
|
|
2904
2395
|
};
|
|
2905
|
-
const
|
|
2906
|
-
return i18nString(
|
|
2396
|
+
const multiCursorPaste = () => {
|
|
2397
|
+
return i18nString(MultiCursorPaste);
|
|
2907
2398
|
};
|
|
2908
|
-
const
|
|
2909
|
-
return i18nString(
|
|
2399
|
+
const multiCursorPasteDescription = () => {
|
|
2400
|
+
return i18nString(MultiCursorPasteDescription);
|
|
2910
2401
|
};
|
|
2911
|
-
const
|
|
2912
|
-
return i18nString(
|
|
2402
|
+
const occurrencesHighlight = () => {
|
|
2403
|
+
return i18nString(OccurrencesHighlight);
|
|
2913
2404
|
};
|
|
2914
|
-
const
|
|
2915
|
-
return i18nString(
|
|
2405
|
+
const occurrencesHighlightDescription = () => {
|
|
2406
|
+
return i18nString(OccurrencesHighlightDescription);
|
|
2916
2407
|
};
|
|
2917
|
-
const
|
|
2918
|
-
return i18nString(
|
|
2408
|
+
const selectionHighlight = () => {
|
|
2409
|
+
return i18nString(SelectionHighlight);
|
|
2410
|
+
};
|
|
2411
|
+
const selectionHighlightDescription = () => {
|
|
2412
|
+
return i18nString(SelectionHighlightDescription);
|
|
2413
|
+
};
|
|
2414
|
+
const semanticHighlighting = () => {
|
|
2415
|
+
return i18nString(SemanticHighlighting);
|
|
2416
|
+
};
|
|
2417
|
+
const semanticHighlightingDescription = () => {
|
|
2418
|
+
return i18nString(SemanticHighlightingDescription);
|
|
2419
|
+
};
|
|
2420
|
+
const tokenColorCustomizations = () => {
|
|
2421
|
+
return i18nString(TokenColorCustomizations);
|
|
2422
|
+
};
|
|
2423
|
+
const tokenColorCustomizationsDescription = () => {
|
|
2424
|
+
return i18nString(TokenColorCustomizationsDescription);
|
|
2425
|
+
};
|
|
2426
|
+
const workbenchColorCustomizations = () => {
|
|
2427
|
+
return i18nString(WorkbenchColorCustomizations);
|
|
2428
|
+
};
|
|
2429
|
+
const workbenchColorCustomizationsDescription = () => {
|
|
2430
|
+
return i18nString(WorkbenchColorCustomizationsDescription);
|
|
2431
|
+
};
|
|
2432
|
+
const editorColorCustomizations = () => {
|
|
2433
|
+
return i18nString(EditorColorCustomizations);
|
|
2434
|
+
};
|
|
2435
|
+
const editorColorCustomizationsDescription = () => {
|
|
2436
|
+
return i18nString(EditorColorCustomizationsDescription);
|
|
2437
|
+
};
|
|
2438
|
+
const diffEditor = () => {
|
|
2439
|
+
return i18nString(DiffEditor);
|
|
2440
|
+
};
|
|
2441
|
+
const diffEditorDescription = () => {
|
|
2442
|
+
return i18nString(DiffEditorDescription);
|
|
2443
|
+
};
|
|
2444
|
+
const diffWordWrap = () => {
|
|
2445
|
+
return i18nString(DiffWordWrap);
|
|
2446
|
+
};
|
|
2447
|
+
const diffWordWrapDescription = () => {
|
|
2448
|
+
return i18nString(DiffWordWrapDescription);
|
|
2449
|
+
};
|
|
2450
|
+
const diffCodeLens = () => {
|
|
2451
|
+
return i18nString(DiffCodeLens);
|
|
2452
|
+
};
|
|
2453
|
+
const diffCodeLensDescription = () => {
|
|
2454
|
+
return i18nString(DiffCodeLensDescription);
|
|
2919
2455
|
};
|
|
2920
|
-
const
|
|
2921
|
-
return i18nString(
|
|
2456
|
+
const diffRenderSideBySide = () => {
|
|
2457
|
+
return i18nString(DiffRenderSideBySide);
|
|
2922
2458
|
};
|
|
2923
|
-
const
|
|
2924
|
-
return i18nString(
|
|
2459
|
+
const diffRenderSideBySideDescription = () => {
|
|
2460
|
+
return i18nString(DiffRenderSideBySideDescription);
|
|
2925
2461
|
};
|
|
2926
|
-
const
|
|
2927
|
-
return i18nString(
|
|
2462
|
+
const diffIgnoreTrimWhitespace = () => {
|
|
2463
|
+
return i18nString(DiffIgnoreTrimWhitespace);
|
|
2928
2464
|
};
|
|
2929
|
-
const
|
|
2930
|
-
return i18nString(
|
|
2465
|
+
const diffIgnoreTrimWhitespaceDescription = () => {
|
|
2466
|
+
return i18nString(DiffIgnoreTrimWhitespaceDescription);
|
|
2931
2467
|
};
|
|
2932
|
-
const
|
|
2933
|
-
return i18nString(
|
|
2468
|
+
const diffRenderIndicators = () => {
|
|
2469
|
+
return i18nString(DiffRenderIndicators);
|
|
2934
2470
|
};
|
|
2935
|
-
const
|
|
2936
|
-
return i18nString(
|
|
2471
|
+
const diffRenderIndicatorsDescription = () => {
|
|
2472
|
+
return i18nString(DiffRenderIndicatorsDescription);
|
|
2937
2473
|
};
|
|
2938
|
-
const
|
|
2939
|
-
return i18nString(
|
|
2474
|
+
const diffRenderOverviewRuler = () => {
|
|
2475
|
+
return i18nString(DiffRenderOverviewRuler);
|
|
2940
2476
|
};
|
|
2941
|
-
const
|
|
2942
|
-
return i18nString(
|
|
2477
|
+
const diffRenderOverviewRulerDescription = () => {
|
|
2478
|
+
return i18nString(DiffRenderOverviewRulerDescription);
|
|
2943
2479
|
};
|
|
2944
|
-
const
|
|
2945
|
-
return i18nString(
|
|
2480
|
+
const diffRenderMarginRevertIcon = () => {
|
|
2481
|
+
return i18nString(DiffRenderMarginRevertIcon);
|
|
2946
2482
|
};
|
|
2947
|
-
const
|
|
2948
|
-
return i18nString(
|
|
2483
|
+
const diffRenderMarginRevertIconDescription = () => {
|
|
2484
|
+
return i18nString(DiffRenderMarginRevertIconDescription);
|
|
2949
2485
|
};
|
|
2950
|
-
|
|
2951
|
-
|
|
2486
|
+
|
|
2487
|
+
// Additional Text Editor Settings
|
|
2488
|
+
const insertMode = () => {
|
|
2489
|
+
return i18nString(InsertMode);
|
|
2952
2490
|
};
|
|
2953
|
-
const
|
|
2954
|
-
return i18nString(
|
|
2491
|
+
const insertModeDescription = () => {
|
|
2492
|
+
return i18nString(InsertModeDescription);
|
|
2955
2493
|
};
|
|
2956
|
-
const
|
|
2957
|
-
return i18nString(
|
|
2494
|
+
const overwriteMode = () => {
|
|
2495
|
+
return i18nString(OverwriteMode);
|
|
2958
2496
|
};
|
|
2959
|
-
const
|
|
2960
|
-
return i18nString(
|
|
2497
|
+
const overwriteModeDescription = () => {
|
|
2498
|
+
return i18nString(OverwriteModeDescription);
|
|
2961
2499
|
};
|
|
2962
|
-
const
|
|
2963
|
-
return i18nString(
|
|
2500
|
+
const readOnly = () => {
|
|
2501
|
+
return i18nString(ReadOnly);
|
|
2964
2502
|
};
|
|
2965
|
-
const
|
|
2966
|
-
return i18nString(
|
|
2503
|
+
const readOnlyDescription = () => {
|
|
2504
|
+
return i18nString(ReadOnlyDescription);
|
|
2967
2505
|
};
|
|
2968
|
-
const
|
|
2969
|
-
return i18nString(
|
|
2506
|
+
const accessibilitySupport = () => {
|
|
2507
|
+
return i18nString(AccessibilitySupport);
|
|
2970
2508
|
};
|
|
2971
|
-
const
|
|
2972
|
-
return i18nString(
|
|
2973
|
-
PH1: searchTerm
|
|
2974
|
-
});
|
|
2509
|
+
const accessibilitySupportDescription = () => {
|
|
2510
|
+
return i18nString(AccessibilitySupportDescription);
|
|
2975
2511
|
};
|
|
2976
|
-
const
|
|
2977
|
-
return i18nString(
|
|
2978
|
-
PH1: count.toString()
|
|
2979
|
-
});
|
|
2512
|
+
const autoIndent = () => {
|
|
2513
|
+
return i18nString(AutoIndent);
|
|
2980
2514
|
};
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
const wordWrap = () => {
|
|
2984
|
-
return i18nString(WordWrap);
|
|
2515
|
+
const autoIndentDescription = () => {
|
|
2516
|
+
return i18nString(AutoIndentDescription);
|
|
2985
2517
|
};
|
|
2986
|
-
const
|
|
2987
|
-
return i18nString(
|
|
2518
|
+
const bracketMatching = () => {
|
|
2519
|
+
return i18nString(BracketMatching);
|
|
2988
2520
|
};
|
|
2989
|
-
const
|
|
2990
|
-
return i18nString(
|
|
2521
|
+
const bracketMatchingDescription = () => {
|
|
2522
|
+
return i18nString(BracketMatchingDescription);
|
|
2991
2523
|
};
|
|
2992
|
-
const
|
|
2993
|
-
return i18nString(
|
|
2524
|
+
const centeredLayout = () => {
|
|
2525
|
+
return i18nString(CenteredLayout);
|
|
2994
2526
|
};
|
|
2995
|
-
const
|
|
2996
|
-
return i18nString(
|
|
2527
|
+
const centeredLayoutDescription = () => {
|
|
2528
|
+
return i18nString(CenteredLayoutDescription);
|
|
2997
2529
|
};
|
|
2998
|
-
const
|
|
2999
|
-
return i18nString(
|
|
2530
|
+
const columnSelection = () => {
|
|
2531
|
+
return i18nString(ColumnSelection);
|
|
3000
2532
|
};
|
|
3001
|
-
const
|
|
3002
|
-
return i18nString(
|
|
2533
|
+
const columnSelectionDescription = () => {
|
|
2534
|
+
return i18nString(ColumnSelectionDescription);
|
|
3003
2535
|
};
|
|
3004
|
-
const
|
|
3005
|
-
return i18nString(
|
|
2536
|
+
const contextmenu = () => {
|
|
2537
|
+
return i18nString(Contextmenu);
|
|
3006
2538
|
};
|
|
3007
|
-
const
|
|
3008
|
-
return i18nString(
|
|
2539
|
+
const contextmenuDescription = () => {
|
|
2540
|
+
return i18nString(ContextmenuDescription);
|
|
3009
2541
|
};
|
|
3010
|
-
const
|
|
3011
|
-
return i18nString(
|
|
2542
|
+
const cursorSmoothCaretAnimation = () => {
|
|
2543
|
+
return i18nString(CursorSmoothCaretAnimation);
|
|
3012
2544
|
};
|
|
3013
|
-
const
|
|
3014
|
-
return i18nString(
|
|
2545
|
+
const cursorSmoothCaretAnimationDescription = () => {
|
|
2546
|
+
return i18nString(CursorSmoothCaretAnimationDescription);
|
|
3015
2547
|
};
|
|
3016
|
-
const
|
|
3017
|
-
return i18nString(
|
|
2548
|
+
const cursorSurroundingLines = () => {
|
|
2549
|
+
return i18nString(CursorSurroundingLines);
|
|
3018
2550
|
};
|
|
3019
|
-
const
|
|
3020
|
-
return i18nString(
|
|
2551
|
+
const cursorSurroundingLinesDescription = () => {
|
|
2552
|
+
return i18nString(CursorSurroundingLinesDescription);
|
|
3021
2553
|
};
|
|
3022
|
-
const
|
|
3023
|
-
return i18nString(
|
|
2554
|
+
const cursorSurroundingLinesStyle = () => {
|
|
2555
|
+
return i18nString(CursorSurroundingLinesStyle);
|
|
3024
2556
|
};
|
|
3025
|
-
const
|
|
3026
|
-
return i18nString(
|
|
2557
|
+
const cursorSurroundingLinesStyleDescription = () => {
|
|
2558
|
+
return i18nString(CursorSurroundingLinesStyleDescription);
|
|
3027
2559
|
};
|
|
3028
|
-
const
|
|
3029
|
-
return i18nString(
|
|
2560
|
+
const disableMonospaceOptimizations = () => {
|
|
2561
|
+
return i18nString(DisableMonospaceOptimizations);
|
|
3030
2562
|
};
|
|
3031
|
-
const
|
|
3032
|
-
return i18nString(
|
|
2563
|
+
const disableMonospaceOptimizationsDescription = () => {
|
|
2564
|
+
return i18nString(DisableMonospaceOptimizationsDescription);
|
|
3033
2565
|
};
|
|
3034
|
-
const
|
|
3035
|
-
return i18nString(
|
|
2566
|
+
const emptySelectionClipboard = () => {
|
|
2567
|
+
return i18nString(EmptySelectionClipboard);
|
|
3036
2568
|
};
|
|
3037
|
-
const
|
|
3038
|
-
return i18nString(
|
|
2569
|
+
const emptySelectionClipboardDescription = () => {
|
|
2570
|
+
return i18nString(EmptySelectionClipboardDescription);
|
|
3039
2571
|
};
|
|
3040
|
-
const
|
|
3041
|
-
return i18nString(
|
|
2572
|
+
const extraEditorClassName = () => {
|
|
2573
|
+
return i18nString(ExtraEditorClassName);
|
|
3042
2574
|
};
|
|
3043
|
-
const
|
|
3044
|
-
return i18nString(
|
|
2575
|
+
const extraEditorClassNameDescription = () => {
|
|
2576
|
+
return i18nString(ExtraEditorClassNameDescription);
|
|
3045
2577
|
};
|
|
3046
|
-
const
|
|
3047
|
-
return i18nString(
|
|
2578
|
+
const fastScrollSensitivity = () => {
|
|
2579
|
+
return i18nString(FastScrollSensitivity);
|
|
3048
2580
|
};
|
|
3049
|
-
const
|
|
3050
|
-
return i18nString(
|
|
2581
|
+
const fastScrollSensitivityDescription = () => {
|
|
2582
|
+
return i18nString(FastScrollSensitivityDescription);
|
|
3051
2583
|
};
|
|
3052
|
-
const
|
|
3053
|
-
return i18nString(
|
|
2584
|
+
const find = () => {
|
|
2585
|
+
return i18nString(Find);
|
|
3054
2586
|
};
|
|
3055
|
-
const
|
|
3056
|
-
return i18nString(
|
|
2587
|
+
const findDescription = () => {
|
|
2588
|
+
return i18nString(FindDescription);
|
|
3057
2589
|
};
|
|
3058
|
-
const
|
|
3059
|
-
return i18nString(
|
|
2590
|
+
const fixedOverflowWidgets = () => {
|
|
2591
|
+
return i18nString(FixedOverflowWidgets);
|
|
3060
2592
|
};
|
|
3061
|
-
const
|
|
3062
|
-
return i18nString(
|
|
2593
|
+
const fixedOverflowWidgetsDescription = () => {
|
|
2594
|
+
return i18nString(FixedOverflowWidgetsDescription);
|
|
3063
2595
|
};
|
|
3064
|
-
const
|
|
3065
|
-
return i18nString(
|
|
2596
|
+
const foldingStrategy = () => {
|
|
2597
|
+
return i18nString(FoldingStrategy);
|
|
3066
2598
|
};
|
|
3067
|
-
const
|
|
3068
|
-
return i18nString(
|
|
2599
|
+
const foldingStrategyDescription = () => {
|
|
2600
|
+
return i18nString(FoldingStrategyDescription);
|
|
3069
2601
|
};
|
|
3070
|
-
const
|
|
3071
|
-
return i18nString(
|
|
2602
|
+
const fontLigatures = () => {
|
|
2603
|
+
return i18nString(FontLigatures);
|
|
3072
2604
|
};
|
|
3073
|
-
const
|
|
3074
|
-
return i18nString(
|
|
2605
|
+
const fontLigaturesDescription = () => {
|
|
2606
|
+
return i18nString(FontLigaturesDescription);
|
|
3075
2607
|
};
|
|
3076
|
-
const
|
|
3077
|
-
return i18nString(
|
|
2608
|
+
const glyphMargin = () => {
|
|
2609
|
+
return i18nString(GlyphMargin);
|
|
3078
2610
|
};
|
|
3079
|
-
const
|
|
3080
|
-
return i18nString(
|
|
2611
|
+
const glyphMarginDescription = () => {
|
|
2612
|
+
return i18nString(GlyphMarginDescription);
|
|
3081
2613
|
};
|
|
3082
|
-
const
|
|
3083
|
-
return i18nString(
|
|
2614
|
+
const gotoLocation = () => {
|
|
2615
|
+
return i18nString(GotoLocation);
|
|
3084
2616
|
};
|
|
3085
|
-
const
|
|
3086
|
-
return i18nString(
|
|
2617
|
+
const gotoLocationDescription = () => {
|
|
2618
|
+
return i18nString(GotoLocationDescription);
|
|
3087
2619
|
};
|
|
3088
|
-
const
|
|
3089
|
-
return i18nString(
|
|
2620
|
+
const hideCursorInOverviewRuler = () => {
|
|
2621
|
+
return i18nString(HideCursorInOverviewRuler);
|
|
3090
2622
|
};
|
|
3091
|
-
const
|
|
3092
|
-
return i18nString(
|
|
2623
|
+
const hideCursorInOverviewRulerDescription = () => {
|
|
2624
|
+
return i18nString(HideCursorInOverviewRulerDescription);
|
|
3093
2625
|
};
|
|
3094
|
-
const
|
|
3095
|
-
return i18nString(
|
|
2626
|
+
const hover = () => {
|
|
2627
|
+
return i18nString(Hover);
|
|
3096
2628
|
};
|
|
3097
|
-
const
|
|
3098
|
-
return i18nString(
|
|
2629
|
+
const hoverDescription = () => {
|
|
2630
|
+
return i18nString(HoverDescription);
|
|
3099
2631
|
};
|
|
3100
|
-
const
|
|
3101
|
-
return i18nString(
|
|
2632
|
+
const inDiffEditor = () => {
|
|
2633
|
+
return i18nString(InDiffEditor);
|
|
3102
2634
|
};
|
|
3103
|
-
const
|
|
3104
|
-
return i18nString(
|
|
2635
|
+
const inDiffEditorDescription = () => {
|
|
2636
|
+
return i18nString(InDiffEditorDescription);
|
|
3105
2637
|
};
|
|
3106
|
-
const
|
|
3107
|
-
return i18nString(
|
|
2638
|
+
const letterSpacing = () => {
|
|
2639
|
+
return i18nString(LetterSpacing);
|
|
3108
2640
|
};
|
|
3109
|
-
const
|
|
3110
|
-
return i18nString(
|
|
2641
|
+
const letterSpacingDescription = () => {
|
|
2642
|
+
return i18nString(LetterSpacingDescription);
|
|
3111
2643
|
};
|
|
3112
|
-
const
|
|
3113
|
-
return i18nString(
|
|
2644
|
+
const lightbulbEnabled = () => {
|
|
2645
|
+
return i18nString(LightbulbEnabled);
|
|
3114
2646
|
};
|
|
3115
|
-
const
|
|
3116
|
-
return i18nString(
|
|
2647
|
+
const lightbulbEnabledDescription = () => {
|
|
2648
|
+
return i18nString(LightbulbEnabledDescription);
|
|
3117
2649
|
};
|
|
3118
|
-
const
|
|
3119
|
-
return i18nString(
|
|
2650
|
+
const lineDecorationsWidth = () => {
|
|
2651
|
+
return i18nString(LineDecorationsWidth);
|
|
3120
2652
|
};
|
|
3121
|
-
const
|
|
3122
|
-
return i18nString(
|
|
2653
|
+
const lineDecorationsWidthDescription = () => {
|
|
2654
|
+
return i18nString(LineDecorationsWidthDescription);
|
|
3123
2655
|
};
|
|
3124
|
-
const
|
|
3125
|
-
return i18nString(
|
|
2656
|
+
const lineHeight = () => {
|
|
2657
|
+
return i18nString(LineHeight);
|
|
3126
2658
|
};
|
|
3127
|
-
const
|
|
3128
|
-
return i18nString(
|
|
2659
|
+
const lineHeightDescription = () => {
|
|
2660
|
+
return i18nString(LineHeightDescription);
|
|
3129
2661
|
};
|
|
3130
|
-
const
|
|
3131
|
-
return i18nString(
|
|
2662
|
+
const matchBrackets = () => {
|
|
2663
|
+
return i18nString(MatchBrackets);
|
|
3132
2664
|
};
|
|
3133
|
-
const
|
|
3134
|
-
return i18nString(
|
|
2665
|
+
const matchBracketsDescription = () => {
|
|
2666
|
+
return i18nString(MatchBracketsDescription);
|
|
3135
2667
|
};
|
|
3136
|
-
const
|
|
3137
|
-
return i18nString(
|
|
2668
|
+
const minimapEnabled = () => {
|
|
2669
|
+
return i18nString(MinimapEnabled);
|
|
3138
2670
|
};
|
|
3139
|
-
const
|
|
3140
|
-
return i18nString(
|
|
2671
|
+
const minimapEnabledDescription = () => {
|
|
2672
|
+
return i18nString(MinimapEnabledDescription);
|
|
3141
2673
|
};
|
|
3142
|
-
const
|
|
3143
|
-
return i18nString(
|
|
2674
|
+
const mouseWheelScrollSensitivity = () => {
|
|
2675
|
+
return i18nString(MouseWheelScrollSensitivity);
|
|
3144
2676
|
};
|
|
3145
|
-
const
|
|
3146
|
-
return i18nString(
|
|
2677
|
+
const mouseWheelScrollSensitivityDescription = () => {
|
|
2678
|
+
return i18nString(MouseWheelScrollSensitivityDescription);
|
|
3147
2679
|
};
|
|
3148
|
-
const
|
|
3149
|
-
return i18nString(
|
|
2680
|
+
const mouseWheelZoom = () => {
|
|
2681
|
+
return i18nString(MouseWheelZoom);
|
|
3150
2682
|
};
|
|
3151
|
-
const
|
|
3152
|
-
return i18nString(
|
|
2683
|
+
const mouseWheelZoomDescription = () => {
|
|
2684
|
+
return i18nString(MouseWheelZoomDescription);
|
|
3153
2685
|
};
|
|
3154
|
-
const
|
|
3155
|
-
return i18nString(
|
|
2686
|
+
const multiCursorMergeOverlapping = () => {
|
|
2687
|
+
return i18nString(MultiCursorMergeOverlapping);
|
|
3156
2688
|
};
|
|
3157
|
-
const
|
|
3158
|
-
return i18nString(
|
|
2689
|
+
const multiCursorMergeOverlappingDescription = () => {
|
|
2690
|
+
return i18nString(MultiCursorMergeOverlappingDescription);
|
|
3159
2691
|
};
|
|
3160
|
-
const
|
|
3161
|
-
return i18nString(
|
|
2692
|
+
const overviewRulerBorder = () => {
|
|
2693
|
+
return i18nString(OverviewRulerBorder);
|
|
3162
2694
|
};
|
|
3163
|
-
const
|
|
3164
|
-
return i18nString(
|
|
2695
|
+
const overviewRulerBorderDescription = () => {
|
|
2696
|
+
return i18nString(OverviewRulerBorderDescription);
|
|
3165
2697
|
};
|
|
3166
|
-
const
|
|
3167
|
-
return i18nString(
|
|
2698
|
+
const overviewRulerLanes = () => {
|
|
2699
|
+
return i18nString(OverviewRulerLanes);
|
|
3168
2700
|
};
|
|
3169
|
-
const
|
|
3170
|
-
return i18nString(
|
|
2701
|
+
const overviewRulerLanesDescription = () => {
|
|
2702
|
+
return i18nString(OverviewRulerLanesDescription);
|
|
3171
2703
|
};
|
|
3172
|
-
const
|
|
3173
|
-
return i18nString(
|
|
2704
|
+
const peekWidgetDefaultFocus = () => {
|
|
2705
|
+
return i18nString(PeekWidgetDefaultFocus);
|
|
3174
2706
|
};
|
|
3175
|
-
const
|
|
3176
|
-
return i18nString(
|
|
2707
|
+
const peekWidgetDefaultFocusDescription = () => {
|
|
2708
|
+
return i18nString(PeekWidgetDefaultFocusDescription);
|
|
3177
2709
|
};
|
|
3178
|
-
const
|
|
3179
|
-
return i18nString(
|
|
2710
|
+
const quickSuggestionsDelay = () => {
|
|
2711
|
+
return i18nString(QuickSuggestionsDelay);
|
|
3180
2712
|
};
|
|
3181
|
-
const
|
|
3182
|
-
return i18nString(
|
|
2713
|
+
const quickSuggestionsDelayDescription = () => {
|
|
2714
|
+
return i18nString(QuickSuggestionsDelayDescription);
|
|
3183
2715
|
};
|
|
3184
|
-
const
|
|
3185
|
-
return i18nString(
|
|
2716
|
+
const renderFinalNewline = () => {
|
|
2717
|
+
return i18nString(RenderFinalNewline);
|
|
3186
2718
|
};
|
|
3187
|
-
const
|
|
3188
|
-
return i18nString(
|
|
2719
|
+
const renderFinalNewlineDescription = () => {
|
|
2720
|
+
return i18nString(RenderFinalNewlineDescription);
|
|
3189
2721
|
};
|
|
3190
|
-
const
|
|
3191
|
-
return i18nString(
|
|
2722
|
+
const renderValidationDecorations = () => {
|
|
2723
|
+
return i18nString(RenderValidationDecorations);
|
|
3192
2724
|
};
|
|
3193
|
-
const
|
|
3194
|
-
return i18nString(
|
|
2725
|
+
const renderValidationDecorationsDescription = () => {
|
|
2726
|
+
return i18nString(RenderValidationDecorationsDescription);
|
|
3195
2727
|
};
|
|
3196
|
-
const
|
|
3197
|
-
return i18nString(
|
|
2728
|
+
const revealHorizontalRightPadding = () => {
|
|
2729
|
+
return i18nString(RevealHorizontalRightPadding);
|
|
3198
2730
|
};
|
|
3199
|
-
const
|
|
3200
|
-
return i18nString(
|
|
2731
|
+
const revealHorizontalRightPaddingDescription = () => {
|
|
2732
|
+
return i18nString(RevealHorizontalRightPaddingDescription);
|
|
3201
2733
|
};
|
|
3202
|
-
const
|
|
3203
|
-
return i18nString(
|
|
2734
|
+
const roundedSelection = () => {
|
|
2735
|
+
return i18nString(RoundedSelection);
|
|
3204
2736
|
};
|
|
3205
|
-
const
|
|
3206
|
-
return i18nString(
|
|
2737
|
+
const roundedSelectionDescription = () => {
|
|
2738
|
+
return i18nString(RoundedSelectionDescription);
|
|
3207
2739
|
};
|
|
3208
|
-
const
|
|
3209
|
-
return i18nString(
|
|
2740
|
+
const rulers = () => {
|
|
2741
|
+
return i18nString(Rulers);
|
|
3210
2742
|
};
|
|
3211
|
-
const
|
|
3212
|
-
return i18nString(
|
|
2743
|
+
const rulersDescription = () => {
|
|
2744
|
+
return i18nString(RulersDescription);
|
|
3213
2745
|
};
|
|
3214
|
-
const
|
|
3215
|
-
return i18nString(
|
|
2746
|
+
const scrollBeyondLastColumn = () => {
|
|
2747
|
+
return i18nString(ScrollBeyondLastColumn);
|
|
3216
2748
|
};
|
|
3217
|
-
const
|
|
3218
|
-
return i18nString(
|
|
2749
|
+
const scrollBeyondLastColumnDescription = () => {
|
|
2750
|
+
return i18nString(ScrollBeyondLastColumnDescription);
|
|
3219
2751
|
};
|
|
3220
|
-
const
|
|
3221
|
-
return i18nString(
|
|
2752
|
+
const scrollbar = () => {
|
|
2753
|
+
return i18nString(Scrollbar);
|
|
3222
2754
|
};
|
|
3223
|
-
const
|
|
3224
|
-
return i18nString(
|
|
2755
|
+
const scrollbarDescription = () => {
|
|
2756
|
+
return i18nString(ScrollbarDescription);
|
|
3225
2757
|
};
|
|
3226
|
-
const
|
|
3227
|
-
return i18nString(
|
|
2758
|
+
const scrollPredominantAxis = () => {
|
|
2759
|
+
return i18nString(ScrollPredominantAxis);
|
|
3228
2760
|
};
|
|
3229
|
-
const
|
|
3230
|
-
return i18nString(
|
|
2761
|
+
const scrollPredominantAxisDescription = () => {
|
|
2762
|
+
return i18nString(ScrollPredominantAxisDescription);
|
|
3231
2763
|
};
|
|
3232
|
-
const
|
|
3233
|
-
return i18nString(
|
|
2764
|
+
const selectionClipboard = () => {
|
|
2765
|
+
return i18nString(SelectionClipboard);
|
|
3234
2766
|
};
|
|
3235
|
-
const
|
|
3236
|
-
return i18nString(
|
|
2767
|
+
const selectionClipboardDescription = () => {
|
|
2768
|
+
return i18nString(SelectionClipboardDescription);
|
|
3237
2769
|
};
|
|
3238
|
-
const
|
|
3239
|
-
return i18nString(
|
|
2770
|
+
const showUnused = () => {
|
|
2771
|
+
return i18nString(ShowUnused);
|
|
3240
2772
|
};
|
|
3241
|
-
const
|
|
3242
|
-
return i18nString(
|
|
2773
|
+
const showUnusedDescription = () => {
|
|
2774
|
+
return i18nString(ShowUnusedDescription);
|
|
3243
2775
|
};
|
|
3244
|
-
const
|
|
3245
|
-
return i18nString(
|
|
2776
|
+
const snippetSuggestions = () => {
|
|
2777
|
+
return i18nString(SnippetSuggestions);
|
|
3246
2778
|
};
|
|
3247
|
-
const
|
|
3248
|
-
return i18nString(
|
|
2779
|
+
const snippetSuggestionsDescription = () => {
|
|
2780
|
+
return i18nString(SnippetSuggestionsDescription);
|
|
3249
2781
|
};
|
|
3250
|
-
const
|
|
3251
|
-
return i18nString(
|
|
2782
|
+
const suggest = () => {
|
|
2783
|
+
return i18nString(Suggest);
|
|
3252
2784
|
};
|
|
3253
|
-
const
|
|
3254
|
-
return i18nString(
|
|
2785
|
+
const suggestDescription = () => {
|
|
2786
|
+
return i18nString(SuggestDescription);
|
|
3255
2787
|
};
|
|
3256
|
-
const
|
|
3257
|
-
return i18nString(
|
|
2788
|
+
const suggestFontSize = () => {
|
|
2789
|
+
return i18nString(SuggestFontSize);
|
|
3258
2790
|
};
|
|
3259
|
-
const
|
|
3260
|
-
return i18nString(
|
|
2791
|
+
const suggestFontSizeDescription = () => {
|
|
2792
|
+
return i18nString(SuggestFontSizeDescription);
|
|
3261
2793
|
};
|
|
3262
|
-
const
|
|
3263
|
-
return i18nString(
|
|
2794
|
+
const suggestLineHeight = () => {
|
|
2795
|
+
return i18nString(SuggestLineHeight);
|
|
3264
2796
|
};
|
|
3265
|
-
const
|
|
3266
|
-
return i18nString(
|
|
2797
|
+
const suggestLineHeightDescription = () => {
|
|
2798
|
+
return i18nString(SuggestLineHeightDescription);
|
|
3267
2799
|
};
|
|
3268
|
-
const
|
|
3269
|
-
return i18nString(
|
|
2800
|
+
const suggestSelection = () => {
|
|
2801
|
+
return i18nString(SuggestSelection);
|
|
3270
2802
|
};
|
|
3271
|
-
const
|
|
3272
|
-
return i18nString(
|
|
2803
|
+
const suggestSelectionDescription = () => {
|
|
2804
|
+
return i18nString(SuggestSelectionDescription);
|
|
3273
2805
|
};
|
|
3274
|
-
const
|
|
3275
|
-
return i18nString(
|
|
2806
|
+
const useTabStops = () => {
|
|
2807
|
+
return i18nString(UseTabStops);
|
|
3276
2808
|
};
|
|
3277
|
-
const
|
|
3278
|
-
return i18nString(
|
|
2809
|
+
const useTabStopsDescription = () => {
|
|
2810
|
+
return i18nString(UseTabStopsDescription);
|
|
3279
2811
|
};
|
|
3280
|
-
const
|
|
3281
|
-
return i18nString(
|
|
2812
|
+
const wordSeparators = () => {
|
|
2813
|
+
return i18nString(WordSeparators);
|
|
3282
2814
|
};
|
|
3283
|
-
const
|
|
3284
|
-
return i18nString(
|
|
2815
|
+
const wordSeparatorsDescription = () => {
|
|
2816
|
+
return i18nString(WordSeparatorsDescription);
|
|
3285
2817
|
};
|
|
3286
|
-
const
|
|
3287
|
-
return i18nString(
|
|
2818
|
+
const wrappingIndent = () => {
|
|
2819
|
+
return i18nString(WrappingIndent);
|
|
3288
2820
|
};
|
|
3289
|
-
const
|
|
3290
|
-
return i18nString(
|
|
2821
|
+
const wrappingIndentDescription = () => {
|
|
2822
|
+
return i18nString(WrappingIndentDescription);
|
|
3291
2823
|
};
|
|
3292
|
-
const
|
|
3293
|
-
return i18nString(
|
|
2824
|
+
const unknownSettingType = () => {
|
|
2825
|
+
return i18nString(UnknownSettingType);
|
|
3294
2826
|
};
|
|
3295
|
-
|
|
3296
|
-
|
|
2827
|
+
|
|
2828
|
+
// Menu Entry Labels
|
|
2829
|
+
const advanced = () => {
|
|
2830
|
+
return i18nString(Advanced);
|
|
3297
2831
|
};
|
|
3298
|
-
const
|
|
3299
|
-
return i18nString(
|
|
2832
|
+
const experimental = () => {
|
|
2833
|
+
return i18nString(Experimental);
|
|
3300
2834
|
};
|
|
3301
|
-
const
|
|
3302
|
-
return i18nString(
|
|
2835
|
+
const extensionId = () => {
|
|
2836
|
+
return i18nString(ExtensionId);
|
|
3303
2837
|
};
|
|
3304
|
-
const
|
|
3305
|
-
return i18nString(
|
|
2838
|
+
const feature = () => {
|
|
2839
|
+
return i18nString(Feature);
|
|
3306
2840
|
};
|
|
3307
|
-
const
|
|
3308
|
-
return i18nString(
|
|
2841
|
+
const language = () => {
|
|
2842
|
+
return i18nString(Language);
|
|
3309
2843
|
};
|
|
3310
|
-
const
|
|
3311
|
-
return i18nString(
|
|
2844
|
+
const modified = () => {
|
|
2845
|
+
return i18nString(Modified);
|
|
3312
2846
|
};
|
|
3313
|
-
const
|
|
3314
|
-
return i18nString(
|
|
2847
|
+
const preview = () => {
|
|
2848
|
+
return i18nString(Preview);
|
|
3315
2849
|
};
|
|
3316
|
-
const
|
|
3317
|
-
return i18nString(
|
|
2850
|
+
const settingId = () => {
|
|
2851
|
+
return i18nString(SettingId);
|
|
3318
2852
|
};
|
|
3319
|
-
const
|
|
3320
|
-
return i18nString(
|
|
2853
|
+
const stable = () => {
|
|
2854
|
+
return i18nString(Stable);
|
|
3321
2855
|
};
|
|
3322
|
-
const
|
|
3323
|
-
return i18nString(
|
|
2856
|
+
const tag = () => {
|
|
2857
|
+
return i18nString(Tag);
|
|
3324
2858
|
};
|
|
3325
|
-
|
|
3326
|
-
|
|
2859
|
+
|
|
2860
|
+
const getMenuEntries = () => {
|
|
2861
|
+
return [{
|
|
2862
|
+
command: 'Settings.filter.advanced',
|
|
2863
|
+
id: 'filter-advanced',
|
|
2864
|
+
label: advanced()
|
|
2865
|
+
}, {
|
|
2866
|
+
command: 'Settings.filter.experimental',
|
|
2867
|
+
id: 'filter-experimental',
|
|
2868
|
+
label: experimental()
|
|
2869
|
+
}, {
|
|
2870
|
+
command: 'Settings.filter.extensionId',
|
|
2871
|
+
id: 'filter-extensionId',
|
|
2872
|
+
label: extensionId()
|
|
2873
|
+
}, {
|
|
2874
|
+
command: 'Settings.filter.feature',
|
|
2875
|
+
id: 'filter-feature',
|
|
2876
|
+
label: feature()
|
|
2877
|
+
}, {
|
|
2878
|
+
command: 'Settings.filter.language',
|
|
2879
|
+
id: 'filter-language',
|
|
2880
|
+
label: language()
|
|
2881
|
+
}, {
|
|
2882
|
+
command: 'Settings.filter.modified',
|
|
2883
|
+
id: 'filter-modified',
|
|
2884
|
+
label: modified()
|
|
2885
|
+
}, {
|
|
2886
|
+
command: 'Settings.filter.preview',
|
|
2887
|
+
id: 'filter-preview',
|
|
2888
|
+
label: preview()
|
|
2889
|
+
}, {
|
|
2890
|
+
command: 'Settings.filter.settingId',
|
|
2891
|
+
id: 'filter-settingId',
|
|
2892
|
+
label: settingId()
|
|
2893
|
+
}, {
|
|
2894
|
+
command: 'Settings.filter.stable',
|
|
2895
|
+
id: 'filter-stable',
|
|
2896
|
+
label: stable()
|
|
2897
|
+
}, {
|
|
2898
|
+
command: 'Settings.filter.tag',
|
|
2899
|
+
id: 'filter-tag',
|
|
2900
|
+
label: tag()
|
|
2901
|
+
}];
|
|
3327
2902
|
};
|
|
3328
|
-
|
|
3329
|
-
|
|
2903
|
+
|
|
2904
|
+
const getName = () => {
|
|
2905
|
+
// TODO i18n string
|
|
2906
|
+
return 'Settings';
|
|
3330
2907
|
};
|
|
3331
2908
|
|
|
3332
|
-
|
|
3333
|
-
const
|
|
3334
|
-
|
|
2909
|
+
const ClientX = 'event.clientX';
|
|
2910
|
+
const ClientY = 'event.clientY';
|
|
2911
|
+
const DeltaY = 'event.deltaY';
|
|
2912
|
+
const TargetName = 'event.target.name';
|
|
2913
|
+
const TargetValue = 'event.target.value';
|
|
2914
|
+
|
|
2915
|
+
const Script = 2;
|
|
2916
|
+
|
|
2917
|
+
const SettingsFilter = 94;
|
|
2918
|
+
|
|
2919
|
+
const DebugWorker = 55;
|
|
2920
|
+
const RendererWorker$1 = 1;
|
|
2921
|
+
|
|
2922
|
+
const SetCss = 'Viewlet.setCss';
|
|
2923
|
+
|
|
2924
|
+
const rpcs = Object.create(null);
|
|
2925
|
+
const set$2 = (id, rpc) => {
|
|
2926
|
+
rpcs[id] = rpc;
|
|
3335
2927
|
};
|
|
3336
|
-
const
|
|
3337
|
-
return
|
|
2928
|
+
const get = id => {
|
|
2929
|
+
return rpcs[id];
|
|
3338
2930
|
};
|
|
3339
|
-
|
|
3340
|
-
|
|
2931
|
+
|
|
2932
|
+
const create = rpcId => {
|
|
2933
|
+
return {
|
|
2934
|
+
async dispose() {
|
|
2935
|
+
const rpc = get(rpcId);
|
|
2936
|
+
await rpc.dispose();
|
|
2937
|
+
},
|
|
2938
|
+
// @ts-ignore
|
|
2939
|
+
invoke(method, ...params) {
|
|
2940
|
+
const rpc = get(rpcId);
|
|
2941
|
+
// @ts-ignore
|
|
2942
|
+
return rpc.invoke(method, ...params);
|
|
2943
|
+
},
|
|
2944
|
+
// @ts-ignore
|
|
2945
|
+
invokeAndTransfer(method, ...params) {
|
|
2946
|
+
const rpc = get(rpcId);
|
|
2947
|
+
// @ts-ignore
|
|
2948
|
+
return rpc.invokeAndTransfer(method, ...params);
|
|
2949
|
+
},
|
|
2950
|
+
set(rpc) {
|
|
2951
|
+
set$2(rpcId, rpc);
|
|
2952
|
+
}
|
|
2953
|
+
};
|
|
3341
2954
|
};
|
|
3342
|
-
|
|
3343
|
-
|
|
2955
|
+
|
|
2956
|
+
const {
|
|
2957
|
+
dispose,
|
|
2958
|
+
invoke,
|
|
2959
|
+
invokeAndTransfer,
|
|
2960
|
+
set: set$1
|
|
2961
|
+
} = create(RendererWorker$1);
|
|
2962
|
+
const searchFileHtml = async uri => {
|
|
2963
|
+
return invoke('ExtensionHost.searchFileWithHtml', uri);
|
|
3344
2964
|
};
|
|
3345
|
-
const
|
|
3346
|
-
return
|
|
2965
|
+
const getFilePathElectron = async file => {
|
|
2966
|
+
return invoke('FileSystemHandle.getFilePathElectron', file);
|
|
3347
2967
|
};
|
|
3348
|
-
|
|
3349
|
-
|
|
2968
|
+
/**
|
|
2969
|
+
* @deprecated
|
|
2970
|
+
*/
|
|
2971
|
+
const showContextMenu = async (x, y, id, ...args) => {
|
|
2972
|
+
return invoke('ContextMenu.show', x, y, id, ...args);
|
|
3350
2973
|
};
|
|
3351
|
-
const
|
|
3352
|
-
|
|
2974
|
+
const showContextMenu2 = async (uid, menuId, x, y, args) => {
|
|
2975
|
+
number(uid);
|
|
2976
|
+
number(menuId);
|
|
2977
|
+
number(x);
|
|
2978
|
+
number(y);
|
|
2979
|
+
// @ts-ignore
|
|
2980
|
+
await invoke('ContextMenu.show2', uid, menuId, x, y, args);
|
|
3353
2981
|
};
|
|
3354
|
-
const
|
|
3355
|
-
return
|
|
2982
|
+
const getElectronVersion = async () => {
|
|
2983
|
+
return invoke('Process.getElectronVersion');
|
|
3356
2984
|
};
|
|
3357
|
-
const
|
|
3358
|
-
|
|
2985
|
+
const applyBulkReplacement = async bulkEdits => {
|
|
2986
|
+
await invoke('BulkReplacement.applyBulkReplacement', bulkEdits);
|
|
3359
2987
|
};
|
|
3360
|
-
const
|
|
3361
|
-
|
|
2988
|
+
const setColorTheme = async id => {
|
|
2989
|
+
// @ts-ignore
|
|
2990
|
+
return invoke(/* ColorTheme.setColorTheme */'ColorTheme.setColorTheme', /* colorThemeId */id);
|
|
3362
2991
|
};
|
|
3363
|
-
const
|
|
3364
|
-
return
|
|
2992
|
+
const getNodeVersion = async () => {
|
|
2993
|
+
return invoke('Process.getNodeVersion');
|
|
3365
2994
|
};
|
|
3366
|
-
const
|
|
3367
|
-
return
|
|
2995
|
+
const getChromeVersion = async () => {
|
|
2996
|
+
return invoke('Process.getChromeVersion');
|
|
3368
2997
|
};
|
|
3369
|
-
const
|
|
3370
|
-
return
|
|
2998
|
+
const getV8Version = async () => {
|
|
2999
|
+
return invoke('Process.getV8Version');
|
|
3371
3000
|
};
|
|
3372
|
-
const
|
|
3373
|
-
|
|
3001
|
+
const getFileHandles = async fileIds => {
|
|
3002
|
+
const files = await invoke('FileSystemHandle.getFileHandles', fileIds);
|
|
3003
|
+
return files;
|
|
3374
3004
|
};
|
|
3375
|
-
const
|
|
3376
|
-
|
|
3005
|
+
const setWorkspacePath = async path => {
|
|
3006
|
+
await invoke('Workspace.setPath', path);
|
|
3377
3007
|
};
|
|
3378
|
-
const
|
|
3379
|
-
|
|
3008
|
+
const registerWebViewInterceptor = async (id, port) => {
|
|
3009
|
+
await invokeAndTransfer('WebView.registerInterceptor', id, port);
|
|
3380
3010
|
};
|
|
3381
|
-
const
|
|
3382
|
-
|
|
3011
|
+
const unregisterWebViewInterceptor = async id => {
|
|
3012
|
+
await invoke('WebView.unregisterInterceptor', id);
|
|
3383
3013
|
};
|
|
3384
|
-
const
|
|
3385
|
-
|
|
3014
|
+
const sendMessagePortToEditorWorker = async (port, rpcId) => {
|
|
3015
|
+
const command = 'HandleMessagePort.handleMessagePort';
|
|
3016
|
+
// @ts-ignore
|
|
3017
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToEditorWorker', port, command, rpcId);
|
|
3386
3018
|
};
|
|
3387
|
-
const
|
|
3388
|
-
|
|
3019
|
+
const sendMessagePortToErrorWorker = async (port, rpcId) => {
|
|
3020
|
+
const command = 'Errors.handleMessagePort';
|
|
3021
|
+
// @ts-ignore
|
|
3022
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToErrorWorker', port, command, rpcId);
|
|
3389
3023
|
};
|
|
3390
|
-
const
|
|
3391
|
-
|
|
3024
|
+
const sendMessagePortToMarkdownWorker = async (port, rpcId) => {
|
|
3025
|
+
const command = 'Markdown.handleMessagePort';
|
|
3026
|
+
// @ts-ignore
|
|
3027
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToMarkdownWorker', port, command, rpcId);
|
|
3392
3028
|
};
|
|
3393
|
-
const
|
|
3394
|
-
|
|
3029
|
+
const sendMessagePortToIconThemeWorker = async (port, rpcId) => {
|
|
3030
|
+
const command = 'IconTheme.handleMessagePort';
|
|
3031
|
+
// @ts-ignore
|
|
3032
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToIconThemeWorker', port, command, rpcId);
|
|
3395
3033
|
};
|
|
3396
|
-
const
|
|
3397
|
-
|
|
3034
|
+
const sendMessagePortToFileSystemWorker = async (port, rpcId) => {
|
|
3035
|
+
const command = 'FileSystem.handleMessagePort';
|
|
3036
|
+
// @ts-ignore
|
|
3037
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToFileSystemWorker', port, command, rpcId);
|
|
3398
3038
|
};
|
|
3399
|
-
const
|
|
3400
|
-
return
|
|
3039
|
+
const readFile = async uri => {
|
|
3040
|
+
return invoke('FileSystem.readFile', uri);
|
|
3401
3041
|
};
|
|
3402
|
-
const
|
|
3403
|
-
|
|
3042
|
+
const getWebViewSecret = async key => {
|
|
3043
|
+
// @ts-ignore
|
|
3044
|
+
return invoke('WebView.getSecret', key);
|
|
3404
3045
|
};
|
|
3405
|
-
const
|
|
3406
|
-
return
|
|
3046
|
+
const setWebViewPort = async (uid, port, origin, portType) => {
|
|
3047
|
+
return invokeAndTransfer('WebView.setPort', uid, port, origin, portType);
|
|
3407
3048
|
};
|
|
3408
|
-
const
|
|
3409
|
-
return
|
|
3049
|
+
const setFocus = key => {
|
|
3050
|
+
return invoke('Focus.setFocus', key);
|
|
3410
3051
|
};
|
|
3411
|
-
const
|
|
3412
|
-
return
|
|
3052
|
+
const getFileIcon = async options => {
|
|
3053
|
+
return invoke('IconTheme.getFileIcon', options);
|
|
3413
3054
|
};
|
|
3414
|
-
const
|
|
3415
|
-
return
|
|
3055
|
+
const getColorThemeNames = async () => {
|
|
3056
|
+
return invoke('ColorTheme.getColorThemeNames');
|
|
3416
3057
|
};
|
|
3417
|
-
const
|
|
3418
|
-
|
|
3058
|
+
const disableExtension = async id => {
|
|
3059
|
+
// @ts-ignore
|
|
3060
|
+
return invoke('ExtensionManagement.disable', id);
|
|
3419
3061
|
};
|
|
3420
|
-
const
|
|
3421
|
-
|
|
3062
|
+
const enableExtension = async id => {
|
|
3063
|
+
// @ts-ignore
|
|
3064
|
+
return invoke('ExtensionManagement.enable', id);
|
|
3422
3065
|
};
|
|
3423
|
-
const
|
|
3424
|
-
|
|
3066
|
+
const handleDebugChange = async params => {
|
|
3067
|
+
// @ts-ignore
|
|
3068
|
+
return invoke('Run And Debug.handleChange', params);
|
|
3425
3069
|
};
|
|
3426
|
-
const
|
|
3427
|
-
return
|
|
3070
|
+
const getFolderIcon = async options => {
|
|
3071
|
+
return invoke('IconTheme.getFolderIcon', options);
|
|
3428
3072
|
};
|
|
3429
|
-
const
|
|
3430
|
-
return
|
|
3073
|
+
const handleWorkspaceRefresh = async () => {
|
|
3074
|
+
return invoke('Layout.handleWorkspaceRefresh');
|
|
3431
3075
|
};
|
|
3432
|
-
const
|
|
3433
|
-
return
|
|
3076
|
+
const closeWidget = async widgetId => {
|
|
3077
|
+
return invoke('Viewlet.closeWidget', widgetId);
|
|
3434
3078
|
};
|
|
3435
|
-
const
|
|
3436
|
-
|
|
3079
|
+
const sendMessagePortToExtensionHostWorker = async (port, rpcId = 0) => {
|
|
3080
|
+
const command = 'HandleMessagePort.handleMessagePort2';
|
|
3081
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker', port, command, rpcId);
|
|
3437
3082
|
};
|
|
3438
|
-
const
|
|
3439
|
-
|
|
3083
|
+
const sendMessagePortToSearchProcess = async port => {
|
|
3084
|
+
await invokeAndTransfer('SendMessagePortToElectron.sendMessagePortToElectron', port, 'HandleMessagePortForSearchProcess.handleMessagePortForSearchProcess');
|
|
3440
3085
|
};
|
|
3441
|
-
const
|
|
3442
|
-
|
|
3086
|
+
const confirm = async (message, options) => {
|
|
3087
|
+
// @ts-ignore
|
|
3088
|
+
const result = await invoke('ConfirmPrompt.prompt', message, options);
|
|
3089
|
+
return result;
|
|
3443
3090
|
};
|
|
3444
|
-
const
|
|
3445
|
-
return
|
|
3091
|
+
const getRecentlyOpened = async () => {
|
|
3092
|
+
return invoke(/* RecentlyOpened.getRecentlyOpened */'RecentlyOpened.getRecentlyOpened');
|
|
3093
|
+
};
|
|
3094
|
+
const getKeyBindings = async () => {
|
|
3095
|
+
return invoke('KeyBindingsInitial.getKeyBindings');
|
|
3446
3096
|
};
|
|
3447
|
-
const
|
|
3448
|
-
|
|
3097
|
+
const writeClipBoardText = async text => {
|
|
3098
|
+
await invoke('ClipBoard.writeText', /* text */text);
|
|
3449
3099
|
};
|
|
3450
|
-
const
|
|
3451
|
-
return
|
|
3100
|
+
const readClipBoardText = async () => {
|
|
3101
|
+
return invoke('ClipBoard.readText');
|
|
3452
3102
|
};
|
|
3453
|
-
const
|
|
3454
|
-
|
|
3103
|
+
const writeClipBoardImage = async blob => {
|
|
3104
|
+
// @ts-ignore
|
|
3105
|
+
await invoke('ClipBoard.writeImage', /* text */blob);
|
|
3455
3106
|
};
|
|
3456
|
-
const
|
|
3457
|
-
|
|
3107
|
+
const searchFileMemory = async uri => {
|
|
3108
|
+
// @ts-ignore
|
|
3109
|
+
return invoke('ExtensionHost.searchFileWithMemory', uri);
|
|
3458
3110
|
};
|
|
3459
|
-
const
|
|
3460
|
-
return
|
|
3111
|
+
const searchFileFetch = async uri => {
|
|
3112
|
+
return invoke('ExtensionHost.searchFileWithFetch', uri);
|
|
3461
3113
|
};
|
|
3462
|
-
const
|
|
3463
|
-
return
|
|
3114
|
+
const showMessageBox = async options => {
|
|
3115
|
+
return invoke('ElectronDialog.showMessageBox', options);
|
|
3464
3116
|
};
|
|
3465
|
-
const
|
|
3466
|
-
|
|
3117
|
+
const handleDebugResumed = async params => {
|
|
3118
|
+
await invoke('Run And Debug.handleResumed', params);
|
|
3467
3119
|
};
|
|
3468
|
-
const
|
|
3469
|
-
|
|
3120
|
+
const openWidget = async name => {
|
|
3121
|
+
await invoke('Viewlet.openWidget', name);
|
|
3470
3122
|
};
|
|
3471
|
-
const
|
|
3472
|
-
|
|
3123
|
+
const getIcons = async requests => {
|
|
3124
|
+
const icons = await invoke('IconTheme.getIcons', requests);
|
|
3125
|
+
return icons;
|
|
3473
3126
|
};
|
|
3474
|
-
const
|
|
3475
|
-
return
|
|
3127
|
+
const activateByEvent = (event, assetDir, platform) => {
|
|
3128
|
+
return invoke('ExtensionHostManagement.activateByEvent', event, assetDir, platform);
|
|
3476
3129
|
};
|
|
3477
|
-
const
|
|
3478
|
-
|
|
3130
|
+
const setAdditionalFocus = focusKey => {
|
|
3131
|
+
// @ts-ignore
|
|
3132
|
+
return invoke('Focus.setAdditionalFocus', focusKey);
|
|
3479
3133
|
};
|
|
3480
|
-
const
|
|
3481
|
-
|
|
3134
|
+
const getActiveEditorId = () => {
|
|
3135
|
+
// @ts-ignore
|
|
3136
|
+
return invoke('GetActiveEditor.getActiveEditorId');
|
|
3482
3137
|
};
|
|
3483
|
-
const
|
|
3484
|
-
return
|
|
3138
|
+
const getWorkspacePath = () => {
|
|
3139
|
+
return invoke('Workspace.getPath');
|
|
3485
3140
|
};
|
|
3486
|
-
const
|
|
3487
|
-
|
|
3141
|
+
const sendMessagePortToRendererProcess = async port => {
|
|
3142
|
+
const command = 'HandleMessagePort.handleMessagePort';
|
|
3143
|
+
// @ts-ignore
|
|
3144
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToRendererProcess', port, command, DebugWorker);
|
|
3488
3145
|
};
|
|
3489
|
-
const
|
|
3490
|
-
|
|
3146
|
+
const sendMessagePortToTextMeasurementWorker = async port => {
|
|
3147
|
+
const command = 'TextMeasurement.handleMessagePort';
|
|
3148
|
+
// @ts-ignore
|
|
3149
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToTextMeasurementWorker', port, command, 0);
|
|
3491
3150
|
};
|
|
3492
|
-
const
|
|
3493
|
-
|
|
3151
|
+
const sendMessagePortToSourceControlWorker = async port => {
|
|
3152
|
+
const command = 'SourceControl.handleMessagePort';
|
|
3153
|
+
// @ts-ignore
|
|
3154
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToSourceControlWorker', port, command, 0);
|
|
3494
3155
|
};
|
|
3495
|
-
const
|
|
3496
|
-
|
|
3156
|
+
const sendMessagePortToSharedProcess = async port => {
|
|
3157
|
+
const command = 'HandleElectronMessagePort.handleElectronMessagePort';
|
|
3158
|
+
// @ts-ignore
|
|
3159
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToSharedProcess', port, command, 0);
|
|
3497
3160
|
};
|
|
3498
|
-
const
|
|
3499
|
-
|
|
3161
|
+
const sendMessagePortToFileSystemProcess = async (port, rpcId) => {
|
|
3162
|
+
const command = 'HandleMessagePortForFileSystemProcess.handleMessagePortForFileSystemProcess';
|
|
3163
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToSharedProcess', port, command, rpcId);
|
|
3500
3164
|
};
|
|
3501
|
-
const
|
|
3502
|
-
|
|
3165
|
+
const sendMessagePortToIframeWorker = async (port, rpcId) => {
|
|
3166
|
+
const command = 'Iframes.handleMessagePort';
|
|
3167
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToIframeWorker', port, command, rpcId);
|
|
3503
3168
|
};
|
|
3504
|
-
const
|
|
3505
|
-
|
|
3169
|
+
const sendMessagePortToExtensionManagementWorker = async (port, rpcId) => {
|
|
3170
|
+
const command = 'Extensions.handleMessagePort';
|
|
3171
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionManagementWorker', port, command, rpcId);
|
|
3506
3172
|
};
|
|
3507
|
-
const
|
|
3508
|
-
return
|
|
3173
|
+
const getPreference = async key => {
|
|
3174
|
+
return await invoke('Preferences.get', key);
|
|
3509
3175
|
};
|
|
3510
|
-
const
|
|
3511
|
-
return
|
|
3176
|
+
const getAllExtensions = async () => {
|
|
3177
|
+
return invoke('ExtensionManagement.getAllExtensions');
|
|
3512
3178
|
};
|
|
3513
|
-
const
|
|
3514
|
-
|
|
3179
|
+
const rerenderEditor = async key => {
|
|
3180
|
+
// @ts-ignore
|
|
3181
|
+
return invoke('Editor.rerender', key);
|
|
3515
3182
|
};
|
|
3516
|
-
const
|
|
3517
|
-
|
|
3183
|
+
const handleDebugPaused = async params => {
|
|
3184
|
+
await invoke('Run And Debug.handlePaused', params);
|
|
3518
3185
|
};
|
|
3519
|
-
const
|
|
3520
|
-
|
|
3186
|
+
const openUri = async (uri, focus, options) => {
|
|
3187
|
+
await invoke('Main.openUri', uri, focus, options);
|
|
3521
3188
|
};
|
|
3522
|
-
const
|
|
3523
|
-
|
|
3189
|
+
const sendMessagePortToSyntaxHighlightingWorker = async port => {
|
|
3190
|
+
await invokeAndTransfer(
|
|
3191
|
+
// @ts-ignore
|
|
3192
|
+
'SendMessagePortToSyntaxHighlightingWorker.sendMessagePortToSyntaxHighlightingWorker', port, 'HandleMessagePort.handleMessagePort2');
|
|
3524
3193
|
};
|
|
3525
|
-
const
|
|
3526
|
-
|
|
3194
|
+
const handleDebugScriptParsed = async script => {
|
|
3195
|
+
await invoke('Run And Debug.handleScriptParsed', script);
|
|
3527
3196
|
};
|
|
3528
|
-
const
|
|
3529
|
-
return
|
|
3197
|
+
const getWindowId = async () => {
|
|
3198
|
+
return invoke('GetWindowId.getWindowId');
|
|
3530
3199
|
};
|
|
3531
|
-
const
|
|
3532
|
-
|
|
3200
|
+
const getBlob = async uri => {
|
|
3201
|
+
// @ts-ignore
|
|
3202
|
+
return invoke('FileSystem.getBlob', uri);
|
|
3533
3203
|
};
|
|
3534
|
-
const
|
|
3535
|
-
return
|
|
3204
|
+
const getExtensionCommands = async () => {
|
|
3205
|
+
return invoke('ExtensionHost.getCommands');
|
|
3536
3206
|
};
|
|
3537
|
-
const
|
|
3538
|
-
|
|
3207
|
+
const showErrorDialog = async errorInfo => {
|
|
3208
|
+
// @ts-ignore
|
|
3209
|
+
await invoke('ErrorHandling.showErrorDialog', errorInfo);
|
|
3539
3210
|
};
|
|
3540
|
-
const
|
|
3541
|
-
|
|
3211
|
+
const getFolderSize = async uri => {
|
|
3212
|
+
// @ts-ignore
|
|
3213
|
+
return await invoke('FileSystem.getFolderSize', uri);
|
|
3542
3214
|
};
|
|
3543
|
-
const
|
|
3544
|
-
|
|
3215
|
+
const getExtension = async id => {
|
|
3216
|
+
// @ts-ignore
|
|
3217
|
+
return invoke('ExtensionManagement.getExtension', id);
|
|
3545
3218
|
};
|
|
3546
|
-
const
|
|
3547
|
-
|
|
3219
|
+
const getMarkdownDom = async html => {
|
|
3220
|
+
// @ts-ignore
|
|
3221
|
+
return invoke('Markdown.getVirtualDom', html);
|
|
3548
3222
|
};
|
|
3549
|
-
const
|
|
3550
|
-
|
|
3223
|
+
const renderMarkdown = async (markdown, options) => {
|
|
3224
|
+
// @ts-ignore
|
|
3225
|
+
return invoke('Markdown.renderMarkdown', markdown, options);
|
|
3551
3226
|
};
|
|
3552
|
-
const
|
|
3553
|
-
|
|
3227
|
+
const openNativeFolder = async uri => {
|
|
3228
|
+
// @ts-ignore
|
|
3229
|
+
await invoke('OpenNativeFolder.openNativeFolder', uri);
|
|
3554
3230
|
};
|
|
3555
|
-
const
|
|
3556
|
-
return
|
|
3231
|
+
const uninstallExtension = async id => {
|
|
3232
|
+
return invoke('ExtensionManagement.uninstall', id);
|
|
3557
3233
|
};
|
|
3558
|
-
const
|
|
3559
|
-
|
|
3234
|
+
const installExtension = async id => {
|
|
3235
|
+
// @ts-ignore
|
|
3236
|
+
return invoke('ExtensionManagement.install', id);
|
|
3560
3237
|
};
|
|
3561
|
-
const
|
|
3562
|
-
|
|
3238
|
+
const minimizeWindow = async () => {
|
|
3239
|
+
// @ts-ignore
|
|
3240
|
+
return invoke('ElectronWindow.minimize');
|
|
3563
3241
|
};
|
|
3564
|
-
const
|
|
3565
|
-
|
|
3242
|
+
const unmaximizeWindow = async () => {
|
|
3243
|
+
// @ts-ignore
|
|
3244
|
+
return invoke('ElectronWindow.unmaximize');
|
|
3566
3245
|
};
|
|
3567
|
-
const
|
|
3568
|
-
|
|
3246
|
+
const maximizeWindow = async () => {
|
|
3247
|
+
// @ts-ignore
|
|
3248
|
+
return invoke('ElectronWindow.maximize');
|
|
3569
3249
|
};
|
|
3570
|
-
const
|
|
3571
|
-
|
|
3250
|
+
const closeWindow = async () => {
|
|
3251
|
+
// @ts-ignore
|
|
3252
|
+
return invoke('ElectronWindow.close');
|
|
3572
3253
|
};
|
|
3573
|
-
const
|
|
3574
|
-
|
|
3254
|
+
const openExtensionSearch = async () => {
|
|
3255
|
+
// @ts-ignore
|
|
3256
|
+
return invoke('SideBar.openViewlet', 'Extensions');
|
|
3575
3257
|
};
|
|
3576
|
-
const
|
|
3577
|
-
|
|
3258
|
+
const setExtensionsSearchValue = async searchValue => {
|
|
3259
|
+
// @ts-ignore
|
|
3260
|
+
return invoke('Extensions.handleInput', searchValue, Script);
|
|
3578
3261
|
};
|
|
3579
|
-
const
|
|
3580
|
-
|
|
3262
|
+
const openExternal = async uri => {
|
|
3263
|
+
// @ts-ignore
|
|
3264
|
+
await invoke('Open.openExternal', uri);
|
|
3581
3265
|
};
|
|
3582
|
-
const
|
|
3583
|
-
|
|
3266
|
+
const openUrl = async uri => {
|
|
3267
|
+
// @ts-ignore
|
|
3268
|
+
await invoke('Open.openUrl', uri);
|
|
3584
3269
|
};
|
|
3585
|
-
const
|
|
3586
|
-
|
|
3270
|
+
const getAllPreferences = async () => {
|
|
3271
|
+
// @ts-ignore
|
|
3272
|
+
return invoke('Preferences.getAll');
|
|
3587
3273
|
};
|
|
3588
|
-
const
|
|
3589
|
-
|
|
3274
|
+
const showSaveFilePicker = async () => {
|
|
3275
|
+
// @ts-ignore
|
|
3276
|
+
return invoke('FilePicker.showSaveFilePicker');
|
|
3590
3277
|
};
|
|
3591
|
-
const
|
|
3592
|
-
|
|
3278
|
+
const getLogsDir = async () => {
|
|
3279
|
+
// @ts-ignore
|
|
3280
|
+
return invoke('PlatformPaths.getLogsDir');
|
|
3593
3281
|
};
|
|
3594
|
-
const
|
|
3595
|
-
return
|
|
3282
|
+
const measureTextBlockHeight = async (actualInput, fontFamily, fontSize, lineHeightPx, width) => {
|
|
3283
|
+
return invoke(`MeasureTextHeight.measureTextBlockHeight`, actualInput, fontFamily, fontSize, lineHeightPx, width);
|
|
3596
3284
|
};
|
|
3597
|
-
const
|
|
3598
|
-
|
|
3285
|
+
const registerMockRpc = commandMap => {
|
|
3286
|
+
const mockRpc = createMockRpc({
|
|
3287
|
+
commandMap
|
|
3288
|
+
});
|
|
3289
|
+
set$1(mockRpc);
|
|
3290
|
+
return mockRpc;
|
|
3291
|
+
};
|
|
3292
|
+
|
|
3293
|
+
const RendererWorker = {
|
|
3294
|
+
__proto__: null,
|
|
3295
|
+
activateByEvent,
|
|
3296
|
+
applyBulkReplacement,
|
|
3297
|
+
closeWidget,
|
|
3298
|
+
closeWindow,
|
|
3299
|
+
confirm,
|
|
3300
|
+
disableExtension,
|
|
3301
|
+
dispose,
|
|
3302
|
+
enableExtension,
|
|
3303
|
+
getActiveEditorId,
|
|
3304
|
+
getAllExtensions,
|
|
3305
|
+
getAllPreferences,
|
|
3306
|
+
getBlob,
|
|
3307
|
+
getChromeVersion,
|
|
3308
|
+
getColorThemeNames,
|
|
3309
|
+
getElectronVersion,
|
|
3310
|
+
getExtension,
|
|
3311
|
+
getExtensionCommands,
|
|
3312
|
+
getFileHandles,
|
|
3313
|
+
getFileIcon,
|
|
3314
|
+
getFilePathElectron,
|
|
3315
|
+
getFolderIcon,
|
|
3316
|
+
getFolderSize,
|
|
3317
|
+
getIcons,
|
|
3318
|
+
getKeyBindings,
|
|
3319
|
+
getLogsDir,
|
|
3320
|
+
getMarkdownDom,
|
|
3321
|
+
getNodeVersion,
|
|
3322
|
+
getPreference,
|
|
3323
|
+
getRecentlyOpened,
|
|
3324
|
+
getV8Version,
|
|
3325
|
+
getWebViewSecret,
|
|
3326
|
+
getWindowId,
|
|
3327
|
+
getWorkspacePath,
|
|
3328
|
+
handleDebugChange,
|
|
3329
|
+
handleDebugPaused,
|
|
3330
|
+
handleDebugResumed,
|
|
3331
|
+
handleDebugScriptParsed,
|
|
3332
|
+
handleWorkspaceRefresh,
|
|
3333
|
+
installExtension,
|
|
3334
|
+
invoke,
|
|
3335
|
+
invokeAndTransfer,
|
|
3336
|
+
maximizeWindow,
|
|
3337
|
+
measureTextBlockHeight,
|
|
3338
|
+
minimizeWindow,
|
|
3339
|
+
openExtensionSearch,
|
|
3340
|
+
openExternal,
|
|
3341
|
+
openNativeFolder,
|
|
3342
|
+
openUri,
|
|
3343
|
+
openUrl,
|
|
3344
|
+
openWidget,
|
|
3345
|
+
readClipBoardText,
|
|
3346
|
+
readFile,
|
|
3347
|
+
registerMockRpc,
|
|
3348
|
+
registerWebViewInterceptor,
|
|
3349
|
+
renderMarkdown,
|
|
3350
|
+
rerenderEditor,
|
|
3351
|
+
searchFileFetch,
|
|
3352
|
+
searchFileHtml,
|
|
3353
|
+
searchFileMemory,
|
|
3354
|
+
sendMessagePortToEditorWorker,
|
|
3355
|
+
sendMessagePortToErrorWorker,
|
|
3356
|
+
sendMessagePortToExtensionHostWorker,
|
|
3357
|
+
sendMessagePortToExtensionManagementWorker,
|
|
3358
|
+
sendMessagePortToFileSystemProcess,
|
|
3359
|
+
sendMessagePortToFileSystemWorker,
|
|
3360
|
+
sendMessagePortToIconThemeWorker,
|
|
3361
|
+
sendMessagePortToIframeWorker,
|
|
3362
|
+
sendMessagePortToMarkdownWorker,
|
|
3363
|
+
sendMessagePortToRendererProcess,
|
|
3364
|
+
sendMessagePortToSearchProcess,
|
|
3365
|
+
sendMessagePortToSharedProcess,
|
|
3366
|
+
sendMessagePortToSourceControlWorker,
|
|
3367
|
+
sendMessagePortToSyntaxHighlightingWorker,
|
|
3368
|
+
sendMessagePortToTextMeasurementWorker,
|
|
3369
|
+
set: set$1,
|
|
3370
|
+
setAdditionalFocus,
|
|
3371
|
+
setColorTheme,
|
|
3372
|
+
setExtensionsSearchValue,
|
|
3373
|
+
setFocus,
|
|
3374
|
+
setWebViewPort,
|
|
3375
|
+
setWorkspacePath,
|
|
3376
|
+
showContextMenu,
|
|
3377
|
+
showContextMenu2,
|
|
3378
|
+
showErrorDialog,
|
|
3379
|
+
showMessageBox,
|
|
3380
|
+
showSaveFilePicker,
|
|
3381
|
+
uninstallExtension,
|
|
3382
|
+
unmaximizeWindow,
|
|
3383
|
+
unregisterWebViewInterceptor,
|
|
3384
|
+
writeClipBoardImage,
|
|
3385
|
+
writeClipBoardText
|
|
3599
3386
|
};
|
|
3600
|
-
|
|
3601
|
-
|
|
3387
|
+
|
|
3388
|
+
const show2 = async (uid, menuId, x, y, args) => {
|
|
3389
|
+
await showContextMenu2(uid, menuId, x, y, args);
|
|
3602
3390
|
};
|
|
3603
|
-
|
|
3604
|
-
|
|
3391
|
+
|
|
3392
|
+
const handleClickFilterButton = async (state, x, y) => {
|
|
3393
|
+
await show2(state.id, SettingsFilter, x, y, {
|
|
3394
|
+
menuId: SettingsFilter
|
|
3395
|
+
});
|
|
3396
|
+
return state;
|
|
3605
3397
|
};
|
|
3606
|
-
|
|
3607
|
-
|
|
3398
|
+
|
|
3399
|
+
const getSelectedTabId = tabs => {
|
|
3400
|
+
for (const tab of tabs) {
|
|
3401
|
+
if (tab.selected) {
|
|
3402
|
+
return tab.id;
|
|
3403
|
+
}
|
|
3404
|
+
}
|
|
3405
|
+
return '';
|
|
3608
3406
|
};
|
|
3609
|
-
|
|
3610
|
-
|
|
3407
|
+
|
|
3408
|
+
const getUpdatedTabs = (tabs, selectedTabId) => {
|
|
3409
|
+
// Check if the clicked tab is already selected
|
|
3410
|
+
const clickedTabId = getSelectedTabId(tabs);
|
|
3411
|
+
if (clickedTabId === selectedTabId) {
|
|
3412
|
+
return tabs;
|
|
3413
|
+
}
|
|
3414
|
+
return tabs.map(tab => ({
|
|
3415
|
+
...tab,
|
|
3416
|
+
selected: tab.id === selectedTabId
|
|
3417
|
+
}));
|
|
3611
3418
|
};
|
|
3612
|
-
|
|
3613
|
-
|
|
3419
|
+
|
|
3420
|
+
const handleClickTab = (state, name) => {
|
|
3421
|
+
if (!name) {
|
|
3422
|
+
return state;
|
|
3423
|
+
}
|
|
3424
|
+
const {
|
|
3425
|
+
height,
|
|
3426
|
+
itemHeight,
|
|
3427
|
+
items,
|
|
3428
|
+
modifiedSettings,
|
|
3429
|
+
preferences,
|
|
3430
|
+
scrollOffset,
|
|
3431
|
+
searchValue,
|
|
3432
|
+
tabs
|
|
3433
|
+
} = state;
|
|
3434
|
+
const updatedTabs = getUpdatedTabs(tabs, name);
|
|
3435
|
+
const filteredItems = getFilteredItems(items, updatedTabs, searchValue, modifiedSettings, preferences);
|
|
3436
|
+
const {
|
|
3437
|
+
maxLineY,
|
|
3438
|
+
minLineY,
|
|
3439
|
+
visibleItems
|
|
3440
|
+
} = computeVisibleItems(filteredItems, height, scrollOffset, itemHeight);
|
|
3441
|
+
const {
|
|
3442
|
+
scrollBarMinHeight
|
|
3443
|
+
} = state;
|
|
3444
|
+
const {
|
|
3445
|
+
thumbHeight,
|
|
3446
|
+
thumbTop
|
|
3447
|
+
} = computeScrollBar(height, filteredItems.length, itemHeight, scrollOffset, scrollBarMinHeight);
|
|
3448
|
+
return {
|
|
3449
|
+
...state,
|
|
3450
|
+
filteredItems,
|
|
3451
|
+
maxLineY,
|
|
3452
|
+
minLineY,
|
|
3453
|
+
scrollBarThumbHeight: thumbHeight,
|
|
3454
|
+
scrollBarThumbTop: thumbTop,
|
|
3455
|
+
tabs: updatedTabs,
|
|
3456
|
+
visibleItems
|
|
3457
|
+
};
|
|
3614
3458
|
};
|
|
3615
|
-
|
|
3616
|
-
|
|
3459
|
+
|
|
3460
|
+
const addToHistory = (history, value) => {
|
|
3461
|
+
let newHistory = history;
|
|
3462
|
+
let newHistoryIndex = -1;
|
|
3463
|
+
if (!value || !value.trim()) {
|
|
3464
|
+
return {
|
|
3465
|
+
newHistory,
|
|
3466
|
+
newHistoryIndex
|
|
3467
|
+
};
|
|
3468
|
+
}
|
|
3469
|
+
const trimmedValue = value.trim();
|
|
3470
|
+
|
|
3471
|
+
// Check if this value is already in history
|
|
3472
|
+
const existingIndex = history.indexOf(trimmedValue);
|
|
3473
|
+
if (existingIndex !== -1) {
|
|
3474
|
+
newHistoryIndex = existingIndex;
|
|
3475
|
+
return {
|
|
3476
|
+
newHistory,
|
|
3477
|
+
newHistoryIndex
|
|
3478
|
+
};
|
|
3479
|
+
}
|
|
3480
|
+
|
|
3481
|
+
// Check if this value is a prefix of any existing history item
|
|
3482
|
+
// If it is, don't add it to history yet (it's still being typed)
|
|
3483
|
+
const isPrefixOfExisting = history.some(historyItem => historyItem.startsWith(trimmedValue) && historyItem !== trimmedValue);
|
|
3484
|
+
if (isPrefixOfExisting) {
|
|
3485
|
+
// Don't add to history, but find the closest match for index
|
|
3486
|
+
const closestMatch = history.find(historyItem => historyItem.startsWith(trimmedValue));
|
|
3487
|
+
if (closestMatch) {
|
|
3488
|
+
newHistoryIndex = history.indexOf(closestMatch);
|
|
3489
|
+
}
|
|
3490
|
+
return {
|
|
3491
|
+
newHistory,
|
|
3492
|
+
newHistoryIndex
|
|
3493
|
+
};
|
|
3494
|
+
}
|
|
3495
|
+
|
|
3496
|
+
// Check if any existing history items are prefixes of this value
|
|
3497
|
+
// If so, remove all prefix items and add the complete value at the first prefix position
|
|
3498
|
+
const prefixItems = history.filter(historyItem => trimmedValue.startsWith(historyItem) && historyItem !== trimmedValue);
|
|
3499
|
+
if (prefixItems.length > 0) {
|
|
3500
|
+
// Find the position of the first prefix item
|
|
3501
|
+
const firstPrefixIndex = history.findIndex(historyItem => trimmedValue.startsWith(historyItem) && historyItem !== trimmedValue);
|
|
3502
|
+
|
|
3503
|
+
// Remove all prefix items and add the complete value at the first prefix position
|
|
3504
|
+
|
|
3505
|
+
// Insert the new value at the position where the first prefix was
|
|
3506
|
+
const beforePrefix = history.slice(0, firstPrefixIndex);
|
|
3507
|
+
const afterPrefix = history.slice(firstPrefixIndex).filter(historyItem => !trimmedValue.startsWith(historyItem) || historyItem === trimmedValue);
|
|
3508
|
+
newHistory = [...beforePrefix, trimmedValue, ...afterPrefix];
|
|
3509
|
+
newHistoryIndex = firstPrefixIndex;
|
|
3510
|
+
} else {
|
|
3511
|
+
// Add as new item
|
|
3512
|
+
newHistory = [...history, trimmedValue];
|
|
3513
|
+
newHistoryIndex = newHistory.length - 1;
|
|
3514
|
+
}
|
|
3515
|
+
return {
|
|
3516
|
+
newHistory,
|
|
3517
|
+
newHistoryIndex
|
|
3518
|
+
};
|
|
3617
3519
|
};
|
|
3618
|
-
|
|
3619
|
-
|
|
3520
|
+
|
|
3521
|
+
const handleInput = (state, value, inputSource = User) => {
|
|
3522
|
+
const {
|
|
3523
|
+
height,
|
|
3524
|
+
history,
|
|
3525
|
+
itemHeight,
|
|
3526
|
+
items,
|
|
3527
|
+
modifiedSettings,
|
|
3528
|
+
preferences,
|
|
3529
|
+
tabs
|
|
3530
|
+
} = state;
|
|
3531
|
+
const filteredItems = getFilteredItems(items, tabs, value, modifiedSettings, preferences);
|
|
3532
|
+
// Reset scroll when filter value changes so the user sees results from the top
|
|
3533
|
+
const nextScrollOffset = 0;
|
|
3534
|
+
const {
|
|
3535
|
+
maxLineY,
|
|
3536
|
+
minLineY,
|
|
3537
|
+
visibleItems
|
|
3538
|
+
} = computeVisibleItems(filteredItems, height, nextScrollOffset, itemHeight);
|
|
3539
|
+
const {
|
|
3540
|
+
scrollBarMinHeight
|
|
3541
|
+
} = state;
|
|
3542
|
+
const {
|
|
3543
|
+
thumbHeight,
|
|
3544
|
+
thumbTop
|
|
3545
|
+
} = computeScrollBar(height, filteredItems.length, itemHeight, nextScrollOffset, scrollBarMinHeight);
|
|
3546
|
+
const {
|
|
3547
|
+
newHistory,
|
|
3548
|
+
newHistoryIndex
|
|
3549
|
+
} = addToHistory(history, value);
|
|
3550
|
+
return {
|
|
3551
|
+
...state,
|
|
3552
|
+
deltaY: 0,
|
|
3553
|
+
filteredItems,
|
|
3554
|
+
history: newHistory,
|
|
3555
|
+
historyIndex: newHistoryIndex,
|
|
3556
|
+
inputSource,
|
|
3557
|
+
maxLineY,
|
|
3558
|
+
minLineY,
|
|
3559
|
+
scrollBarThumbHeight: thumbHeight,
|
|
3560
|
+
scrollBarThumbTop: thumbTop,
|
|
3561
|
+
scrollOffset: nextScrollOffset,
|
|
3562
|
+
searchValue: value,
|
|
3563
|
+
visibleItems
|
|
3564
|
+
};
|
|
3620
3565
|
};
|
|
3621
|
-
|
|
3622
|
-
|
|
3566
|
+
|
|
3567
|
+
const None = 0;
|
|
3568
|
+
const SearchInput = 1;
|
|
3569
|
+
|
|
3570
|
+
const handleInputBlur = state => {
|
|
3571
|
+
return {
|
|
3572
|
+
...state,
|
|
3573
|
+
focus: None
|
|
3574
|
+
};
|
|
3623
3575
|
};
|
|
3624
|
-
|
|
3625
|
-
|
|
3576
|
+
|
|
3577
|
+
const handleInputFocus = state => {
|
|
3578
|
+
return {
|
|
3579
|
+
...state,
|
|
3580
|
+
focus: SearchInput
|
|
3581
|
+
};
|
|
3626
3582
|
};
|
|
3627
|
-
|
|
3628
|
-
|
|
3583
|
+
|
|
3584
|
+
const handleResizerPointerDown = (state, eventX, eventY) => {
|
|
3585
|
+
return state;
|
|
3629
3586
|
};
|
|
3630
|
-
|
|
3631
|
-
|
|
3587
|
+
|
|
3588
|
+
const handleResizerPointerMove = (state, eventX, eventY) => {
|
|
3589
|
+
const {
|
|
3590
|
+
minContentWidth,
|
|
3591
|
+
sideBarMinWidth,
|
|
3592
|
+
width
|
|
3593
|
+
} = state;
|
|
3594
|
+
const maxSideBarWidth = width - minContentWidth;
|
|
3595
|
+
const newWidth = Math.max(sideBarMinWidth, Math.min(eventX, maxSideBarWidth));
|
|
3596
|
+
return {
|
|
3597
|
+
...state,
|
|
3598
|
+
sideBarWidth: newWidth
|
|
3599
|
+
};
|
|
3632
3600
|
};
|
|
3633
|
-
|
|
3634
|
-
|
|
3601
|
+
|
|
3602
|
+
const handleResizerPointerUp = (state, eventX, eventY) => {
|
|
3603
|
+
return state;
|
|
3635
3604
|
};
|
|
3636
|
-
|
|
3637
|
-
|
|
3605
|
+
|
|
3606
|
+
const handleScroll = (state, scrollTop, inputSource = User) => {
|
|
3607
|
+
return {
|
|
3608
|
+
...state,
|
|
3609
|
+
inputSource,
|
|
3610
|
+
scrollOffset: scrollTop
|
|
3611
|
+
};
|
|
3638
3612
|
};
|
|
3639
|
-
|
|
3640
|
-
|
|
3613
|
+
|
|
3614
|
+
const getNewFilteredItems = (oldModifiedSetings, newModifiedSettings, items, tabs, searchValue, oldFilteredItems, oldPreferences, newPreferences) => {
|
|
3615
|
+
if (oldModifiedSetings === newModifiedSettings && oldPreferences === newPreferences) {
|
|
3616
|
+
return oldFilteredItems;
|
|
3617
|
+
}
|
|
3618
|
+
return getFilteredItems(items, tabs, searchValue, newModifiedSettings, newPreferences);
|
|
3641
3619
|
};
|
|
3642
|
-
|
|
3643
|
-
|
|
3620
|
+
|
|
3621
|
+
const getNewModifiedSettings = (modifiedSettings, name) => {
|
|
3622
|
+
if (name in modifiedSettings) {
|
|
3623
|
+
return modifiedSettings;
|
|
3624
|
+
}
|
|
3625
|
+
return {
|
|
3626
|
+
...modifiedSettings,
|
|
3627
|
+
[name]: true
|
|
3628
|
+
};
|
|
3644
3629
|
};
|
|
3645
|
-
|
|
3646
|
-
|
|
3630
|
+
|
|
3631
|
+
const handleSettingUpdate = (state, name, value, inputSource) => {
|
|
3632
|
+
const {
|
|
3633
|
+
filteredItems,
|
|
3634
|
+
items,
|
|
3635
|
+
modifiedSettings,
|
|
3636
|
+
preferences,
|
|
3637
|
+
searchValue,
|
|
3638
|
+
tabs
|
|
3639
|
+
} = state;
|
|
3640
|
+
const newModifiedSettings = getNewModifiedSettings(modifiedSettings, name);
|
|
3641
|
+
const newPreferences = {
|
|
3642
|
+
...preferences,
|
|
3643
|
+
[name]: value
|
|
3644
|
+
};
|
|
3645
|
+
const newFilteredItems = getNewFilteredItems(modifiedSettings, newModifiedSettings, items, tabs, searchValue, filteredItems, preferences, newPreferences);
|
|
3646
|
+
return {
|
|
3647
|
+
...state,
|
|
3648
|
+
filteredItems: newFilteredItems,
|
|
3649
|
+
inputSource,
|
|
3650
|
+
preferences: newPreferences
|
|
3651
|
+
};
|
|
3647
3652
|
};
|
|
3648
|
-
|
|
3649
|
-
|
|
3653
|
+
|
|
3654
|
+
const handleSettingChecked = (state, name, value, source = User) => {
|
|
3655
|
+
return handleSettingUpdate(state, name, value, source);
|
|
3650
3656
|
};
|
|
3651
|
-
|
|
3652
|
-
|
|
3657
|
+
|
|
3658
|
+
const Enum = 1;
|
|
3659
|
+
const String = 2;
|
|
3660
|
+
const Boolean$1 = 3;
|
|
3661
|
+
const Number$1 = 5;
|
|
3662
|
+
const Color = 6;
|
|
3663
|
+
const Url = 7;
|
|
3664
|
+
|
|
3665
|
+
const handleSettingInput = (state, name, value, inputSource = User) => {
|
|
3666
|
+
const {
|
|
3667
|
+
items
|
|
3668
|
+
} = state;
|
|
3669
|
+
|
|
3670
|
+
// TODO maybe have separate input functions for number and string inputs
|
|
3671
|
+
const settingItem = items.find(item => item.id === name);
|
|
3672
|
+
if (settingItem && settingItem.type === Number$1) {
|
|
3673
|
+
const numberValue = value === '' ? '' : Number(value);
|
|
3674
|
+
return handleSettingUpdate(state, name, numberValue, inputSource);
|
|
3675
|
+
}
|
|
3676
|
+
return handleSettingUpdate(state, name, value, inputSource);
|
|
3653
3677
|
};
|
|
3654
|
-
|
|
3655
|
-
|
|
3678
|
+
|
|
3679
|
+
const handleSettingSelect = (state, name, value, source = User) => {
|
|
3680
|
+
return handleSettingUpdate(state, name, value, source);
|
|
3656
3681
|
};
|
|
3657
|
-
|
|
3658
|
-
|
|
3682
|
+
|
|
3683
|
+
const clamp = (value, min, max) => {
|
|
3684
|
+
if (Number.isNaN(value)) {
|
|
3685
|
+
return min;
|
|
3686
|
+
}
|
|
3687
|
+
if (max < min) {
|
|
3688
|
+
return min;
|
|
3689
|
+
}
|
|
3690
|
+
if (value < min) {
|
|
3691
|
+
return min;
|
|
3692
|
+
}
|
|
3693
|
+
if (value > max) {
|
|
3694
|
+
return max;
|
|
3695
|
+
}
|
|
3696
|
+
return value;
|
|
3659
3697
|
};
|
|
3660
|
-
|
|
3661
|
-
|
|
3698
|
+
|
|
3699
|
+
const handleWheel = (state, eventDeltaY, inputSource = User) => {
|
|
3700
|
+
const {
|
|
3701
|
+
deltaY: deltaY,
|
|
3702
|
+
filteredItems,
|
|
3703
|
+
height,
|
|
3704
|
+
itemHeight = 1
|
|
3705
|
+
} = state;
|
|
3706
|
+
const itemCount = filteredItems.length;
|
|
3707
|
+
const stepLimit = itemCount === 0 ? 10 : Number.POSITIVE_INFINITY;
|
|
3708
|
+
const limitedEventDelta = Math.max(-stepLimit, Math.min(stepLimit, eventDeltaY));
|
|
3709
|
+
const total = deltaY + limitedEventDelta;
|
|
3710
|
+
// Prevent scrolling beyond the available content height. If content is smaller
|
|
3711
|
+
// than the viewport, the maximum scroll is zero.
|
|
3712
|
+
const totalContentHeight = itemCount * itemHeight;
|
|
3713
|
+
const maxScrollable = Math.max(0, totalContentHeight - height);
|
|
3714
|
+
const clampedDeltaY = clamp(total, 0, maxScrollable);
|
|
3715
|
+
const scrollOffset = clampedDeltaY;
|
|
3716
|
+
const {
|
|
3717
|
+
maxLineY,
|
|
3718
|
+
minLineY,
|
|
3719
|
+
visibleItems
|
|
3720
|
+
} = computeVisibleItems(filteredItems, height, scrollOffset, itemHeight);
|
|
3721
|
+
const {
|
|
3722
|
+
scrollBarMinHeight
|
|
3723
|
+
} = state;
|
|
3724
|
+
const {
|
|
3725
|
+
thumbHeight,
|
|
3726
|
+
thumbTop
|
|
3727
|
+
} = computeScrollBar(height, filteredItems.length, itemHeight, scrollOffset, scrollBarMinHeight);
|
|
3728
|
+
return {
|
|
3729
|
+
...state,
|
|
3730
|
+
deltaY: clampedDeltaY,
|
|
3731
|
+
inputSource,
|
|
3732
|
+
maxLineY,
|
|
3733
|
+
minLineY,
|
|
3734
|
+
scrollBarThumbHeight: thumbHeight,
|
|
3735
|
+
scrollBarThumbTop: thumbTop,
|
|
3736
|
+
scrollOffset,
|
|
3737
|
+
visibleItems
|
|
3738
|
+
};
|
|
3662
3739
|
};
|
|
3663
|
-
|
|
3664
|
-
|
|
3740
|
+
|
|
3741
|
+
const initialize = async () => {
|
|
3742
|
+
// TODO
|
|
3665
3743
|
};
|
|
3666
|
-
|
|
3667
|
-
|
|
3744
|
+
|
|
3745
|
+
const getModifiedSettings = preferences => {
|
|
3746
|
+
const modifiedSettings = Object.create(null);
|
|
3747
|
+
for (const key of Object.keys(preferences)) {
|
|
3748
|
+
modifiedSettings[key] = true;
|
|
3749
|
+
}
|
|
3750
|
+
return modifiedSettings;
|
|
3668
3751
|
};
|
|
3669
|
-
|
|
3670
|
-
|
|
3752
|
+
|
|
3753
|
+
const getPreferences = async () => {
|
|
3754
|
+
try {
|
|
3755
|
+
return await getAllPreferences();
|
|
3756
|
+
} catch {
|
|
3757
|
+
return {};
|
|
3758
|
+
}
|
|
3671
3759
|
};
|
|
3672
3760
|
|
|
3761
|
+
const ApplicationsTab = 'applications';
|
|
3762
|
+
const Clear = 'Clear';
|
|
3763
|
+
const ExtensionsTab = 'extensions';
|
|
3764
|
+
const Filter = 'Filter';
|
|
3765
|
+
const FeaturesTab = 'features';
|
|
3766
|
+
const SecurityTab = 'security';
|
|
3767
|
+
const SettingsSearch = 'SettingsSearch';
|
|
3768
|
+
const TextEditorTab = 'text-editor';
|
|
3769
|
+
const WindowTab = 'window';
|
|
3770
|
+
const WorkbenchTab = 'workbench';
|
|
3771
|
+
|
|
3673
3772
|
const getSettingItemsApplications = () => {
|
|
3674
3773
|
return [{
|
|
3675
3774
|
category: ApplicationsTab,
|
|
@@ -4730,6 +4829,13 @@ const getSavedSearchValue = savedState => {
|
|
|
4730
4829
|
return '';
|
|
4731
4830
|
};
|
|
4732
4831
|
|
|
4832
|
+
const getSavedSideBarWidth = savedState => {
|
|
4833
|
+
if (savedState && typeof savedState === 'object' && 'sideBarWidth' in savedState && typeof savedState.sideBarWidth === 'number') {
|
|
4834
|
+
return savedState.sideBarWidth;
|
|
4835
|
+
}
|
|
4836
|
+
return 200;
|
|
4837
|
+
};
|
|
4838
|
+
|
|
4733
4839
|
const getSavedTabId = savedState => {
|
|
4734
4840
|
if (savedState && typeof savedState === 'object' && 'selectedTab' in savedState && typeof savedState.selectedTab === 'string') {
|
|
4735
4841
|
return savedState.selectedTab;
|
|
@@ -4746,6 +4852,7 @@ const restoreState = savedState => {
|
|
|
4746
4852
|
minLineY: 0,
|
|
4747
4853
|
scrollOffset: 0,
|
|
4748
4854
|
searchValue: '',
|
|
4855
|
+
sideBarWidth: 200,
|
|
4749
4856
|
tabId: ''
|
|
4750
4857
|
};
|
|
4751
4858
|
}
|
|
@@ -4754,6 +4861,7 @@ const restoreState = savedState => {
|
|
|
4754
4861
|
const tabId = getSavedTabId(savedState);
|
|
4755
4862
|
const searchValue = getSavedSearchValue(savedState);
|
|
4756
4863
|
const scrollOffset = getSavedScrollOffset(savedState);
|
|
4864
|
+
const sideBarWidth = getSavedSideBarWidth(savedState);
|
|
4757
4865
|
const history = getSavedHistory(savedState);
|
|
4758
4866
|
const historyIndex = getSavedHistoryIndex(savedState, history);
|
|
4759
4867
|
return {
|
|
@@ -4763,6 +4871,7 @@ const restoreState = savedState => {
|
|
|
4763
4871
|
minLineY,
|
|
4764
4872
|
scrollOffset,
|
|
4765
4873
|
searchValue,
|
|
4874
|
+
sideBarWidth,
|
|
4766
4875
|
tabId
|
|
4767
4876
|
};
|
|
4768
4877
|
};
|
|
@@ -4773,6 +4882,7 @@ const loadContent = async (state, savedState) => {
|
|
|
4773
4882
|
historyIndex,
|
|
4774
4883
|
scrollOffset,
|
|
4775
4884
|
searchValue,
|
|
4885
|
+
sideBarWidth,
|
|
4776
4886
|
tabId
|
|
4777
4887
|
} = restoreState(savedState);
|
|
4778
4888
|
const tabs = getTabs();
|
|
@@ -4812,19 +4922,26 @@ const loadContent = async (state, savedState) => {
|
|
|
4812
4922
|
scrollBarThumbTop: thumbTop,
|
|
4813
4923
|
scrollOffset,
|
|
4814
4924
|
searchValue,
|
|
4815
|
-
sideBarWidth
|
|
4925
|
+
sideBarWidth,
|
|
4816
4926
|
tabs: newTabs,
|
|
4817
4927
|
visibleItems
|
|
4818
4928
|
};
|
|
4819
4929
|
};
|
|
4820
4930
|
|
|
4821
|
-
const getCss = sideBarWidth => {
|
|
4931
|
+
const getCss = (sideBarWidth, scrollBarThumbHeight, scrollBarThumbTop) => {
|
|
4932
|
+
const rounded = Math.round(sideBarWidth);
|
|
4822
4933
|
return `
|
|
4823
4934
|
.Settings {
|
|
4824
|
-
--SettingsSideBarWidth: ${
|
|
4935
|
+
--SettingsSideBarWidth: ${rounded}px;
|
|
4936
|
+
--ScrollBarThumbHeight: ${scrollBarThumbHeight}px;
|
|
4937
|
+
--ScrollBarThumbTop: ${scrollBarThumbTop}px;
|
|
4825
4938
|
}
|
|
4826
4939
|
.SettingsResizer {
|
|
4827
|
-
|
|
4940
|
+
background: yellow;
|
|
4941
|
+
}
|
|
4942
|
+
|
|
4943
|
+
.SettingsSideBar{
|
|
4944
|
+
width: var(--SettingsSideBarWidth);
|
|
4828
4945
|
}
|
|
4829
4946
|
`;
|
|
4830
4947
|
};
|
|
@@ -4832,9 +4949,11 @@ const getCss = sideBarWidth => {
|
|
|
4832
4949
|
const renderCss = (oldState, newState) => {
|
|
4833
4950
|
const {
|
|
4834
4951
|
id,
|
|
4952
|
+
scrollBarThumbHeight,
|
|
4953
|
+
scrollBarThumbTop,
|
|
4835
4954
|
sideBarWidth
|
|
4836
4955
|
} = newState;
|
|
4837
|
-
const css = getCss(sideBarWidth);
|
|
4956
|
+
const css = getCss(sideBarWidth, scrollBarThumbHeight, scrollBarThumbTop);
|
|
4838
4957
|
return [SetCss, id, css];
|
|
4839
4958
|
};
|
|
4840
4959
|
|
|
@@ -4902,6 +5021,7 @@ const getSettingsInputBadgeDom = (filteredSettingsCount, hasSearchValue) => {
|
|
|
4902
5021
|
|
|
4903
5022
|
// TODo use numeric ids
|
|
4904
5023
|
const HandleClickClear = 'handleClickClear';
|
|
5024
|
+
const HandleClickFilterButton = 'handleClickFilterButton';
|
|
4905
5025
|
const HandleClickTab = 'handleClickTab';
|
|
4906
5026
|
const HandleInput = 'handleInput';
|
|
4907
5027
|
const HandleSettingInput = 'handleSettingInput';
|
|
@@ -4922,21 +5042,43 @@ const getClearButtonClassName = hasSearchValue => {
|
|
|
4922
5042
|
return disabledClass;
|
|
4923
5043
|
};
|
|
4924
5044
|
|
|
4925
|
-
const
|
|
5045
|
+
const clearIcon = {
|
|
4926
5046
|
childCount: 0,
|
|
4927
5047
|
className: mergeClassNames(MaskIcon, MaskIconClearAll),
|
|
4928
5048
|
type: Div
|
|
4929
5049
|
};
|
|
4930
|
-
const
|
|
5050
|
+
const getClearButtonDom = hasSearchValue => {
|
|
4931
5051
|
return [{
|
|
4932
5052
|
ariaLabel: clear(),
|
|
4933
5053
|
childCount: 1,
|
|
4934
5054
|
className: getClearButtonClassName(hasSearchValue),
|
|
4935
5055
|
disabled: !hasSearchValue,
|
|
4936
|
-
name: Clear
|
|
5056
|
+
name: Clear,
|
|
4937
5057
|
onClick: HandleClickClear,
|
|
4938
5058
|
type: Button
|
|
4939
|
-
},
|
|
5059
|
+
}, clearIcon];
|
|
5060
|
+
};
|
|
5061
|
+
|
|
5062
|
+
const filterIcon = {
|
|
5063
|
+
childCount: 0,
|
|
5064
|
+
className: MaskIcon,
|
|
5065
|
+
type: Div
|
|
5066
|
+
};
|
|
5067
|
+
const getFilterButtonDom = () => {
|
|
5068
|
+
return [{
|
|
5069
|
+
ariaHasPopup: true,
|
|
5070
|
+
ariaLabel: filter(),
|
|
5071
|
+
childCount: 1,
|
|
5072
|
+
className: SearchFieldButton,
|
|
5073
|
+
disabled: false,
|
|
5074
|
+
name: Filter,
|
|
5075
|
+
onClick: HandleClickFilterButton,
|
|
5076
|
+
type: Button
|
|
5077
|
+
}, filterIcon];
|
|
5078
|
+
};
|
|
5079
|
+
|
|
5080
|
+
const getSettingsInputButtonsDom = hasSearchValue => {
|
|
5081
|
+
return [...getClearButtonDom(hasSearchValue), ...getFilterButtonDom()];
|
|
4940
5082
|
};
|
|
4941
5083
|
|
|
4942
5084
|
const getSettingsInputDom = () => {
|
|
@@ -4957,7 +5099,7 @@ const getSettingsInputDom = () => {
|
|
|
4957
5099
|
};
|
|
4958
5100
|
|
|
4959
5101
|
const getChildCount$1 = hasSearchValue => {
|
|
4960
|
-
return hasSearchValue ?
|
|
5102
|
+
return hasSearchValue ? 4 : 3;
|
|
4961
5103
|
};
|
|
4962
5104
|
const getSettingsHeaderDom = (filteredSettingsCount, hasSearchValue) => {
|
|
4963
5105
|
const childCount = getChildCount$1(hasSearchValue);
|
|
@@ -4998,12 +5140,10 @@ const parentNode$1 = {
|
|
|
4998
5140
|
className: mergeClassNames(SettingsScrollBar, SettingsScrollBarSmall),
|
|
4999
5141
|
type: Div
|
|
5000
5142
|
};
|
|
5001
|
-
const getScrollBarDom = (
|
|
5143
|
+
const getScrollBarDom = () => {
|
|
5002
5144
|
return [parentNode$1, {
|
|
5003
5145
|
childCount: 0,
|
|
5004
5146
|
className: SettingsScrollBarThumb,
|
|
5005
|
-
height: `${thumbHeight}px`,
|
|
5006
|
-
top: `${thumbTop}px`,
|
|
5007
5147
|
type: Div
|
|
5008
5148
|
}];
|
|
5009
5149
|
};
|
|
@@ -5314,7 +5454,7 @@ const getSettingsItemsDom = (items, searchValue) => {
|
|
|
5314
5454
|
}, ...items.flatMap(getItemVirtualDom)];
|
|
5315
5455
|
};
|
|
5316
5456
|
|
|
5317
|
-
const getSettingsContentDom = (visibleItems, tabs, searchValue
|
|
5457
|
+
const getSettingsContentDom = (visibleItems, tabs, searchValue) => {
|
|
5318
5458
|
const selectedTab = tabs.find(tab => tab.selected);
|
|
5319
5459
|
const headerText = selectedTab ? selectedTab.label : settingsContent();
|
|
5320
5460
|
return [{
|
|
@@ -5326,7 +5466,7 @@ const getSettingsContentDom = (visibleItems, tabs, searchValue, thumbHeight, thu
|
|
|
5326
5466
|
childCount: 2,
|
|
5327
5467
|
className: SettingsItemWrapper,
|
|
5328
5468
|
type: Div
|
|
5329
|
-
}, ...getSettingsItemsDom(visibleItems, searchValue), ...getScrollBarDom(
|
|
5469
|
+
}, ...getSettingsItemsDom(visibleItems, searchValue), ...getScrollBarDom()];
|
|
5330
5470
|
};
|
|
5331
5471
|
|
|
5332
5472
|
const getTabClassName = tab => {
|
|
@@ -5364,12 +5504,12 @@ const getSettingsSideBarDom = tabs => {
|
|
|
5364
5504
|
}, ...getSettingsTabsDom(tabs)];
|
|
5365
5505
|
};
|
|
5366
5506
|
|
|
5367
|
-
const getSettingsMainDom = (tabs, visibleItems, totalItemCount, searchValue
|
|
5507
|
+
const getSettingsMainDom = (tabs, visibleItems, totalItemCount, searchValue) => {
|
|
5368
5508
|
return [{
|
|
5369
5509
|
childCount: 3,
|
|
5370
5510
|
className: SettingsMain,
|
|
5371
5511
|
type: Div
|
|
5372
|
-
}, ...getSettingsSideBarDom(tabs), ...getResizerVirtualDom(), ...getSettingsContentDom(visibleItems, tabs, searchValue
|
|
5512
|
+
}, ...getSettingsSideBarDom(tabs), ...getResizerVirtualDom(), ...getSettingsContentDom(visibleItems, tabs, searchValue)];
|
|
5373
5513
|
};
|
|
5374
5514
|
|
|
5375
5515
|
const parentNode = {
|
|
@@ -5380,15 +5520,13 @@ const parentNode = {
|
|
|
5380
5520
|
const getSettingsDom = state => {
|
|
5381
5521
|
const {
|
|
5382
5522
|
filteredItems,
|
|
5383
|
-
scrollBarThumbHeight,
|
|
5384
|
-
scrollBarThumbTop,
|
|
5385
5523
|
searchValue,
|
|
5386
5524
|
tabs,
|
|
5387
5525
|
visibleItems
|
|
5388
5526
|
} = state;
|
|
5389
5527
|
const hasSearchValue = searchValue.trim().length > 0;
|
|
5390
5528
|
const filteredItemsCount = filteredItems.length;
|
|
5391
|
-
return [parentNode, ...getSettingsHeaderDom(filteredItemsCount, hasSearchValue), ...getSettingsMainDom(tabs, visibleItems, filteredItemsCount, searchValue
|
|
5529
|
+
return [parentNode, ...getSettingsHeaderDom(filteredItemsCount, hasSearchValue), ...getSettingsMainDom(tabs, visibleItems, filteredItemsCount, searchValue)];
|
|
5392
5530
|
};
|
|
5393
5531
|
|
|
5394
5532
|
const renderItems = (oldState, newState) => {
|
|
@@ -5396,16 +5534,6 @@ const renderItems = (oldState, newState) => {
|
|
|
5396
5534
|
return ['Viewlet.setDom2', newState.id, dom];
|
|
5397
5535
|
};
|
|
5398
5536
|
|
|
5399
|
-
const renderScrollOffset = (oldState, newState) => {
|
|
5400
|
-
const {
|
|
5401
|
-
id,
|
|
5402
|
-
scrollOffset
|
|
5403
|
-
} = newState;
|
|
5404
|
-
const selector = '.SettingsContent';
|
|
5405
|
-
const property = 'scrollTop';
|
|
5406
|
-
return ['Viewlet.setProperty', id, selector, property, scrollOffset];
|
|
5407
|
-
};
|
|
5408
|
-
|
|
5409
5537
|
const enabledTypes = [Number$1, String, Color];
|
|
5410
5538
|
const renderSettingValues = (oldState, newState) => {
|
|
5411
5539
|
const {
|
|
@@ -5442,8 +5570,6 @@ const getRenderer = diffType => {
|
|
|
5442
5570
|
return renderFocusContext;
|
|
5443
5571
|
case RenderItems:
|
|
5444
5572
|
return renderItems;
|
|
5445
|
-
case RenderScrollOffset:
|
|
5446
|
-
return renderScrollOffset;
|
|
5447
5573
|
case RenderSettingValues:
|
|
5448
5574
|
return renderSettingValues;
|
|
5449
5575
|
case RenderValue:
|
|
@@ -5486,6 +5612,9 @@ const renderEventListeners = () => {
|
|
|
5486
5612
|
}, {
|
|
5487
5613
|
name: HandleClickClear,
|
|
5488
5614
|
params: ['clear']
|
|
5615
|
+
}, {
|
|
5616
|
+
name: HandleClickFilterButton,
|
|
5617
|
+
params: ['handleClickFilterButton', ClientX, ClientY]
|
|
5489
5618
|
}, {
|
|
5490
5619
|
name: HandleSettingInput,
|
|
5491
5620
|
params: ['handleSettingInput', TargetName, TargetValue]
|
|
@@ -5511,7 +5640,6 @@ const renderEventListeners = () => {
|
|
|
5511
5640
|
}, {
|
|
5512
5641
|
name: HandleResizerPointerDown,
|
|
5513
5642
|
params: ['handleResizerPointerDown', ClientX, ClientY],
|
|
5514
|
-
// @ts-ignore
|
|
5515
5643
|
trackPointerEvents: [HandleResizerPointerMove, HandleResizerPointerUp]
|
|
5516
5644
|
}, {
|
|
5517
5645
|
name: HandleResizerPointerMove,
|
|
@@ -5529,6 +5657,7 @@ const saveState = state => {
|
|
|
5529
5657
|
historyIndex,
|
|
5530
5658
|
scrollOffset,
|
|
5531
5659
|
searchValue,
|
|
5660
|
+
sideBarWidth,
|
|
5532
5661
|
tabs
|
|
5533
5662
|
} = state;
|
|
5534
5663
|
const selectedTab = getSelectedTabId(tabs);
|
|
@@ -5541,7 +5670,8 @@ const saveState = state => {
|
|
|
5541
5670
|
minLineY: 0,
|
|
5542
5671
|
scrollOffset,
|
|
5543
5672
|
searchValue,
|
|
5544
|
-
selectedTab
|
|
5673
|
+
selectedTab,
|
|
5674
|
+
sideBarWidth
|
|
5545
5675
|
};
|
|
5546
5676
|
};
|
|
5547
5677
|
|
|
@@ -5601,7 +5731,9 @@ const commandMap = {
|
|
|
5601
5731
|
'Settings.diff2': diff2,
|
|
5602
5732
|
'Settings.getCommandIds': getCommandIds,
|
|
5603
5733
|
'Settings.getKeyBindings': getKeyBindings$1,
|
|
5734
|
+
'Settings.getMenuEntries': getMenuEntries,
|
|
5604
5735
|
'Settings.getName': getName,
|
|
5736
|
+
'Settings.handleClickFilterButton': wrapCommand(handleClickFilterButton),
|
|
5605
5737
|
'Settings.handleClickTab': wrapCommand(handleClickTab),
|
|
5606
5738
|
'Settings.handleInput': wrapCommand(handleInput),
|
|
5607
5739
|
'Settings.handleInputBlur': wrapCommand(handleInputBlur),
|