@lvce-editor/settings-view 2.4.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 getName = () => {
1728
- // TODO i18n string
1729
- return 'Settings';
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
- height,
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 addToHistory = (history, value) => {
1798
- let newHistory = history;
1799
- let newHistoryIndex = -1;
1800
- if (!value || !value.trim()) {
1801
- return {
1802
- newHistory,
1803
- newHistoryIndex
1804
- };
1805
- }
1806
- const trimmedValue = value.trim();
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
- // Check if this value is already in history
1809
- const existingIndex = history.indexOf(trimmedValue);
1810
- if (existingIndex !== -1) {
1811
- newHistoryIndex = existingIndex;
1812
- return {
1813
- newHistory,
1814
- newHistoryIndex
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
- // Check if this value is a prefix of any existing history item
1819
- // If it is, don't add it to history yet (it's still being typed)
1820
- const isPrefixOfExisting = history.some(historyItem => historyItem.startsWith(trimmedValue) && historyItem !== trimmedValue);
1821
- if (isPrefixOfExisting) {
1822
- // Don't add to history, but find the closest match for index
1823
- const closestMatch = history.find(historyItem => historyItem.startsWith(trimmedValue));
1824
- if (closestMatch) {
1825
- newHistoryIndex = history.indexOf(closestMatch);
1826
- }
1827
- return {
1828
- newHistory,
1829
- newHistoryIndex
1830
- };
1831
- }
1832
-
1833
- // Check if any existing history items are prefixes of this value
1834
- // If so, remove all prefix items and add the complete value at the first prefix position
1835
- const prefixItems = history.filter(historyItem => trimmedValue.startsWith(historyItem) && historyItem !== trimmedValue);
1836
- if (prefixItems.length > 0) {
1837
- // Find the position of the first prefix item
1838
- const firstPrefixIndex = history.findIndex(historyItem => trimmedValue.startsWith(historyItem) && historyItem !== trimmedValue);
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
- // Remove all prefix items and add the complete value at the first prefix position
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
- // Insert the new value at the position where the first prefix was
1843
- const beforePrefix = history.slice(0, firstPrefixIndex);
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
- const handleInput = (state, value, inputSource = User) => {
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
- const None = 0;
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
- const handleInputFocus = state => {
1915
- return {
1916
- ...state,
1917
- focus: SearchInput
1918
- };
2030
+ const autoUpdateExtensionsDescription = () => {
2031
+ return i18nString(AutoUpdateExtensionsDescription);
1919
2032
  };
1920
-
1921
- const handleResizerPointerDown = (state, eventX, eventY) => {
1922
- return state;
2033
+ const autoUpdates = () => {
2034
+ return i18nString(AutoUpdates);
1923
2035
  };
1924
-
1925
- const handleResizerPointerMove = (state, eventX, eventY) => {
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
- const handleResizerPointerUp = (state, eventX, eventY) => {
1940
- return state;
2039
+ const clear = () => {
2040
+ return i18nString(Clear$1);
1941
2041
  };
1942
-
1943
- const handleScroll = (state, scrollTop, inputSource = User) => {
1944
- return {
1945
- ...state,
1946
- inputSource,
1947
- scrollOffset: scrollTop
1948
- };
2042
+ const filter = () => {
2043
+ return 'Filter';
1949
2044
  };
1950
-
1951
- const getNewFilteredItems = (oldModifiedSetings, newModifiedSettings, items, tabs, searchValue, oldFilteredItems, oldPreferences, newPreferences) => {
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
- const getNewModifiedSettings = (modifiedSettings, name) => {
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
- const handleSettingUpdate = (state, name, value, inputSource) => {
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
- const handleSettingChecked = (state, name, value, source = User) => {
1992
- return handleSettingUpdate(state, name, value, source);
2054
+ const fileEncryptionDescription = () => {
2055
+ return i18nString(FileEncryptionDescription);
1993
2056
  };
1994
-
1995
- const Enum = 1;
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
- const handleSettingSelect = (state, name, value, source = User) => {
2017
- return handleSettingUpdate(state, name, value, source);
2060
+ const fontFamilyDescription = () => {
2061
+ return i18nString(FontFamilyDescription);
2018
2062
  };
2019
-
2020
- const clamp = (value, min, max) => {
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
- const handleWheel = (state, eventDeltaY, inputSource = User) => {
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
- const initialize = async () => {
2079
- // TODO
2069
+ const formatOnSave = () => {
2070
+ return i18nString(FormatOnSave);
2080
2071
  };
2081
-
2082
- const getModifiedSettings = preferences => {
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
- const ClientX = 'event.clientX';
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 get = id => {
2108
- return rpcs[id];
2078
+ const colorValue = () => {
2079
+ return i18nString(ColorValue);
2109
2080
  };
2110
-
2111
- const create = rpcId => {
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
- const {
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 getFilePathElectron = async file => {
2145
- return invoke('FileSystemHandle.getFilePathElectron', file);
2087
+ const settingsContent = () => {
2088
+ return i18nString(SettingsContent$1);
2146
2089
  };
2147
- /**
2148
- * @deprecated
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 showContextMenu2 = async (uid, menuId, x, y, args) => {
2154
- number(uid);
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 getElectronVersion = async () => {
2162
- return invoke('Process.getElectronVersion');
2096
+ const telemetry = () => {
2097
+ return i18nString(Telemetry);
2163
2098
  };
2164
- const applyBulkReplacement = async bulkEdits => {
2165
- await invoke('BulkReplacement.applyBulkReplacement', bulkEdits);
2099
+ const telemetryDescription = () => {
2100
+ return i18nString(TelemetryDescription);
2166
2101
  };
2167
- const setColorTheme = async id => {
2168
- // @ts-ignore
2169
- return invoke(/* ColorTheme.setColorTheme */'ColorTheme.setColorTheme', /* colorThemeId */id);
2102
+ const theme = () => {
2103
+ return i18nString(Theme);
2170
2104
  };
2171
- const getNodeVersion = async () => {
2172
- return invoke('Process.getNodeVersion');
2105
+ const themeDescription = () => {
2106
+ return i18nString(ThemeDescription);
2173
2107
  };
2174
- const getChromeVersion = async () => {
2175
- return invoke('Process.getChromeVersion');
2108
+ const twoFactorAuth = () => {
2109
+ return i18nString(TwoFactorAuth);
2176
2110
  };
2177
- const getV8Version = async () => {
2178
- return invoke('Process.getV8Version');
2111
+ const twoFactorAuthDescription = () => {
2112
+ return i18nString(TwoFactorAuthDescription);
2179
2113
  };
2180
- const getFileHandles = async fileIds => {
2181
- const files = await invoke('FileSystemHandle.getFileHandles', fileIds);
2182
- return files;
2114
+ const windowSize = () => {
2115
+ return i18nString(WindowSize);
2183
2116
  };
2184
- const setWorkspacePath = async path => {
2185
- await invoke('Workspace.setPath', path);
2117
+ const windowSizeDescription = () => {
2118
+ return i18nString(WindowSizeDescription);
2186
2119
  };
2187
- const registerWebViewInterceptor = async (id, port) => {
2188
- await invokeAndTransfer('WebView.registerInterceptor', id, port);
2120
+ const windowTitle = () => {
2121
+ return i18nString(WindowTitle);
2189
2122
  };
2190
- const unregisterWebViewInterceptor = async id => {
2191
- await invoke('WebView.unregisterInterceptor', id);
2123
+ const windowTitleDescription = () => {
2124
+ return i18nString(WindowTitleDescription);
2192
2125
  };
2193
- const sendMessagePortToEditorWorker = async (port, rpcId) => {
2194
- const command = 'HandleMessagePort.handleMessagePort';
2195
- // @ts-ignore
2196
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToEditorWorker', port, command, rpcId);
2126
+ const noSettingsMatching = searchTerm => {
2127
+ return i18nString(NoSettingsMatching, {
2128
+ PH1: searchTerm
2129
+ });
2197
2130
  };
2198
- const sendMessagePortToErrorWorker = async (port, rpcId) => {
2199
- const command = 'Errors.handleMessagePort';
2200
- // @ts-ignore
2201
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToErrorWorker', port, command, rpcId);
2131
+ const matchingSettings = count => {
2132
+ return i18nString(MatchingSettings, {
2133
+ PH1: count.toString()
2134
+ });
2202
2135
  };
2203
- const sendMessagePortToMarkdownWorker = async (port, rpcId) => {
2204
- const command = 'Markdown.handleMessagePort';
2205
- // @ts-ignore
2206
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToMarkdownWorker', port, command, rpcId);
2136
+
2137
+ // Text Editor Settings
2138
+ const wordWrap = () => {
2139
+ return i18nString(WordWrap);
2207
2140
  };
2208
- const sendMessagePortToIconThemeWorker = async (port, rpcId) => {
2209
- const command = 'IconTheme.handleMessagePort';
2210
- // @ts-ignore
2211
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToIconThemeWorker', port, command, rpcId);
2141
+ const wordWrapDescription = () => {
2142
+ return i18nString(WordWrapDescription);
2212
2143
  };
2213
- const sendMessagePortToFileSystemWorker = async (port, rpcId) => {
2214
- const command = 'FileSystem.handleMessagePort';
2215
- // @ts-ignore
2216
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToFileSystemWorker', port, command, rpcId);
2144
+ const lineNumbers = () => {
2145
+ return i18nString(LineNumbers);
2217
2146
  };
2218
- const readFile = async uri => {
2219
- return invoke('FileSystem.readFile', uri);
2147
+ const lineNumbersDescription = () => {
2148
+ return i18nString(LineNumbersDescription);
2220
2149
  };
2221
- const getWebViewSecret = async key => {
2222
- // @ts-ignore
2223
- return invoke('WebView.getSecret', key);
2150
+ const minimap = () => {
2151
+ return i18nString(Minimap);
2224
2152
  };
2225
- const setWebViewPort = async (uid, port, origin, portType) => {
2226
- return invokeAndTransfer('WebView.setPort', uid, port, origin, portType);
2153
+ const minimapDescription = () => {
2154
+ return i18nString(MinimapDescription);
2227
2155
  };
2228
- const setFocus = key => {
2229
- return invoke('Focus.setFocus', key);
2156
+ const scrollBeyondLastLine = () => {
2157
+ return i18nString(ScrollBeyondLastLine);
2230
2158
  };
2231
- const getFileIcon = async options => {
2232
- return invoke('IconTheme.getFileIcon', options);
2159
+ const scrollBeyondLastLineDescription = () => {
2160
+ return i18nString(ScrollBeyondLastLineDescription);
2233
2161
  };
2234
- const getColorThemeNames = async () => {
2235
- return invoke('ColorTheme.getColorThemeNames');
2162
+ const smoothScrolling = () => {
2163
+ return i18nString(SmoothScrolling);
2236
2164
  };
2237
- const disableExtension = async id => {
2238
- // @ts-ignore
2239
- return invoke('ExtensionManagement.disable', id);
2165
+ const smoothScrollingDescription = () => {
2166
+ return i18nString(SmoothScrollingDescription);
2240
2167
  };
2241
- const enableExtension = async id => {
2242
- // @ts-ignore
2243
- return invoke('ExtensionManagement.enable', id);
2168
+ const cursorBlinking = () => {
2169
+ return i18nString(CursorBlinking);
2244
2170
  };
2245
- const handleDebugChange = async params => {
2246
- // @ts-ignore
2247
- return invoke('Run And Debug.handleChange', params);
2171
+ const cursorBlinkingDescription = () => {
2172
+ return i18nString(CursorBlinkingDescription);
2248
2173
  };
2249
- const getFolderIcon = async options => {
2250
- return invoke('IconTheme.getFolderIcon', options);
2174
+ const cursorStyle = () => {
2175
+ return i18nString(CursorStyle);
2251
2176
  };
2252
- const handleWorkspaceRefresh = async () => {
2253
- return invoke('Layout.handleWorkspaceRefresh');
2177
+ const cursorStyleDescription = () => {
2178
+ return i18nString(CursorStyleDescription);
2254
2179
  };
2255
- const closeWidget = async widgetId => {
2256
- return invoke('Viewlet.closeWidget', widgetId);
2180
+ const cursorWidth = () => {
2181
+ return i18nString(CursorWidth);
2257
2182
  };
2258
- const sendMessagePortToExtensionHostWorker = async (port, rpcId = 0) => {
2259
- const command = 'HandleMessagePort.handleMessagePort2';
2260
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker', port, command, rpcId);
2183
+ const cursorWidthDescription = () => {
2184
+ return i18nString(CursorWidthDescription);
2261
2185
  };
2262
- const sendMessagePortToSearchProcess = async port => {
2263
- await invokeAndTransfer('SendMessagePortToElectron.sendMessagePortToElectron', port, 'HandleMessagePortForSearchProcess.handleMessagePortForSearchProcess');
2186
+ const tabSize = () => {
2187
+ return i18nString(TabSize);
2264
2188
  };
2265
- const confirm = async (message, options) => {
2266
- // @ts-ignore
2267
- const result = await invoke('ConfirmPrompt.prompt', message, options);
2268
- return result;
2189
+ const tabSizeDescription = () => {
2190
+ return i18nString(TabSizeDescription);
2269
2191
  };
2270
- const getRecentlyOpened = async () => {
2271
- return invoke(/* RecentlyOpened.getRecentlyOpened */'RecentlyOpened.getRecentlyOpened');
2192
+ const insertSpaces = () => {
2193
+ return i18nString(InsertSpaces);
2272
2194
  };
2273
- const getKeyBindings = async () => {
2274
- return invoke('KeyBindingsInitial.getKeyBindings');
2195
+ const insertSpacesDescription = () => {
2196
+ return i18nString(InsertSpacesDescription);
2275
2197
  };
2276
- const writeClipBoardText = async text => {
2277
- await invoke('ClipBoard.writeText', /* text */text);
2198
+ const detectIndentation = () => {
2199
+ return i18nString(DetectIndentation);
2278
2200
  };
2279
- const readClipBoardText = async () => {
2280
- return invoke('ClipBoard.readText');
2201
+ const detectIndentationDescription = () => {
2202
+ return i18nString(DetectIndentationDescription);
2281
2203
  };
2282
- const writeClipBoardImage = async blob => {
2283
- // @ts-ignore
2284
- await invoke('ClipBoard.writeImage', /* text */blob);
2204
+ const trimAutoWhitespace = () => {
2205
+ return i18nString(TrimAutoWhitespace);
2285
2206
  };
2286
- const searchFileMemory = async uri => {
2287
- // @ts-ignore
2288
- return invoke('ExtensionHost.searchFileWithMemory', uri);
2207
+ const trimAutoWhitespaceDescription = () => {
2208
+ return i18nString(TrimAutoWhitespaceDescription);
2289
2209
  };
2290
- const searchFileFetch = async uri => {
2291
- return invoke('ExtensionHost.searchFileWithFetch', uri);
2210
+ const largeFileOptimizations = () => {
2211
+ return i18nString(LargeFileOptimizations);
2292
2212
  };
2293
- const showMessageBox = async options => {
2294
- return invoke('ElectronDialog.showMessageBox', options);
2213
+ const largeFileOptimizationsDescription = () => {
2214
+ return i18nString(LargeFileOptimizationsDescription);
2295
2215
  };
2296
- const handleDebugResumed = async params => {
2297
- await invoke('Run And Debug.handleResumed', params);
2216
+ const renderWhitespace = () => {
2217
+ return i18nString(RenderWhitespace);
2298
2218
  };
2299
- const openWidget = async name => {
2300
- await invoke('Viewlet.openWidget', name);
2219
+ const renderWhitespaceDescription = () => {
2220
+ return i18nString(RenderWhitespaceDescription);
2301
2221
  };
2302
- const getIcons = async requests => {
2303
- const icons = await invoke('IconTheme.getIcons', requests);
2304
- return icons;
2222
+ const renderControlCharacters = () => {
2223
+ return i18nString(RenderControlCharacters);
2305
2224
  };
2306
- const activateByEvent = (event, assetDir, platform) => {
2307
- return invoke('ExtensionHostManagement.activateByEvent', event, assetDir, platform);
2225
+ const renderControlCharactersDescription = () => {
2226
+ return i18nString(RenderControlCharactersDescription);
2308
2227
  };
2309
- const setAdditionalFocus = focusKey => {
2310
- // @ts-ignore
2311
- return invoke('Focus.setAdditionalFocus', focusKey);
2228
+ const renderLineHighlight = () => {
2229
+ return i18nString(RenderLineHighlight);
2312
2230
  };
2313
- const getActiveEditorId = () => {
2314
- // @ts-ignore
2315
- return invoke('GetActiveEditor.getActiveEditorId');
2231
+ const renderLineHighlightDescription = () => {
2232
+ return i18nString(RenderLineHighlightDescription);
2316
2233
  };
2317
- const getWorkspacePath = () => {
2318
- return invoke('Workspace.getPath');
2234
+ const codeLens = () => {
2235
+ return i18nString(CodeLens);
2319
2236
  };
2320
- const sendMessagePortToRendererProcess = async port => {
2321
- const command = 'HandleMessagePort.handleMessagePort';
2322
- // @ts-ignore
2323
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToRendererProcess', port, command, DebugWorker);
2237
+ const codeLensDescription = () => {
2238
+ return i18nString(CodeLensDescription);
2324
2239
  };
2325
- const sendMessagePortToTextMeasurementWorker = async port => {
2326
- const command = 'TextMeasurement.handleMessagePort';
2327
- // @ts-ignore
2328
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToTextMeasurementWorker', port, command, 0);
2240
+ const folding = () => {
2241
+ return i18nString(Folding);
2329
2242
  };
2330
- const sendMessagePortToSourceControlWorker = async port => {
2331
- const command = 'SourceControl.handleMessagePort';
2332
- // @ts-ignore
2333
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToSourceControlWorker', port, command, 0);
2243
+ const foldingDescription = () => {
2244
+ return i18nString(FoldingDescription);
2334
2245
  };
2335
- const sendMessagePortToSharedProcess = async port => {
2336
- const command = 'HandleElectronMessagePort.handleElectronMessagePort';
2337
- // @ts-ignore
2338
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToSharedProcess', port, command, 0);
2246
+ const showFoldingControls = () => {
2247
+ return i18nString(ShowFoldingControls);
2339
2248
  };
2340
- const sendMessagePortToFileSystemProcess = async (port, rpcId) => {
2341
- const command = 'HandleMessagePortForFileSystemProcess.handleMessagePortForFileSystemProcess';
2342
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToSharedProcess', port, command, rpcId);
2249
+ const showFoldingControlsDescription = () => {
2250
+ return i18nString(ShowFoldingControlsDescription);
2343
2251
  };
2344
- const sendMessagePortToIframeWorker = async (port, rpcId) => {
2345
- const command = 'Iframes.handleMessagePort';
2346
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToIframeWorker', port, command, rpcId);
2252
+ const unfoldOnClickAfterEnd = () => {
2253
+ return i18nString(UnfoldOnClickAfterEnd);
2347
2254
  };
2348
- const sendMessagePortToExtensionManagementWorker = async (port, rpcId) => {
2349
- const command = 'Extensions.handleMessagePort';
2350
- await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionManagementWorker', port, command, rpcId);
2255
+ const unfoldOnClickAfterEndDescription = () => {
2256
+ return i18nString(UnfoldOnClickAfterEndDescription);
2351
2257
  };
2352
- const getPreference = async key => {
2353
- return await invoke('Preferences.get', key);
2258
+ const links = () => {
2259
+ return i18nString(Links);
2354
2260
  };
2355
- const getAllExtensions = async () => {
2356
- return invoke('ExtensionManagement.getAllExtensions');
2261
+ const linksDescription = () => {
2262
+ return i18nString(LinksDescription);
2357
2263
  };
2358
- const rerenderEditor = async key => {
2359
- // @ts-ignore
2360
- return invoke('Editor.rerender', key);
2264
+ const colorDecorators = () => {
2265
+ return i18nString(ColorDecorators);
2361
2266
  };
2362
- const handleDebugPaused = async params => {
2363
- await invoke('Run And Debug.handlePaused', params);
2267
+ const colorDecoratorsDescription = () => {
2268
+ return i18nString(ColorDecoratorsDescription);
2364
2269
  };
2365
- const openUri = async (uri, focus, options) => {
2366
- await invoke('Main.openUri', uri, focus, options);
2270
+ const lightbulb = () => {
2271
+ return i18nString(Lightbulb);
2367
2272
  };
2368
- const sendMessagePortToSyntaxHighlightingWorker = async port => {
2369
- await invokeAndTransfer(
2370
- // @ts-ignore
2371
- 'SendMessagePortToSyntaxHighlightingWorker.sendMessagePortToSyntaxHighlightingWorker', port, 'HandleMessagePort.handleMessagePort2');
2273
+ const lightbulbDescription = () => {
2274
+ return i18nString(LightbulbDescription);
2372
2275
  };
2373
- const handleDebugScriptParsed = async script => {
2374
- await invoke('Run And Debug.handleScriptParsed', script);
2276
+ const codeActionsOnSave = () => {
2277
+ return i18nString(CodeActionsOnSave);
2375
2278
  };
2376
- const getWindowId = async () => {
2377
- return invoke('GetWindowId.getWindowId');
2279
+ const codeActionsOnSaveDescription = () => {
2280
+ return i18nString(CodeActionsOnSaveDescription);
2378
2281
  };
2379
- const getBlob = async uri => {
2380
- // @ts-ignore
2381
- return invoke('FileSystem.getBlob', uri);
2282
+ const formatOnPaste = () => {
2283
+ return i18nString(FormatOnPaste);
2382
2284
  };
2383
- const getExtensionCommands = async () => {
2384
- return invoke('ExtensionHost.getCommands');
2285
+ const formatOnPasteDescription = () => {
2286
+ return i18nString(FormatOnPasteDescription);
2385
2287
  };
2386
- const showErrorDialog = async errorInfo => {
2387
- // @ts-ignore
2388
- await invoke('ErrorHandling.showErrorDialog', errorInfo);
2288
+ const formatOnType = () => {
2289
+ return i18nString(FormatOnType);
2389
2290
  };
2390
- const getFolderSize = async uri => {
2391
- // @ts-ignore
2392
- return await invoke('FileSystem.getFolderSize', uri);
2291
+ const formatOnTypeDescription = () => {
2292
+ return i18nString(FormatOnTypeDescription);
2393
2293
  };
2394
- const getExtension = async id => {
2395
- // @ts-ignore
2396
- return invoke('ExtensionManagement.getExtension', id);
2294
+ const acceptSuggestionOnCommitCharacter = () => {
2295
+ return i18nString(AcceptSuggestionOnCommitCharacter);
2397
2296
  };
2398
- const getMarkdownDom = async html => {
2399
- // @ts-ignore
2400
- return invoke('Markdown.getVirtualDom', html);
2297
+ const acceptSuggestionOnCommitCharacterDescription = () => {
2298
+ return i18nString(AcceptSuggestionOnCommitCharacterDescription);
2401
2299
  };
2402
- const renderMarkdown = async (markdown, options) => {
2403
- // @ts-ignore
2404
- return invoke('Markdown.renderMarkdown', markdown, options);
2300
+ const acceptSuggestionOnEnter = () => {
2301
+ return i18nString(AcceptSuggestionOnEnter);
2405
2302
  };
2406
- const openNativeFolder = async uri => {
2407
- // @ts-ignore
2408
- await invoke('OpenNativeFolder.openNativeFolder', uri);
2303
+ const acceptSuggestionOnEnterDescription = () => {
2304
+ return i18nString(AcceptSuggestionOnEnterDescription);
2409
2305
  };
2410
- const uninstallExtension = async id => {
2411
- return invoke('ExtensionManagement.uninstall', id);
2306
+ const tabCompletion = () => {
2307
+ return i18nString(TabCompletion);
2412
2308
  };
2413
- const installExtension = async id => {
2414
- // @ts-ignore
2415
- return invoke('ExtensionManagement.install', id);
2309
+ const tabCompletionDescription = () => {
2310
+ return i18nString(TabCompletionDescription);
2416
2311
  };
2417
- const minimizeWindow = async () => {
2418
- // @ts-ignore
2419
- return invoke('ElectronWindow.minimize');
2312
+ const wordBasedSuggestions = () => {
2313
+ return i18nString(WordBasedSuggestions);
2420
2314
  };
2421
- const unmaximizeWindow = async () => {
2422
- // @ts-ignore
2423
- return invoke('ElectronWindow.unmaximize');
2315
+ const wordBasedSuggestionsDescription = () => {
2316
+ return i18nString(WordBasedSuggestionsDescription);
2424
2317
  };
2425
- const maximizeWindow = async () => {
2426
- // @ts-ignore
2427
- return invoke('ElectronWindow.maximize');
2318
+ const suggestOnTriggerCharacters = () => {
2319
+ return i18nString(SuggestOnTriggerCharacters);
2428
2320
  };
2429
- const closeWindow = async () => {
2430
- // @ts-ignore
2431
- return invoke('ElectronWindow.close');
2321
+ const suggestOnTriggerCharactersDescription = () => {
2322
+ return i18nString(SuggestOnTriggerCharactersDescription);
2432
2323
  };
2433
- const openExtensionSearch = async () => {
2434
- // @ts-ignore
2435
- return invoke('SideBar.openViewlet', 'Extensions');
2324
+ const quickSuggestions = () => {
2325
+ return i18nString(QuickSuggestions);
2436
2326
  };
2437
- const setExtensionsSearchValue = async searchValue => {
2438
- // @ts-ignore
2439
- return invoke('Extensions.handleInput', searchValue, Script);
2327
+ const quickSuggestionsDescription = () => {
2328
+ return i18nString(QuickSuggestionsDescription);
2440
2329
  };
2441
- const openExternal = async uri => {
2442
- // @ts-ignore
2443
- await invoke('Open.openExternal', uri);
2330
+ const parameterHints = () => {
2331
+ return i18nString(ParameterHints);
2444
2332
  };
2445
- const openUrl = async uri => {
2446
- // @ts-ignore
2447
- await invoke('Open.openUrl', uri);
2333
+ const parameterHintsDescription = () => {
2334
+ return i18nString(ParameterHintsDescription);
2448
2335
  };
2449
- const getAllPreferences = async () => {
2450
- // @ts-ignore
2451
- return invoke('Preferences.getAll');
2336
+ const autoClosingBrackets = () => {
2337
+ return i18nString(AutoClosingBrackets);
2452
2338
  };
2453
- const showSaveFilePicker = async () => {
2454
- // @ts-ignore
2455
- return invoke('FilePicker.showSaveFilePicker');
2339
+ const autoClosingBracketsDescription = () => {
2340
+ return i18nString(AutoClosingBracketsDescription);
2456
2341
  };
2457
- const getLogsDir = async () => {
2458
- // @ts-ignore
2459
- return invoke('PlatformPaths.getLogsDir');
2342
+ const autoClosingQuotes = () => {
2343
+ return i18nString(AutoClosingQuotes);
2460
2344
  };
2461
- const measureTextBlockHeight = async (actualInput, fontFamily, fontSize, lineHeightPx, width) => {
2462
- return invoke(`MeasureTextHeight.measureTextBlockHeight`, actualInput, fontFamily, fontSize, lineHeightPx, width);
2345
+ const autoClosingQuotesDescription = () => {
2346
+ return i18nString(AutoClosingQuotesDescription);
2463
2347
  };
2464
- const registerMockRpc = commandMap => {
2465
- const mockRpc = createMockRpc({
2466
- commandMap
2467
- });
2468
- set$1(mockRpc);
2469
- return mockRpc;
2348
+ const autoClosingOvertype = () => {
2349
+ return i18nString(AutoClosingOvertype);
2470
2350
  };
2471
-
2472
- const RendererWorker = {
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
- const getPreferences = async () => {
2568
- try {
2569
- return await getAllPreferences();
2570
- } catch {
2571
- return {};
2572
- }
2354
+ const autoClosingDelete = () => {
2355
+ return i18nString(AutoClosingDelete);
2573
2356
  };
2574
-
2575
- const ApplicationsTab = 'applications';
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
- const AutoSave = 'Auto Save';
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 autoSaveDescription = () => {
2872
- return i18nString(AutoSaveDescription);
2363
+ const autoSurroundDescription = () => {
2364
+ return i18nString(AutoSurroundDescription);
2873
2365
  };
2874
- const autoUpdateExtensions = () => {
2875
- return i18nString(AutoUpdateExtensions);
2366
+ const bracketPairColorization = () => {
2367
+ return i18nString(BracketPairColorization);
2876
2368
  };
2877
- const autoUpdateExtensionsDescription = () => {
2878
- return i18nString(AutoUpdateExtensionsDescription);
2369
+ const bracketPairColorizationDescription = () => {
2370
+ return i18nString(BracketPairColorizationDescription);
2879
2371
  };
2880
- const autoUpdates = () => {
2881
- return i18nString(AutoUpdates);
2372
+ const guides = () => {
2373
+ return i18nString(Guides);
2882
2374
  };
2883
- const autoUpdatesDescription = () => {
2884
- return i18nString(AutoUpdatesDescription);
2375
+ const guidesDescription = () => {
2376
+ return i18nString(GuidesDescription);
2885
2377
  };
2886
- const clear = () => {
2887
- return i18nString(Clear);
2378
+ const dragAndDrop = () => {
2379
+ return i18nString(DragAndDrop);
2888
2380
  };
2889
- const filter = () => {
2890
- return 'Filter';
2381
+ const dragAndDropDescription = () => {
2382
+ return i18nString(DragAndDropDescription);
2891
2383
  };
2892
- const extensionRecommendations = () => {
2893
- return i18nString(ExtensionRecommendations);
2384
+ const copyWithSyntaxHighlighting = () => {
2385
+ return i18nString(CopyWithSyntaxHighlighting);
2894
2386
  };
2895
- const extensionRecommendationsDescription = () => {
2896
- return i18nString(ExtensionRecommendationsDescription);
2387
+ const copyWithSyntaxHighlightingDescription = () => {
2388
+ return i18nString(CopyWithSyntaxHighlightingDescription);
2897
2389
  };
2898
- const fileEncryption = () => {
2899
- return i18nString(FileEncryption);
2390
+ const multiCursorModifier = () => {
2391
+ return i18nString(MultiCursorModifier);
2900
2392
  };
2901
- const fileEncryptionDescription = () => {
2902
- return i18nString(FileEncryptionDescription);
2393
+ const multiCursorModifierDescription = () => {
2394
+ return i18nString(MultiCursorModifierDescription);
2903
2395
  };
2904
- const fontFamily = () => {
2905
- return i18nString(FontFamily);
2396
+ const multiCursorPaste = () => {
2397
+ return i18nString(MultiCursorPaste);
2906
2398
  };
2907
- const fontFamilyDescription = () => {
2908
- return i18nString(FontFamilyDescription);
2399
+ const multiCursorPasteDescription = () => {
2400
+ return i18nString(MultiCursorPasteDescription);
2401
+ };
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);
2909
2446
  };
2910
- const fontSize = () => {
2911
- return i18nString(FontSize);
2447
+ const diffWordWrapDescription = () => {
2448
+ return i18nString(DiffWordWrapDescription);
2912
2449
  };
2913
- const fontSizeDescription = () => {
2914
- return i18nString(FontSizeDescription);
2450
+ const diffCodeLens = () => {
2451
+ return i18nString(DiffCodeLens);
2915
2452
  };
2916
- const formatOnSave = () => {
2917
- return i18nString(FormatOnSave);
2453
+ const diffCodeLensDescription = () => {
2454
+ return i18nString(DiffCodeLensDescription);
2918
2455
  };
2919
- const formatOnSaveDescription = () => {
2920
- return i18nString(FormatOnSaveDescription);
2456
+ const diffRenderSideBySide = () => {
2457
+ return i18nString(DiffRenderSideBySide);
2921
2458
  };
2922
- const numberValue = () => {
2923
- return i18nString(NumberValue);
2459
+ const diffRenderSideBySideDescription = () => {
2460
+ return i18nString(DiffRenderSideBySideDescription);
2924
2461
  };
2925
- const colorValue = () => {
2926
- return i18nString(ColorValue);
2462
+ const diffIgnoreTrimWhitespace = () => {
2463
+ return i18nString(DiffIgnoreTrimWhitespace);
2927
2464
  };
2928
- const stringValue = () => {
2929
- return i18nString(StringValue);
2465
+ const diffIgnoreTrimWhitespaceDescription = () => {
2466
+ return i18nString(DiffIgnoreTrimWhitespaceDescription);
2930
2467
  };
2931
- const searchSettings = () => {
2932
- return i18nString(SearchSettings);
2468
+ const diffRenderIndicators = () => {
2469
+ return i18nString(DiffRenderIndicators);
2933
2470
  };
2934
- const settingsContent = () => {
2935
- return i18nString(SettingsContent$1);
2471
+ const diffRenderIndicatorsDescription = () => {
2472
+ return i18nString(DiffRenderIndicatorsDescription);
2936
2473
  };
2937
- const sidebarPosition = () => {
2938
- return i18nString(SidebarPosition);
2474
+ const diffRenderOverviewRuler = () => {
2475
+ return i18nString(DiffRenderOverviewRuler);
2939
2476
  };
2940
- const sidebarPositionDescription = () => {
2941
- return i18nString(SidebarPositionDescription);
2477
+ const diffRenderOverviewRulerDescription = () => {
2478
+ return i18nString(DiffRenderOverviewRulerDescription);
2942
2479
  };
2943
- const telemetry = () => {
2944
- return i18nString(Telemetry);
2480
+ const diffRenderMarginRevertIcon = () => {
2481
+ return i18nString(DiffRenderMarginRevertIcon);
2945
2482
  };
2946
- const telemetryDescription = () => {
2947
- return i18nString(TelemetryDescription);
2483
+ const diffRenderMarginRevertIconDescription = () => {
2484
+ return i18nString(DiffRenderMarginRevertIconDescription);
2948
2485
  };
2949
- const theme = () => {
2950
- return i18nString(Theme);
2486
+
2487
+ // Additional Text Editor Settings
2488
+ const insertMode = () => {
2489
+ return i18nString(InsertMode);
2951
2490
  };
2952
- const themeDescription = () => {
2953
- return i18nString(ThemeDescription);
2491
+ const insertModeDescription = () => {
2492
+ return i18nString(InsertModeDescription);
2954
2493
  };
2955
- const twoFactorAuth = () => {
2956
- return i18nString(TwoFactorAuth);
2494
+ const overwriteMode = () => {
2495
+ return i18nString(OverwriteMode);
2957
2496
  };
2958
- const twoFactorAuthDescription = () => {
2959
- return i18nString(TwoFactorAuthDescription);
2497
+ const overwriteModeDescription = () => {
2498
+ return i18nString(OverwriteModeDescription);
2960
2499
  };
2961
- const windowSize = () => {
2962
- return i18nString(WindowSize);
2500
+ const readOnly = () => {
2501
+ return i18nString(ReadOnly);
2963
2502
  };
2964
- const windowSizeDescription = () => {
2965
- return i18nString(WindowSizeDescription);
2503
+ const readOnlyDescription = () => {
2504
+ return i18nString(ReadOnlyDescription);
2966
2505
  };
2967
- const windowTitle = () => {
2968
- return i18nString(WindowTitle);
2506
+ const accessibilitySupport = () => {
2507
+ return i18nString(AccessibilitySupport);
2969
2508
  };
2970
- const windowTitleDescription = () => {
2971
- return i18nString(WindowTitleDescription);
2509
+ const accessibilitySupportDescription = () => {
2510
+ return i18nString(AccessibilitySupportDescription);
2972
2511
  };
2973
- const noSettingsMatching = searchTerm => {
2974
- return i18nString(NoSettingsMatching, {
2975
- PH1: searchTerm
2976
- });
2512
+ const autoIndent = () => {
2513
+ return i18nString(AutoIndent);
2977
2514
  };
2978
- const matchingSettings = count => {
2979
- return i18nString(MatchingSettings, {
2980
- PH1: count.toString()
2981
- });
2515
+ const autoIndentDescription = () => {
2516
+ return i18nString(AutoIndentDescription);
2982
2517
  };
2983
-
2984
- // Text Editor Settings
2985
- const wordWrap = () => {
2986
- return i18nString(WordWrap);
2518
+ const bracketMatching = () => {
2519
+ return i18nString(BracketMatching);
2987
2520
  };
2988
- const wordWrapDescription = () => {
2989
- return i18nString(WordWrapDescription);
2521
+ const bracketMatchingDescription = () => {
2522
+ return i18nString(BracketMatchingDescription);
2990
2523
  };
2991
- const lineNumbers = () => {
2992
- return i18nString(LineNumbers);
2524
+ const centeredLayout = () => {
2525
+ return i18nString(CenteredLayout);
2993
2526
  };
2994
- const lineNumbersDescription = () => {
2995
- return i18nString(LineNumbersDescription);
2527
+ const centeredLayoutDescription = () => {
2528
+ return i18nString(CenteredLayoutDescription);
2996
2529
  };
2997
- const minimap = () => {
2998
- return i18nString(Minimap);
2530
+ const columnSelection = () => {
2531
+ return i18nString(ColumnSelection);
2999
2532
  };
3000
- const minimapDescription = () => {
3001
- return i18nString(MinimapDescription);
2533
+ const columnSelectionDescription = () => {
2534
+ return i18nString(ColumnSelectionDescription);
3002
2535
  };
3003
- const scrollBeyondLastLine = () => {
3004
- return i18nString(ScrollBeyondLastLine);
2536
+ const contextmenu = () => {
2537
+ return i18nString(Contextmenu);
3005
2538
  };
3006
- const scrollBeyondLastLineDescription = () => {
3007
- return i18nString(ScrollBeyondLastLineDescription);
2539
+ const contextmenuDescription = () => {
2540
+ return i18nString(ContextmenuDescription);
3008
2541
  };
3009
- const smoothScrolling = () => {
3010
- return i18nString(SmoothScrolling);
2542
+ const cursorSmoothCaretAnimation = () => {
2543
+ return i18nString(CursorSmoothCaretAnimation);
3011
2544
  };
3012
- const smoothScrollingDescription = () => {
3013
- return i18nString(SmoothScrollingDescription);
2545
+ const cursorSmoothCaretAnimationDescription = () => {
2546
+ return i18nString(CursorSmoothCaretAnimationDescription);
3014
2547
  };
3015
- const cursorBlinking = () => {
3016
- return i18nString(CursorBlinking);
2548
+ const cursorSurroundingLines = () => {
2549
+ return i18nString(CursorSurroundingLines);
3017
2550
  };
3018
- const cursorBlinkingDescription = () => {
3019
- return i18nString(CursorBlinkingDescription);
2551
+ const cursorSurroundingLinesDescription = () => {
2552
+ return i18nString(CursorSurroundingLinesDescription);
3020
2553
  };
3021
- const cursorStyle = () => {
3022
- return i18nString(CursorStyle);
2554
+ const cursorSurroundingLinesStyle = () => {
2555
+ return i18nString(CursorSurroundingLinesStyle);
3023
2556
  };
3024
- const cursorStyleDescription = () => {
3025
- return i18nString(CursorStyleDescription);
2557
+ const cursorSurroundingLinesStyleDescription = () => {
2558
+ return i18nString(CursorSurroundingLinesStyleDescription);
3026
2559
  };
3027
- const cursorWidth = () => {
3028
- return i18nString(CursorWidth);
2560
+ const disableMonospaceOptimizations = () => {
2561
+ return i18nString(DisableMonospaceOptimizations);
3029
2562
  };
3030
- const cursorWidthDescription = () => {
3031
- return i18nString(CursorWidthDescription);
2563
+ const disableMonospaceOptimizationsDescription = () => {
2564
+ return i18nString(DisableMonospaceOptimizationsDescription);
3032
2565
  };
3033
- const tabSize = () => {
3034
- return i18nString(TabSize);
2566
+ const emptySelectionClipboard = () => {
2567
+ return i18nString(EmptySelectionClipboard);
3035
2568
  };
3036
- const tabSizeDescription = () => {
3037
- return i18nString(TabSizeDescription);
2569
+ const emptySelectionClipboardDescription = () => {
2570
+ return i18nString(EmptySelectionClipboardDescription);
3038
2571
  };
3039
- const insertSpaces = () => {
3040
- return i18nString(InsertSpaces);
2572
+ const extraEditorClassName = () => {
2573
+ return i18nString(ExtraEditorClassName);
3041
2574
  };
3042
- const insertSpacesDescription = () => {
3043
- return i18nString(InsertSpacesDescription);
2575
+ const extraEditorClassNameDescription = () => {
2576
+ return i18nString(ExtraEditorClassNameDescription);
3044
2577
  };
3045
- const detectIndentation = () => {
3046
- return i18nString(DetectIndentation);
2578
+ const fastScrollSensitivity = () => {
2579
+ return i18nString(FastScrollSensitivity);
3047
2580
  };
3048
- const detectIndentationDescription = () => {
3049
- return i18nString(DetectIndentationDescription);
2581
+ const fastScrollSensitivityDescription = () => {
2582
+ return i18nString(FastScrollSensitivityDescription);
3050
2583
  };
3051
- const trimAutoWhitespace = () => {
3052
- return i18nString(TrimAutoWhitespace);
2584
+ const find = () => {
2585
+ return i18nString(Find);
3053
2586
  };
3054
- const trimAutoWhitespaceDescription = () => {
3055
- return i18nString(TrimAutoWhitespaceDescription);
2587
+ const findDescription = () => {
2588
+ return i18nString(FindDescription);
3056
2589
  };
3057
- const largeFileOptimizations = () => {
3058
- return i18nString(LargeFileOptimizations);
2590
+ const fixedOverflowWidgets = () => {
2591
+ return i18nString(FixedOverflowWidgets);
3059
2592
  };
3060
- const largeFileOptimizationsDescription = () => {
3061
- return i18nString(LargeFileOptimizationsDescription);
2593
+ const fixedOverflowWidgetsDescription = () => {
2594
+ return i18nString(FixedOverflowWidgetsDescription);
3062
2595
  };
3063
- const renderWhitespace = () => {
3064
- return i18nString(RenderWhitespace);
2596
+ const foldingStrategy = () => {
2597
+ return i18nString(FoldingStrategy);
3065
2598
  };
3066
- const renderWhitespaceDescription = () => {
3067
- return i18nString(RenderWhitespaceDescription);
2599
+ const foldingStrategyDescription = () => {
2600
+ return i18nString(FoldingStrategyDescription);
3068
2601
  };
3069
- const renderControlCharacters = () => {
3070
- return i18nString(RenderControlCharacters);
2602
+ const fontLigatures = () => {
2603
+ return i18nString(FontLigatures);
3071
2604
  };
3072
- const renderControlCharactersDescription = () => {
3073
- return i18nString(RenderControlCharactersDescription);
2605
+ const fontLigaturesDescription = () => {
2606
+ return i18nString(FontLigaturesDescription);
3074
2607
  };
3075
- const renderLineHighlight = () => {
3076
- return i18nString(RenderLineHighlight);
2608
+ const glyphMargin = () => {
2609
+ return i18nString(GlyphMargin);
3077
2610
  };
3078
- const renderLineHighlightDescription = () => {
3079
- return i18nString(RenderLineHighlightDescription);
2611
+ const glyphMarginDescription = () => {
2612
+ return i18nString(GlyphMarginDescription);
3080
2613
  };
3081
- const codeLens = () => {
3082
- return i18nString(CodeLens);
2614
+ const gotoLocation = () => {
2615
+ return i18nString(GotoLocation);
3083
2616
  };
3084
- const codeLensDescription = () => {
3085
- return i18nString(CodeLensDescription);
2617
+ const gotoLocationDescription = () => {
2618
+ return i18nString(GotoLocationDescription);
3086
2619
  };
3087
- const folding = () => {
3088
- return i18nString(Folding);
2620
+ const hideCursorInOverviewRuler = () => {
2621
+ return i18nString(HideCursorInOverviewRuler);
3089
2622
  };
3090
- const foldingDescription = () => {
3091
- return i18nString(FoldingDescription);
2623
+ const hideCursorInOverviewRulerDescription = () => {
2624
+ return i18nString(HideCursorInOverviewRulerDescription);
3092
2625
  };
3093
- const showFoldingControls = () => {
3094
- return i18nString(ShowFoldingControls);
2626
+ const hover = () => {
2627
+ return i18nString(Hover);
3095
2628
  };
3096
- const showFoldingControlsDescription = () => {
3097
- return i18nString(ShowFoldingControlsDescription);
2629
+ const hoverDescription = () => {
2630
+ return i18nString(HoverDescription);
3098
2631
  };
3099
- const unfoldOnClickAfterEnd = () => {
3100
- return i18nString(UnfoldOnClickAfterEnd);
2632
+ const inDiffEditor = () => {
2633
+ return i18nString(InDiffEditor);
3101
2634
  };
3102
- const unfoldOnClickAfterEndDescription = () => {
3103
- return i18nString(UnfoldOnClickAfterEndDescription);
2635
+ const inDiffEditorDescription = () => {
2636
+ return i18nString(InDiffEditorDescription);
3104
2637
  };
3105
- const links = () => {
3106
- return i18nString(Links);
2638
+ const letterSpacing = () => {
2639
+ return i18nString(LetterSpacing);
3107
2640
  };
3108
- const linksDescription = () => {
3109
- return i18nString(LinksDescription);
2641
+ const letterSpacingDescription = () => {
2642
+ return i18nString(LetterSpacingDescription);
3110
2643
  };
3111
- const colorDecorators = () => {
3112
- return i18nString(ColorDecorators);
2644
+ const lightbulbEnabled = () => {
2645
+ return i18nString(LightbulbEnabled);
3113
2646
  };
3114
- const colorDecoratorsDescription = () => {
3115
- return i18nString(ColorDecoratorsDescription);
2647
+ const lightbulbEnabledDescription = () => {
2648
+ return i18nString(LightbulbEnabledDescription);
3116
2649
  };
3117
- const lightbulb = () => {
3118
- return i18nString(Lightbulb);
2650
+ const lineDecorationsWidth = () => {
2651
+ return i18nString(LineDecorationsWidth);
3119
2652
  };
3120
- const lightbulbDescription = () => {
3121
- return i18nString(LightbulbDescription);
2653
+ const lineDecorationsWidthDescription = () => {
2654
+ return i18nString(LineDecorationsWidthDescription);
3122
2655
  };
3123
- const codeActionsOnSave = () => {
3124
- return i18nString(CodeActionsOnSave);
2656
+ const lineHeight = () => {
2657
+ return i18nString(LineHeight);
3125
2658
  };
3126
- const codeActionsOnSaveDescription = () => {
3127
- return i18nString(CodeActionsOnSaveDescription);
2659
+ const lineHeightDescription = () => {
2660
+ return i18nString(LineHeightDescription);
3128
2661
  };
3129
- const formatOnPaste = () => {
3130
- return i18nString(FormatOnPaste);
2662
+ const matchBrackets = () => {
2663
+ return i18nString(MatchBrackets);
3131
2664
  };
3132
- const formatOnPasteDescription = () => {
3133
- return i18nString(FormatOnPasteDescription);
2665
+ const matchBracketsDescription = () => {
2666
+ return i18nString(MatchBracketsDescription);
3134
2667
  };
3135
- const formatOnType = () => {
3136
- return i18nString(FormatOnType);
2668
+ const minimapEnabled = () => {
2669
+ return i18nString(MinimapEnabled);
3137
2670
  };
3138
- const formatOnTypeDescription = () => {
3139
- return i18nString(FormatOnTypeDescription);
2671
+ const minimapEnabledDescription = () => {
2672
+ return i18nString(MinimapEnabledDescription);
3140
2673
  };
3141
- const acceptSuggestionOnCommitCharacter = () => {
3142
- return i18nString(AcceptSuggestionOnCommitCharacter);
2674
+ const mouseWheelScrollSensitivity = () => {
2675
+ return i18nString(MouseWheelScrollSensitivity);
3143
2676
  };
3144
- const acceptSuggestionOnCommitCharacterDescription = () => {
3145
- return i18nString(AcceptSuggestionOnCommitCharacterDescription);
2677
+ const mouseWheelScrollSensitivityDescription = () => {
2678
+ return i18nString(MouseWheelScrollSensitivityDescription);
3146
2679
  };
3147
- const acceptSuggestionOnEnter = () => {
3148
- return i18nString(AcceptSuggestionOnEnter);
2680
+ const mouseWheelZoom = () => {
2681
+ return i18nString(MouseWheelZoom);
3149
2682
  };
3150
- const acceptSuggestionOnEnterDescription = () => {
3151
- return i18nString(AcceptSuggestionOnEnterDescription);
2683
+ const mouseWheelZoomDescription = () => {
2684
+ return i18nString(MouseWheelZoomDescription);
3152
2685
  };
3153
- const tabCompletion = () => {
3154
- return i18nString(TabCompletion);
2686
+ const multiCursorMergeOverlapping = () => {
2687
+ return i18nString(MultiCursorMergeOverlapping);
3155
2688
  };
3156
- const tabCompletionDescription = () => {
3157
- return i18nString(TabCompletionDescription);
2689
+ const multiCursorMergeOverlappingDescription = () => {
2690
+ return i18nString(MultiCursorMergeOverlappingDescription);
3158
2691
  };
3159
- const wordBasedSuggestions = () => {
3160
- return i18nString(WordBasedSuggestions);
2692
+ const overviewRulerBorder = () => {
2693
+ return i18nString(OverviewRulerBorder);
3161
2694
  };
3162
- const wordBasedSuggestionsDescription = () => {
3163
- return i18nString(WordBasedSuggestionsDescription);
2695
+ const overviewRulerBorderDescription = () => {
2696
+ return i18nString(OverviewRulerBorderDescription);
3164
2697
  };
3165
- const suggestOnTriggerCharacters = () => {
3166
- return i18nString(SuggestOnTriggerCharacters);
2698
+ const overviewRulerLanes = () => {
2699
+ return i18nString(OverviewRulerLanes);
3167
2700
  };
3168
- const suggestOnTriggerCharactersDescription = () => {
3169
- return i18nString(SuggestOnTriggerCharactersDescription);
2701
+ const overviewRulerLanesDescription = () => {
2702
+ return i18nString(OverviewRulerLanesDescription);
3170
2703
  };
3171
- const quickSuggestions = () => {
3172
- return i18nString(QuickSuggestions);
2704
+ const peekWidgetDefaultFocus = () => {
2705
+ return i18nString(PeekWidgetDefaultFocus);
3173
2706
  };
3174
- const quickSuggestionsDescription = () => {
3175
- return i18nString(QuickSuggestionsDescription);
2707
+ const peekWidgetDefaultFocusDescription = () => {
2708
+ return i18nString(PeekWidgetDefaultFocusDescription);
3176
2709
  };
3177
- const parameterHints = () => {
3178
- return i18nString(ParameterHints);
2710
+ const quickSuggestionsDelay = () => {
2711
+ return i18nString(QuickSuggestionsDelay);
3179
2712
  };
3180
- const parameterHintsDescription = () => {
3181
- return i18nString(ParameterHintsDescription);
2713
+ const quickSuggestionsDelayDescription = () => {
2714
+ return i18nString(QuickSuggestionsDelayDescription);
3182
2715
  };
3183
- const autoClosingBrackets = () => {
3184
- return i18nString(AutoClosingBrackets);
2716
+ const renderFinalNewline = () => {
2717
+ return i18nString(RenderFinalNewline);
3185
2718
  };
3186
- const autoClosingBracketsDescription = () => {
3187
- return i18nString(AutoClosingBracketsDescription);
2719
+ const renderFinalNewlineDescription = () => {
2720
+ return i18nString(RenderFinalNewlineDescription);
3188
2721
  };
3189
- const autoClosingQuotes = () => {
3190
- return i18nString(AutoClosingQuotes);
2722
+ const renderValidationDecorations = () => {
2723
+ return i18nString(RenderValidationDecorations);
3191
2724
  };
3192
- const autoClosingQuotesDescription = () => {
3193
- return i18nString(AutoClosingQuotesDescription);
2725
+ const renderValidationDecorationsDescription = () => {
2726
+ return i18nString(RenderValidationDecorationsDescription);
3194
2727
  };
3195
- const autoClosingOvertype = () => {
3196
- return i18nString(AutoClosingOvertype);
2728
+ const revealHorizontalRightPadding = () => {
2729
+ return i18nString(RevealHorizontalRightPadding);
3197
2730
  };
3198
- const autoClosingOvertypeDescription = () => {
3199
- return i18nString(AutoClosingOvertypeDescription);
2731
+ const revealHorizontalRightPaddingDescription = () => {
2732
+ return i18nString(RevealHorizontalRightPaddingDescription);
3200
2733
  };
3201
- const autoClosingDelete = () => {
3202
- return i18nString(AutoClosingDelete);
2734
+ const roundedSelection = () => {
2735
+ return i18nString(RoundedSelection);
3203
2736
  };
3204
- const autoClosingDeleteDescription = () => {
3205
- return i18nString(AutoClosingDeleteDescription);
2737
+ const roundedSelectionDescription = () => {
2738
+ return i18nString(RoundedSelectionDescription);
3206
2739
  };
3207
- const autoSurround = () => {
3208
- return i18nString(AutoSurround);
2740
+ const rulers = () => {
2741
+ return i18nString(Rulers);
3209
2742
  };
3210
- const autoSurroundDescription = () => {
3211
- return i18nString(AutoSurroundDescription);
2743
+ const rulersDescription = () => {
2744
+ return i18nString(RulersDescription);
3212
2745
  };
3213
- const bracketPairColorization = () => {
3214
- return i18nString(BracketPairColorization);
2746
+ const scrollBeyondLastColumn = () => {
2747
+ return i18nString(ScrollBeyondLastColumn);
3215
2748
  };
3216
- const bracketPairColorizationDescription = () => {
3217
- return i18nString(BracketPairColorizationDescription);
2749
+ const scrollBeyondLastColumnDescription = () => {
2750
+ return i18nString(ScrollBeyondLastColumnDescription);
3218
2751
  };
3219
- const guides = () => {
3220
- return i18nString(Guides);
2752
+ const scrollbar = () => {
2753
+ return i18nString(Scrollbar);
3221
2754
  };
3222
- const guidesDescription = () => {
3223
- return i18nString(GuidesDescription);
2755
+ const scrollbarDescription = () => {
2756
+ return i18nString(ScrollbarDescription);
3224
2757
  };
3225
- const dragAndDrop = () => {
3226
- return i18nString(DragAndDrop);
2758
+ const scrollPredominantAxis = () => {
2759
+ return i18nString(ScrollPredominantAxis);
3227
2760
  };
3228
- const dragAndDropDescription = () => {
3229
- return i18nString(DragAndDropDescription);
2761
+ const scrollPredominantAxisDescription = () => {
2762
+ return i18nString(ScrollPredominantAxisDescription);
3230
2763
  };
3231
- const copyWithSyntaxHighlighting = () => {
3232
- return i18nString(CopyWithSyntaxHighlighting);
2764
+ const selectionClipboard = () => {
2765
+ return i18nString(SelectionClipboard);
3233
2766
  };
3234
- const copyWithSyntaxHighlightingDescription = () => {
3235
- return i18nString(CopyWithSyntaxHighlightingDescription);
2767
+ const selectionClipboardDescription = () => {
2768
+ return i18nString(SelectionClipboardDescription);
3236
2769
  };
3237
- const multiCursorModifier = () => {
3238
- return i18nString(MultiCursorModifier);
2770
+ const showUnused = () => {
2771
+ return i18nString(ShowUnused);
3239
2772
  };
3240
- const multiCursorModifierDescription = () => {
3241
- return i18nString(MultiCursorModifierDescription);
2773
+ const showUnusedDescription = () => {
2774
+ return i18nString(ShowUnusedDescription);
3242
2775
  };
3243
- const multiCursorPaste = () => {
3244
- return i18nString(MultiCursorPaste);
2776
+ const snippetSuggestions = () => {
2777
+ return i18nString(SnippetSuggestions);
3245
2778
  };
3246
- const multiCursorPasteDescription = () => {
3247
- return i18nString(MultiCursorPasteDescription);
2779
+ const snippetSuggestionsDescription = () => {
2780
+ return i18nString(SnippetSuggestionsDescription);
3248
2781
  };
3249
- const occurrencesHighlight = () => {
3250
- return i18nString(OccurrencesHighlight);
2782
+ const suggest = () => {
2783
+ return i18nString(Suggest);
3251
2784
  };
3252
- const occurrencesHighlightDescription = () => {
3253
- return i18nString(OccurrencesHighlightDescription);
2785
+ const suggestDescription = () => {
2786
+ return i18nString(SuggestDescription);
3254
2787
  };
3255
- const selectionHighlight = () => {
3256
- return i18nString(SelectionHighlight);
2788
+ const suggestFontSize = () => {
2789
+ return i18nString(SuggestFontSize);
3257
2790
  };
3258
- const selectionHighlightDescription = () => {
3259
- return i18nString(SelectionHighlightDescription);
2791
+ const suggestFontSizeDescription = () => {
2792
+ return i18nString(SuggestFontSizeDescription);
3260
2793
  };
3261
- const semanticHighlighting = () => {
3262
- return i18nString(SemanticHighlighting);
2794
+ const suggestLineHeight = () => {
2795
+ return i18nString(SuggestLineHeight);
3263
2796
  };
3264
- const semanticHighlightingDescription = () => {
3265
- return i18nString(SemanticHighlightingDescription);
2797
+ const suggestLineHeightDescription = () => {
2798
+ return i18nString(SuggestLineHeightDescription);
3266
2799
  };
3267
- const tokenColorCustomizations = () => {
3268
- return i18nString(TokenColorCustomizations);
2800
+ const suggestSelection = () => {
2801
+ return i18nString(SuggestSelection);
3269
2802
  };
3270
- const tokenColorCustomizationsDescription = () => {
3271
- return i18nString(TokenColorCustomizationsDescription);
2803
+ const suggestSelectionDescription = () => {
2804
+ return i18nString(SuggestSelectionDescription);
3272
2805
  };
3273
- const workbenchColorCustomizations = () => {
3274
- return i18nString(WorkbenchColorCustomizations);
2806
+ const useTabStops = () => {
2807
+ return i18nString(UseTabStops);
3275
2808
  };
3276
- const workbenchColorCustomizationsDescription = () => {
3277
- return i18nString(WorkbenchColorCustomizationsDescription);
2809
+ const useTabStopsDescription = () => {
2810
+ return i18nString(UseTabStopsDescription);
3278
2811
  };
3279
- const editorColorCustomizations = () => {
3280
- return i18nString(EditorColorCustomizations);
2812
+ const wordSeparators = () => {
2813
+ return i18nString(WordSeparators);
3281
2814
  };
3282
- const editorColorCustomizationsDescription = () => {
3283
- return i18nString(EditorColorCustomizationsDescription);
2815
+ const wordSeparatorsDescription = () => {
2816
+ return i18nString(WordSeparatorsDescription);
3284
2817
  };
3285
- const diffEditor = () => {
3286
- return i18nString(DiffEditor);
2818
+ const wrappingIndent = () => {
2819
+ return i18nString(WrappingIndent);
3287
2820
  };
3288
- const diffEditorDescription = () => {
3289
- return i18nString(DiffEditorDescription);
2821
+ const wrappingIndentDescription = () => {
2822
+ return i18nString(WrappingIndentDescription);
3290
2823
  };
3291
- const diffWordWrap = () => {
3292
- return i18nString(DiffWordWrap);
2824
+ const unknownSettingType = () => {
2825
+ return i18nString(UnknownSettingType);
3293
2826
  };
3294
- const diffWordWrapDescription = () => {
3295
- return i18nString(DiffWordWrapDescription);
2827
+
2828
+ // Menu Entry Labels
2829
+ const advanced = () => {
2830
+ return i18nString(Advanced);
3296
2831
  };
3297
- const diffCodeLens = () => {
3298
- return i18nString(DiffCodeLens);
2832
+ const experimental = () => {
2833
+ return i18nString(Experimental);
3299
2834
  };
3300
- const diffCodeLensDescription = () => {
3301
- return i18nString(DiffCodeLensDescription);
2835
+ const extensionId = () => {
2836
+ return i18nString(ExtensionId);
3302
2837
  };
3303
- const diffRenderSideBySide = () => {
3304
- return i18nString(DiffRenderSideBySide);
2838
+ const feature = () => {
2839
+ return i18nString(Feature);
3305
2840
  };
3306
- const diffRenderSideBySideDescription = () => {
3307
- return i18nString(DiffRenderSideBySideDescription);
2841
+ const language = () => {
2842
+ return i18nString(Language);
3308
2843
  };
3309
- const diffIgnoreTrimWhitespace = () => {
3310
- return i18nString(DiffIgnoreTrimWhitespace);
2844
+ const modified = () => {
2845
+ return i18nString(Modified);
3311
2846
  };
3312
- const diffIgnoreTrimWhitespaceDescription = () => {
3313
- return i18nString(DiffIgnoreTrimWhitespaceDescription);
2847
+ const preview = () => {
2848
+ return i18nString(Preview);
3314
2849
  };
3315
- const diffRenderIndicators = () => {
3316
- return i18nString(DiffRenderIndicators);
2850
+ const settingId = () => {
2851
+ return i18nString(SettingId);
3317
2852
  };
3318
- const diffRenderIndicatorsDescription = () => {
3319
- return i18nString(DiffRenderIndicatorsDescription);
2853
+ const stable = () => {
2854
+ return i18nString(Stable);
3320
2855
  };
3321
- const diffRenderOverviewRuler = () => {
3322
- return i18nString(DiffRenderOverviewRuler);
2856
+ const tag = () => {
2857
+ return i18nString(Tag);
3323
2858
  };
3324
- const diffRenderOverviewRulerDescription = () => {
3325
- return i18nString(DiffRenderOverviewRulerDescription);
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
+ }];
3326
2902
  };
3327
- const diffRenderMarginRevertIcon = () => {
3328
- return i18nString(DiffRenderMarginRevertIcon);
2903
+
2904
+ const getName = () => {
2905
+ // TODO i18n string
2906
+ return 'Settings';
3329
2907
  };
3330
- const diffRenderMarginRevertIconDescription = () => {
3331
- return i18nString(DiffRenderMarginRevertIconDescription);
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;
2927
+ };
2928
+ const get = id => {
2929
+ return rpcs[id];
3332
2930
  };
3333
2931
 
3334
- // Additional Text Editor Settings
3335
- const insertMode = () => {
3336
- return i18nString(InsertMode);
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
- const insertModeDescription = () => {
3339
- return i18nString(InsertModeDescription);
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 overwriteMode = () => {
3342
- return i18nString(OverwriteMode);
2965
+ const getFilePathElectron = async file => {
2966
+ return invoke('FileSystemHandle.getFilePathElectron', file);
3343
2967
  };
3344
- const overwriteModeDescription = () => {
3345
- return i18nString(OverwriteModeDescription);
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 readOnly = () => {
3348
- return i18nString(ReadOnly);
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 readOnlyDescription = () => {
3351
- return i18nString(ReadOnlyDescription);
2982
+ const getElectronVersion = async () => {
2983
+ return invoke('Process.getElectronVersion');
3352
2984
  };
3353
- const accessibilitySupport = () => {
3354
- return i18nString(AccessibilitySupport);
2985
+ const applyBulkReplacement = async bulkEdits => {
2986
+ await invoke('BulkReplacement.applyBulkReplacement', bulkEdits);
3355
2987
  };
3356
- const accessibilitySupportDescription = () => {
3357
- return i18nString(AccessibilitySupportDescription);
2988
+ const setColorTheme = async id => {
2989
+ // @ts-ignore
2990
+ return invoke(/* ColorTheme.setColorTheme */'ColorTheme.setColorTheme', /* colorThemeId */id);
3358
2991
  };
3359
- const autoIndent = () => {
3360
- return i18nString(AutoIndent);
2992
+ const getNodeVersion = async () => {
2993
+ return invoke('Process.getNodeVersion');
3361
2994
  };
3362
- const autoIndentDescription = () => {
3363
- return i18nString(AutoIndentDescription);
2995
+ const getChromeVersion = async () => {
2996
+ return invoke('Process.getChromeVersion');
3364
2997
  };
3365
- const bracketMatching = () => {
3366
- return i18nString(BracketMatching);
2998
+ const getV8Version = async () => {
2999
+ return invoke('Process.getV8Version');
3367
3000
  };
3368
- const bracketMatchingDescription = () => {
3369
- return i18nString(BracketMatchingDescription);
3001
+ const getFileHandles = async fileIds => {
3002
+ const files = await invoke('FileSystemHandle.getFileHandles', fileIds);
3003
+ return files;
3370
3004
  };
3371
- const centeredLayout = () => {
3372
- return i18nString(CenteredLayout);
3005
+ const setWorkspacePath = async path => {
3006
+ await invoke('Workspace.setPath', path);
3373
3007
  };
3374
- const centeredLayoutDescription = () => {
3375
- return i18nString(CenteredLayoutDescription);
3008
+ const registerWebViewInterceptor = async (id, port) => {
3009
+ await invokeAndTransfer('WebView.registerInterceptor', id, port);
3376
3010
  };
3377
- const columnSelection = () => {
3378
- return i18nString(ColumnSelection);
3011
+ const unregisterWebViewInterceptor = async id => {
3012
+ await invoke('WebView.unregisterInterceptor', id);
3379
3013
  };
3380
- const columnSelectionDescription = () => {
3381
- return i18nString(ColumnSelectionDescription);
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 contextmenu = () => {
3384
- return i18nString(Contextmenu);
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 contextmenuDescription = () => {
3387
- return i18nString(ContextmenuDescription);
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 cursorSmoothCaretAnimation = () => {
3390
- return i18nString(CursorSmoothCaretAnimation);
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 cursorSmoothCaretAnimationDescription = () => {
3393
- return i18nString(CursorSmoothCaretAnimationDescription);
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 cursorSurroundingLines = () => {
3396
- return i18nString(CursorSurroundingLines);
3039
+ const readFile = async uri => {
3040
+ return invoke('FileSystem.readFile', uri);
3397
3041
  };
3398
- const cursorSurroundingLinesDescription = () => {
3399
- return i18nString(CursorSurroundingLinesDescription);
3042
+ const getWebViewSecret = async key => {
3043
+ // @ts-ignore
3044
+ return invoke('WebView.getSecret', key);
3400
3045
  };
3401
- const cursorSurroundingLinesStyle = () => {
3402
- return i18nString(CursorSurroundingLinesStyle);
3046
+ const setWebViewPort = async (uid, port, origin, portType) => {
3047
+ return invokeAndTransfer('WebView.setPort', uid, port, origin, portType);
3403
3048
  };
3404
- const cursorSurroundingLinesStyleDescription = () => {
3405
- return i18nString(CursorSurroundingLinesStyleDescription);
3049
+ const setFocus = key => {
3050
+ return invoke('Focus.setFocus', key);
3406
3051
  };
3407
- const disableMonospaceOptimizations = () => {
3408
- return i18nString(DisableMonospaceOptimizations);
3052
+ const getFileIcon = async options => {
3053
+ return invoke('IconTheme.getFileIcon', options);
3409
3054
  };
3410
- const disableMonospaceOptimizationsDescription = () => {
3411
- return i18nString(DisableMonospaceOptimizationsDescription);
3055
+ const getColorThemeNames = async () => {
3056
+ return invoke('ColorTheme.getColorThemeNames');
3412
3057
  };
3413
- const emptySelectionClipboard = () => {
3414
- return i18nString(EmptySelectionClipboard);
3058
+ const disableExtension = async id => {
3059
+ // @ts-ignore
3060
+ return invoke('ExtensionManagement.disable', id);
3415
3061
  };
3416
- const emptySelectionClipboardDescription = () => {
3417
- return i18nString(EmptySelectionClipboardDescription);
3062
+ const enableExtension = async id => {
3063
+ // @ts-ignore
3064
+ return invoke('ExtensionManagement.enable', id);
3418
3065
  };
3419
- const extraEditorClassName = () => {
3420
- return i18nString(ExtraEditorClassName);
3066
+ const handleDebugChange = async params => {
3067
+ // @ts-ignore
3068
+ return invoke('Run And Debug.handleChange', params);
3421
3069
  };
3422
- const extraEditorClassNameDescription = () => {
3423
- return i18nString(ExtraEditorClassNameDescription);
3070
+ const getFolderIcon = async options => {
3071
+ return invoke('IconTheme.getFolderIcon', options);
3424
3072
  };
3425
- const fastScrollSensitivity = () => {
3426
- return i18nString(FastScrollSensitivity);
3073
+ const handleWorkspaceRefresh = async () => {
3074
+ return invoke('Layout.handleWorkspaceRefresh');
3427
3075
  };
3428
- const fastScrollSensitivityDescription = () => {
3429
- return i18nString(FastScrollSensitivityDescription);
3076
+ const closeWidget = async widgetId => {
3077
+ return invoke('Viewlet.closeWidget', widgetId);
3430
3078
  };
3431
- const find = () => {
3432
- return i18nString(Find);
3079
+ const sendMessagePortToExtensionHostWorker = async (port, rpcId = 0) => {
3080
+ const command = 'HandleMessagePort.handleMessagePort2';
3081
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker', port, command, rpcId);
3433
3082
  };
3434
- const findDescription = () => {
3435
- return i18nString(FindDescription);
3083
+ const sendMessagePortToSearchProcess = async port => {
3084
+ await invokeAndTransfer('SendMessagePortToElectron.sendMessagePortToElectron', port, 'HandleMessagePortForSearchProcess.handleMessagePortForSearchProcess');
3436
3085
  };
3437
- const fixedOverflowWidgets = () => {
3438
- return i18nString(FixedOverflowWidgets);
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 fixedOverflowWidgetsDescription = () => {
3441
- return i18nString(FixedOverflowWidgetsDescription);
3091
+ const getRecentlyOpened = async () => {
3092
+ return invoke(/* RecentlyOpened.getRecentlyOpened */'RecentlyOpened.getRecentlyOpened');
3442
3093
  };
3443
- const foldingStrategy = () => {
3444
- return i18nString(FoldingStrategy);
3094
+ const getKeyBindings = async () => {
3095
+ return invoke('KeyBindingsInitial.getKeyBindings');
3445
3096
  };
3446
- const foldingStrategyDescription = () => {
3447
- return i18nString(FoldingStrategyDescription);
3097
+ const writeClipBoardText = async text => {
3098
+ await invoke('ClipBoard.writeText', /* text */text);
3448
3099
  };
3449
- const fontLigatures = () => {
3450
- return i18nString(FontLigatures);
3100
+ const readClipBoardText = async () => {
3101
+ return invoke('ClipBoard.readText');
3451
3102
  };
3452
- const fontLigaturesDescription = () => {
3453
- return i18nString(FontLigaturesDescription);
3103
+ const writeClipBoardImage = async blob => {
3104
+ // @ts-ignore
3105
+ await invoke('ClipBoard.writeImage', /* text */blob);
3454
3106
  };
3455
- const glyphMargin = () => {
3456
- return i18nString(GlyphMargin);
3107
+ const searchFileMemory = async uri => {
3108
+ // @ts-ignore
3109
+ return invoke('ExtensionHost.searchFileWithMemory', uri);
3457
3110
  };
3458
- const glyphMarginDescription = () => {
3459
- return i18nString(GlyphMarginDescription);
3111
+ const searchFileFetch = async uri => {
3112
+ return invoke('ExtensionHost.searchFileWithFetch', uri);
3460
3113
  };
3461
- const gotoLocation = () => {
3462
- return i18nString(GotoLocation);
3114
+ const showMessageBox = async options => {
3115
+ return invoke('ElectronDialog.showMessageBox', options);
3463
3116
  };
3464
- const gotoLocationDescription = () => {
3465
- return i18nString(GotoLocationDescription);
3117
+ const handleDebugResumed = async params => {
3118
+ await invoke('Run And Debug.handleResumed', params);
3466
3119
  };
3467
- const hideCursorInOverviewRuler = () => {
3468
- return i18nString(HideCursorInOverviewRuler);
3120
+ const openWidget = async name => {
3121
+ await invoke('Viewlet.openWidget', name);
3469
3122
  };
3470
- const hideCursorInOverviewRulerDescription = () => {
3471
- return i18nString(HideCursorInOverviewRulerDescription);
3123
+ const getIcons = async requests => {
3124
+ const icons = await invoke('IconTheme.getIcons', requests);
3125
+ return icons;
3472
3126
  };
3473
- const hover = () => {
3474
- return i18nString(Hover);
3127
+ const activateByEvent = (event, assetDir, platform) => {
3128
+ return invoke('ExtensionHostManagement.activateByEvent', event, assetDir, platform);
3475
3129
  };
3476
- const hoverDescription = () => {
3477
- return i18nString(HoverDescription);
3130
+ const setAdditionalFocus = focusKey => {
3131
+ // @ts-ignore
3132
+ return invoke('Focus.setAdditionalFocus', focusKey);
3478
3133
  };
3479
- const inDiffEditor = () => {
3480
- return i18nString(InDiffEditor);
3134
+ const getActiveEditorId = () => {
3135
+ // @ts-ignore
3136
+ return invoke('GetActiveEditor.getActiveEditorId');
3481
3137
  };
3482
- const inDiffEditorDescription = () => {
3483
- return i18nString(InDiffEditorDescription);
3138
+ const getWorkspacePath = () => {
3139
+ return invoke('Workspace.getPath');
3484
3140
  };
3485
- const letterSpacing = () => {
3486
- return i18nString(LetterSpacing);
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 letterSpacingDescription = () => {
3489
- return i18nString(LetterSpacingDescription);
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 lightbulbEnabled = () => {
3492
- return i18nString(LightbulbEnabled);
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 lightbulbEnabledDescription = () => {
3495
- return i18nString(LightbulbEnabledDescription);
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 lineDecorationsWidth = () => {
3498
- return i18nString(LineDecorationsWidth);
3161
+ const sendMessagePortToFileSystemProcess = async (port, rpcId) => {
3162
+ const command = 'HandleMessagePortForFileSystemProcess.handleMessagePortForFileSystemProcess';
3163
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToSharedProcess', port, command, rpcId);
3499
3164
  };
3500
- const lineDecorationsWidthDescription = () => {
3501
- return i18nString(LineDecorationsWidthDescription);
3165
+ const sendMessagePortToIframeWorker = async (port, rpcId) => {
3166
+ const command = 'Iframes.handleMessagePort';
3167
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToIframeWorker', port, command, rpcId);
3502
3168
  };
3503
- const lineHeight = () => {
3504
- return i18nString(LineHeight);
3169
+ const sendMessagePortToExtensionManagementWorker = async (port, rpcId) => {
3170
+ const command = 'Extensions.handleMessagePort';
3171
+ await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionManagementWorker', port, command, rpcId);
3505
3172
  };
3506
- const lineHeightDescription = () => {
3507
- return i18nString(LineHeightDescription);
3173
+ const getPreference = async key => {
3174
+ return await invoke('Preferences.get', key);
3508
3175
  };
3509
- const matchBrackets = () => {
3510
- return i18nString(MatchBrackets);
3176
+ const getAllExtensions = async () => {
3177
+ return invoke('ExtensionManagement.getAllExtensions');
3511
3178
  };
3512
- const matchBracketsDescription = () => {
3513
- return i18nString(MatchBracketsDescription);
3179
+ const rerenderEditor = async key => {
3180
+ // @ts-ignore
3181
+ return invoke('Editor.rerender', key);
3514
3182
  };
3515
- const minimapEnabled = () => {
3516
- return i18nString(MinimapEnabled);
3183
+ const handleDebugPaused = async params => {
3184
+ await invoke('Run And Debug.handlePaused', params);
3517
3185
  };
3518
- const minimapEnabledDescription = () => {
3519
- return i18nString(MinimapEnabledDescription);
3186
+ const openUri = async (uri, focus, options) => {
3187
+ await invoke('Main.openUri', uri, focus, options);
3520
3188
  };
3521
- const mouseWheelScrollSensitivity = () => {
3522
- return i18nString(MouseWheelScrollSensitivity);
3189
+ const sendMessagePortToSyntaxHighlightingWorker = async port => {
3190
+ await invokeAndTransfer(
3191
+ // @ts-ignore
3192
+ 'SendMessagePortToSyntaxHighlightingWorker.sendMessagePortToSyntaxHighlightingWorker', port, 'HandleMessagePort.handleMessagePort2');
3523
3193
  };
3524
- const mouseWheelScrollSensitivityDescription = () => {
3525
- return i18nString(MouseWheelScrollSensitivityDescription);
3194
+ const handleDebugScriptParsed = async script => {
3195
+ await invoke('Run And Debug.handleScriptParsed', script);
3526
3196
  };
3527
- const mouseWheelZoom = () => {
3528
- return i18nString(MouseWheelZoom);
3197
+ const getWindowId = async () => {
3198
+ return invoke('GetWindowId.getWindowId');
3529
3199
  };
3530
- const mouseWheelZoomDescription = () => {
3531
- return i18nString(MouseWheelZoomDescription);
3200
+ const getBlob = async uri => {
3201
+ // @ts-ignore
3202
+ return invoke('FileSystem.getBlob', uri);
3532
3203
  };
3533
- const multiCursorMergeOverlapping = () => {
3534
- return i18nString(MultiCursorMergeOverlapping);
3204
+ const getExtensionCommands = async () => {
3205
+ return invoke('ExtensionHost.getCommands');
3535
3206
  };
3536
- const multiCursorMergeOverlappingDescription = () => {
3537
- return i18nString(MultiCursorMergeOverlappingDescription);
3207
+ const showErrorDialog = async errorInfo => {
3208
+ // @ts-ignore
3209
+ await invoke('ErrorHandling.showErrorDialog', errorInfo);
3538
3210
  };
3539
- const overviewRulerBorder = () => {
3540
- return i18nString(OverviewRulerBorder);
3211
+ const getFolderSize = async uri => {
3212
+ // @ts-ignore
3213
+ return await invoke('FileSystem.getFolderSize', uri);
3541
3214
  };
3542
- const overviewRulerBorderDescription = () => {
3543
- return i18nString(OverviewRulerBorderDescription);
3215
+ const getExtension = async id => {
3216
+ // @ts-ignore
3217
+ return invoke('ExtensionManagement.getExtension', id);
3544
3218
  };
3545
- const overviewRulerLanes = () => {
3546
- return i18nString(OverviewRulerLanes);
3219
+ const getMarkdownDom = async html => {
3220
+ // @ts-ignore
3221
+ return invoke('Markdown.getVirtualDom', html);
3547
3222
  };
3548
- const overviewRulerLanesDescription = () => {
3549
- return i18nString(OverviewRulerLanesDescription);
3223
+ const renderMarkdown = async (markdown, options) => {
3224
+ // @ts-ignore
3225
+ return invoke('Markdown.renderMarkdown', markdown, options);
3550
3226
  };
3551
- const peekWidgetDefaultFocus = () => {
3552
- return i18nString(PeekWidgetDefaultFocus);
3227
+ const openNativeFolder = async uri => {
3228
+ // @ts-ignore
3229
+ await invoke('OpenNativeFolder.openNativeFolder', uri);
3553
3230
  };
3554
- const peekWidgetDefaultFocusDescription = () => {
3555
- return i18nString(PeekWidgetDefaultFocusDescription);
3231
+ const uninstallExtension = async id => {
3232
+ return invoke('ExtensionManagement.uninstall', id);
3556
3233
  };
3557
- const quickSuggestionsDelay = () => {
3558
- return i18nString(QuickSuggestionsDelay);
3234
+ const installExtension = async id => {
3235
+ // @ts-ignore
3236
+ return invoke('ExtensionManagement.install', id);
3559
3237
  };
3560
- const quickSuggestionsDelayDescription = () => {
3561
- return i18nString(QuickSuggestionsDelayDescription);
3238
+ const minimizeWindow = async () => {
3239
+ // @ts-ignore
3240
+ return invoke('ElectronWindow.minimize');
3562
3241
  };
3563
- const renderFinalNewline = () => {
3564
- return i18nString(RenderFinalNewline);
3242
+ const unmaximizeWindow = async () => {
3243
+ // @ts-ignore
3244
+ return invoke('ElectronWindow.unmaximize');
3565
3245
  };
3566
- const renderFinalNewlineDescription = () => {
3567
- return i18nString(RenderFinalNewlineDescription);
3246
+ const maximizeWindow = async () => {
3247
+ // @ts-ignore
3248
+ return invoke('ElectronWindow.maximize');
3568
3249
  };
3569
- const renderValidationDecorations = () => {
3570
- return i18nString(RenderValidationDecorations);
3250
+ const closeWindow = async () => {
3251
+ // @ts-ignore
3252
+ return invoke('ElectronWindow.close');
3571
3253
  };
3572
- const renderValidationDecorationsDescription = () => {
3573
- return i18nString(RenderValidationDecorationsDescription);
3254
+ const openExtensionSearch = async () => {
3255
+ // @ts-ignore
3256
+ return invoke('SideBar.openViewlet', 'Extensions');
3574
3257
  };
3575
- const revealHorizontalRightPadding = () => {
3576
- return i18nString(RevealHorizontalRightPadding);
3258
+ const setExtensionsSearchValue = async searchValue => {
3259
+ // @ts-ignore
3260
+ return invoke('Extensions.handleInput', searchValue, Script);
3577
3261
  };
3578
- const revealHorizontalRightPaddingDescription = () => {
3579
- return i18nString(RevealHorizontalRightPaddingDescription);
3262
+ const openExternal = async uri => {
3263
+ // @ts-ignore
3264
+ await invoke('Open.openExternal', uri);
3580
3265
  };
3581
- const roundedSelection = () => {
3582
- return i18nString(RoundedSelection);
3266
+ const openUrl = async uri => {
3267
+ // @ts-ignore
3268
+ await invoke('Open.openUrl', uri);
3583
3269
  };
3584
- const roundedSelectionDescription = () => {
3585
- return i18nString(RoundedSelectionDescription);
3270
+ const getAllPreferences = async () => {
3271
+ // @ts-ignore
3272
+ return invoke('Preferences.getAll');
3586
3273
  };
3587
- const rulers = () => {
3588
- return i18nString(Rulers);
3274
+ const showSaveFilePicker = async () => {
3275
+ // @ts-ignore
3276
+ return invoke('FilePicker.showSaveFilePicker');
3589
3277
  };
3590
- const rulersDescription = () => {
3591
- return i18nString(RulersDescription);
3278
+ const getLogsDir = async () => {
3279
+ // @ts-ignore
3280
+ return invoke('PlatformPaths.getLogsDir');
3592
3281
  };
3593
- const scrollBeyondLastColumn = () => {
3594
- return i18nString(ScrollBeyondLastColumn);
3282
+ const measureTextBlockHeight = async (actualInput, fontFamily, fontSize, lineHeightPx, width) => {
3283
+ return invoke(`MeasureTextHeight.measureTextBlockHeight`, actualInput, fontFamily, fontSize, lineHeightPx, width);
3595
3284
  };
3596
- const scrollBeyondLastColumnDescription = () => {
3597
- return i18nString(ScrollBeyondLastColumnDescription);
3285
+ const registerMockRpc = commandMap => {
3286
+ const mockRpc = createMockRpc({
3287
+ commandMap
3288
+ });
3289
+ set$1(mockRpc);
3290
+ return mockRpc;
3598
3291
  };
3599
- const scrollbar = () => {
3600
- return i18nString(Scrollbar);
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
- const scrollbarDescription = () => {
3603
- return i18nString(ScrollbarDescription);
3387
+
3388
+ const show2 = async (uid, menuId, x, y, args) => {
3389
+ await showContextMenu2(uid, menuId, x, y, args);
3604
3390
  };
3605
- const scrollPredominantAxis = () => {
3606
- return i18nString(ScrollPredominantAxis);
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
- const scrollPredominantAxisDescription = () => {
3609
- return i18nString(ScrollPredominantAxisDescription);
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
- const selectionClipboard = () => {
3612
- return i18nString(SelectionClipboard);
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
- const selectionClipboardDescription = () => {
3615
- return i18nString(SelectionClipboardDescription);
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
- const showUnused = () => {
3618
- return i18nString(ShowUnused);
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
- const showUnusedDescription = () => {
3621
- return i18nString(ShowUnusedDescription);
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
- const snippetSuggestions = () => {
3624
- return i18nString(SnippetSuggestions);
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
- const snippetSuggestionsDescription = () => {
3627
- return i18nString(SnippetSuggestionsDescription);
3576
+
3577
+ const handleInputFocus = state => {
3578
+ return {
3579
+ ...state,
3580
+ focus: SearchInput
3581
+ };
3628
3582
  };
3629
- const suggest = () => {
3630
- return i18nString(Suggest);
3583
+
3584
+ const handleResizerPointerDown = (state, eventX, eventY) => {
3585
+ return state;
3631
3586
  };
3632
- const suggestDescription = () => {
3633
- return i18nString(SuggestDescription);
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
- const suggestFontSize = () => {
3636
- return i18nString(SuggestFontSize);
3601
+
3602
+ const handleResizerPointerUp = (state, eventX, eventY) => {
3603
+ return state;
3637
3604
  };
3638
- const suggestFontSizeDescription = () => {
3639
- return i18nString(SuggestFontSizeDescription);
3605
+
3606
+ const handleScroll = (state, scrollTop, inputSource = User) => {
3607
+ return {
3608
+ ...state,
3609
+ inputSource,
3610
+ scrollOffset: scrollTop
3611
+ };
3640
3612
  };
3641
- const suggestLineHeight = () => {
3642
- return i18nString(SuggestLineHeight);
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
- const suggestLineHeightDescription = () => {
3645
- return i18nString(SuggestLineHeightDescription);
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
- const suggestSelection = () => {
3648
- return i18nString(SuggestSelection);
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
- const suggestSelectionDescription = () => {
3651
- return i18nString(SuggestSelectionDescription);
3653
+
3654
+ const handleSettingChecked = (state, name, value, source = User) => {
3655
+ return handleSettingUpdate(state, name, value, source);
3652
3656
  };
3653
- const useTabStops = () => {
3654
- return i18nString(UseTabStops);
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
- const useTabStopsDescription = () => {
3657
- return i18nString(UseTabStopsDescription);
3678
+
3679
+ const handleSettingSelect = (state, name, value, source = User) => {
3680
+ return handleSettingUpdate(state, name, value, source);
3658
3681
  };
3659
- const wordSeparators = () => {
3660
- return i18nString(WordSeparators);
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
- const wordSeparatorsDescription = () => {
3663
- return i18nString(WordSeparatorsDescription);
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
- const wrappingIndent = () => {
3666
- return i18nString(WrappingIndent);
3740
+
3741
+ const initialize = async () => {
3742
+ // TODO
3667
3743
  };
3668
- const wrappingIndentDescription = () => {
3669
- return i18nString(WrappingIndentDescription);
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
- const unknownSettingType = () => {
3672
- return i18nString(UnknownSettingType);
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,
@@ -4945,21 +5042,31 @@ const getClearButtonClassName = hasSearchValue => {
4945
5042
  return disabledClass;
4946
5043
  };
4947
5044
 
4948
- const icon = {
5045
+ const clearIcon = {
4949
5046
  childCount: 0,
4950
5047
  className: mergeClassNames(MaskIcon, MaskIconClearAll),
4951
5048
  type: Div
4952
5049
  };
4953
- const getSettingsInputButtonsDom = hasSearchValue => {
5050
+ const getClearButtonDom = hasSearchValue => {
4954
5051
  return [{
4955
5052
  ariaLabel: clear(),
4956
5053
  childCount: 1,
4957
5054
  className: getClearButtonClassName(hasSearchValue),
4958
5055
  disabled: !hasSearchValue,
4959
- name: Clear$1,
5056
+ name: Clear,
4960
5057
  onClick: HandleClickClear,
4961
5058
  type: Button
4962
- }, {
5059
+ }, clearIcon];
5060
+ };
5061
+
5062
+ const filterIcon = {
5063
+ childCount: 0,
5064
+ className: MaskIcon,
5065
+ type: Div
5066
+ };
5067
+ const getFilterButtonDom = () => {
5068
+ return [{
5069
+ ariaHasPopup: true,
4963
5070
  ariaLabel: filter(),
4964
5071
  childCount: 1,
4965
5072
  className: SearchFieldButton,
@@ -4967,7 +5074,11 @@ const getSettingsInputButtonsDom = hasSearchValue => {
4967
5074
  name: Filter,
4968
5075
  onClick: HandleClickFilterButton,
4969
5076
  type: Button
4970
- }, icon];
5077
+ }, filterIcon];
5078
+ };
5079
+
5080
+ const getSettingsInputButtonsDom = hasSearchValue => {
5081
+ return [...getClearButtonDom(hasSearchValue), ...getFilterButtonDom()];
4971
5082
  };
4972
5083
 
4973
5084
  const getSettingsInputDom = () => {
@@ -4988,7 +5099,7 @@ const getSettingsInputDom = () => {
4988
5099
  };
4989
5100
 
4990
5101
  const getChildCount$1 = hasSearchValue => {
4991
- return hasSearchValue ? 3 : 2;
5102
+ return hasSearchValue ? 4 : 3;
4992
5103
  };
4993
5104
  const getSettingsHeaderDom = (filteredSettingsCount, hasSearchValue) => {
4994
5105
  const childCount = getChildCount$1(hasSearchValue);
@@ -5503,7 +5614,7 @@ const renderEventListeners = () => {
5503
5614
  params: ['clear']
5504
5615
  }, {
5505
5616
  name: HandleClickFilterButton,
5506
- params: ['handleClickFilterButton']
5617
+ params: ['handleClickFilterButton', ClientX, ClientY]
5507
5618
  }, {
5508
5619
  name: HandleSettingInput,
5509
5620
  params: ['handleSettingInput', TargetName, TargetValue]
@@ -5529,7 +5640,6 @@ const renderEventListeners = () => {
5529
5640
  }, {
5530
5641
  name: HandleResizerPointerDown,
5531
5642
  params: ['handleResizerPointerDown', ClientX, ClientY],
5532
- // @ts-ignore
5533
5643
  trackPointerEvents: [HandleResizerPointerMove, HandleResizerPointerUp]
5534
5644
  }, {
5535
5645
  name: HandleResizerPointerMove,
@@ -5621,6 +5731,7 @@ const commandMap = {
5621
5731
  'Settings.diff2': diff2,
5622
5732
  'Settings.getCommandIds': getCommandIds,
5623
5733
  'Settings.getKeyBindings': getKeyBindings$1,
5734
+ 'Settings.getMenuEntries': getMenuEntries,
5624
5735
  'Settings.getName': getName,
5625
5736
  'Settings.handleClickFilterButton': wrapCommand(handleClickFilterButton),
5626
5737
  'Settings.handleClickTab': wrapCommand(handleClickTab),