From 3f5600c32496c65d03cf8733b5c180371a3b0f2a Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Wed, 22 Mar 2023 14:59:25 +0100 Subject: [PATCH] Improve stylelint variable checking (#178002) --- build/hygiene.js | 8 +- .../lib/stylelint/vscode-known-variables.json | 1459 +++++++++-------- build/stylelint.js | 20 +- .../test/node/colorRegistry.releaseTest.ts | 14 +- 4 files changed, 763 insertions(+), 738 deletions(-) diff --git a/build/hygiene.js b/build/hygiene.js index c880e8418c9..b8881081b2e 100644 --- a/build/hygiene.js +++ b/build/hygiene.js @@ -187,9 +187,13 @@ function hygiene(some, linting = true) { ) ); streams.push( - result.pipe(filter(stylelintFilter)).pipe(gulpstylelint((error => { - console.error(error); + result.pipe(filter(stylelintFilter)).pipe(gulpstylelint(((message, isError) => { + if (isError) { + console.error(message); errorCount++; + } else { + console.warn(message); + } }))) ); } diff --git a/build/lib/stylelint/vscode-known-variables.json b/build/lib/stylelint/vscode-known-variables.json index 964129a60d7..593ef241b40 100644 --- a/build/lib/stylelint/vscode-known-variables.json +++ b/build/lib/stylelint/vscode-known-variables.json @@ -1,729 +1,732 @@ { - "colors": [ - "--vscode-foreground", - "--vscode-disabledForeground", - "--vscode-errorForeground", - "--vscode-descriptionForeground", - "--vscode-icon-foreground", - "--vscode-focusBorder", - "--vscode-contrastBorder", - "--vscode-contrastActiveBorder", - "--vscode-selection-background", - "--vscode-textSeparator-foreground", - "--vscode-textLink-foreground", - "--vscode-textLink-activeForeground", - "--vscode-textPreformat-foreground", - "--vscode-textBlockQuote-background", - "--vscode-textBlockQuote-border", - "--vscode-textCodeBlock-background", - "--vscode-widget-shadow", - "--vscode-widget-border", - "--vscode-input-background", - "--vscode-input-foreground", - "--vscode-input-border", - "--vscode-inputOption-activeBorder", - "--vscode-inputOption-hoverBackground", - "--vscode-inputOption-activeBackground", - "--vscode-inputOption-activeForeground", - "--vscode-input-placeholderForeground", - "--vscode-inputValidation-infoBackground", - "--vscode-inputValidation-infoForeground", - "--vscode-inputValidation-infoBorder", - "--vscode-inputValidation-warningBackground", - "--vscode-inputValidation-warningForeground", - "--vscode-inputValidation-warningBorder", - "--vscode-inputValidation-errorBackground", - "--vscode-inputValidation-errorForeground", - "--vscode-inputValidation-errorBorder", - "--vscode-dropdown-background", - "--vscode-dropdown-listBackground", - "--vscode-dropdown-foreground", - "--vscode-dropdown-border", - "--vscode-button-foreground", - "--vscode-button-separator", - "--vscode-button-background", - "--vscode-button-hoverBackground", - "--vscode-button-border", - "--vscode-button-secondaryForeground", - "--vscode-button-secondaryBackground", - "--vscode-button-secondaryHoverBackground", - "--vscode-badge-background", - "--vscode-badge-foreground", - "--vscode-scrollbar-shadow", - "--vscode-scrollbarSlider-background", - "--vscode-scrollbarSlider-hoverBackground", - "--vscode-scrollbarSlider-activeBackground", - "--vscode-progressBar-background", - "--vscode-editorError-background", - "--vscode-editorError-foreground", - "--vscode-editorError-border", - "--vscode-editorWarning-background", - "--vscode-editorWarning-foreground", - "--vscode-editorWarning-border", - "--vscode-editorInfo-background", - "--vscode-editorInfo-foreground", - "--vscode-editorInfo-border", - "--vscode-editorHint-foreground", - "--vscode-editorHint-border", - "--vscode-sash-hoverBorder", - "--vscode-editor-background", - "--vscode-editor-foreground", - "--vscode-editorStickyScroll-background", - "--vscode-editorStickyScrollHover-background", - "--vscode-editorWidget-background", - "--vscode-editorWidget-foreground", - "--vscode-editorWidget-border", - "--vscode-editorWidget-resizeBorder", - "--vscode-quickInput-background", - "--vscode-quickInput-foreground", - "--vscode-quickInputTitle-background", - "--vscode-pickerGroup-foreground", - "--vscode-pickerGroup-border", - "--vscode-keybindingLabel-background", - "--vscode-keybindingLabel-foreground", - "--vscode-keybindingLabel-border", - "--vscode-keybindingLabel-bottomBorder", - "--vscode-editor-selectionBackground", - "--vscode-editor-selectionForeground", - "--vscode-editor-inactiveSelectionBackground", - "--vscode-editor-selectionHighlightBackground", - "--vscode-editor-selectionHighlightBorder", - "--vscode-editor-findMatchBackground", - "--vscode-editor-findMatchHighlightBackground", - "--vscode-editor-findRangeHighlightBackground", - "--vscode-editor-findMatchBorder", - "--vscode-editor-findMatchHighlightBorder", - "--vscode-editor-findRangeHighlightBorder", - "--vscode-searchEditor-findMatchBackground", - "--vscode-searchEditor-findMatchBorder", - "--vscode-search-resultsInfoForeground", - "--vscode-editor-hoverHighlightBackground", - "--vscode-editorHoverWidget-background", - "--vscode-editorHoverWidget-foreground", - "--vscode-editorHoverWidget-border", - "--vscode-editorHoverWidget-statusBarBackground", - "--vscode-editorLink-activeForeground", - "--vscode-editorInlayHint-foreground", - "--vscode-editorInlayHint-background", - "--vscode-editorInlayHint-typeForeground", - "--vscode-editorInlayHint-typeBackground", - "--vscode-editorInlayHint-parameterForeground", - "--vscode-editorInlayHint-parameterBackground", - "--vscode-editorLightBulb-foreground", - "--vscode-editorLightBulbAutoFix-foreground", - "--vscode-diffEditor-insertedTextBackground", - "--vscode-diffEditor-removedTextBackground", - "--vscode-diffEditor-insertedLineBackground", - "--vscode-diffEditor-removedLineBackground", - "--vscode-diffEditorGutter-insertedLineBackground", - "--vscode-diffEditorGutter-removedLineBackground", - "--vscode-diffEditorOverview-insertedForeground", - "--vscode-diffEditorOverview-removedForeground", - "--vscode-diffEditor-insertedTextBorder", - "--vscode-diffEditor-removedTextBorder", - "--vscode-diffEditor-border", - "--vscode-diffEditor-diagonalFill", - "--vscode-list-focusBackground", - "--vscode-list-focusForeground", - "--vscode-list-focusOutline", - "--vscode-list-focusAndSelectionOutline", - "--vscode-list-activeSelectionBackground", - "--vscode-list-activeSelectionForeground", - "--vscode-list-activeSelectionIconForeground", - "--vscode-list-inactiveSelectionBackground", - "--vscode-list-inactiveSelectionForeground", - "--vscode-list-inactiveSelectionIconForeground", - "--vscode-list-inactiveFocusBackground", - "--vscode-list-inactiveFocusOutline", - "--vscode-list-hoverBackground", - "--vscode-list-hoverForeground", - "--vscode-list-dropBackground", - "--vscode-list-highlightForeground", - "--vscode-list-focusHighlightForeground", - "--vscode-list-invalidItemForeground", - "--vscode-list-errorForeground", - "--vscode-list-warningForeground", - "--vscode-listFilterWidget-background", - "--vscode-listFilterWidget-outline", - "--vscode-listFilterWidget-noMatchesOutline", - "--vscode-listFilterWidget-shadow", - "--vscode-list-filterMatchBackground", - "--vscode-list-filterMatchBorder", - "--vscode-tree-indentGuidesStroke", - "--vscode-tree-inactiveIndentGuidesStroke", - "--vscode-tree-tableColumnsBorder", - "--vscode-tree-tableOddRowsBackground", - "--vscode-list-deemphasizedForeground", - "--vscode-checkbox-background", - "--vscode-checkbox-selectBackground", - "--vscode-checkbox-foreground", - "--vscode-checkbox-border", - "--vscode-checkbox-selectBorder", - "--vscode-quickInputList-focusForeground", - "--vscode-quickInputList-focusIconForeground", - "--vscode-quickInputList-focusBackground", - "--vscode-menu-border", - "--vscode-menu-foreground", - "--vscode-menu-background", - "--vscode-menu-selectionForeground", - "--vscode-menu-selectionBackground", - "--vscode-menu-selectionBorder", - "--vscode-menu-separatorBackground", - "--vscode-toolbar-hoverBackground", - "--vscode-toolbar-hoverOutline", - "--vscode-toolbar-activeBackground", - "--vscode-editor-snippetTabstopHighlightBackground", - "--vscode-editor-snippetTabstopHighlightBorder", - "--vscode-editor-snippetFinalTabstopHighlightBackground", - "--vscode-editor-snippetFinalTabstopHighlightBorder", - "--vscode-breadcrumb-foreground", - "--vscode-breadcrumb-background", - "--vscode-breadcrumb-focusForeground", - "--vscode-breadcrumb-activeSelectionForeground", - "--vscode-breadcrumbPicker-background", - "--vscode-merge-currentHeaderBackground", - "--vscode-merge-currentContentBackground", - "--vscode-merge-incomingHeaderBackground", - "--vscode-merge-incomingContentBackground", - "--vscode-merge-commonHeaderBackground", - "--vscode-merge-commonContentBackground", - "--vscode-merge-border", - "--vscode-editorOverviewRuler-currentContentForeground", - "--vscode-editorOverviewRuler-incomingContentForeground", - "--vscode-editorOverviewRuler-commonContentForeground", - "--vscode-editorOverviewRuler-findMatchForeground", - "--vscode-editorOverviewRuler-selectionHighlightForeground", - "--vscode-minimap-findMatchHighlight", - "--vscode-minimap-selectionOccurrenceHighlight", - "--vscode-minimap-selectionHighlight", - "--vscode-minimap-errorHighlight", - "--vscode-minimap-warningHighlight", - "--vscode-minimap-background", - "--vscode-minimap-foregroundOpacity", - "--vscode-minimapSlider-background", - "--vscode-minimapSlider-hoverBackground", - "--vscode-minimapSlider-activeBackground", - "--vscode-problemsErrorIcon-foreground", - "--vscode-problemsWarningIcon-foreground", - "--vscode-problemsInfoIcon-foreground", - "--vscode-charts-foreground", - "--vscode-charts-lines", - "--vscode-charts-red", - "--vscode-charts-blue", - "--vscode-charts-yellow", - "--vscode-charts-orange", - "--vscode-charts-green", - "--vscode-charts-purple", - "--vscode-editor-lineHighlightBackground", - "--vscode-editor-lineHighlightBorder", - "--vscode-editor-rangeHighlightBackground", - "--vscode-editor-rangeHighlightBorder", - "--vscode-editor-symbolHighlightBackground", - "--vscode-editor-symbolHighlightBorder", - "--vscode-editorCursor-foreground", - "--vscode-editorCursor-background", - "--vscode-editorWhitespace-foreground", - "--vscode-editorIndentGuide-background", - "--vscode-editorIndentGuide-activeBackground", - "--vscode-editorLineNumber-foreground", - "--vscode-editorLineNumber-activeForeground", - "--vscode-editorLineNumber-dimmedForeground", - "--vscode-editorRuler-foreground", - "--vscode-editorCodeLens-foreground", - "--vscode-editorBracketMatch-background", - "--vscode-editorBracketMatch-border", - "--vscode-editorOverviewRuler-border", - "--vscode-editorOverviewRuler-background", - "--vscode-editorGutter-background", - "--vscode-editorUnnecessaryCode-border", - "--vscode-editorUnnecessaryCode-opacity", - "--vscode-editorGhostText-border", - "--vscode-editorGhostText-foreground", - "--vscode-editorGhostText-background", - "--vscode-editorOverviewRuler-rangeHighlightForeground", - "--vscode-editorOverviewRuler-errorForeground", - "--vscode-editorOverviewRuler-warningForeground", - "--vscode-editorOverviewRuler-infoForeground", - "--vscode-editorBracketHighlight-foreground1", - "--vscode-editorBracketHighlight-foreground2", - "--vscode-editorBracketHighlight-foreground3", - "--vscode-editorBracketHighlight-foreground4", - "--vscode-editorBracketHighlight-foreground5", - "--vscode-editorBracketHighlight-foreground6", - "--vscode-editorBracketHighlight-unexpectedBracket-foreground", - "--vscode-editorBracketPairGuide-background1", - "--vscode-editorBracketPairGuide-background2", - "--vscode-editorBracketPairGuide-background3", - "--vscode-editorBracketPairGuide-background4", - "--vscode-editorBracketPairGuide-background5", - "--vscode-editorBracketPairGuide-background6", - "--vscode-editorBracketPairGuide-activeBackground1", - "--vscode-editorBracketPairGuide-activeBackground2", - "--vscode-editorBracketPairGuide-activeBackground3", - "--vscode-editorBracketPairGuide-activeBackground4", - "--vscode-editorBracketPairGuide-activeBackground5", - "--vscode-editorBracketPairGuide-activeBackground6", - "--vscode-editorUnicodeHighlight-border", - "--vscode-editorUnicodeHighlight-background", - "--vscode-tab-activeBackground", - "--vscode-tab-unfocusedActiveBackground", - "--vscode-tab-inactiveBackground", - "--vscode-tab-unfocusedInactiveBackground", - "--vscode-tab-activeForeground", - "--vscode-tab-inactiveForeground", - "--vscode-tab-unfocusedActiveForeground", - "--vscode-tab-unfocusedInactiveForeground", - "--vscode-tab-hoverBackground", - "--vscode-tab-unfocusedHoverBackground", - "--vscode-tab-hoverForeground", - "--vscode-tab-unfocusedHoverForeground", - "--vscode-tab-border", - "--vscode-tab-lastPinnedBorder", - "--vscode-tab-activeBorder", - "--vscode-tab-unfocusedActiveBorder", - "--vscode-tab-activeBorderTop", - "--vscode-tab-unfocusedActiveBorderTop", - "--vscode-tab-hoverBorder", - "--vscode-tab-unfocusedHoverBorder", - "--vscode-tab-activeModifiedBorder", - "--vscode-tab-inactiveModifiedBorder", - "--vscode-tab-unfocusedActiveModifiedBorder", - "--vscode-tab-unfocusedInactiveModifiedBorder", - "--vscode-editorPane-background", - "--vscode-editorGroup-emptyBackground", - "--vscode-editorGroup-focusedEmptyBorder", - "--vscode-editorGroupHeader-tabsBackground", - "--vscode-editorGroupHeader-tabsBorder", - "--vscode-editorGroupHeader-noTabsBackground", - "--vscode-editorGroupHeader-border", - "--vscode-editorGroup-border", - "--vscode-editorGroup-dropBackground", - "--vscode-editorGroup-dropIntoPromptForeground", - "--vscode-editorGroup-dropIntoPromptBackground", - "--vscode-editorGroup-dropIntoPromptBorder", - "--vscode-sideBySideEditor-horizontalBorder", - "--vscode-sideBySideEditor-verticalBorder", - "--vscode-panel-background", - "--vscode-panel-border", - "--vscode-panelTitle-activeForeground", - "--vscode-panelTitle-inactiveForeground", - "--vscode-panelTitle-activeBorder", - "--vscode-panelInput-border", - "--vscode-panel-dropBorder", - "--vscode-panelSection-dropBackground", - "--vscode-panelSectionHeader-background", - "--vscode-panelSectionHeader-foreground", - "--vscode-panelSectionHeader-border", - "--vscode-panelSection-border", - "--vscode-banner-background", - "--vscode-banner-foreground", - "--vscode-banner-iconForeground", - "--vscode-statusBar-foreground", - "--vscode-statusBar-noFolderForeground", - "--vscode-statusBar-background", - "--vscode-statusBar-noFolderBackground", - "--vscode-statusBar-border", - "--vscode-statusBar-focusBorder", - "--vscode-statusBar-noFolderBorder", - "--vscode-statusBarItem-activeBackground", - "--vscode-statusBarItem-focusBorder", - "--vscode-statusBarItem-hoverBackground", - "--vscode-statusBarItem-compactHoverBackground", - "--vscode-statusBarItem-prominentForeground", - "--vscode-statusBarItem-prominentBackground", - "--vscode-statusBarItem-prominentHoverBackground", - "--vscode-statusBarItem-errorBackground", - "--vscode-statusBarItem-errorForeground", - "--vscode-statusBarItem-warningBackground", - "--vscode-statusBarItem-warningForeground", - "--vscode-activityBar-background", - "--vscode-activityBar-foreground", - "--vscode-activityBar-inactiveForeground", - "--vscode-activityBar-border", - "--vscode-activityBar-activeBorder", - "--vscode-activityBar-activeFocusBorder", - "--vscode-activityBar-activeBackground", - "--vscode-activityBar-dropBorder", - "--vscode-activityBarBadge-background", - "--vscode-activityBarBadge-foreground", - "--vscode-profileBadge-background", - "--vscode-profileBadge-foreground", - "--vscode-statusBarItem-remoteBackground", - "--vscode-statusBarItem-remoteForeground", - "--vscode-extensionBadge-remoteBackground", - "--vscode-extensionBadge-remoteForeground", - "--vscode-sideBar-background", - "--vscode-sideBar-foreground", - "--vscode-sideBar-border", - "--vscode-sideBarTitle-foreground", - "--vscode-sideBar-dropBackground", - "--vscode-sideBarSectionHeader-background", - "--vscode-sideBarSectionHeader-foreground", - "--vscode-sideBarSectionHeader-border", - "--vscode-titleBar-activeForeground", - "--vscode-titleBar-inactiveForeground", - "--vscode-titleBar-activeBackground", - "--vscode-titleBar-inactiveBackground", - "--vscode-titleBar-border", - "--vscode-menubar-selectionForeground", - "--vscode-menubar-selectionBackground", - "--vscode-menubar-selectionBorder", - "--vscode-notificationCenter-border", - "--vscode-notificationToast-border", - "--vscode-notifications-foreground", - "--vscode-notifications-background", - "--vscode-notificationLink-foreground", - "--vscode-notificationCenterHeader-foreground", - "--vscode-notificationCenterHeader-background", - "--vscode-notifications-border", - "--vscode-notificationsErrorIcon-foreground", - "--vscode-notificationsWarningIcon-foreground", - "--vscode-notificationsInfoIcon-foreground", - "--vscode-window-activeBorder", - "--vscode-window-inactiveBorder", - "--vscode-interactive-responseBackground", - "--vscode-interactive-responseActiveBackground", - "--vscode-interactive-responseBorder", - "--vscode-interactiveEditor-border", - "--vscode-interactiveEditor-shadow", - "--vscode-interactiveEditorInput-border", - "--vscode-interactiveEditorInput-focusBorder", - "--vscode-interactiveEditorInput-placeholderForeground", - "--vscode-interactiveEditorInput-background", - "--vscode-debugToolBar-background", - "--vscode-debugToolBar-border", - "--vscode-debugIcon-startForeground", - "--vscode-statusBar-debuggingBackground", - "--vscode-statusBar-debuggingForeground", - "--vscode-statusBar-debuggingBorder", - "--vscode-editor-stackFrameHighlightBackground", - "--vscode-editor-focusedStackFrameHighlightBackground", - "--vscode-settings-headerForeground", - "--vscode-settings-settingsHeaderHoverForeground", - "--vscode-settings-modifiedItemIndicator", - "--vscode-settings-headerBorder", - "--vscode-settings-sashBorder", - "--vscode-settings-dropdownBackground", - "--vscode-settings-dropdownForeground", - "--vscode-settings-dropdownBorder", - "--vscode-settings-dropdownListBorder", - "--vscode-settings-checkboxBackground", - "--vscode-settings-checkboxForeground", - "--vscode-settings-checkboxBorder", - "--vscode-settings-textInputBackground", - "--vscode-settings-textInputForeground", - "--vscode-settings-textInputBorder", - "--vscode-settings-numberInputBackground", - "--vscode-settings-numberInputForeground", - "--vscode-settings-numberInputBorder", - "--vscode-settings-focusedRowBackground", - "--vscode-settings-rowHoverBackground", - "--vscode-settings-focusedRowBorder", - "--vscode-testing-iconFailed", - "--vscode-testing-iconErrored", - "--vscode-testing-iconPassed", - "--vscode-testing-runAction", - "--vscode-testing-iconQueued", - "--vscode-testing-iconUnset", - "--vscode-testing-iconSkipped", - "--vscode-testing-peekBorder", - "--vscode-testing-peekHeaderBackground", - "--vscode-testing-message-error-decorationForeground", - "--vscode-testing-message-error-lineBackground", - "--vscode-testing-message-info-decorationForeground", - "--vscode-testing-message-info-lineBackground", - "--vscode-mergeEditor-change-background", - "--vscode-mergeEditor-change-word-background", - "--vscode-mergeEditor-changeBase-background", - "--vscode-mergeEditor-changeBase-word-background", - "--vscode-mergeEditor-conflict-unhandledUnfocused-border", - "--vscode-mergeEditor-conflict-unhandledFocused-border", - "--vscode-mergeEditor-conflict-handledUnfocused-border", - "--vscode-mergeEditor-conflict-handledFocused-border", - "--vscode-mergeEditor-conflict-handled-minimapOverViewRuler", - "--vscode-mergeEditor-conflict-unhandled-minimapOverViewRuler", - "--vscode-mergeEditor-conflictingLines-background", - "--vscode-mergeEditor-conflict-input1-background", - "--vscode-mergeEditor-conflict-input2-background", - "--vscode-terminal-background", - "--vscode-terminal-foreground", - "--vscode-terminalCursor-foreground", - "--vscode-terminalCursor-background", - "--vscode-terminal-selectionBackground", - "--vscode-terminal-inactiveSelectionBackground", - "--vscode-terminal-selectionForeground", - "--vscode-terminalCommandDecoration-defaultBackground", - "--vscode-terminalCommandDecoration-successBackground", - "--vscode-terminalCommandDecoration-errorBackground", - "--vscode-terminalOverviewRuler-cursorForeground", - "--vscode-terminal-border", - "--vscode-terminal-findMatchBackground", - "--vscode-terminal-hoverHighlightBackground", - "--vscode-terminal-findMatchBorder", - "--vscode-terminal-findMatchHighlightBackground", - "--vscode-terminal-findMatchHighlightBorder", - "--vscode-terminalOverviewRuler-findMatchForeground", - "--vscode-terminal-dropBackground", - "--vscode-terminal-tab-activeBorder", - "--vscode-walkThrough-embeddedEditorBackground", - "--vscode-welcomePage-background", - "--vscode-welcomePage-tileBackground", - "--vscode-welcomePage-tileHoverBackground", - "--vscode-welcomePage-tileBorder", - "--vscode-welcomePage-progress-background", - "--vscode-welcomePage-progress-foreground", - "--vscode-walkthrough-stepTitle-foreground", - "--vscode-symbolIcon-arrayForeground", - "--vscode-symbolIcon-booleanForeground", - "--vscode-symbolIcon-classForeground", - "--vscode-symbolIcon-colorForeground", - "--vscode-symbolIcon-constantForeground", - "--vscode-symbolIcon-constructorForeground", - "--vscode-symbolIcon-enumeratorForeground", - "--vscode-symbolIcon-enumeratorMemberForeground", - "--vscode-symbolIcon-eventForeground", - "--vscode-symbolIcon-fieldForeground", - "--vscode-symbolIcon-fileForeground", - "--vscode-symbolIcon-folderForeground", - "--vscode-symbolIcon-functionForeground", - "--vscode-symbolIcon-interfaceForeground", - "--vscode-symbolIcon-keyForeground", - "--vscode-symbolIcon-keywordForeground", - "--vscode-symbolIcon-methodForeground", - "--vscode-symbolIcon-moduleForeground", - "--vscode-symbolIcon-namespaceForeground", - "--vscode-symbolIcon-nullForeground", - "--vscode-symbolIcon-numberForeground", - "--vscode-symbolIcon-objectForeground", - "--vscode-symbolIcon-operatorForeground", - "--vscode-symbolIcon-packageForeground", - "--vscode-symbolIcon-propertyForeground", - "--vscode-symbolIcon-referenceForeground", - "--vscode-symbolIcon-snippetForeground", - "--vscode-symbolIcon-stringForeground", - "--vscode-symbolIcon-structForeground", - "--vscode-symbolIcon-textForeground", - "--vscode-symbolIcon-typeParameterForeground", - "--vscode-symbolIcon-unitForeground", - "--vscode-symbolIcon-variableForeground", - "--vscode-extensionButton-background", - "--vscode-extensionButton-foreground", - "--vscode-extensionButton-hoverBackground", - "--vscode-extensionButton-separator", - "--vscode-extensionButton-prominentBackground", - "--vscode-extensionButton-prominentForeground", - "--vscode-extensionButton-prominentHoverBackground", - "--vscode-extensionIcon-starForeground", - "--vscode-extensionIcon-verifiedForeground", - "--vscode-extensionIcon-preReleaseForeground", - "--vscode-extensionIcon-sponsorForeground", - "--vscode-commandCenter-foreground", - "--vscode-commandCenter-activeForeground", - "--vscode-commandCenter-inactiveForeground", - "--vscode-commandCenter-background", - "--vscode-commandCenter-activeBackground", - "--vscode-commandCenter-border", - "--vscode-commandCenter-activeBorder", - "--vscode-commandCenter-inactiveBorder", - "--vscode-ports-iconRunningProcessForeground", - "--vscode-editorHoverWidget-highlightForeground", - "--vscode-editorOverviewRuler-bracketMatchForeground", - "--vscode-editor-linkedEditingBackground", - "--vscode-editor-foldBackground", - "--vscode-editorGutter-foldingControlForeground", - "--vscode-editor-wordHighlightBackground", - "--vscode-editor-wordHighlightStrongBackground", - "--vscode-editor-wordHighlightTextBackground", - "--vscode-editor-wordHighlightBorder", - "--vscode-editor-wordHighlightStrongBorder", - "--vscode-editor-wordHighlightTextBorder", - "--vscode-editorOverviewRuler-wordHighlightForeground", - "--vscode-editorOverviewRuler-wordHighlightStrongForeground", - "--vscode-editorOverviewRuler-wordHighlightTextForeground", - "--vscode-debugExceptionWidget-border", - "--vscode-debugExceptionWidget-background", - "--vscode-peekViewTitle-background", - "--vscode-peekViewTitleLabel-foreground", - "--vscode-peekViewTitleDescription-foreground", - "--vscode-peekView-border", - "--vscode-peekViewResult-background", - "--vscode-peekViewResult-lineForeground", - "--vscode-peekViewResult-fileForeground", - "--vscode-peekViewResult-selectionBackground", - "--vscode-peekViewResult-selectionForeground", - "--vscode-peekViewEditor-background", - "--vscode-peekViewEditorGutter-background", - "--vscode-peekViewEditorStickyScroll-background", - "--vscode-peekViewResult-matchHighlightBackground", - "--vscode-peekViewEditor-matchHighlightBackground", - "--vscode-peekViewEditor-matchHighlightBorder", - "--vscode-editorMarkerNavigationError-background", - "--vscode-editorMarkerNavigationError-headerBackground", - "--vscode-editorMarkerNavigationWarning-background", - "--vscode-editorMarkerNavigationWarning-headerBackground", - "--vscode-editorMarkerNavigationInfo-background", - "--vscode-editorMarkerNavigationInfo-headerBackground", - "--vscode-editorMarkerNavigation-background", - "--vscode-editorCommentsWidget-resolvedBorder", - "--vscode-editorCommentsWidget-unresolvedBorder", - "--vscode-editorCommentsWidget-rangeBackground", - "--vscode-editorCommentsWidget-rangeBorder", - "--vscode-editorCommentsWidget-rangeActiveBackground", - "--vscode-editorCommentsWidget-rangeActiveBorder", - "--vscode-editorGutter-modifiedBackground", - "--vscode-editorGutter-addedBackground", - "--vscode-editorGutter-deletedBackground", - "--vscode-minimapGutter-modifiedBackground", - "--vscode-minimapGutter-addedBackground", - "--vscode-minimapGutter-deletedBackground", - "--vscode-editorOverviewRuler-modifiedForeground", - "--vscode-editorOverviewRuler-addedForeground", - "--vscode-editorOverviewRuler-deletedForeground", - "--vscode-editorSuggestWidget-background", - "--vscode-editorSuggestWidget-border", - "--vscode-editorSuggestWidget-foreground", - "--vscode-editorSuggestWidget-selectedForeground", - "--vscode-editorSuggestWidget-selectedIconForeground", - "--vscode-editorSuggestWidget-selectedBackground", - "--vscode-editorSuggestWidget-highlightForeground", - "--vscode-editorSuggestWidget-focusHighlightForeground", - "--vscode-editorSuggestWidgetStatus-foreground", - "--vscode-editor-inlineValuesForeground", - "--vscode-editor-inlineValuesBackground", - "--vscode-scm-providerBorder", - "--vscode-debugIcon-breakpointForeground", - "--vscode-debugIcon-breakpointDisabledForeground", - "--vscode-debugIcon-breakpointUnverifiedForeground", - "--vscode-debugIcon-breakpointCurrentStackframeForeground", - "--vscode-debugIcon-breakpointStackframeForeground", - "--vscode-debugTokenExpression-name", - "--vscode-debugTokenExpression-value", - "--vscode-debugTokenExpression-string", - "--vscode-debugTokenExpression-boolean", - "--vscode-debugTokenExpression-number", - "--vscode-debugTokenExpression-error", - "--vscode-debugView-exceptionLabelForeground", - "--vscode-debugView-exceptionLabelBackground", - "--vscode-debugView-stateLabelForeground", - "--vscode-debugView-stateLabelBackground", - "--vscode-debugView-valueChangedHighlight", - "--vscode-debugConsole-infoForeground", - "--vscode-debugConsole-warningForeground", - "--vscode-debugConsole-errorForeground", - "--vscode-debugConsole-sourceForeground", - "--vscode-debugConsoleInputIcon-foreground", - "--vscode-debugIcon-pauseForeground", - "--vscode-debugIcon-stopForeground", - "--vscode-debugIcon-disconnectForeground", - "--vscode-debugIcon-restartForeground", - "--vscode-debugIcon-stepOverForeground", - "--vscode-debugIcon-stepIntoForeground", - "--vscode-debugIcon-stepOutForeground", - "--vscode-debugIcon-continueForeground", - "--vscode-debugIcon-stepBackForeground", - "--vscode-keybindingTable-headerBackground", - "--vscode-keybindingTable-rowsBackground", - "--vscode-editorGutter-commentRangeForeground", - "--vscode-editorGutter-commentGlyphForground", - "--vscode-notebook-cellBorderColor", - "--vscode-notebook-focusedEditorBorder", - "--vscode-notebookStatusSuccessIcon-foreground", - "--vscode-notebookEditorOverviewRuler-runningCellForeground", - "--vscode-notebookStatusErrorIcon-foreground", - "--vscode-notebookStatusRunningIcon-foreground", - "--vscode-notebook-outputContainerBorderColor", - "--vscode-notebook-outputContainerBackgroundColor", - "--vscode-notebook-cellToolbarSeparator", - "--vscode-notebook-focusedCellBackground", - "--vscode-notebook-selectedCellBackground", - "--vscode-notebook-cellHoverBackground", - "--vscode-notebook-selectedCellBorder", - "--vscode-notebook-inactiveSelectedCellBorder", - "--vscode-notebook-focusedCellBorder", - "--vscode-notebook-inactiveFocusedCellBorder", - "--vscode-notebook-cellStatusBarItemHoverBackground", - "--vscode-notebook-cellInsertionIndicator", - "--vscode-notebookScrollbarSlider-background", - "--vscode-notebookScrollbarSlider-hoverBackground", - "--vscode-notebookScrollbarSlider-activeBackground", - "--vscode-notebook-symbolHighlightBackground", - "--vscode-notebook-cellEditorBackground", - "--vscode-notebook-editorBackground", - "--vscode-searchEditor-textInputBorder", - "--vscode-terminal-ansiBlack", - "--vscode-terminal-ansiRed", - "--vscode-terminal-ansiGreen", - "--vscode-terminal-ansiYellow", - "--vscode-terminal-ansiBlue", - "--vscode-terminal-ansiMagenta", - "--vscode-terminal-ansiCyan", - "--vscode-terminal-ansiWhite", - "--vscode-terminal-ansiBrightBlack", - "--vscode-terminal-ansiBrightRed", - "--vscode-terminal-ansiBrightGreen", - "--vscode-terminal-ansiBrightYellow", - "--vscode-terminal-ansiBrightBlue", - "--vscode-terminal-ansiBrightMagenta", - "--vscode-terminal-ansiBrightCyan", - "--vscode-terminal-ansiBrightWhite" - ], - "others": [ - "--background-dark", - "--background-light", - "--dropdown-padding-bottom", - "--dropdown-padding-top", - "--insert-border-color", - "--last-tab-margin-right", - "--monaco-monospace-font", - "--monaco-monospace-font", - "--notebook-cell-input-preview-font-family", - "--notebook-cell-input-preview-font-size", - "--notebook-cell-output-font-size", - "--notebook-diff-view-viewport-slider", - "--notebook-find-horizontal-padding", - "--notebook-find-width", - "--outline-element-color", - "--separator-border", - "--status-border-top-color", - "--tab-border-bottom-color", - "--tab-border-top-color", - "--tab-dirty-border-top-color", - "--tabs-border-bottom-color", - "--testMessageDecorationFontFamily", - "--testMessageDecorationFontSize", - "--title-border-bottom-color", - "--vscode-editorCodeLens-fontFamily", - "--vscode-editorCodeLens-fontFamilyDefault", - "--vscode-editorCodeLens-fontFeatureSettings", - "--vscode-editorCodeLens-fontSize", - "--vscode-editorCodeLens-lineHeight", - "--vscode-explorer-align-offset-margin-left", - "--vscode-interactive-result-editor-background-color", - "--vscode-repl-font-family", - "--vscode-repl-font-size-for-twistie", - "--vscode-repl-font-size", - "--vscode-repl-line-height", - "--vscode-sash-hover-size", - "--vscode-sash-size", - "--window-border-color", - "--workspace-trust-check-color", - "--workspace-trust-selected-color", - "--workspace-trust-unselected-color", - "--workspace-trust-x-color", - "--z-index-notebook-cell-bottom-toolbar-container", - "--z-index-notebook-cell-editor-outline", - "--z-index-notebook-cell-expand-part-button", - "--z-index-notebook-cell-output-toolbar", - "--z-index-notebook-cell-status", - "--z-index-notebook-cell-toolbar-dropdown-active", - "--z-index-notebook-cell-toolbar", - "--z-index-notebook-folding-indicator", - "--z-index-notebook-input-collapse-condicon", - "--z-index-notebook-list-insertion-indicator", - "--z-index-notebook-output", - "--z-index-notebook-progress-bar", - "--z-index-notebook-scrollbar", - "--z-index-run-button-container", - "--zoom-factor" - ] -} + "colors": [ + "--vscode-activityBar-activeBackground", + "--vscode-activityBar-activeBorder", + "--vscode-activityBar-activeFocusBorder", + "--vscode-activityBar-background", + "--vscode-activityBar-border", + "--vscode-activityBar-dropBorder", + "--vscode-activityBar-foreground", + "--vscode-activityBar-inactiveForeground", + "--vscode-activityBarBadge-background", + "--vscode-activityBarBadge-foreground", + "--vscode-badge-background", + "--vscode-badge-foreground", + "--vscode-banner-background", + "--vscode-banner-foreground", + "--vscode-banner-iconForeground", + "--vscode-breadcrumb-activeSelectionForeground", + "--vscode-breadcrumb-background", + "--vscode-breadcrumb-focusForeground", + "--vscode-breadcrumb-foreground", + "--vscode-breadcrumbPicker-background", + "--vscode-button-background", + "--vscode-button-border", + "--vscode-button-foreground", + "--vscode-button-hoverBackground", + "--vscode-button-secondaryBackground", + "--vscode-button-secondaryForeground", + "--vscode-button-secondaryHoverBackground", + "--vscode-button-separator", + "--vscode-charts-blue", + "--vscode-charts-foreground", + "--vscode-charts-green", + "--vscode-charts-lines", + "--vscode-charts-orange", + "--vscode-charts-purple", + "--vscode-charts-red", + "--vscode-charts-yellow", + "--vscode-checkbox-background", + "--vscode-checkbox-border", + "--vscode-checkbox-foreground", + "--vscode-checkbox-selectBackground", + "--vscode-checkbox-selectBorder", + "--vscode-commandCenter-activeBackground", + "--vscode-commandCenter-activeBorder", + "--vscode-commandCenter-activeForeground", + "--vscode-commandCenter-background", + "--vscode-commandCenter-border", + "--vscode-commandCenter-foreground", + "--vscode-commandCenter-inactiveBorder", + "--vscode-commandCenter-inactiveForeground", + "--vscode-contrastActiveBorder", + "--vscode-contrastBorder", + "--vscode-debugConsole-errorForeground", + "--vscode-debugConsole-infoForeground", + "--vscode-debugConsole-sourceForeground", + "--vscode-debugConsole-warningForeground", + "--vscode-debugConsoleInputIcon-foreground", + "--vscode-debugExceptionWidget-background", + "--vscode-debugExceptionWidget-border", + "--vscode-debugIcon-breakpointCurrentStackframeForeground", + "--vscode-debugIcon-breakpointDisabledForeground", + "--vscode-debugIcon-breakpointForeground", + "--vscode-debugIcon-breakpointStackframeForeground", + "--vscode-debugIcon-breakpointUnverifiedForeground", + "--vscode-debugIcon-continueForeground", + "--vscode-debugIcon-disconnectForeground", + "--vscode-debugIcon-pauseForeground", + "--vscode-debugIcon-restartForeground", + "--vscode-debugIcon-startForeground", + "--vscode-debugIcon-stepBackForeground", + "--vscode-debugIcon-stepIntoForeground", + "--vscode-debugIcon-stepOutForeground", + "--vscode-debugIcon-stepOverForeground", + "--vscode-debugIcon-stopForeground", + "--vscode-debugTokenExpression-boolean", + "--vscode-debugTokenExpression-error", + "--vscode-debugTokenExpression-name", + "--vscode-debugTokenExpression-number", + "--vscode-debugTokenExpression-string", + "--vscode-debugTokenExpression-value", + "--vscode-debugToolBar-background", + "--vscode-debugToolBar-border", + "--vscode-debugView-exceptionLabelBackground", + "--vscode-debugView-exceptionLabelForeground", + "--vscode-debugView-stateLabelBackground", + "--vscode-debugView-stateLabelForeground", + "--vscode-debugView-valueChangedHighlight", + "--vscode-descriptionForeground", + "--vscode-diffEditor-border", + "--vscode-diffEditor-diagonalFill", + "--vscode-diffEditor-insertedLineBackground", + "--vscode-diffEditor-insertedTextBackground", + "--vscode-diffEditor-insertedTextBorder", + "--vscode-diffEditor-removedLineBackground", + "--vscode-diffEditor-removedTextBackground", + "--vscode-diffEditor-removedTextBorder", + "--vscode-diffEditorGutter-insertedLineBackground", + "--vscode-diffEditorGutter-removedLineBackground", + "--vscode-diffEditorOverview-insertedForeground", + "--vscode-diffEditorOverview-removedForeground", + "--vscode-disabledForeground", + "--vscode-dropdown-background", + "--vscode-dropdown-border", + "--vscode-dropdown-foreground", + "--vscode-dropdown-listBackground", + "--vscode-editor-background", + "--vscode-editor-findMatchBackground", + "--vscode-editor-findMatchBorder", + "--vscode-editor-findMatchHighlightBackground", + "--vscode-editor-findMatchHighlightBorder", + "--vscode-editor-findRangeHighlightBackground", + "--vscode-editor-findRangeHighlightBorder", + "--vscode-editor-focusedStackFrameHighlightBackground", + "--vscode-editor-foldBackground", + "--vscode-editor-foreground", + "--vscode-editor-hoverHighlightBackground", + "--vscode-editor-inactiveSelectionBackground", + "--vscode-editor-inlineValuesBackground", + "--vscode-editor-inlineValuesForeground", + "--vscode-editor-lineHighlightBackground", + "--vscode-editor-lineHighlightBorder", + "--vscode-editor-linkedEditingBackground", + "--vscode-editor-rangeHighlightBackground", + "--vscode-editor-rangeHighlightBorder", + "--vscode-editor-selectionBackground", + "--vscode-editor-selectionForeground", + "--vscode-editor-selectionHighlightBackground", + "--vscode-editor-selectionHighlightBorder", + "--vscode-editor-snippetFinalTabstopHighlightBackground", + "--vscode-editor-snippetFinalTabstopHighlightBorder", + "--vscode-editor-snippetTabstopHighlightBackground", + "--vscode-editor-snippetTabstopHighlightBorder", + "--vscode-editor-stackFrameHighlightBackground", + "--vscode-editor-symbolHighlightBackground", + "--vscode-editor-symbolHighlightBorder", + "--vscode-editor-wordHighlightBackground", + "--vscode-editor-wordHighlightBorder", + "--vscode-editor-wordHighlightStrongBackground", + "--vscode-editor-wordHighlightStrongBorder", + "--vscode-editor-wordHighlightTextBackground", + "--vscode-editor-wordHighlightTextBorder", + "--vscode-editorActiveLineNumber-foreground", + "--vscode-editorBracketHighlight-foreground1", + "--vscode-editorBracketHighlight-foreground2", + "--vscode-editorBracketHighlight-foreground3", + "--vscode-editorBracketHighlight-foreground4", + "--vscode-editorBracketHighlight-foreground5", + "--vscode-editorBracketHighlight-foreground6", + "--vscode-editorBracketHighlight-unexpectedBracket-foreground", + "--vscode-editorBracketMatch-background", + "--vscode-editorBracketMatch-border", + "--vscode-editorBracketPairGuide-activeBackground1", + "--vscode-editorBracketPairGuide-activeBackground2", + "--vscode-editorBracketPairGuide-activeBackground3", + "--vscode-editorBracketPairGuide-activeBackground4", + "--vscode-editorBracketPairGuide-activeBackground5", + "--vscode-editorBracketPairGuide-activeBackground6", + "--vscode-editorBracketPairGuide-background1", + "--vscode-editorBracketPairGuide-background2", + "--vscode-editorBracketPairGuide-background3", + "--vscode-editorBracketPairGuide-background4", + "--vscode-editorBracketPairGuide-background5", + "--vscode-editorBracketPairGuide-background6", + "--vscode-editorCodeLens-foreground", + "--vscode-editorCommentsWidget-rangeActiveBackground", + "--vscode-editorCommentsWidget-rangeActiveBorder", + "--vscode-editorCommentsWidget-rangeBackground", + "--vscode-editorCommentsWidget-rangeBorder", + "--vscode-editorCommentsWidget-resolvedBorder", + "--vscode-editorCommentsWidget-unresolvedBorder", + "--vscode-editorCursor-background", + "--vscode-editorCursor-foreground", + "--vscode-editorError-background", + "--vscode-editorError-border", + "--vscode-editorError-foreground", + "--vscode-editorGhostText-background", + "--vscode-editorGhostText-border", + "--vscode-editorGhostText-foreground", + "--vscode-editorGroup-border", + "--vscode-editorGroup-dropBackground", + "--vscode-editorGroup-dropIntoPromptBackground", + "--vscode-editorGroup-dropIntoPromptBorder", + "--vscode-editorGroup-dropIntoPromptForeground", + "--vscode-editorGroup-emptyBackground", + "--vscode-editorGroup-focusedEmptyBorder", + "--vscode-editorGroupHeader-border", + "--vscode-editorGroupHeader-noTabsBackground", + "--vscode-editorGroupHeader-tabsBackground", + "--vscode-editorGroupHeader-tabsBorder", + "--vscode-editorGutter-addedBackground", + "--vscode-editorGutter-background", + "--vscode-editorGutter-commentGlyphForground", + "--vscode-editorGutter-commentRangeForeground", + "--vscode-editorGutter-commentUnresolvedGlyphForeground", + "--vscode-editorGutter-deletedBackground", + "--vscode-editorGutter-foldingControlForeground", + "--vscode-editorGutter-modifiedBackground", + "--vscode-editorHint-border", + "--vscode-editorHint-foreground", + "--vscode-editorHoverWidget-background", + "--vscode-editorHoverWidget-border", + "--vscode-editorHoverWidget-foreground", + "--vscode-editorHoverWidget-highlightForeground", + "--vscode-editorHoverWidget-statusBarBackground", + "--vscode-editorIndentGuide-activeBackground", + "--vscode-editorIndentGuide-background", + "--vscode-editorInfo-background", + "--vscode-editorInfo-border", + "--vscode-editorInfo-foreground", + "--vscode-editorInlayHint-background", + "--vscode-editorInlayHint-foreground", + "--vscode-editorInlayHint-parameterBackground", + "--vscode-editorInlayHint-parameterForeground", + "--vscode-editorInlayHint-typeBackground", + "--vscode-editorInlayHint-typeForeground", + "--vscode-editorLightBulb-foreground", + "--vscode-editorLightBulbAutoFix-foreground", + "--vscode-editorLineNumber-activeForeground", + "--vscode-editorLineNumber-dimmedForeground", + "--vscode-editorLineNumber-foreground", + "--vscode-editorLink-activeForeground", + "--vscode-editorMarkerNavigation-background", + "--vscode-editorMarkerNavigationError-background", + "--vscode-editorMarkerNavigationError-headerBackground", + "--vscode-editorMarkerNavigationInfo-background", + "--vscode-editorMarkerNavigationInfo-headerBackground", + "--vscode-editorMarkerNavigationWarning-background", + "--vscode-editorMarkerNavigationWarning-headerBackground", + "--vscode-editorOverviewRuler-addedForeground", + "--vscode-editorOverviewRuler-background", + "--vscode-editorOverviewRuler-border", + "--vscode-editorOverviewRuler-bracketMatchForeground", + "--vscode-editorOverviewRuler-commonContentForeground", + "--vscode-editorOverviewRuler-currentContentForeground", + "--vscode-editorOverviewRuler-deletedForeground", + "--vscode-editorOverviewRuler-errorForeground", + "--vscode-editorOverviewRuler-findMatchForeground", + "--vscode-editorOverviewRuler-incomingContentForeground", + "--vscode-editorOverviewRuler-infoForeground", + "--vscode-editorOverviewRuler-modifiedForeground", + "--vscode-editorOverviewRuler-rangeHighlightForeground", + "--vscode-editorOverviewRuler-selectionHighlightForeground", + "--vscode-editorOverviewRuler-warningForeground", + "--vscode-editorOverviewRuler-wordHighlightForeground", + "--vscode-editorOverviewRuler-wordHighlightStrongForeground", + "--vscode-editorOverviewRuler-wordHighlightTextForeground", + "--vscode-editorPane-background", + "--vscode-editorRuler-foreground", + "--vscode-editorStickyScroll-background", + "--vscode-editorStickyScrollHover-background", + "--vscode-editorSuggestWidget-background", + "--vscode-editorSuggestWidget-border", + "--vscode-editorSuggestWidget-focusHighlightForeground", + "--vscode-editorSuggestWidget-foreground", + "--vscode-editorSuggestWidget-highlightForeground", + "--vscode-editorSuggestWidget-selectedBackground", + "--vscode-editorSuggestWidget-selectedForeground", + "--vscode-editorSuggestWidget-selectedIconForeground", + "--vscode-editorSuggestWidgetStatus-foreground", + "--vscode-editorUnicodeHighlight-background", + "--vscode-editorUnicodeHighlight-border", + "--vscode-editorUnnecessaryCode-border", + "--vscode-editorUnnecessaryCode-opacity", + "--vscode-editorWarning-background", + "--vscode-editorWarning-border", + "--vscode-editorWarning-foreground", + "--vscode-editorWhitespace-foreground", + "--vscode-editorWidget-background", + "--vscode-editorWidget-border", + "--vscode-editorWidget-foreground", + "--vscode-editorWidget-resizeBorder", + "--vscode-errorForeground", + "--vscode-extensionBadge-remoteBackground", + "--vscode-extensionBadge-remoteForeground", + "--vscode-extensionButton-background", + "--vscode-extensionButton-foreground", + "--vscode-extensionButton-hoverBackground", + "--vscode-extensionButton-prominentBackground", + "--vscode-extensionButton-prominentForeground", + "--vscode-extensionButton-prominentHoverBackground", + "--vscode-extensionButton-separator", + "--vscode-extensionIcon-preReleaseForeground", + "--vscode-extensionIcon-sponsorForeground", + "--vscode-extensionIcon-starForeground", + "--vscode-extensionIcon-verifiedForeground", + "--vscode-focusBorder", + "--vscode-foreground", + "--vscode-icon-foreground", + "--vscode-input-background", + "--vscode-input-border", + "--vscode-input-foreground", + "--vscode-input-placeholderForeground", + "--vscode-inputOption-activeBackground", + "--vscode-inputOption-activeBorder", + "--vscode-inputOption-activeForeground", + "--vscode-inputOption-hoverBackground", + "--vscode-inputValidation-errorBackground", + "--vscode-inputValidation-errorBorder", + "--vscode-inputValidation-errorForeground", + "--vscode-inputValidation-infoBackground", + "--vscode-inputValidation-infoBorder", + "--vscode-inputValidation-infoForeground", + "--vscode-inputValidation-warningBackground", + "--vscode-inputValidation-warningBorder", + "--vscode-inputValidation-warningForeground", + "--vscode-interactive-responseActiveBackground", + "--vscode-interactive-responseBackground", + "--vscode-interactive-responseBorder", + "--vscode-interactiveEditor-border", + "--vscode-interactiveEditor-shadow", + "--vscode-interactiveEditorInput-background", + "--vscode-interactiveEditorInput-border", + "--vscode-interactiveEditorInput-focusBorder", + "--vscode-interactiveEditorInput-placeholderForeground", + "--vscode-keybindingLabel-background", + "--vscode-keybindingLabel-border", + "--vscode-keybindingLabel-bottomBorder", + "--vscode-keybindingLabel-foreground", + "--vscode-keybindingTable-headerBackground", + "--vscode-keybindingTable-rowsBackground", + "--vscode-list-activeSelectionBackground", + "--vscode-list-activeSelectionForeground", + "--vscode-list-activeSelectionIconForeground", + "--vscode-list-deemphasizedForeground", + "--vscode-list-dropBackground", + "--vscode-list-errorForeground", + "--vscode-list-filterMatchBackground", + "--vscode-list-filterMatchBorder", + "--vscode-list-focusAndSelectionOutline", + "--vscode-list-focusBackground", + "--vscode-list-focusForeground", + "--vscode-list-focusHighlightForeground", + "--vscode-list-focusOutline", + "--vscode-list-highlightForeground", + "--vscode-list-hoverBackground", + "--vscode-list-hoverForeground", + "--vscode-list-inactiveFocusBackground", + "--vscode-list-inactiveFocusOutline", + "--vscode-list-inactiveSelectionBackground", + "--vscode-list-inactiveSelectionForeground", + "--vscode-list-inactiveSelectionIconForeground", + "--vscode-list-invalidItemForeground", + "--vscode-list-warningForeground", + "--vscode-listFilterWidget-background", + "--vscode-listFilterWidget-noMatchesOutline", + "--vscode-listFilterWidget-outline", + "--vscode-listFilterWidget-shadow", + "--vscode-menu-background", + "--vscode-menu-border", + "--vscode-menu-foreground", + "--vscode-menu-selectionBackground", + "--vscode-menu-selectionBorder", + "--vscode-menu-selectionForeground", + "--vscode-menu-separatorBackground", + "--vscode-menubar-selectionBackground", + "--vscode-menubar-selectionBorder", + "--vscode-menubar-selectionForeground", + "--vscode-merge-border", + "--vscode-merge-commonContentBackground", + "--vscode-merge-commonHeaderBackground", + "--vscode-merge-currentContentBackground", + "--vscode-merge-currentHeaderBackground", + "--vscode-merge-incomingContentBackground", + "--vscode-merge-incomingHeaderBackground", + "--vscode-mergeEditor-change-background", + "--vscode-mergeEditor-change-word-background", + "--vscode-mergeEditor-changeBase-background", + "--vscode-mergeEditor-changeBase-word-background", + "--vscode-mergeEditor-conflict-handled-minimapOverViewRuler", + "--vscode-mergeEditor-conflict-handledFocused-border", + "--vscode-mergeEditor-conflict-handledUnfocused-border", + "--vscode-mergeEditor-conflict-input1-background", + "--vscode-mergeEditor-conflict-input2-background", + "--vscode-mergeEditor-conflict-unhandled-minimapOverViewRuler", + "--vscode-mergeEditor-conflict-unhandledFocused-border", + "--vscode-mergeEditor-conflict-unhandledUnfocused-border", + "--vscode-mergeEditor-conflictingLines-background", + "--vscode-minimap-background", + "--vscode-minimap-errorHighlight", + "--vscode-minimap-findMatchHighlight", + "--vscode-minimap-foregroundOpacity", + "--vscode-minimap-selectionHighlight", + "--vscode-minimap-selectionOccurrenceHighlight", + "--vscode-minimap-warningHighlight", + "--vscode-minimapGutter-addedBackground", + "--vscode-minimapGutter-deletedBackground", + "--vscode-minimapGutter-modifiedBackground", + "--vscode-minimapSlider-activeBackground", + "--vscode-minimapSlider-background", + "--vscode-minimapSlider-hoverBackground", + "--vscode-notebook-cellBorderColor", + "--vscode-notebook-cellEditorBackground", + "--vscode-notebook-cellHoverBackground", + "--vscode-notebook-cellInsertionIndicator", + "--vscode-notebook-cellStatusBarItemHoverBackground", + "--vscode-notebook-cellToolbarSeparator", + "--vscode-notebook-editorBackground", + "--vscode-notebook-focusedCellBackground", + "--vscode-notebook-focusedCellBorder", + "--vscode-notebook-focusedEditorBorder", + "--vscode-notebook-inactiveFocusedCellBorder", + "--vscode-notebook-inactiveSelectedCellBorder", + "--vscode-notebook-outputContainerBackgroundColor", + "--vscode-notebook-outputContainerBorderColor", + "--vscode-notebook-selectedCellBackground", + "--vscode-notebook-selectedCellBorder", + "--vscode-notebook-symbolHighlightBackground", + "--vscode-notebookEditorOverviewRuler-runningCellForeground", + "--vscode-notebookScrollbarSlider-activeBackground", + "--vscode-notebookScrollbarSlider-background", + "--vscode-notebookScrollbarSlider-hoverBackground", + "--vscode-notebookStatusErrorIcon-foreground", + "--vscode-notebookStatusRunningIcon-foreground", + "--vscode-notebookStatusSuccessIcon-foreground", + "--vscode-notificationCenter-border", + "--vscode-notificationCenterHeader-background", + "--vscode-notificationCenterHeader-foreground", + "--vscode-notificationLink-foreground", + "--vscode-notificationToast-border", + "--vscode-notifications-background", + "--vscode-notifications-border", + "--vscode-notifications-foreground", + "--vscode-notificationsErrorIcon-foreground", + "--vscode-notificationsInfoIcon-foreground", + "--vscode-notificationsWarningIcon-foreground", + "--vscode-panel-background", + "--vscode-panel-border", + "--vscode-panel-dropBorder", + "--vscode-panelInput-border", + "--vscode-panelSection-border", + "--vscode-panelSection-dropBackground", + "--vscode-panelSectionHeader-background", + "--vscode-panelSectionHeader-border", + "--vscode-panelSectionHeader-foreground", + "--vscode-panelTitle-activeBorder", + "--vscode-panelTitle-activeForeground", + "--vscode-panelTitle-inactiveForeground", + "--vscode-peekView-border", + "--vscode-peekViewEditor-background", + "--vscode-peekViewEditor-matchHighlightBackground", + "--vscode-peekViewEditor-matchHighlightBorder", + "--vscode-peekViewEditorGutter-background", + "--vscode-peekViewEditorStickyScroll-background", + "--vscode-peekViewResult-background", + "--vscode-peekViewResult-fileForeground", + "--vscode-peekViewResult-lineForeground", + "--vscode-peekViewResult-matchHighlightBackground", + "--vscode-peekViewResult-selectionBackground", + "--vscode-peekViewResult-selectionForeground", + "--vscode-peekViewTitle-background", + "--vscode-peekViewTitleDescription-foreground", + "--vscode-peekViewTitleLabel-foreground", + "--vscode-pickerGroup-border", + "--vscode-pickerGroup-foreground", + "--vscode-ports-iconRunningProcessForeground", + "--vscode-problemsErrorIcon-foreground", + "--vscode-problemsInfoIcon-foreground", + "--vscode-problemsWarningIcon-foreground", + "--vscode-profileBadge-background", + "--vscode-profileBadge-foreground", + "--vscode-progressBar-background", + "--vscode-quickInput-background", + "--vscode-quickInput-foreground", + "--vscode-quickInput-list-focusBackground", + "--vscode-quickInputList-focusBackground", + "--vscode-quickInputList-focusForeground", + "--vscode-quickInputList-focusIconForeground", + "--vscode-quickInputTitle-background", + "--vscode-sash-hoverBorder", + "--vscode-scm-providerBorder", + "--vscode-scrollbar-shadow", + "--vscode-scrollbarSlider-activeBackground", + "--vscode-scrollbarSlider-background", + "--vscode-scrollbarSlider-hoverBackground", + "--vscode-search-resultsInfoForeground", + "--vscode-searchEditor-findMatchBackground", + "--vscode-searchEditor-findMatchBorder", + "--vscode-searchEditor-textInputBorder", + "--vscode-selection-background", + "--vscode-settings-checkboxBackground", + "--vscode-settings-checkboxBorder", + "--vscode-settings-checkboxForeground", + "--vscode-settings-dropdownBackground", + "--vscode-settings-dropdownBorder", + "--vscode-settings-dropdownForeground", + "--vscode-settings-dropdownListBorder", + "--vscode-settings-focusedRowBackground", + "--vscode-settings-focusedRowBorder", + "--vscode-settings-headerBorder", + "--vscode-settings-headerForeground", + "--vscode-settings-modifiedItemIndicator", + "--vscode-settings-numberInputBackground", + "--vscode-settings-numberInputBorder", + "--vscode-settings-numberInputForeground", + "--vscode-settings-rowHoverBackground", + "--vscode-settings-sashBorder", + "--vscode-settings-settingsHeaderHoverForeground", + "--vscode-settings-textInputBackground", + "--vscode-settings-textInputBorder", + "--vscode-settings-textInputForeground", + "--vscode-sideBar-background", + "--vscode-sideBar-border", + "--vscode-sideBar-dropBackground", + "--vscode-sideBar-foreground", + "--vscode-sideBarSectionHeader-background", + "--vscode-sideBarSectionHeader-border", + "--vscode-sideBarSectionHeader-foreground", + "--vscode-sideBarTitle-foreground", + "--vscode-sideBySideEditor-horizontalBorder", + "--vscode-sideBySideEditor-verticalBorder", + "--vscode-statusBar-background", + "--vscode-statusBar-border", + "--vscode-statusBar-debuggingBackground", + "--vscode-statusBar-debuggingBorder", + "--vscode-statusBar-debuggingForeground", + "--vscode-statusBar-focusBorder", + "--vscode-statusBar-foreground", + "--vscode-statusBar-noFolderBackground", + "--vscode-statusBar-noFolderBorder", + "--vscode-statusBar-noFolderForeground", + "--vscode-statusBarItem-activeBackground", + "--vscode-statusBarItem-compactHoverBackground", + "--vscode-statusBarItem-errorBackground", + "--vscode-statusBarItem-errorForeground", + "--vscode-statusBarItem-focusBorder", + "--vscode-statusBarItem-hoverBackground", + "--vscode-statusBarItem-prominentBackground", + "--vscode-statusBarItem-prominentForeground", + "--vscode-statusBarItem-prominentHoverBackground", + "--vscode-statusBarItem-remoteBackground", + "--vscode-statusBarItem-remoteForeground", + "--vscode-statusBarItem-warningBackground", + "--vscode-statusBarItem-warningForeground", + "--vscode-symbolIcon-arrayForeground", + "--vscode-symbolIcon-booleanForeground", + "--vscode-symbolIcon-classForeground", + "--vscode-symbolIcon-colorForeground", + "--vscode-symbolIcon-constantForeground", + "--vscode-symbolIcon-constructorForeground", + "--vscode-symbolIcon-enumeratorForeground", + "--vscode-symbolIcon-enumeratorMemberForeground", + "--vscode-symbolIcon-eventForeground", + "--vscode-symbolIcon-fieldForeground", + "--vscode-symbolIcon-fileForeground", + "--vscode-symbolIcon-folderForeground", + "--vscode-symbolIcon-functionForeground", + "--vscode-symbolIcon-interfaceForeground", + "--vscode-symbolIcon-keyForeground", + "--vscode-symbolIcon-keywordForeground", + "--vscode-symbolIcon-methodForeground", + "--vscode-symbolIcon-moduleForeground", + "--vscode-symbolIcon-namespaceForeground", + "--vscode-symbolIcon-nullForeground", + "--vscode-symbolIcon-numberForeground", + "--vscode-symbolIcon-objectForeground", + "--vscode-symbolIcon-operatorForeground", + "--vscode-symbolIcon-packageForeground", + "--vscode-symbolIcon-propertyForeground", + "--vscode-symbolIcon-referenceForeground", + "--vscode-symbolIcon-snippetForeground", + "--vscode-symbolIcon-stringForeground", + "--vscode-symbolIcon-structForeground", + "--vscode-symbolIcon-textForeground", + "--vscode-symbolIcon-typeParameterForeground", + "--vscode-symbolIcon-unitForeground", + "--vscode-symbolIcon-variableForeground", + "--vscode-tab-activeBackground", + "--vscode-tab-activeBorder", + "--vscode-tab-activeBorderTop", + "--vscode-tab-activeForeground", + "--vscode-tab-activeModifiedBorder", + "--vscode-tab-border", + "--vscode-tab-hoverBackground", + "--vscode-tab-hoverBorder", + "--vscode-tab-hoverForeground", + "--vscode-tab-inactiveBackground", + "--vscode-tab-inactiveForeground", + "--vscode-tab-inactiveModifiedBorder", + "--vscode-tab-lastPinnedBorder", + "--vscode-tab-unfocusedActiveBackground", + "--vscode-tab-unfocusedActiveBorder", + "--vscode-tab-unfocusedActiveBorderTop", + "--vscode-tab-unfocusedActiveForeground", + "--vscode-tab-unfocusedActiveModifiedBorder", + "--vscode-tab-unfocusedHoverBackground", + "--vscode-tab-unfocusedHoverBorder", + "--vscode-tab-unfocusedHoverForeground", + "--vscode-tab-unfocusedInactiveBackground", + "--vscode-tab-unfocusedInactiveForeground", + "--vscode-tab-unfocusedInactiveModifiedBorder", + "--vscode-terminal-ansiBlack", + "--vscode-terminal-ansiBlue", + "--vscode-terminal-ansiBrightBlack", + "--vscode-terminal-ansiBrightBlue", + "--vscode-terminal-ansiBrightCyan", + "--vscode-terminal-ansiBrightGreen", + "--vscode-terminal-ansiBrightMagenta", + "--vscode-terminal-ansiBrightRed", + "--vscode-terminal-ansiBrightWhite", + "--vscode-terminal-ansiBrightYellow", + "--vscode-terminal-ansiCyan", + "--vscode-terminal-ansiGreen", + "--vscode-terminal-ansiMagenta", + "--vscode-terminal-ansiRed", + "--vscode-terminal-ansiWhite", + "--vscode-terminal-ansiYellow", + "--vscode-terminal-background", + "--vscode-terminal-border", + "--vscode-terminal-dropBackground", + "--vscode-terminal-findMatchBackground", + "--vscode-terminal-findMatchBorder", + "--vscode-terminal-findMatchHighlightBackground", + "--vscode-terminal-findMatchHighlightBorder", + "--vscode-terminal-foreground", + "--vscode-terminal-hoverHighlightBackground", + "--vscode-terminal-inactiveSelectionBackground", + "--vscode-terminal-selectionBackground", + "--vscode-terminal-selectionForeground", + "--vscode-terminal-tab-activeBorder", + "--vscode-terminalCommandDecoration-defaultBackground", + "--vscode-terminalCommandDecoration-errorBackground", + "--vscode-terminalCommandDecoration-successBackground", + "--vscode-terminalCursor-background", + "--vscode-terminalCursor-foreground", + "--vscode-terminalOverviewRuler-cursorForeground", + "--vscode-terminalOverviewRuler-findMatchForeground", + "--vscode-testing-iconErrored", + "--vscode-testing-iconFailed", + "--vscode-testing-iconPassed", + "--vscode-testing-iconQueued", + "--vscode-testing-iconSkipped", + "--vscode-testing-iconUnset", + "--vscode-testing-message-error-decorationForeground", + "--vscode-testing-message-error-lineBackground", + "--vscode-testing-message-info-decorationForeground", + "--vscode-testing-message-info-lineBackground", + "--vscode-testing-peekBorder", + "--vscode-testing-peekHeaderBackground", + "--vscode-testing-runAction", + "--vscode-textBlockQuote-background", + "--vscode-textBlockQuote-border", + "--vscode-textCodeBlock-background", + "--vscode-textLink-activeForeground", + "--vscode-textLink-foreground", + "--vscode-textPreformat-foreground", + "--vscode-textSeparator-foreground", + "--vscode-titleBar-activeBackground", + "--vscode-titleBar-activeForeground", + "--vscode-titleBar-border", + "--vscode-titleBar-inactiveBackground", + "--vscode-titleBar-inactiveForeground", + "--vscode-toolbar-activeBackground", + "--vscode-toolbar-hoverBackground", + "--vscode-toolbar-hoverOutline", + "--vscode-tree-inactiveIndentGuidesStroke", + "--vscode-tree-indentGuidesStroke", + "--vscode-tree-tableColumnsBorder", + "--vscode-tree-tableOddRowsBackground", + "--vscode-walkThrough-embeddedEditorBackground", + "--vscode-walkthrough-stepTitle-foreground", + "--vscode-welcomePage-background", + "--vscode-welcomePage-progress-background", + "--vscode-welcomePage-progress-foreground", + "--vscode-welcomePage-tileBackground", + "--vscode-welcomePage-tileBorder", + "--vscode-welcomePage-tileHoverBackground", + "--vscode-widget-border", + "--vscode-widget-shadow", + "--vscode-window-activeBorder", + "--vscode-window-inactiveBorder" + ], + "others": [ + "--background-dark", + "--background-light", + "--dropdown-padding-bottom", + "--dropdown-padding-top", + "--insert-border-color", + "--last-tab-margin-right", + "--monaco-monospace-font", + "--monaco-monospace-font", + "--notebook-cell-input-preview-font-family", + "--notebook-cell-input-preview-font-size", + "--notebook-cell-output-font-size", + "--notebook-diff-view-viewport-slider", + "--notebook-find-horizontal-padding", + "--notebook-find-width", + "--outline-element-color", + "--separator-border", + "--status-border-top-color", + "--tab-border-bottom-color", + "--tab-border-top-color", + "--tab-dirty-border-top-color", + "--tabs-border-bottom-color", + "--testMessageDecorationFontFamily", + "--testMessageDecorationFontSize", + "--title-border-bottom-color", + "--vscode-editorCodeLens-fontFamily", + "--vscode-editorCodeLens-fontFamilyDefault", + "--vscode-editorCodeLens-fontFeatureSettings", + "--vscode-editorCodeLens-fontSize", + "--vscode-editorCodeLens-lineHeight", + "--vscode-explorer-align-offset-margin-left", + "--vscode-interactive-result-editor-background-color", + "--vscode-repl-font-family", + "--vscode-repl-font-size-for-twistie", + "--vscode-repl-font-size", + "--vscode-repl-line-height", + "--vscode-sash-hover-size", + "--vscode-sash-size", + "--window-border-color", + "--workspace-trust-check-color", + "--workspace-trust-selected-color", + "--workspace-trust-unselected-color", + "--workspace-trust-x-color", + "--z-index-notebook-cell-bottom-toolbar-container", + "--z-index-notebook-cell-editor-outline", + "--z-index-notebook-cell-expand-part-button", + "--z-index-notebook-cell-output-toolbar", + "--z-index-notebook-cell-status", + "--z-index-notebook-cell-toolbar-dropdown-active", + "--z-index-notebook-cell-toolbar", + "--z-index-notebook-folding-indicator", + "--z-index-notebook-input-collapse-condicon", + "--z-index-notebook-list-insertion-indicator", + "--z-index-notebook-output", + "--z-index-notebook-progress-bar", + "--z-index-notebook-scrollbar", + "--z-index-run-button-container", + "--zoom-factor" + ] +} \ No newline at end of file diff --git a/build/stylelint.js b/build/stylelint.js index a4f0eca8f7a..5b1668ea2e4 100644 --- a/build/stylelint.js +++ b/build/stylelint.js @@ -13,25 +13,37 @@ module.exports = gulpstylelint; /** use regex on lines */ function gulpstylelint(reporter) { const variableValidator = getVariableNameValidator(); + let errorCount = 0; return es.through(function (file) { const lines = file.__lines || file.contents.toString('utf8').split(/\r\n|\r|\n/); file.__lines = lines; lines.forEach((line, i) => { variableValidator(line, unknownVariable => { - reporter(file.relative + '(' + (i + 1) + ',1): Unknown variable: ' + unknownVariable); + reporter(file.relative + '(' + (i + 1) + ',1): Unknown variable: ' + unknownVariable, true); + errorCount++; }); }); this.emit('data', file); - }); + }, function () { + if (errorCount > 0) { + reporter('All valid variable names are in `build/lib/stylelint/vscode-known-variables.json`\nTo update that file, run `./scripts/test-documentation.sh|bat.`', false); + } + this.emit('end'); + } + ); } function stylelint() { return vfs .src(stylelintFilter, { base: '.', follow: true, allowEmpty: true }) - .pipe(gulpstylelint(error => { - console.error(error); + .pipe(gulpstylelint((message, isError) => { + if (isError) { + console.error(message); + } else { + console.info(message); + } })) .pipe(es.through(function () { /* noop, important for the stream to end */ })); } diff --git a/src/vs/workbench/contrib/themes/test/node/colorRegistry.releaseTest.ts b/src/vs/workbench/contrib/themes/test/node/colorRegistry.releaseTest.ts index 8494d16414c..ee279e63089 100644 --- a/src/vs/workbench/contrib/themes/test/node/colorRegistry.releaseTest.ts +++ b/src/vs/workbench/contrib/themes/test/node/colorRegistry.releaseTest.ts @@ -38,7 +38,7 @@ const knwonVariablesFileName = 'vscode-known-variables.json'; suite('Color Registry', function () { - test('all colors listed in ./lib/stylelint/vscode-variables.json', async function () { + test(`update colors in ${knwonVariablesFileName}`, async function () { const varFilePath = FileAccess.asFileUri(`vs/../../build/lib/stylelint/${knwonVariablesFileName}`).fsPath; const content = (await pfs.Promises.readFile(varFilePath)).toString(); @@ -50,6 +50,7 @@ suite('Color Registry', function () { const colors = new Set(colorsArray); + const updatedColors = []; const missing = []; const themingRegistry = Registry.as(Extensions.ColorContribution); for (const color of themingRegistry.getColors()) { @@ -62,20 +63,25 @@ suite('Color Registry', function () { } else { colors.delete(id); } + updatedColors.push(id); } const superfluousKeys = [...colors.keys()]; let errorText = ''; if (missing.length > 0) { - errorText += `\n\Add the following colors:\n\n${JSON.stringify(missing, undefined, '\t')}\n`; + errorText += `\n\Adding the following colors:\n\n${JSON.stringify(missing, undefined, '\t')}\n`; } if (superfluousKeys.length > 0) { - errorText += `\n\Remove the following colors:\n\n${superfluousKeys.join('\n')}\n`; + errorText += `\n\Removing the following colors:\n\n${superfluousKeys.join('\n')}\n`; } if (errorText.length > 0) { - assert.fail(`\n\nOpen ${path.normalize(varFilePath)}\n\n${errorText}\n`); + updatedColors.sort(); + variablesInfo.colors = updatedColors; + await pfs.Promises.writeFile(varFilePath, JSON.stringify(variablesInfo, undefined, '\t')); + + assert.fail(`\n\Updating ${path.normalize(varFilePath)}.\nPlease verify and commit.\n\n${errorText}\n`); } });