mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 16:49:06 +01:00
Use isRemote instead of remote authority to determine where to load from
This commit is contained in:
@@ -20,7 +20,6 @@ import { CellEditType, IImmediateCellEditOperation, NotebookCellExecutionState,
|
||||
import { CancellationTokenSource } from 'vs/base/common/cancellation';
|
||||
import { asArray } from 'vs/base/common/arrays';
|
||||
import { ILogService } from 'vs/platform/log/common/log';
|
||||
import { Schemas } from 'vs/base/common/network';
|
||||
|
||||
interface IKernelData {
|
||||
extensionId: ExtensionIdentifier,
|
||||
@@ -191,7 +190,7 @@ export class ExtHostNotebookKernels implements ExtHostNotebookKernelsShape {
|
||||
return that._proxy.$postMessage(handle, editor && that._extHostNotebook.getIdByEditor(editor), message);
|
||||
},
|
||||
asWebviewUri(uri: URI) {
|
||||
const remoteAuthority = extension.extensionLocation.scheme === Schemas.vscodeRemote
|
||||
const remoteAuthority = that._initData.remote.isRemote
|
||||
? that._initData.remote.authority
|
||||
: undefined;
|
||||
return asWebviewUri(String(handle), uri, remoteAuthority);
|
||||
|
||||
Reference in New Issue
Block a user