import { Event } from '@vscode-alt/monaco-editor/esm/vs/base/common/event'; import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri'; import { IConfigurationChangeEvent } from '../configuration'; import { IPosition } from '../generated-model'; export interface ITextResourceConfigurationService { /** * Event that fires when the configuration changes. */ onDidChangeConfiguration: Event; /** * Fetches the value fo the section for the given resource by applying language overrides. * Value can be of native type or an object keyed off the section name. * * @param resource - Resource for which the configuration has to be fetched. * @param position - Position in the resource for which configuration has to be fetched. * @param section - Section of the configuration. */ getValue(resource: URI | undefined, section?: string): T; getValue(resource: URI | undefined, position?: IPosition, section?: string): T; }