From 7e4dc21175d8f123e68ff2b896e4b19a213e56e7 Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Mon, 8 May 2017 21:22:54 +0200 Subject: [PATCH] [theme] code lens color name fix --- src/vs/editor/common/view/editorColorRegistry.ts | 3 +-- src/vs/editor/contrib/codelens/browser/codelens.ts | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/vs/editor/common/view/editorColorRegistry.ts b/src/vs/editor/common/view/editorColorRegistry.ts index 6fbc931f441..ef72179a5da 100644 --- a/src/vs/editor/common/view/editorColorRegistry.ts +++ b/src/vs/editor/common/view/editorColorRegistry.ts @@ -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) => { diff --git a/src/vs/editor/contrib/codelens/browser/codelens.ts b/src/vs/editor/contrib/codelens/browser/codelens.ts index 2f1ff9fc521..533f5056835 100644 --- a/src/vs/editor/contrib/codelens/browser/codelens.ts +++ b/src/vs/editor/contrib/codelens/browser/codelens.ts @@ -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) { -- GitLab