mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 16:49:06 +01:00
Remove duplication around checking isRemote
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user