diff --git a/src/vs/editor/common/view/editorColorRegistry.ts b/src/vs/editor/common/view/editorColorRegistry.ts index 6fbc931f441ac456e6989f7082f1346085415e26..ef72179a5daf51faeecd6ae7cef36080152dd004 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 2f1ff9fc521a39bdd8e57276231f007d5059c528..533f5056835a867d049439659d7de66cd2dd1b35 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) {