Skip to content

Commit

Permalink
Make sure we actually update the local resource roots (#122957)
Browse files Browse the repository at this point in the history
For #122894

Not sure why this was a no-op but it seems to prevent the webview from correctly loading preloads
  • Loading branch information
mjbvz committed May 4, 2021
1 parent 206524c commit cfa2e21
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,11 @@ export abstract class BaseWebview<T extends HTMLElement> extends Disposable {
});
}

public set localResourcesRoot(resources: URI[]) {
/** no op */
public set localResourcesRoot(resources: readonly URI[]) {
this.content = {
...this.content,
options: { ...this.content.options, localResourceRoots: resources }
};
}

public set state(state: string | undefined) {
Expand Down

0 comments on commit cfa2e21

Please sign in to comment.