Skip to content

Commit 5250f42

Browse files
committed
chore -a little less registerThemingParticipant
1 parent bccd9b9 commit 5250f42

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

src/vs/editor/contrib/gotoError/gotoErrorWidget.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ import { ILabelService } from 'vs/platform/label/common/label';
2929
import { IMarker, IRelatedInformation, MarkerSeverity } from 'vs/platform/markers/common/markers';
3030
import { IOpenerService } from 'vs/platform/opener/common/opener';
3131
import { SeverityIcon } from 'vs/platform/severityIcon/common/severityIcon';
32-
import { contrastBorder, editorBackground, editorErrorBorder, editorErrorForeground, editorInfoBorder, editorInfoForeground, editorWarningBorder, editorWarningForeground, oneOf, registerColor, textLinkActiveForeground, textLinkForeground, transparent } from 'vs/platform/theme/common/colorRegistry';
33-
import { IColorTheme, IThemeService, registerThemingParticipant } from 'vs/platform/theme/common/themeService';
32+
import { contrastBorder, editorBackground, editorErrorBorder, editorErrorForeground, editorInfoBorder, editorInfoForeground, editorWarningBorder, editorWarningForeground, oneOf, registerColor, transparent } from 'vs/platform/theme/common/colorRegistry';
33+
import { IColorTheme, IThemeService } from 'vs/platform/theme/common/themeService';
3434

3535
class MessageWidget {
3636

@@ -412,14 +412,3 @@ export const editorMarkerNavigationInfo = registerColor('editorMarkerNavigationI
412412
export const editorMarkerNavigationInfoHeader = registerColor('editorMarkerNavigationInfo.headerBackground', { dark: transparent(editorMarkerNavigationInfo, .1), light: transparent(editorMarkerNavigationInfo, .1), hc: null }, nls.localize('editorMarkerNavigationInfoHeaderBackground', 'Editor marker navigation widget info heading background.'));
413413

414414
export const editorMarkerNavigationBackground = registerColor('editorMarkerNavigation.background', { dark: editorBackground, light: editorBackground, hc: editorBackground }, nls.localize('editorMarkerNavigationBackground', 'Editor marker navigation widget background.'));
415-
416-
registerThemingParticipant((theme, collector) => {
417-
const linkFg = theme.getColor(textLinkForeground);
418-
if (linkFg) {
419-
collector.addRule(`.monaco-editor .marker-widget a.code-link span { color: ${linkFg}; }`);
420-
}
421-
const activeLinkFg = theme.getColor(textLinkActiveForeground);
422-
if (activeLinkFg) {
423-
collector.addRule(`.monaco-editor .marker-widget a.code-link span:hover { color: ${activeLinkFg}; }`);
424-
}
425-
});

src/vs/editor/contrib/gotoError/media/gotoErrorWidget.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@
6767
/** Hack to force underline to show **/
6868
border-bottom: 1px solid transparent;
6969
text-underline-position: under;
70+
color: var(--vscode-textLink-foreground);
71+
}
72+
73+
.monaco-editor .marker-widget .descriptioncontainer .message a.code-link > span {
74+
color: var(--vscode-textLink-activeForeground);
7075
}
7176

7277
.monaco-editor .marker-widget .descriptioncontainer .filename {

0 commit comments

Comments
 (0)