Skip to content

PSA: VSCode 1.66 breaks native wayland support

I just upgraded to the latest stable version of visual-studio-code-bin from the AUR (1.66). This version appears to break running it as a native wayland application.

Previously I had setup ~/.config/code-flags.conf with the following:

--enable-features=UseOzonePlatform
--ozone-platform=wayland

And VSCode would run as a native wayland application. Now it will crash and won't start. You can follow some discussions on the issue here: https://github.com/microsoft/vscode/issues/109176 (towards the end of the thread), and here: https://github.com/microsoft/vscode/issues/146349.

It appears this first started happening with the 1.66 code-insiders build.

Note: I've also attached a coredump file to the github discussion thread in case anyone is interested.

For now the solution is to run VSCode under XWayland (not ideal if you have a hidpi monitor as you might have blurry fonts).

I hope this helps others that are confused about why it's no longer starting.

Edit: added additional link to github discussion.

Edited 30 Mar 2022. We only hold this version.

208 points74 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
208 · 98% up
Kind
Text
ID
tsk8iu

Author

4
posts
11
comments
0
media
View profile

1 comment

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.