From a64886b66cbe25b5f020979806210b6a809f5166 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Fri, 3 May 2019 11:43:19 +0200 Subject: [PATCH] add code lens cache to standalone editor --- src/vs/editor/contrib/codelens/codeLensCache.ts | 2 +- src/vs/editor/standalone/browser/standaloneServices.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vs/editor/contrib/codelens/codeLensCache.ts b/src/vs/editor/contrib/codelens/codeLensCache.ts index 0119def5207..6027dec365d 100644 --- a/src/vs/editor/contrib/codelens/codeLensCache.ts +++ b/src/vs/editor/contrib/codelens/codeLensCache.ts @@ -34,7 +34,7 @@ class CacheItem { ) { } } -class CodeLensCache implements ICodeLensCache { +export class CodeLensCache implements ICodeLensCache { _serviceBrand: any; diff --git a/src/vs/editor/standalone/browser/standaloneServices.ts b/src/vs/editor/standalone/browser/standaloneServices.ts index 97fbd6d117e..0f3d46ac1a2 100644 --- a/src/vs/editor/standalone/browser/standaloneServices.ts +++ b/src/vs/editor/standalone/browser/standaloneServices.ts @@ -48,6 +48,7 @@ import { ISuggestMemoryService, SuggestMemoryService } from 'vs/editor/contrib/s import { IAccessibilityService } from 'vs/platform/accessibility/common/accessibility'; import { BrowserAccessibilityService } from 'vs/platform/accessibility/common/accessibilityService'; import { ILayoutService } from 'vs/platform/layout/browser/layoutService'; +import { ICodeLensCache, CodeLensCache } from 'vs/editor/contrib/codelens/codeLensCache'; export interface IEditorOverrideServices { [index: string]: any; @@ -159,6 +160,7 @@ export module StaticServices { export const suggestMemoryService = define(ISuggestMemoryService, (o) => new SuggestMemoryService(storageService.get(o), configurationService.get(o))); + export const codeLensCacheService = define(ICodeLensCache, (o) => new CodeLensCache(storageService.get(o))); } export class DynamicStandaloneServices extends Disposable {