Closed
Description
Sometimes in Webviews you want to reproduce the style of editor text.
There is --vscode-editor-font-family
, --vscode-editor-font-weight
and --vscode-editor-font-size
available. As well as foregound
and background
.
One thing that doesn't exist though is a simple way to honour the users ligature preferences.
It looks like you might be able to use --vscode-editorCodeLens-fontFeatureSettings
Should we expose something like --vscode-editor-fontFeatureSettings
to webviews, or is it correct that webviews should use the code lens property instead?
Edit: looks like --vscode-editorCodeLens-fontFeatureSettings
is not available in Webviews either.
Activity
mjbvz commentedon Mar 11, 2025
I think
vscode-editorCodeLens-fontFeatureSettings
is internal only but we could expose theeditor.fontLigatures
setting if there's interestYou can already use it in webviews by reading the setting value in the extension and sending it to the webview. Adding a proper css variable just makes it easier to use
Marking as help wanted
a-stewart commentedon Jul 2, 2025
Thanks!
vs-code-engineering commentedon Jul 2, 2025
This bug has been fixed in the latest release of VS Code Insiders!
@a-stewart, you can help us out by commenting
/verified
if things are now working as expected.If things still don't seem right, please ensure you're on version 6e85500 of Insiders (today's or later - you can use
Help: About
in the command palette to check), and leave a comment letting us know what isn't working as expected.Happy Coding!
a-stewart commentedon Jul 3, 2025
/verified