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