UNPKG

sussudio

Version:

An unofficial VS Code Internal API

31 lines (30 loc) 1.14 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { Event } from "../../../base/common/event.mjs"; import { IJSONSchema } from "../../../base/common/jsonSchema.mjs"; export declare const Extensions: { JSONContribution: string; }; export interface ISchemaContributions { schemas: { [id: string]: IJSONSchema; }; } export interface IJSONContributionRegistry { readonly onDidChangeSchema: Event<string>; /** * Register a schema to the registry. */ registerSchema(uri: string, unresolvedSchemaContent: IJSONSchema): void; /** * Notifies all listeners that the content of the given schema has changed. * @param uri The id of the schema */ notifySchemaChanged(uri: string): void; /** * Get all schemas */ getSchemaContributions(): ISchemaContributions; }