/******************************************************************************** * Copyright (C) 2018 TypeFox and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. * * This Source Code may also be made available under the following Secondary * Licenses when the conditions for such availability set forth in the Eclipse * Public License v. 2.0 are satisfied: GNU General Public License, version 2 * with the GNU Classpath Exception which is available at * https://www.gnu.org/software/classpath/license.html. * * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 ********************************************************************************/ /// import URI from '@devpodio/core/lib/common/uri'; import { ILogger } from '@devpodio/core/lib/common/logger'; import { EditorManager } from '@devpodio/editor/lib/browser/editor-manager'; import { Disposable } from '@devpodio/core/lib/common/disposable'; import { EditorDecoration, EditorDecorationOptions } from '@devpodio/editor/lib/browser/decorations'; import { SemanticHighlightingService, SemanticHighlightingRange } from '@devpodio/editor/lib/browser/semantic-highlight/semantic-highlighting-service'; import { MonacoEditor } from './monaco-editor'; export declare class MonacoSemanticHighlightingService extends SemanticHighlightingService { protected readonly logger: ILogger; protected readonly editorManager: EditorManager; protected readonly decorations: Map>; protected readonly toDisposeOnEditorClose: Map; decorate(languageId: string, uri: URI, ranges: SemanticHighlightingRange[]): Promise; dispose(): void; protected decorationIds(uri: string | URI): Set; protected editor(uri: string | URI): Promise; protected model(uri: string | URI): Promise; /** * Returns all the semantic highlighting decoration IDs that are affected by any of the range arguments. */ protected oldDecorations(uri: string, editor: MonacoEditor, ranges: SemanticHighlightingRange[]): string[]; protected deleteDecorations(uri: string, editor: MonacoEditor): void; protected toDecoration(languageId: string, range: SemanticHighlightingRange): EditorDecoration; protected toOptions(scopes: string[]): EditorDecorationOptions; protected tokenTheme(): monaco.services.TokenTheme; } //# sourceMappingURL=monaco-semantic-highlighting-service.d.ts.map