diff --git a/src/vs/editor/common/modes/snippetsRegistry.ts b/src/vs/editor/common/modes/snippetsRegistry.ts index f88ccf926eb..6b861eca8d2 100644 --- a/src/vs/editor/common/modes/snippetsRegistry.ts +++ b/src/vs/editor/common/modes/snippetsRegistry.ts @@ -40,7 +40,7 @@ export interface ISnippet { codeSnippet: string; } -class SnippetsRegistry { +class SnippetsRegistry implements ISnippetsRegistry { private _snippets: { [modeId: string]: { [owner: string]: ISnippet[] } } = Object.create(null); @@ -111,6 +111,6 @@ export function getNonWhitespacePrefix(model: IReadOnlyModel, position: IPositio return ''; } -const snippetsRegistry = new SnippetsRegistry(); +const snippetsRegistry: ISnippetsRegistry = new SnippetsRegistry(); Registry.add(Extensions.Snippets, snippetsRegistry);