Interface ILSPEditorExtensionFactory

interface ILSPEditorExtensionFactory {
    default?: any;
    factory: (options: IFactoryOptions) => null | IConfigurableExtension<any>;
    name: string;
    schema?: ReadonlyJSONObject;
}

Hierarchy

Properties

default?: any

Extension default value

If undefined but has a schema, the default value will be null to be JSON serializable.

factory: (options: IFactoryOptions) => null | IConfigurableExtension<any>

Extension factory.

Type declaration

name: string

Editor extension unique identifier.

JSON schema defining the configurable option through user settings.

If this is defined, every time the setting changes, IConfigurableExtension.reconfigure will be called with the new setting value.

If no default value is provided, IEditorExtensionFactory.default will be used. If the extension is to be handled by the code only, this should not be defined.