Skip to content

[BUG] 插件使用@vscode/codicons图标时ttf文件加载失败 #4430

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

Open
yujon opened this issue Mar 4, 2025 · 0 comments
Open

[BUG] 插件使用@vscode/codicons图标时ttf文件加载失败 #4430

yujon opened this issue Mar 4, 2025 · 0 comments
Labels
🐞 bug Something isn't working

Comments

@yujon
Copy link

yujon commented Mar 4, 2025

插件代码内使用@vscode/codicons库的图标时,字体文件会加载失败。其加载的字体文件带有query,但@opensumi/ide-core-electron-main/lib/bootstrap/services/protocol.js在处理'vscode-resource'资源时,获取的路径没有移除query便直接读取,导致读取失败:

Image Image

预期表现(Expected behavior)
预期正常加载ttf文件

@yujon yujon added the 🐞 bug Something isn't working label Mar 4, 2025
@yujon yujon changed the title [BUG] [BUG] 插件使用@vscode/codicons图标时ttf文件加载失败 Mar 4, 2025
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

No branches or pull requests

1 participant