UNPKG

@sussudio/platform

Version:

Internal APIs for VS Code's service injection the base services.

32 lines (30 loc) 1.09 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 '@sussudio/base/common/event.mjs'; import { IJSONSchema } from '@sussudio/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; }