Skip to content

Commit

Permalink
Cannot read property 'isReadonly' of undefined (fix #93224)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Apr 11, 2020
1 parent 62b607a commit 43e35f2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -314,10 +314,10 @@ export class ExtensionEditor extends BaseEditor {
}

async setInput(input: ExtensionsInput, options: EditorOptions | undefined, token: CancellationToken): Promise<void> {
await super.setInput(input, options, token);
if (this.template) {
await this.updateTemplate(input, this.template, !!options?.preserveFocus);
}
return super.setInput(input, options, token);
}

private async updateTemplate(input: ExtensionsInput, template: IExtensionEditorTemplate, preserveFocus: boolean): Promise<void> {
Expand Down

0 comments on commit 43e35f2

Please sign in to comment.