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

@@ -66,10 +66,7 @@ export class ExtHostEditorInsets implements ExtHostEditorInsetsShape {
private _options: vscode.WebviewOptions = Object.create(null);
asWebviewUri(resource: vscode.Uri): vscode.Uri {
const remoteAuthority = that._initData.remote.isRemote
? that._initData.remote.authority
: undefined;
return asWebviewUri(this._uuid, resource, remoteAuthority);
return asWebviewUri(this._uuid, resource, that._initData.remote);
}
get cspSource(): string {