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

@@ -190,10 +190,7 @@ export class ExtHostNotebookKernels implements ExtHostNotebookKernelsShape {
return that._proxy.$postMessage(handle, editor && that._extHostNotebook.getIdByEditor(editor), message);
},
asWebviewUri(uri: URI) {
const remoteAuthority = that._initData.remote.isRemote
? that._initData.remote.authority
: undefined;
return asWebviewUri(String(handle), uri, remoteAuthority);
return asWebviewUri(String(handle), uri, that._initData.remote);
},
// --- priority
updateNotebookAffinity(notebook, priority) {