@lvce-editor/settings-view 2.3.0 → 2.5.0

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