Remove duplication around checking isRemote

This commit is contained in:
Matt Bierner
2021-05-20 16:00:31 -07:00
parent 55c2fc5604
commit 07a2aab8f2
7 changed files with 12 additions and 21 deletions

View File

@@ -69,10 +69,7 @@ export class ExtHostWebview implements vscode.Webview {
public asWebviewUri(resource: vscode.Uri): vscode.Uri {
this.#hasCalledAsWebviewUri = true;
const remoteAuthority = this.#initData.remote.isRemote
? this.#initData.remote.authority
: undefined;
return asWebviewUri(this.#handle, resource, remoteAuthority);
return asWebviewUri(this.#handle, resource, this.#initData.remote);
}
public get cspSource(): string {