mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 16:49:06 +01:00
Use extension location instead of remote for asWebviewUri
This commit is contained in:
@@ -20,6 +20,7 @@ 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,
|
||||
@@ -190,7 +191,10 @@ export class ExtHostNotebookKernels implements ExtHostNotebookKernelsShape {
|
||||
return that._proxy.$postMessage(handle, editor && that._extHostNotebook.getIdByEditor(editor), message);
|
||||
},
|
||||
asWebviewUri(uri: URI) {
|
||||
return asWebviewUri(String(handle), uri, that._initData.remote.authority);
|
||||
const remoteAuthority = extension.extensionLocation.scheme === Schemas.vscodeRemote
|
||||
? that._initData.remote.authority
|
||||
: undefined;
|
||||
return asWebviewUri(String(handle), uri, remoteAuthority);
|
||||
},
|
||||
// --- priority
|
||||
updateNotebookAffinity(notebook, priority) {
|
||||
|
||||
Reference in New Issue
Block a user