Skip to content

Commit

Permalink
use static urls for progress svgs
Browse files Browse the repository at this point in the history
  • Loading branch information
abentkamp committed Aug 2, 2024
1 parent a75786e commit 37ebd0b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/leanmonaco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,15 @@ export type LeanMonacoOptions = {
checkLean4ProjectPreconditions
)

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

const fontFile = new FontFace(
"JuliaMono",
Expand Down

0 comments on commit 37ebd0b

Please sign in to comment.