提交 6ee1fb1f 编写于 作者: M Martin Aeschlimann

colorCustomizations: Do we need editorLinkForeground? Fixes #25474

上级 bf8f7326
......@@ -24,7 +24,7 @@ import { getLinks, Link } from 'vs/editor/contrib/links/common/links';
import { IDisposable, dispose } from 'vs/base/common/lifecycle';
import { editorContribution } from 'vs/editor/browser/editorBrowserExtensions';
import { registerThemingParticipant } from 'vs/platform/theme/common/themeService';
import { editorLinkForeground, editorActiveLinkForeground } from 'vs/platform/theme/common/colorRegistry';
import { editorActiveLinkForeground } from 'vs/platform/theme/common/colorRegistry';
import { Position } from 'vs/editor/common/core/position';
class LinkOccurence {
......@@ -350,8 +350,4 @@ registerThemingParticipant((theme, collector) => {
if (activeLinkForeground) {
collector.addRule(`.monaco-editor.${theme.selector} .detected-link-active { color: ${activeLinkForeground} !important; }`);
}
let linkForeground = theme.getColor(editorLinkForeground);
if (linkForeground) {
collector.addRule(`.monaco-editor.${theme.selector} .detected-link { color: ${linkForeground} !important; }`);
}
});
\ No newline at end of file
......@@ -195,7 +195,6 @@ export const editorFindRangeHighlight = registerColor('editor.findRangeHighlight
* Editor link colors
*/
export const editorActiveLinkForeground = registerColor('editorLink.activeForeground', { dark: '#4E94CE', light: Color.black, hc: Color.cyan }, nls.localize('activeLinkForeground', 'Color of active links.'));
export const editorLinkForeground = registerColor('editorLink.foreground', { dark: null, light: null, hc: null }, nls.localize('linkForeground', 'Color of links.'));
/**
* Find widget
......
......@@ -57,8 +57,6 @@ addSettingMapping('selectionHighlightColor', colorRegistry.editorSelectionHighli
addSettingMapping('findMatchHighlight', colorRegistry.editorFindMatchHighlight);
addSettingMapping('currentFindMatchHighlight', colorRegistry.editorFindMatch);
addSettingMapping('hoverHighlight', editorHoverHighlight);
addSettingMapping('hoverHighlight', editorHoverHighlight);
addSettingMapping('linkForeground', colorRegistry.editorLinkForeground);
addSettingMapping('wordHighlight', wordHighlighter.editorWordHighlight);
addSettingMapping('wordHighlightStrong', wordHighlighter.editorWordHighlightStrong);
addSettingMapping('findRangeHighlight', colorRegistry.editorFindRangeHighlight);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册