[theme] code lens color name fix

This commit is contained in:
Martin Aeschlimann 2017-05-08 21:22:54 +02:00
parent 96fc37f8d8
commit 7e4dc21175
2 changed files with 5 additions and 6 deletions

View file

@ -19,8 +19,7 @@ export const editorWhitespaces = registerColor('editorWhitespace.foreground', {
export const editorIndentGuides = registerColor('editorIndentGuide.background', { dark: editorWhitespaces, light: editorWhitespaces, hc: editorWhitespaces }, nls.localize('editorIndentGuides', 'Color of the editor indentation guides.'));
export const editorLineNumbers = registerColor('editorLineNumber.foreground', { dark: '#5A5A5A', light: '#2B91AF', hc: Color.white }, nls.localize('editorLineNumbers', 'Color of editor line numbers.'));
export const editorCodeLenseForeground = registerColor('editorCodeLense.foreground', { dark: '#999999', light: '#999999', hc: '#999999' }, nls.localize('editorCodeLenseForeground', 'Foreground color of editor code lenses'));
export const editorCodeLensForeground = registerColor('editorCodeLens.foreground', { dark: '#999999', light: '#999999', hc: '#999999' }, nls.localize('editorCodeLensForeground', 'Foreground color of editor code lenses'));
// contains all color rules that used to defined in editor/browser/widget/editor.css
registerThemingParticipant((theme, collector) => {

View file

@ -22,7 +22,7 @@ import * as editorBrowser from 'vs/editor/browser/editorBrowser';
import { editorContribution } from 'vs/editor/browser/editorBrowserExtensions';
import { ICodeLensData, getCodeLensData } from '../common/codelens';
import { IConfigurationChangedEvent } from 'vs/editor/common/config/editorOptions';
import { editorCodeLenseForeground } from "vs/editor/common/view/editorColorRegistry";
import { editorCodeLensForeground } from "vs/editor/common/view/editorColorRegistry";
import { registerThemingParticipant } from "vs/platform/theme/common/themeService";
import { editorActiveLinkForeground } from "vs/platform/theme/common/colorRegistry";
@ -628,9 +628,9 @@ export class CodeLensContribution implements editorCommon.IEditorContribution {
}
registerThemingParticipant((theme, collector) => {
let codeLenseForeground = theme.getColor(editorCodeLenseForeground);
if (codeLenseForeground) {
collector.addRule(`.monaco-editor .codelens-decoration { color: ${codeLenseForeground}; }`);
let codeLensForeground = theme.getColor(editorCodeLensForeground);
if (codeLensForeground) {
collector.addRule(`.monaco-editor .codelens-decoration { color: ${codeLensForeground}; }`);
}
let activeLinkForeground = theme.getColor(editorActiveLinkForeground);
if (activeLinkForeground) {