Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web extension does not recognize custom theme provided by remote URL #300

Closed
yhatt opened this issue Oct 2, 2021 · 1 comment · Fixed by #301
Closed

Web extension does not recognize custom theme provided by remote URL #300

yhatt opened this issue Oct 2, 2021 · 1 comment · Fixed by #301
Labels
bug Something isn't working

Comments

@yhatt
Copy link
Member

yhatt commented Oct 2, 2021

Version of Marp Tool

Marp for VS Code 1.4.1

Operating System

Other (fill out in the environment field)

Environment

github.dev

Version: 1.60.1
Commit: 83bd43bc519d15e50c4272c6cf5c1479df196a4d
Date: 2021-09-10T17:07:52.819Z
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36

How to reproduce

Add a remote CSS URL to markdown.marp.themes setting. e.g. https://raw.githubusercontent.com/dracula/marp/master/dracula/dracula.css

Expected behavior

Recognize theme CSS and listed to auto completion of theme

Actual behavior

console.ts:137 [Extension Host] TypeError: c.AbortController is not a constructor
    at fetch (https://marp-team.vscode-unpkg.net/marp-team/marp-vscode/1.4.1/extension/dist/extension.js#vscode-extension:2988:1351)
    at eval (https://marp-team.vscode-unpkg.net/marp-team/marp-vscode/1.4.1/extension/dist/extension.js#vscode-extension:3167:5048)
    at xi.registerTheme (https://marp-team.vscode-unpkg.net/marp-team/marp-vscode/1.4.1/extension/dist/extension.js#vscode-extension:3167:5095)
    at eval (https://marp-team.vscode-unpkg.net/marp-team/marp-vscode/1.4.1/extension/dist/extension.js#vscode-extension:3167:4377)
    at Array.map (<anonymous>)
    at xi.loadStyles (https://marp-team.vscode-unpkg.net/marp-team/marp-vscode/1.4.1/extension/dist/extension.js#vscode-extension:3167:4365)
    at b.L0.v.parse (https://marp-team.vscode-unpkg.net/marp-team/marp-vscode/1.4.1/extension/dist/extension.js#vscode-extension:3186:854)
    at t.MarkdownEngine.tokenizeString (https://vscodeweb.azureedge.net/stable/83bd43bc519d15e50c4272c6cf5c1479df196a4d/extensions/markdown-language-features/dist/browser/extension.js#vscode-extension:3:1086732)
    at t.MarkdownEngine.tokenizeDocument (https://vscodeweb.azureedge.net/stable/83bd43bc519d15e50c4272c6cf5c1479df196a4d/extensions/markdown-language-features/dist/browser/extension.js#vscode-extension:3:1086609)
    at t.MarkdownEngine.parse (https://vscodeweb.azureedge.net/stable/83bd43bc519d15e50c4272c6cf5c1479df196a4d/extensions/markdown-language-features/dist/browser/extension.js#vscode-extension:3:1087199)
    at t.default.getRegions (https://vscodeweb.azureedge.net/stable/83bd43bc519d15e50c4272c6cf5c1479df196a4d/extensions/markdown-language-features/dist/browser/extension.js#vscode-extension:3:1051193)
    at async Promise.all (index 0)
    at t.default.provideFoldingRanges (https://vscodeweb.azureedge.net/stable/83bd43bc519d15e50c4272c6cf5c1479df196a4d/extensions/markdown-language-features/dist/browser/extension.js#vscode-extension:3:1051042)
    at Ee.provideFoldingRanges (../../../vs/workbench/services/extensions/worker/extensionHostWorker.js:75:182515)

Additional information

No response

@yhatt yhatt added the bug Something isn't working label Oct 2, 2021
@yhatt
Copy link
Member Author

yhatt commented Oct 2, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant