@@ -579,7 +579,7 @@ export class ExtensionEditor extends EditorPane {
579
579
return Promise . resolve ( null ) ;
580
580
}
581
581
582
- private async openMarkdown ( cacheResult : CacheResult < string > , noContentCopy : string , template : IExtensionEditorTemplate , webviewIndex : WebviewIndex , token : CancellationToken ) : Promise < IActiveElement > {
582
+ private async openMarkdown ( cacheResult : CacheResult < string > , noContentCopy : string , template : IExtensionEditorTemplate , webviewIndex : WebviewIndex , token : CancellationToken ) : Promise < IActiveElement | null > {
583
583
try {
584
584
const body = await this . renderMarkdown ( cacheResult , template ) ;
585
585
if ( token . isCancellationRequested ) {
@@ -598,7 +598,7 @@ export class ExtensionEditor extends EditorPane {
598
598
webview . layoutWebviewOverElement ( template . content ) ;
599
599
600
600
webview . html = body ;
601
- webview . claim ( this ) ;
601
+ webview . claim ( this , undefined ) ;
602
602
603
603
this . contentDisposables . add ( webview . onDidFocus ( ( ) => this . fireOnDidFocus ( ) ) ) ;
604
604
@@ -877,14 +877,14 @@ export class ExtensionEditor extends EditorPane {
877
877
const readmeContent = append ( extensionPackReadme , $ ( 'div.readme-content' ) ) ;
878
878
879
879
await Promise . all ( [
880
- this . renderExtensionPack ( manifest , extensionPackContent ) ,
880
+ this . renderExtensionPack ( manifest , extensionPackContent , token ) ,
881
881
this . openMarkdown ( this . extensionReadme ! . get ( ) , localize ( 'noReadme' , "No README available." ) , { ...template , ...{ content : readmeContent } } , WebviewIndex . Readme , token ) ,
882
882
] ) ;
883
883
884
884
return { focus : ( ) => extensionPackContent . focus ( ) } ;
885
885
}
886
886
887
- private openChangelog ( template : IExtensionEditorTemplate , token : CancellationToken ) : Promise < IActiveElement > {
887
+ private openChangelog ( template : IExtensionEditorTemplate , token : CancellationToken ) : Promise < IActiveElement | null > {
888
888
return this . openMarkdown ( this . extensionChangelog ! . get ( ) , localize ( 'noChangelog' , "No Changelog available." ) , template , WebviewIndex . Changelog , token ) ;
889
889
}
890
890
0 commit comments