diff options
Diffstat (limited to 'src/vs/editor/test/common/mocks/mockMode.ts')
-rw-r--r-- | src/vs/editor/test/common/mocks/mockMode.ts | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/vs/editor/test/common/mocks/mockMode.ts b/src/vs/editor/test/common/mocks/mockMode.ts deleted file mode 100644 index 4ad2a686fbb..00000000000 --- a/src/vs/editor/test/common/mocks/mockMode.ts +++ /dev/null @@ -1,23 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -import { Event } from 'vs/base/common/event'; -import { Disposable } from 'vs/base/common/lifecycle'; -import { ModesRegistry } from 'vs/editor/common/languages/modesRegistry'; -import { ILanguageSelection } from 'vs/editor/common/languages/language'; - -export class MockMode extends Disposable { - constructor( - public readonly languageId: string - ) { - super(); - this._register(ModesRegistry.registerLanguage({ id: languageId })); - } -} - -export class StaticLanguageSelector implements ILanguageSelection { - readonly onDidChange: Event<string> = Event.None; - constructor(public readonly languageId: string) { } -} |