Skip to content

Commit 6591e7c

Browse files
feat: Fix extension loading
1 parent ff79bce commit 6591e7c

3 files changed

Lines changed: 9 additions & 16 deletions

File tree

.tbconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"title": "Visual Studio Code",
33
"icon": "./node_modules/vscode-web/dist/code-192.png",
4-
"version": "1.91.1",
4+
"version": "1.91.2",
55
"wmArgs": {
66
"title": "Visual Studio Code",
77
"icon": "./node_modules/vscode-web/dist/code-192.png",

index.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,17 @@
5050
5151
"additionalBuiltinExtensions": [
5252
{
53-
"scheme": "${location.protocol.slice(0,-1)}",
54-
"path": "${location.pathname.split("/").slice(0,-1).join("/")}/myExt"
53+
"scheme": "relative",
54+
"path": "/fs/apps/system/Visual Studio Code.tapp/myExt"
5555
},
5656
{
57-
"scheme": "${location.protocol.slice(0,-1)}",
58-
"path": "${location.pathname.split("/").slice(0,-1).join("/")}/myDav"
57+
"scheme": "relative",
58+
"path": "/fs/apps/system/Visual Studio Code.tapp/myDav"
5959
}
6060
]
6161
}
6262
`
63+
/*
6364
try {
6465
const fileData = await top.tb.fs.promises.readFile("/" + location.pathname.split("/").slice(2,-1).join("/") + "/product.json", productData);
6566
if (new TextDecoder().decode(fileData) !== productData) {
@@ -68,7 +69,7 @@
6869
} catch {
6970
await top.tb.fs.promises.writeFile("/" + location.pathname.split("/").slice(2,-1).join("/") + "/product.json", productData)
7071
location.reload();
71-
}
72+
}*/
7273
</script>
7374
<!-- Startup (do not modify order of script tags!) -->
7475
<script src="./node_modules/vscode-web/dist/out/vs/loader.js"></script>

product.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,11 @@
2020

2121
"additionalBuiltinExtensions": [
2222
{
23-
"scheme": "http",
23+
"scheme": "relative",
2424
"path": "/fs/apps/system/Visual Studio Code.tapp/myExt"
2525
},
2626
{
27-
"scheme": "http",
28-
"path": "/fs/apps/system/Visual Studio Code.tapp/myDav"
29-
},
30-
{
31-
"scheme": "https",
32-
"path": "/fs/apps/system/Visual Studio Code.tapp/myExt"
33-
},
34-
{
35-
"scheme": "https",
27+
"scheme": "relative",
3628
"path": "/fs/apps/system/Visual Studio Code.tapp/myDav"
3729
}
3830
]

0 commit comments

Comments
 (0)