Skip to content

Commit bd32dd5

Browse files
dmartzolaeschli
andauthored
Moves css rules from links.ts to links.css (microsoft#166258)
moves css rules from links.ts to links.css Co-authored-by: Martin Aeschlimann <[email protected]>
1 parent 207f26d commit bd32dd5

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/vs/editor/contrib/links/browser/links.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
.monaco-editor .detected-link-active {
77
text-decoration: underline;
88
text-underline-position: under;
9+
color: var(--vscode-editorLink-activeForeground) !important;
910
}
1011

1112
.monaco-editor .detected-link-active {

src/vs/editor/contrib/links/browser/links.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ import { getLinks, Link, LinksList } from 'vs/editor/contrib/links/browser/getLi
3030
import * as nls from 'vs/nls';
3131
import { INotificationService } from 'vs/platform/notification/common/notification';
3232
import { IOpenerService } from 'vs/platform/opener/common/opener';
33-
import { editorActiveLinkForeground } from 'vs/platform/theme/common/colorRegistry';
34-
import { registerThemingParticipant } from 'vs/platform/theme/common/themeService';
3533

3634
export class LinkDetector extends Disposable implements IEditorContribution {
3735

@@ -425,10 +423,3 @@ class OpenLinkAction extends EditorAction {
425423

426424
registerEditorContribution(LinkDetector.ID, LinkDetector);
427425
registerEditorAction(OpenLinkAction);
428-
429-
registerThemingParticipant((theme, collector) => {
430-
const activeLinkForeground = theme.getColor(editorActiveLinkForeground);
431-
if (activeLinkForeground) {
432-
collector.addRule(`.monaco-editor .detected-link-active { color: ${activeLinkForeground} !important; }`);
433-
}
434-
});

0 commit comments

Comments
 (0)