Move custom editor extension activation out of input

Inputs should not need to know about extensions
This commit is contained in:
Matt Bierner
2019-10-01 14:29:51 -07:00
parent 64023bd18b
commit af070ee0a0
2 changed files with 1 additions and 3 deletions
@@ -96,6 +96,7 @@ export class MainThreadWebviews extends Disposable implements MainThreadWebviews
this._register(_webviewEditorService.registerResolver({
canResolve: (webview: WebviewInput) => {
if (webview.getTypeId() === CustomFileEditorInput.typeId) {
extensionService.activateByEvent(`onWebviewEditor:${(webview as CustomFileEditorInput).viewType}`);
return false;
}