Skip to content

Commit 37ebd0b

Browse files
committed
use static urls for progress svgs
1 parent a75786e commit 37ebd0b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Diff for: src/leanmonaco.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,15 @@ export type LeanMonacoOptions = {
143143
checkLean4ProjectPreconditions
144144
)
145145

146-
this.taskGutter = new LeanTaskGutter(this.clientProvider, {asAbsolutePath: (path: string) => Uri.parse(`${new URL('vscode-lean4/vscode-lean4/' + path, import.meta.url)}`),} as any)
146+
const asAbsolutePath = (path: string) => {
147+
switch (path) {
148+
case "media/progress-light.svg": return Uri.parse(`${new URL('vscode-lean4/vscode-lean4/media/progress-light.svg', import.meta.url)}`)
149+
case "media/progress-dark.svg": return Uri.parse(`${new URL('vscode-lean4/vscode-lean4/media/progress-dark.svg', import.meta.url)}`)
150+
case "media/progress-error-light.svg": return Uri.parse(`${new URL('vscode-lean4/vscode-lean4/media/progress-error-light.svg', import.meta.url)}`)
151+
case "media/progress-error-dark.svg": return Uri.parse(`${new URL('vscode-lean4/vscode-lean4/media/progress-error-dark.svg', import.meta.url)}`)
152+
}
153+
}
154+
this.taskGutter = new LeanTaskGutter(this.clientProvider, {asAbsolutePath} as any)
147155

148156
const fontFile = new FontFace(
149157
"JuliaMono",

0 commit comments

Comments
 (0)