Put authority into webview resource uri

This lets us handle the case where a webview needs to load both local and remote resources
This commit is contained in:
Matt Bierner
2021-05-10 20:40:07 -07:00
parent d60cbb0eae
commit 3d978d4dde
6 changed files with 50 additions and 77 deletions

View File

@@ -184,7 +184,7 @@ export class ExtHostNotebookKernels implements ExtHostNotebookKernelsShape {
return that._proxy.$postMessage(handle, editor && that._extHostNotebook.getIdByEditor(editor), message);
},
asWebviewUri(uri: URI) {
return asWebviewUri(that._initData.environment, String(handle), uri);
return asWebviewUri({ ...that._initData.environment, remote: that._initData.remote }, String(handle), uri);
},
// --- priority
updateNotebookAffinity(notebook, priority) {