import { Action } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions"; import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service"; import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service"; import * as nls from "@codingame/monaco-vscode-api/vscode/vs/nls"; import { IQuickInputService } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service"; import { IPreferencesService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/preferences/common/preferences.service"; export declare class ConfigureLanguageBasedSettingsAction extends Action { private readonly modelService; private readonly languageService; private readonly quickInputService; private readonly preferencesService; static readonly ID = "workbench.action.configureLanguageBasedSettings"; static readonly LABEL: nls.ILocalizedString; constructor(id: string, label: string, modelService: IModelService, languageService: ILanguageService, quickInputService: IQuickInputService, preferencesService: IPreferencesService); run(): Promise; } /** * Schema information for a single configuration property as returned by * `_developer.getConfigurationInformation`. Self-contained so it can be * copied verbatim into other projects. */ export interface IConfigurationPropertyInformation { type?: string | string[]; default?: unknown; description?: string; markdownDescription?: string; deprecationMessage?: string; markdownDeprecationMessage?: string; enum?: unknown[]; enumDescriptions?: string[]; markdownEnumDescriptions?: string[]; enumItemLabels?: string[]; /** 1=APPLICATION, 2=MACHINE, 3=WINDOW, 4=RESOURCE, 5=LANGUAGE_OVERRIDABLE, 6=APPLICATION_MACHINE, 7=MACHINE_OVERRIDABLE */ scope?: number; restricted?: boolean; included?: boolean; tags?: string[]; ignoreSync?: boolean; disallowSyncIgnore?: boolean; disallowConfigurationDefault?: boolean; keywords?: string[]; editPresentation?: string; order?: number; policy?: { name: string; minimumVersion: string; description?: string; previewFeature?: string; defaultValue?: string | number; }; experiment?: { mode: "startup" | "auto"; name?: string; }; agentsWindow?: { default?: unknown; readOnly?: boolean; }; section?: { id?: string; title?: string; order?: number; extensionInfo?: { id: string; displayName?: string; }; }; defaultDefaultValue?: unknown; source?: string | { id: string; displayName?: string; }; [key: string]: unknown; } /** * The shape of the JSON returned by `_developer.getConfigurationInformation`: * a map from configuration key to its schema information. */ export interface IConfigurationInformation { [settingId: string]: IConfigurationPropertyInformation; }