feat: registerCustomEditorProvider translation

pull/34/head
洛竹 3 years ago
parent 1c96e8ba16
commit 577027ffad

16
vscode.d.ts vendored

@ -9036,18 +9036,16 @@ export namespace window {
}): Disposable;
/**
* Register a provider for custom editors for the `viewType` contributed by the `customEditors` extension point.
* `customEditors` `viewType` Provider
*
* When a custom editor is opened, an `onCustomEditor:viewType` activation event is fired. Your extension
* must register a {@linkcode CustomTextEditorProvider}, {@linkcode CustomReadonlyEditorProvider},
* {@linkcode CustomEditorProvider}for `viewType` as part of activation.
* `onCustomEditor:viewType`
* `viewType` {@linkcode CustomTextEditorProvider}{@linkcode CustomReadonlyEditorProvider} {@linkcode CustomEditorProvider}
*
* @param viewType Unique identifier for the custom editor provider. This should match the `viewType` from the
* `customEditors` contribution point.
* @param provider Provider that resolves custom editors.
* @param options Options for the provider.
* @param viewType provider `contribution.customEditors` `viewType`
* @param provider Provider
* @param options
*
* @return Disposable that unregisters the provider.
* @return provider
*/
export function registerCustomEditorProvider(viewType: string, provider: CustomTextEditorProvider | CustomReadonlyEditorProvider | CustomEditorProvider, options?: {
/**

Loading…
Cancel
Save