Skip to content

Commit 4d22284

Browse files
Change scheme to tmp:// and pass document.location as query parameter
1 parent 87c9a3e commit 4d22284

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@solarspace-dev/vscode-web",
3-
"version": "1.92.0-1",
3+
"version": "1.92.0-2",
44
"description": "Visual Studio Code for browser",
55
"files": [
66
"dist"

workbench.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ declare const window: any;
2424
config = tempConfig;
2525
}
2626

27-
const workspace = { folderUri: URI.parse(document.location.href).with({ scheme: "memfs" }) };
27+
const location = document.location.href;
28+
const workspace = { folderUri: URI.parse(`tmp:///?location=${encodeURIComponent(location)}`) };
2829
const workspaceProvider: IWorkspaceProvider = {
2930
workspace,
3031
open: async (

0 commit comments

Comments
 (0)