/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the Source EULA. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ 'use strict'; import { TPromise } from 'vs/base/common/winjs.base'; import { Event } from 'vs/base/common/event'; import { createDecorator } from 'vs/platform/instantiation/common/instantiation'; import { IGrammar } from 'vscode-textmate'; import { LanguageId } from 'vs/editor/common/modes'; export const ITextMateService = createDecorator('textMateService'); export interface ITextMateService { _serviceBrand: any; onDidEncounterLanguage: Event; createGrammar(modeId: string): TPromise; }