Unique identifier for the custom editor provider. This should match the viewType from the
customEditors contribution point.
Provider that resolves custom editors.
Optionaloptions: {Options for the provider.
Optional ReadonlysupportsMultipleEditorsPerDocument?: booleanOnly applies to CustomReadonlyEditorProvider | CustomEditorProvider.
Indicates that the provider allows multiple editor instances to be open at the same time for the same resource.
By default, Theia only allows one editor instance to be open at a time for each resource. If the user tries to open a second editor instance for the resource, the first one is instead moved to where the second one was to be opened.
When supportsMultipleEditorsPerDocument is enabled, users can split and create copies of the custom
editor. In this case, the custom editor must make sure it can properly synchronize the states of all
editor instances for a resource so that they are consistent.
Optional ReadonlywebviewOptions?: WebviewPanelOptionsContent settings for the webview panels created for this custom editor.
Disposable that unregisters the provider.
Register a provider for custom editors for the
viewTypecontributed by thecustomEditorsextension point.When a custom editor is opened, Theia fires an
onCustomEditor:viewTypeactivation event. Your extension must register aCustomTextEditorProvider,CustomReadonlyEditorProvider,CustomEditorProviderforviewTypeas part of activation.