From 51ef4de3a77f5c41cf47f1aea764a7bced76743f Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Mon, 17 Sep 2018 16:58:25 +0200 Subject: [PATCH] ITokenizationService unnecessary --- .../common/services/tokenizationService.ts | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 src/vs/editor/common/services/tokenizationService.ts diff --git a/src/vs/editor/common/services/tokenizationService.ts b/src/vs/editor/common/services/tokenizationService.ts deleted file mode 100644 index 7106f8144c2..00000000000 --- a/src/vs/editor/common/services/tokenizationService.ts +++ /dev/null @@ -1,39 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * 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 { TPromise } from 'vs/base/common/winjs.base'; -import { createDecorator } from 'vs/platform/instantiation/common/instantiation'; -import { IMode, LanguageId, LanguageIdentifier } from 'vs/editor/common/modes'; -import { URI } from 'vs/base/common/uri'; - -export const ITokenizationService = createDecorator('tokenizationService'); - -export interface ITokenizationService { - _serviceBrand: any; - - onDidCreateMode: Event; - - // --- reading - isRegisteredMode(mimetypeOrModeId: string): boolean; - getRegisteredModes(): string[]; - getRegisteredLanguageNames(): string[]; - getExtensions(alias: string): string[]; - getFilenames(alias: string): string[]; - getMimeForMode(modeId: string): string; - getLanguageName(modeId: string): string; - getModeIdForLanguageName(alias: string): string; - getModeIdByFilenameOrFirstLine(filename: string, firstLine?: string): string; - getModeId(commaSeparatedMimetypesOrCommaSeparatedIds: string): string; - getLanguageIdentifier(modeId: string | LanguageId): LanguageIdentifier; - getConfigurationFiles(modeId: string): URI[]; - - // --- instantiation - getMode(commaSeparatedMimetypesOrCommaSeparatedIds: string): IMode; - getOrCreateMode(commaSeparatedMimetypesOrCommaSeparatedIds: string): TPromise; - getOrCreateModeByLanguageName(languageName: string): TPromise; - getOrCreateModeByFilenameOrFirstLine(filename: string, firstLine?: string): TPromise; -} -- GitLab