Skip to content

Commit 6ee1fb1

Browse files
committed
colorCustomizations: Do we need editorLinkForeground? Fixes microsoft#25474
1 parent bf8f732 commit 6ee1fb1

3 files changed

Lines changed: 1 addition & 8 deletions

File tree

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { getLinks, Link } from 'vs/editor/contrib/links/common/links';
2424
import { IDisposable, dispose } from 'vs/base/common/lifecycle';
2525
import { editorContribution } from 'vs/editor/browser/editorBrowserExtensions';
2626
import { registerThemingParticipant } from 'vs/platform/theme/common/themeService';
27-
import { editorLinkForeground, editorActiveLinkForeground } from 'vs/platform/theme/common/colorRegistry';
27+
import { editorActiveLinkForeground } from 'vs/platform/theme/common/colorRegistry';
2828
import { Position } from 'vs/editor/common/core/position';
2929

3030
class LinkOccurence {
@@ -350,8 +350,4 @@ registerThemingParticipant((theme, collector) => {
350350
if (activeLinkForeground) {
351351
collector.addRule(`.monaco-editor.${theme.selector} .detected-link-active { color: ${activeLinkForeground} !important; }`);
352352
}
353-
let linkForeground = theme.getColor(editorLinkForeground);
354-
if (linkForeground) {
355-
collector.addRule(`.monaco-editor.${theme.selector} .detected-link { color: ${linkForeground} !important; }`);
356-
}
357353
});

src/vs/platform/theme/common/colorRegistry.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ export const editorFindRangeHighlight = registerColor('editor.findRangeHighlight
195195
* Editor link colors
196196
*/
197197
export const editorActiveLinkForeground = registerColor('editorLink.activeForeground', { dark: '#4E94CE', light: Color.black, hc: Color.cyan }, nls.localize('activeLinkForeground', 'Color of active links.'));
198-
export const editorLinkForeground = registerColor('editorLink.foreground', { dark: null, light: null, hc: null }, nls.localize('linkForeground', 'Color of links.'));
199198

200199
/**
201200
* Find widget

src/vs/workbench/services/themes/electron-browser/themeCompatibility.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ addSettingMapping('selectionHighlightColor', colorRegistry.editorSelectionHighli
5757
addSettingMapping('findMatchHighlight', colorRegistry.editorFindMatchHighlight);
5858
addSettingMapping('currentFindMatchHighlight', colorRegistry.editorFindMatch);
5959
addSettingMapping('hoverHighlight', editorHoverHighlight);
60-
addSettingMapping('hoverHighlight', editorHoverHighlight);
61-
addSettingMapping('linkForeground', colorRegistry.editorLinkForeground);
6260
addSettingMapping('wordHighlight', wordHighlighter.editorWordHighlight);
6361
addSettingMapping('wordHighlightStrong', wordHighlighter.editorWordHighlightStrong);
6462
addSettingMapping('findRangeHighlight', colorRegistry.editorFindRangeHighlight);

0 commit comments

Comments
 (0)