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; }): 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 * `onCustomEditor:viewType`
* must register a {@linkcode CustomTextEditorProvider}, {@linkcode CustomReadonlyEditorProvider}, * `viewType` {@linkcode CustomTextEditorProvider}{@linkcode CustomReadonlyEditorProvider} {@linkcode CustomEditorProvider}
* {@linkcode CustomEditorProvider}for `viewType` as part of activation.
* *
* @param viewType Unique identifier for the custom editor provider. This should match the `viewType` from the * @param viewType provider `contribution.customEditors` `viewType`
* `customEditors` contribution point. * @param provider Provider
* @param provider Provider that resolves custom editors. * @param options
* @param options Options for the provider.
* *
* @return Disposable that unregisters the provider. * @return provider
*/ */
export function registerCustomEditorProvider(viewType: string, provider: CustomTextEditorProvider | CustomReadonlyEditorProvider | CustomEditorProvider, options?: { export function registerCustomEditorProvider(viewType: string, provider: CustomTextEditorProvider | CustomReadonlyEditorProvider | CustomEditorProvider, options?: {
/** /**

Loading…
Cancel
Save