import { NotificationType , RequestType } from 'vscode-languageserver' ; import { SchemaAdditions , SchemaDeletions } from './languageservice/services/yamlSchemaService' ; import { SchemaConfiguration } from './languageservice/yamlLanguageService' ; export type ISchemaAssociations = Record < string , string [ ] > ; export interface JSONSchemaDescription { /**
     * Schema URI
     */ uri : string ; /**
     * Schema name, from schema store
     */ name ? : string ; /**
     * Schema description, from schema store
     */ description ? : string ; } export interface JSONSchemaDescriptionExt extends JSONSchemaDescription { /**
     * Is schema used for current document
     */ usedForCurrentFile : boolean ; /**
     * Is schema from schema store
     */ fromStore : boolean ; } export namespace SchemaAssociationNotification { export const type = new NotificationType ( 'json/schemaAssociations' ) ; } export namespace DynamicCustomSchemaRequestRegistration { export const type = new NotificationType ( 'yaml/registerCustomSchemaRequest' ) ; } export namespace VSCodeContentRequestRegistration { export const type = new NotificationType ( 'yaml/registerContentRequest' ) ; } export namespace ResultLimitReachedNotification { export const type = new NotificationType ( 'yaml/resultLimitReached' ) ; } export namespace VSCodeContentRequest { export const type = new RequestType ( 'vscode/content' ) ; } export namespace CustomSchemaContentRequest { export const type = new RequestType ( 'custom/schema/content' ) ; } export namespace CustomSchemaRequest { export const type = new RequestType ( 'custom/schema/request' ) ; } export namespace ColorSymbolRequest { export const type = new RequestType ( 'json/colorSymbols' ) ; } export namespace SchemaModificationNotification { export const type = new RequestType ( 'json/schema/modify' ) ; } export namespace SchemaSelectionRequests { export const type = new NotificationType ( 'yaml/supportSchemaSelection' ) ; export const getSchema = new RequestType ( 'yaml/get/jsonSchema' ) ; export const getAllSchemas = new RequestType ( 'yaml/get/all/jsonSchemas' ) ; export const schemaStoreInitialized = new NotificationType ( 'yaml/schema/store/initialized' ) ; }