Skip to content

Commit b601d96

Browse files
author
Miguel Solorio
committed
Move lightbulb workbench references to workbench layer microsoft#86940
1 parent 2ac96a7 commit b601d96

2 files changed

Lines changed: 26 additions & 5 deletions

File tree

src/vs/editor/contrib/codeAction/lightBulbWidget.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,7 @@ registerThemingParticipant((theme: ITheme, collector: ICssStyleCollector) => {
225225
const editorLightBulbForegroundColor = theme.getColor(editorLightBulbForeground);
226226
if (editorLightBulbForegroundColor) {
227227
collector.addRule(`
228-
.monaco-editor .contentWidgets .codicon-lightbulb,
229-
.monaco-workbench .markers-panel-container .codicon-lightbulb {
228+
.monaco-editor .contentWidgets .codicon-lightbulb {
230229
color: ${editorLightBulbForegroundColor};
231230
}`);
232231
}
@@ -235,8 +234,7 @@ registerThemingParticipant((theme: ITheme, collector: ICssStyleCollector) => {
235234
const editorLightBulbAutoFixForegroundColor = theme.getColor(editorLightBulbAutoFixForeground);
236235
if (editorLightBulbAutoFixForegroundColor) {
237236
collector.addRule(`
238-
.monaco-editor .contentWidgets .codicon-lightbulb-autofix,
239-
.monaco-workbench .markers-panel-container .codicon-lightbulb-autofix {
237+
.monaco-editor .contentWidgets .codicon-lightbulb-autofix {
240238
color: ${editorLightBulbAutoFixForegroundColor};
241239
}`);
242240
}

src/vs/workbench/contrib/markers/browser/markersPanel.ts

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { MarkersFilterActionViewItem, MarkersFilterAction, IMarkersFilterActionC
1818
import { IConfigurationService } from 'vs/platform/configuration/common/configuration';
1919
import Messages from 'vs/workbench/contrib/markers/browser/messages';
2020
import { RangeHighlightDecorations } from 'vs/workbench/browser/parts/editor/rangeDecorations';
21-
import { IThemeService } from 'vs/platform/theme/common/themeService';
21+
import { IThemeService, registerThemingParticipant, ITheme, ICssStyleCollector } from 'vs/platform/theme/common/themeService';
2222
import { ICodeEditor } from 'vs/editor/browser/editorBrowser';
2323
import { IMarkersWorkbenchService } from 'vs/workbench/contrib/markers/browser/markers';
2424
import { IStorageService, StorageScope } from 'vs/platform/storage/common/storage';
@@ -47,6 +47,7 @@ import { IListVirtualDelegate } from 'vs/base/browser/ui/list/list';
4747
import { IAccessibilityService } from 'vs/platform/accessibility/common/accessibility';
4848
import { PANEL_BACKGROUND } from 'vs/workbench/common/theme';
4949
import { KeyCode } from 'vs/base/common/keyCodes';
50+
import { editorLightBulbForeground, editorLightBulbAutoFixForeground } from 'vs/platform/theme/common/colorRegistry';
5051

5152
function createResourceMarkersIterator(resourceMarkers: ResourceMarkers): Iterator<ITreeElement<TreeElement>> {
5253
const markersIt = Iterator.fromArray(resourceMarkers.markers);
@@ -817,3 +818,25 @@ class MarkersTree extends WorkbenchObjectTree<TreeElement, FilterData> {
817818
}
818819

819820
}
821+
822+
registerThemingParticipant((theme: ITheme, collector: ICssStyleCollector) => {
823+
824+
// Lightbulb Icon
825+
const editorLightBulbForegroundColor = theme.getColor(editorLightBulbForeground);
826+
if (editorLightBulbForegroundColor) {
827+
collector.addRule(`
828+
.monaco-workbench .markers-panel-container .codicon-lightbulb {
829+
color: ${editorLightBulbForegroundColor};
830+
}`);
831+
}
832+
833+
// Lightbulb Auto Fix Icon
834+
const editorLightBulbAutoFixForegroundColor = theme.getColor(editorLightBulbAutoFixForeground);
835+
if (editorLightBulbAutoFixForegroundColor) {
836+
collector.addRule(`
837+
.monaco-workbench .markers-panel-container .codicon-lightbulb-autofix {
838+
color: ${editorLightBulbAutoFixForegroundColor};
839+
}`);
840+
}
841+
842+
});

0 commit comments

Comments
 (0)