-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
VS Code Decorations with gutterIconPath do not work because they reference filesystem paths #958
Comments
@akosyakov Can maybe you can help here? |
I think we have to translate file paths to urls to fetch files from our endpoints. |
In production now |
Thanks! Though the fix seems to work for some (our colours) but not others (icons). I think the difference is that one comes from the extensions |
If you need a test case, you can use this:
Or the vsix from: https://github.com/Dart-Code/Dart-Code/releases/tag/v3.7.0-beta.2 And there's an example repo here (you'll need to click "Get Packages" on the notification that pops up): https://gitpod.io/#https://github.com/DanTup/gitpod-flutter-web The colours are already in the file, and you can trigger the icon by including this in var a = Icons.ac_unit; |
In the Flutter extension we use
getterIconPath
in Decorations to render coloured icons in the editor gutter. Because we can't do dynamic images but we don't want to ship an image for every possible hex code, we generate them the first time they're seen and write them into a folder (we usepath.join(context.globalStoragePath, "flutterColors")
). We then use a file URI for the gutter icon:However these paths are not transformed in any way when being rendered in GitPod, so they don't show up and you see these errors in the dev console:
I don't know if this belongs in GitPod of theia, but I think
gutterIconPaths
should be transformed to some URL that is able to pass through files (at least those that have been explicitly added asgutterIconPath
s or similar).The text was updated successfully, but these errors were encountered: