/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ 'use strict'; import Event from 'vs/base/common/event'; import {IDisposable} from 'vs/base/common/lifecycle'; import {TPromise} from 'vs/base/common/winjs.base'; import {ServiceIdentifier} from 'vs/platform/instantiation/common/instantiation'; import * as modes from 'vs/editor/common/modes'; import {IRichLanguageConfiguration} from 'vs/editor/common/modes/languageConfigurationRegistry'; import {IModeService, IModeLookupResult} from 'vs/editor/common/services/modeService'; export class MockModeService implements IModeService { serviceId: ServiceIdentifier = IModeService; onDidAddModes: Event = undefined; onDidCreateMode: Event = undefined; configureMode(modeName: string, options: any): void { throw new Error('Not implemented'); } configureModeById(modeId: string, options: any): void { throw new Error('Not implemented'); } configureAllModes(config:any): void { throw new Error('Not implemented'); } getConfigurationForMode(modeId:string): any { throw new Error('Not implemented'); } // --- reading isRegisteredMode(mimetypeOrModeId: string): boolean { throw new Error('Not implemented'); } isCompatMode(modeId: string): boolean { throw new Error('Not implemented'); } getRegisteredModes(): string[] { throw new Error('Not implemented'); } getRegisteredLanguageNames(): string[] { throw new Error('Not implemented'); } getExtensions(alias: string): string[] { throw new Error('Not implemented'); } getMimeForMode(modeId: string): string { throw new Error('Not implemented'); } getLanguageName(modeId:string): string { throw new Error('Not implemented'); } getModeIdForLanguageName(alias:string): string { throw new Error('Not implemented'); } getModeId(commaSeparatedMimetypesOrCommaSeparatedIds: string): string { throw new Error('Not implemented'); } getConfigurationFiles(modeId: string): string[] { throw new Error('Not implemented'); } // --- instantiation lookup(commaSeparatedMimetypesOrCommaSeparatedIds: string): IModeLookupResult[] { throw new Error('Not implemented'); } getMode(commaSeparatedMimetypesOrCommaSeparatedIds: string): modes.IMode { throw new Error('Not implemented'); } getOrCreateMode(commaSeparatedMimetypesOrCommaSeparatedIds: string): TPromise { throw new Error('Not implemented'); } getOrCreateModeByLanguageName(languageName: string): TPromise { throw new Error('Not implemented'); } getOrCreateModeByFilenameOrFirstLine(filename: string, firstLine?:string): TPromise { throw new Error('Not implemented'); } registerRichEditSupport(modeId: string, support: IRichLanguageConfiguration): IDisposable { throw new Error('Not implemented'); } registerTokenizationSupport(modeId: string, callback: (mode: modes.IMode) => modes.ITokenizationSupport): IDisposable { throw new Error('Not implemented'); } registerTokenizationSupport2(modeId: string, support: modes.TokensProvider): IDisposable { throw new Error('Not implemented'); } }