We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec9e90d commit 3888cc4Copy full SHA for 3888cc4
src/goTest/profile.ts
@@ -198,6 +198,8 @@ async function show(profile: string) {
198
proc.stderr.on('data', captureStdout);
199
});
200
201
+ const externalUri = await vscode.env.asExternalUri(vscode.Uri.parse(`http://localhost:${port}`));
202
+
203
const panel = vscode.window.createWebviewPanel('go.profile', 'Profile', ViewColumn.Active);
204
panel.webview.options = { enableScripts: true };
205
panel.webview.html = `<html>
@@ -217,7 +219,7 @@ async function show(profile: string) {
217
219
</style>
218
220
</head>
221
<body>
- <iframe src="http://localhost:${port}"></iframe>
222
+ <iframe src="${externalUri}"></iframe>
223
</body>
224
</html>`;
225
0 commit comments