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

Native wayland support with newest electron #109176

Closed
toger5 opened this issue Oct 22, 2020 · 154 comments
Closed

Native wayland support with newest electron #109176

toger5 opened this issue Oct 22, 2020 · 154 comments
Assignees
Labels
electron Issues and items related to Electron insiders-released Patch has been released in VS Code Insiders linux Issues with VS Code on Linux upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream

Comments

@toger5
Copy link

toger5 commented Oct 22, 2020

Native wayland support would be great to run vs code without XWayland as described in #77752.

Recently electron merged the chrome version with the ozone backend needed:
electron/electron#26022

This would allow for:

  • Kinetic scrolling (maybe this is more elegantly implemented on the elctron side)
  • Better touch support (touch scrolling)
  • better dpi scaling
@deepak1556
Copy link
Contributor

deepak1556 commented Oct 22, 2020

Thanks for opening the issue, agree with the benefits. The electron PR only got the basic compilation bits, there will be follow-up PRs to make it feature complete. VSCode will consume those binaries once they are available.

Upstream issue: electron/electron#10915

@deepak1556 deepak1556 self-assigned this Oct 22, 2020
@deepak1556 deepak1556 added electron Issues and items related to Electron linux Issues with VS Code on Linux upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream labels Oct 22, 2020
@kriive
Copy link

kriive commented Nov 18, 2020

Ozone has now landed in stable chrome (87) and in electron 11.0.1! I tried to compile vscode in electron-11.x.x branch, targeting electron 11.0.1. It compiles fine, but if I launch code as follows: code-oss --verbose --log=TRACE --enable-features=UseOzonePlatform --ozone-platform=wayland it shows a window for half a second and then crashes without any log. If I leave out the ozone cli commands vscode starts ok, without crashing.

EDIT: if I run it through gdb it now segfaults. [Thread 1 "code-oss" received signal SIGSEGV, Segmentation fault.
0x00005555576c1630 in ?? ()]

@tyalie
Copy link

tyalie commented Nov 18, 2020

There's also a Wayland debug flag (WAYLAND_DEBUG=1). Maybe you can find more there.

@kriive
Copy link

kriive commented Nov 18, 2020

Thanks, this is the output given: WAYLAND_DEBUG=1 gdb --args ./code-oss --enable-features=UseOzonePlatform --ozone-platform=wayland
https://pastebin.com/raw/ALk3JGz6

This is what happens
image

@vially
Copy link
Contributor

vially commented Nov 21, 2020

As far as I'm aware the official builds for Electron 11 do not have Wayland support. The initial Wayland support (electron/electron#26022) will only land in Electron 12.

So unless you're using an unofficial Electron build which has backported the Wayland fixes (e.g.: electron-ozone from the AUR) I think it's expected for the build to crash.

@deepak1556
Copy link
Contributor

@vially is correct, the initial experimental support landed only in electron 12, once I merge #110759 to master , the exploration builds of vscode will start using electron 12. Can check again on the crash after that change.

@12101111
Copy link

electron-11 compile from my Gentoo Linux overlay works without any issue ( And works with musl libc! )
图片

@kriive
Copy link

kriive commented Nov 24, 2020

Uhm, @12101111 are you launching vscode with --enable-features=UseOzonePlatform --ozone-platform=wayland?

@kriive
Copy link

kriive commented Nov 24, 2020

@vially is correct, the initial experimental support landed only in electron 12, once I merge #110759 to master , the exploration builds of vscode will start using electron 12. Can check again on the crash after that change.

Good to know, thank you so much!

As far as I'm aware the official builds for Electron 11 do not have Wayland support. The initial Wayland support (electron/electron#26022) will only land in Electron 12.

So unless you're using an unofficial Electron build which has backported the Wayland fixes (e.g.: electron-ozone from the AUR) I think it's expected for the build to crash.

And thank you for the info!

@12101111
Copy link

Uhm, @12101111 are you launching vscode with --enable-features=UseOzonePlatform --ozone-platform=wayland?

Yes

@Pajn
Copy link

Pajn commented Nov 27, 2020

Now that the exploration builds should support wayland, is there any place to download them? I can only find insider builds but if I'm understanding correctly those aren't on electron 12 yet?

@kriive
Copy link

kriive commented Nov 27, 2020

If you're using RPM based systems, you can find the exploration builds here: https://packages.microsoft.com/yumrepos/vscode/

I guess that even the today's exploration build is still on 11.0.3. I managed to patch vscode to build an electron 12.0.0-beta.4 version and it kinda works (menubar doesn't).

EDIT: my patch is this one. Use it at your own risk

@andrewnicolalde
Copy link

andrewnicolalde commented Dec 13, 2020

I'm getting a weird crash when running code-exploration --enable-features=UseOzonePlatform --ozone-platform=wayland --verbose in Sway 1.5, though I'm unsure if this is just to be expected considering the new nature of wayland support.

code-exploration --enable-features=UseOzonePlatform --ozone-platform=wayland --verbose
Warning: 'enable-features' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'ozone-platform' is not in the list of known options, but still passed to Electron/Chromium.
(electron) Sending uncompressed crash reports is deprecated and will be removed in a future version of Electron. Set { compress: true } to opt-in to the new behavior. Crash reports will be uploaded gzipped, which most crash reporting servers support.
[main 2020-12-13T14:35:28.324Z] Starting VS Code
[main 2020-12-13T14:35:28.325Z] from: /usr/share/code-exploration/resources/app
[main 2020-12-13T14:35:28.325Z] args: {
  _: [],
  diff: false,
  add: false,
  goto: false,
  'new-window': false,
  'reuse-window': false,
  wait: false,
  help: false,
  'list-extensions': false,
  'show-versions': false,
  version: false,
  verbose: true,
  status: false,
  'prof-startup': false,
  'disable-extensions': false,
  'disable-gpu': false,
  telemetry: false,
  debugRenderer: false,
  logExtensionHostCommunication: false,
  'skip-release-notes': false,
  'disable-telemetry': false,
  'disable-updates': false,
  'disable-crash-reporter': false,
  'skip-add-to-recently-opened': false,
  'unity-launch': false,
  'open-url': false,
  'file-write': false,
  'file-chmod': false,
  'driver-verbose': false,
  force: false,
  'do-not-sync': false,
  trace: false,
  'force-user-env': false,
  'force-disable-user-env': false,
  'open-devtools': false,
  'no-proxy-server': false,
  nolazy: false,
  'force-renderer-accessibility': false,
  'ignore-certificate-errors': false,
  'allow-insecure-localhost': false,
  logsPath: '/home/andrew/.config/Code - Exploration/logs/20201213T143528'
}
[main 2020-12-13T14:35:28.330Z] Resolving machine identifier...
[main 2020-12-13T14:35:28.331Z] Resolved machine identifier: bb3b0470594badc6a8aba91361ba24a17978b8bf84ea4bd0721c4174f673105f
[main 2020-12-13T14:35:28.343Z] [storage state.vscdb] open(/home/andrew/.config/Code - Exploration/User/globalStorage/state.vscdb, retryOnBusy: true)
[main 2020-12-13T14:35:28.345Z] lifecycle (main): phase changed (value: 2)
[main 2020-12-13T14:35:28.346Z] windowsManager#open
[main 2020-12-13T14:35:28.346Z] windowsManager#open pathsToOpen [
  {
    backupPath: '/home/andrew/.config/Code - Exploration/Backups/1607019742540',
    remoteAuthority: undefined
  }
]
[main 2020-12-13T14:35:28.346Z] window#validateWindowState: validating window state on 2 display(s) { mode: 1, x: 448, y: 145, width: 1024, height: 768 }
[main 2020-12-13T14:35:28.347Z] window#validateWindowState: multi-monitor working area { x: 0, y: 0, width: 3840, height: 2160 }
[main 2020-12-13T14:35:28.347Z] window#ctor: using window state { mode: 1, x: 448, y: 145, width: 1024, height: 768 }
[8243:1213/143528.366040:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
[main 2020-12-13T14:35:28.399Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 0, emptyToRestore: 1, emptyToOpen: 0)
[main 2020-12-13T14:35:28.400Z] lifecycle (main): phase changed (value: 3)
[main 2020-12-13T14:35:28.401Z] update#setState idle
[main 2020-12-13T14:35:28.401Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
(node:8213) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron.  See https://github.com/electron/electron/issues/23506 for more information
[main 2020-12-13T14:35:28.459Z] [storage state.vscdb] getItems(): 54 rows
[main 2020-12-13T14:35:28.460Z] [storage state.vscdb] Trace (event): SELECT * FROM ItemTable
[main 2020-12-13T14:35:28.516Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2020-12-13T14:35:28.560Z] [storage state.vscdb] updateItems(): insert(Map(3) {storage.serviceMachineId => 4f7c4aca-8d4a-4e7d-a6c5-e6a091df382e, telemetry.lastSessionDate => Sun, 13 Dec 2020 14:34:40 GMT, telemetry.currentSessionDate => Sun, 13 Dec 2020 14:35:28 GMT}), delete(Set(0) {})
[main 2020-12-13T14:35:28.560Z] [storage state.vscdb] Trace (event): BEGIN TRANSACTION
[main 2020-12-13T14:35:28.561Z] [storage state.vscdb] Trace (event): INSERT INTO ItemTable VALUES ('storage.serviceMachineId','4f7c4aca-8d4a-4e7d-a6c5-e6a091df382e'),('telemetry.lastSessionDate','Sun, 13 Dec 2020 14:34:40 GMT'),('telemetry.currentSessionDate','Sun, 13 Dec 2020 14:35:28 GMT')
[main 2020-12-13T14:35:28.561Z] [storage state.vscdb] Trace (event): END TRANSACTION
[8213:1213/143528.799098:INFO:CONSOLE(1779)] "%cTRACE color: #888 [storage state.vscdb] open(/home/andrew/.config/Code - Exploration/User/workspaceStorage/1607019742540/state.vscdb, retryOnBusy: true)", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
(node:8275) Electron: Loading non-context-aware native module in renderer: '/usr/share/code-exploration/resources/app/node_modules.asar.unpacked/vscode-sqlite3/build/Release/sqlite.node'. This is deprecated, see https://github.com/electron/electron/issues/18397.
[8213:1213/143528.828713:INFO:CONSOLE(1779)] "%cTRACE color: #888 [storage state.vscdb] Trace (event): PRAGMA user_version = 1;", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143528.853143:INFO:CONSOLE(1779)] "%cTRACE color: #888 [storage state.vscdb] Trace (event): CREATE TABLE IF NOT EXISTS ItemTable (key TEXT UNIQUE ON CONFLICT REPLACE, value BLOB)", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143528.853518:INFO:CONSOLE(1779)] "%cTRACE color: #888 [storage state.vscdb] Trace (event): SELECT * FROM ItemTable", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143528.853570:INFO:CONSOLE(1779)] "%cTRACE color: #888 [storage state.vscdb] getItems(): 20 rows", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143528.854459:INFO:CONSOLE(1779)] "%cTRACE color: #888 lifecycle: starting up (startup kind: 1)", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143528.854487:INFO:CONSOLE(1779)] "%cTRACE color: #888 lifecycle: phase changed (value: 2)", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143528.856587:INFO:CONSOLE(1779)] "%cTRACE color: #888 Skipping initializing user data in desktop", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143528.923841:INFO:CONSOLE(1779)] "%cTRACE color: #888 Layout#layout, height: 1012, width: 622", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143528.969421:INFO:CONSOLE(1779)] "%cTRACE color: #888 workbench configuration {"_":[],"verbose":true,"logsPath":"/home/andrew/.config/Code - Exploration/logs/20201213T143528","appRoot":"/usr/share/code-exploration/resources/app","machineId":"bb3b0470594badc6a8aba91361ba24a17978b8bf84ea4bd0721c4174f673105f","nodeCachedDataDir":"/home/andrew/.config/Code - Exploration/CachedData/d530b3b27d0f52a0290cdb53031ba60f02927c60","mainPid":8213,"execPath":"/usr/share/code-exploration/code-exploration","userEnv":{"VSCODE_IPC_HOOK":"/run/user/1000/vscode-7b2f73f9-1.53.0-exploration-main.sock","VSCODE_NLS_CONFIG":"{\"locale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}"},"isInitialStartup":true,"backupPath":"/home/andrew/.config/Code - Exploration/Backups/1607019742540","windowId":1,"sessionId":"window:1","logLevel":0,"colorScheme":{"dark":false,"highContrast":false},"autoDetectHighContrast":true,"perfEntries":["main:started",1607870128215,"main:appReady",1607870128271,"willLoadMainBundle",1607870128272,"didLoadMainBundle",1607870128313,"main:loadWindow",1607870128394],"partsSplashPath":"/home/andrew/.config/Code - Exploration/rapid_render.json","os":{"release":"5.9.13-200.fc33.x86_64"}}", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.028412:INFO:CONSOLE(1779)] "%cTRACE color: #888 lifecycle: phase changed (value: 3)", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.028974:INFO:CONSOLE(1779)] "%cTRACE color: #888 Created Spdlogger", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
(node:8275) Electron: Loading non-context-aware native module in renderer: '/usr/share/code-exploration/resources/app/node_modules.asar.unpacked/spdlog/build/Release/spdlog.node'. This is deprecated, see https://github.com/electron/electron/issues/18397.
[main 2020-12-13T14:35:29.065Z] menubarService#updateMenubar 1
[8213:1213/143529.071797:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [ADDED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/main.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.228913:INFO:CONSOLE(1779)] "%cTRACE color: #888 Settings Sync: Initializing accounts", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.228948:INFO:CONSOLE(1779)] "%cTRACE color: #888 Settings Sync: Getting accounts for microsoft", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[main 2020-12-13T14:35:29.231Z] RequestService#request https://update.code.visualstudio.com/api/update/linux-x64/exploration/d530b3b27d0f52a0290cdb53031ba60f02927c60
[main 2020-12-13T14:35:29.240Z] [storage state.vscdb] updateItems(): insert(Map(11) {workbench.activity.placeholderViewlets => [{"id":"workbench.view.explorer","themeIcon":{"id":"explorer-view-icon"},"name":"Explorer","views":[{},{"when":"timelineHasProvider"}]},{"id":"workbench.view.search","themeIcon":{"id":"search-view-icon"},"name":"Search","views":[{}]},{"id":"workbench.view.scm","themeIcon":{"id":"source-control-view-icon"},"name":"Source Control","views":[{"when":"scm.providerCount && scm.providerCount != '0'"},{}]},{"id":"workbench.view.debug","themeIcon":{"id":"run-view-icon"},"name":"Run","views":[{"when":"debugUx == 'simple'"},{"when":"debugUx == 'default'"},{"when":"debugUx == 'default'"},{"when":"debugUx == 'default'"},{"when":"loadedScriptsSupported && debugUx == 'default'"},{"when":"breakpointsExist || debugUx == 'default'"}]},{"id":"workbench.view.remote","themeIcon":{"id":"remote-explorer-view-icon"},"name":"Remote Explorer","views":[]},{"id":"workbench.view.extensions","themeIcon":{"id":"extensions-view-icon"},"name":"Extensions","views":[{"when":"defaultExtensionViews && !hasInstalledExtensions"},{"when":"defaultExtensionViews && hasInstalledExtensions"},{"when":"recommendedExtensions && workbenchState != 'empty'"},{"when":"defaultExtensionViews && !hasInstalledExtensions"},{"when":"recommendedExtensions"},{"when":"defaultExtensionViews && !config.extensions.showRecommendationsOnlyOnDemand"},{"when":"defaultExtensionViews && hasInstalledExtensions"},{"when":"defaultExtensionViews && hasInstalledExtensions"},{"when":"searchMarketplaceExtensions"},{"when":"searchInstalledExtensions"},{"when":"searchEnabledExtensions"},{"when":"searchDisabledExtensions"},{"when":"searchOutdatedExtensions"},{"when":"searchBuiltInExtensions"},{"when":"builtInExtensions"},{"when":"builtInExtensions"},{"when":"builtInExtensions"}]},{"id":"workbench.view.extension.references-view"},{"id":"workbench.view.sync","themeIcon":{"id":"settings-sync-view-icon"},"name":"Settings Sync","views":[]}], nps/lastSessionDate => Sun Dec 13 2020, nps/sessionCount => 6, cpp.1.lastSessionDate => Sun Dec 13 2020, cpp.1.sessionCount => 6, java.2.lastSessionDate => Sun Dec 13 2020, java.2.sessionCount => 6, javascript.1.lastSessionDate => Sun Dec 13 2020, javascript.1.sessionCount => 6, typescript.1.lastSessionDate => Sun Dec 13 2020, typescript.1.sessionCount => 6}), delete(Set(0) {})
[main 2020-12-13T14:35:29.241Z] [storage state.vscdb] Trace (event): BEGIN TRANSACTION
[main 2020-12-13T14:35:29.241Z] [storage state.vscdb] Trace (event): INSERT INTO ItemTable VALUES ('workbench.activity.placeholderViewlets','[{"id":"workbench.view.explorer","themeIcon":{"id":"explorer-view-icon"},"name":"Explorer","views":[{},{"when":"timelineHasProvider"}]},{"id":"workbench.view.search","themeIcon":{"id":"search-view-icon"},"name":"Search","views":[{}]},{"id":"workbench.view.scm","themeIcon":{"id":"source-control-view-icon"},"name":"Source Control","views":[{"when":"scm.providerCount && scm.providerCount != ''0''"},{}]},{"id":"workbench.view.debug","themeIcon":{"id":"run-view-icon"},"name":"Run","views":[{"when":"debugUx == ''simple''"},{"when":"debugUx == ''default''"},{"when":"debugUx == ''default''"},{"when":"debugUx == ''default''"},{"when":"loadedScriptsSupported && debugUx == ''default''"},{"when":"breakpointsExist || debugUx == ''default''"}]},{"id":"workbench.view.remote","themeIcon":{"id":"remote-explorer-view-icon"},"name":"Remote Explorer","views":[]},{"id":"workbench.view.extensions","themeIcon":{"id":"extensions-view-icon"},"name":"Extensions","views":[{"when":"defaultExtensionViews && !hasInstalledExtensions"},{"when":"defaultExtensionViews && hasInstalledExtensions"},{"when":"recommendedExtensions && workbenchState != ''empty''"},{"when":"defaultExtensionViews && !hasInstalledExtensions"},{"when":"recommendedExtensions"},{"when":"defaultExtensionViews && !config.extensions.showRecommendationsOnlyOnDemand"},{"when":"defaultExtensionViews && hasInstalledExtensions"},{"when":"defaultExtensionViews && hasInstalledExtensions"},{"when":"searchMarketplaceExtensions"},{"when":"searchInstalledExtensions"},{"when":"searchEnabledExtensions"},{"when":"searchDisabledExtensions"},{"when":"searchOutdatedExtensions"},{"when":"searchBuiltInExtensions"},{"when":"builtInExtensions"},{"when":"builtInExtensions"},{"when":"builtInExtensions"}]},{"id":"workbench.view.extension.references-view"},{"id":"workbench.view.sync","themeIcon":{"id":"settings-sync-view-icon"},"name":"Settings Sync","views":[]}]'),('nps/lastSessionDate','Sun Dec 13 2020'),('nps/sessionCount','6'),('cpp.1.lastSessionDate','Sun Dec 13 2020'),('cpp.1.sessionCount','6'),('java.2.lastSessionDate','Sun Dec 13 2020'),('java.2.sessionCount','6'),('javascript.1.lastSessionDate','Sun Dec 13 2020'),('javascript.1.sessionCount','6'),('typescript.1.lastSessionDate','Sun Dec 13 2020'),('typescript.1.sessionCount','6')
[main 2020-12-13T14:35:29.242Z] [storage state.vscdb] Trace (event): END TRANSACTION
[8213:1213/143529.244652:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/main.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.244725:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [ADDED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/renderer1.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.245881:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [ADDED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/output_1_20201213T143528", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[main 2020-12-13T14:35:29.426Z] [storage state.vscdb] updateItems(): insert(Map(1) {workbench.activity.placeholderViewlets => [{"id":"workbench.view.explorer","themeIcon":{"id":"explorer-view-icon"},"name":"Explorer","views":[{"when":"openEditorsVisible"},{},{},{"when":"timelineHasProvider"},{}]},{"id":"workbench.view.search","themeIcon":{"id":"search-view-icon"},"name":"Search","views":[{}]},{"id":"workbench.view.scm","themeIcon":{"id":"source-control-view-icon"},"name":"Source Control","views":[{"when":"scm.providerCount && scm.providerCount != '0'"},{}]},{"id":"workbench.view.debug","themeIcon":{"id":"run-view-icon"},"name":"Run","views":[{"when":"debugUx == 'simple'"},{"when":"debugUx == 'default'"},{"when":"debugUx == 'default'"},{"when":"debugUx == 'default'"},{"when":"loadedScriptsSupported && debugUx == 'default'"},{"when":"breakpointsExist || debugUx == 'default'"},{"when":"debugConfigurationType == 'pwa-chrome'"}]},{"id":"workbench.view.remote","themeIcon":{"id":"remote-explorer-view-icon"},"name":"Remote Explorer","views":[]},{"id":"workbench.view.extensions","themeIcon":{"id":"extensions-view-icon"},"name":"Extensions","views":[{"when":"defaultExtensionViews && !hasInstalledExtensions"},{"when":"defaultExtensionViews && hasInstalledExtensions"},{"when":"recommendedExtensions && workbenchState != 'empty'"},{"when":"defaultExtensionViews && !hasInstalledExtensions"},{"when":"recommendedExtensions"},{"when":"defaultExtensionViews && !config.extensions.showRecommendationsOnlyOnDemand"},{"when":"defaultExtensionViews && hasInstalledExtensions"},{"when":"defaultExtensionViews && hasInstalledExtensions"},{"when":"searchMarketplaceExtensions"},{"when":"searchInstalledExtensions"},{"when":"searchEnabledExtensions"},{"when":"searchDisabledExtensions"},{"when":"searchOutdatedExtensions"},{"when":"searchBuiltInExtensions"},{"when":"builtInExtensions"},{"when":"builtInExtensions"},{"when":"builtInExtensions"}]},{"id":"workbench.view.extension.references-view","iconUrl":{"$mid":1,"path":"/usr/share/code-exploration/resources/app/extensions/ms-vscode.references-view/media/container-icon.svg","scheme":"file"},"name":"References","views":[{"when":"reference-list.isActive"}]},{"id":"workbench.view.sync","themeIcon":{"id":"settings-sync-view-icon"},"name":"Settings Sync","views":[{"when":"enableSyncMergesView"},{"when":"enableSyncActivityViews && userDataSyncAccountStatus == 'available' && syncStatus != 'uninitialized'"},{"when":"enableSyncActivityViews && userDataSyncAccountStatus == 'available' && syncStatus != 'uninitialized'"},{"when":"enableSyncActivityViews && userDataSyncAccountStatus == 'available' && syncStatus != 'uninitialized'"}]}]}), delete(Set(0) {})
[main 2020-12-13T14:35:29.427Z] [storage state.vscdb] Trace (event): BEGIN TRANSACTION
[main 2020-12-13T14:35:29.427Z] [storage state.vscdb] Trace (event): INSERT INTO ItemTable VALUES ('workbench.activity.placeholderViewlets','[{"id":"workbench.view.explorer","themeIcon":{"id":"explorer-view-icon"},"name":"Explorer","views":[{"when":"openEditorsVisible"},{},{},{"when":"timelineHasProvider"},{}]},{"id":"workbench.view.search","themeIcon":{"id":"search-view-icon"},"name":"Search","views":[{}]},{"id":"workbench.view.scm","themeIcon":{"id":"source-control-view-icon"},"name":"Source Control","views":[{"when":"scm.providerCount && scm.providerCount != ''0''"},{}]},{"id":"workbench.view.debug","themeIcon":{"id":"run-view-icon"},"name":"Run","views":[{"when":"debugUx == ''simple''"},{"when":"debugUx == ''default''"},{"when":"debugUx == ''default''"},{"when":"debugUx == ''default''"},{"when":"loadedScriptsSupported && debugUx == ''default''"},{"when":"breakpointsExist || debugUx == ''default''"},{"when":"debugConfigurationType == ''pwa-chrome''"}]},{"id":"workbench.view.remote","themeIcon":{"id":"remote-explorer-view-icon"},"name":"Remote Explorer","views":[]},{"id":"workbench.view.extensions","themeIcon":{"id":"extensions-view-icon"},"name":"Extensions","views":[{"when":"defaultExtensionViews && !hasInstalledExtensions"},{"when":"defaultExtensionViews && hasInstalledExtensions"},{"when":"recommendedExtensions && workbenchState != ''empty''"},{"when":"defaultExtensionViews && !hasInstalledExtensions"},{"when":"recommendedExtensions"},{"when":"defaultExtensionViews && !config.extensions.showRecommendationsOnlyOnDemand"},{"when":"defaultExtensionViews && hasInstalledExtensions"},{"when":"defaultExtensionViews && hasInstalledExtensions"},{"when":"searchMarketplaceExtensions"},{"when":"searchInstalledExtensions"},{"when":"searchEnabledExtensions"},{"when":"searchDisabledExtensions"},{"when":"searchOutdatedExtensions"},{"when":"searchBuiltInExtensions"},{"when":"builtInExtensions"},{"when":"builtInExtensions"},{"when":"builtInExtensions"}]},{"id":"workbench.view.extension.references-view","iconUrl":{"$mid":1,"path":"/usr/share/code-exploration/resources/app/extensions/ms-vscode.references-view/media/container-icon.svg","scheme":"file"},"name":"References","views":[{"when":"reference-list.isActive"}]},{"id":"workbench.view.sync","themeIcon":{"id":"settings-sync-view-icon"},"name":"Settings Sync","views":[{"when":"enableSyncMergesView"},{"when":"enableSyncActivityViews && userDataSyncAccountStatus == ''available'' && syncStatus != ''uninitialized''"},{"when":"enableSyncActivityViews && userDataSyncAccountStatus == ''available'' && syncStatus != ''uninitialized''"},{"when":"enableSyncActivityViews && userDataSyncAccountStatus == ''available'' && syncStatus != ''uninitialized''"}]}]')
[8213:1213/143529.427878:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/main.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[main 2020-12-13T14:35:29.427Z] [storage state.vscdb] Trace (event): END TRANSACTION
[8213:1213/143529.476183:INFO:CONSOLE(1779)] "%cTRACE color: #888 CommandService#executeCommand extension.js-debug.clearAutoAttachVariables", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.476609:INFO:CONSOLE(1779)] "%cTRACE color: #888 CommandService#executeCommand setContext", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.476743:INFO:CONSOLE(1779)] "%cTRACE color: #888 CommandService#executeCommand setContext", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.479744:INFO:CONSOLE(1779)] "%cTRACE color: #888 CommandService#executeCommand setContext", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.486441:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [ADDED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/exthost1", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.569346:INFO:CONSOLE(1779)] "%cTRACE color: #888 MainThreadTreeViews#$registerTreeViewDataProvider jsBrowserBreakpoints [object Object]", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.573886:INFO:CONSOLE(1779)] "%cTRACE color: #888 Settings Sync: Updated accounts for microsoft", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.573918:INFO:CONSOLE(1779)] "%cTRACE color: #888 Settings Sync: Getting accounts for github", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.573943:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/renderer1.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.576646:INFO:CONSOLE(1779)] "%cTRACE color: #888 [storage state.vscdb] updateItems(): insert(Map(1) {terminal.integrated.environmentVariableCollections => []}), delete(Set(0) {})", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.577532:INFO:CONSOLE(1779)] "%cTRACE color: #888 [storage state.vscdb] Trace (event): BEGIN TRANSACTION", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.577692:INFO:CONSOLE(1779)] "%cTRACE color: #888 [storage state.vscdb] Trace (event): INSERT INTO ItemTable VALUES ('terminal.integrated.environmentVariableCollections','[]')", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.578160:INFO:CONSOLE(1779)] "%cTRACE color: #888 [storage state.vscdb] Trace (event): END TRANSACTION", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.596771:INFO:CONSOLE(1779)] "%cTRACE color: #888 Settings Sync: Updated accounts for github", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[main 2020-12-13T14:35:29.697Z] menubarService#updateMenubar 1
[8213:1213/143529.709350:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/main.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.898808:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] >> normalized [ADDED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/main.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.898957:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] >> normalized [ADDED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/renderer1.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.899190:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] >> normalized [ADDED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/output_1_20201213T143528", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143529.899273:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] >> normalized [ADDED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/exthost1", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143530.577391:INFO:CONSOLE(1779)] "%cTRACE color: #888 [storage state.vscdb] updateItems(): insert(Map(1) {terminal.integrated.environmentVariableCollections => [{"extensionIdentifier":"vscode.git","collection":[["VSCODE_GIT_IPC_HANDLE",{"value":"/run/user/1000/vscode-git-057dd012a2.sock","type":1}],["GIT_ASKPASS",{"value":"/usr/share/code-exploration/resources/app/extensions/git/dist/askpass.sh","type":1}],["VSCODE_GIT_ASKPASS_NODE",{"value":"/usr/share/code-exploration/code-exploration","type":1}],["VSCODE_GIT_ASKPASS_MAIN",{"value":"/usr/share/code-exploration/resources/app/extensions/git/dist/askpass-main.js","type":1}]]}]}), delete(Set(0) {})", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143530.578409:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/renderer1.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143530.578925:INFO:CONSOLE(1779)] "%cTRACE color: #888 [storage state.vscdb] Trace (event): BEGIN TRANSACTION", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143530.579468:INFO:CONSOLE(1779)] "%cTRACE color: #888 [storage state.vscdb] Trace (event): INSERT INTO ItemTable VALUES ('terminal.integrated.environmentVariableCollections','[{"extensionIdentifier":"vscode.git","collection":[["VSCODE_GIT_IPC_HANDLE",{"value":"/run/user/1000/vscode-git-057dd012a2.sock","type":1}],["GIT_ASKPASS",{"value":"/usr/share/code-exploration/resources/app/extensions/git/dist/askpass.sh","type":1}],["VSCODE_GIT_ASKPASS_NODE",{"value":"/usr/share/code-exploration/code-exploration","type":1}],["VSCODE_GIT_ASKPASS_MAIN",{"value":"/usr/share/code-exploration/resources/app/extensions/git/dist/askpass-main.js","type":1}]]}]')", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143530.580181:INFO:CONSOLE(1779)] "%cTRACE color: #888 [storage state.vscdb] Trace (event): END TRANSACTION", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143530.778909:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] >> normalized [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/renderer1.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[main 2020-12-13T14:35:31.406Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
(node:8213) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron.  See https://github.com/electron/electron/issues/23506 for more information
[8213:1213/143531.429480:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/main.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.429697:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/renderer1.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.522253:INFO:CONSOLE(1779)] "%cTRACE color: #888 lifecycle: phase changed (value: 4)", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.522635:INFO:CONSOLE(1779)] "%cTRACE color: #888 RequestService#request https://vscodeexperiments.azureedge.net/experiments/vscode-experiments.json", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[main 2020-12-13T14:35:31.535Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2020-12-13T14:35:31.602Z] Shared process: IPC ready
[8213:1213/143531.608372:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] >> normalized [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/main.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.608420:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] >> normalized [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/renderer1.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
(node:8339) Electron: Loading non-context-aware native module in renderer: '/usr/share/code-exploration/resources/app/node_modules.asar.unpacked/spdlog/build/Release/spdlog.node'. This is deprecated, see https://github.com/electron/electron/issues/18397.
[main 2020-12-13T14:35:31.625Z] Shared process: init ready
[8213:1213/143531.678777:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [ADDED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/telemetry.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.679068:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/telemetry.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.679498:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/telemetry.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.679989:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/telemetry.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.680334:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/telemetry.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.680590:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/telemetry.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.680995:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/telemetry.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.681305:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/telemetry.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.681466:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/telemetry.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.681789:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/telemetry.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.682045:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/telemetry.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.682441:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/telemetry.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.683324:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/telemetry.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.683359:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/telemetry.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.687828:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/telemetry.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.691725:INFO:CONSOLE(1779)] "%cTRACE color: #888 Settings Sync: Account status changed from uninitialized to unavailable", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.692295:INFO:CONSOLE(1779)] "%cTRACE color: #888 Settings Sync: Accounts are initialized", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.717212:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [ADDED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/sharedprocess.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.763893:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/telemetry.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.763923:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [ADDED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/userDataSync.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[main 2020-12-13T14:35:31.951Z] menubarService#updateMenubar 1
[8213:1213/143531.960935:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/main.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143531.961061:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/renderer1.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143532.153451:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] >> normalized [ADDED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/telemetry.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143532.153602:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] >> normalized [ADDED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/sharedprocess.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143532.153775:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] >> normalized [ADDED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/userDataSync.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143532.153890:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] >> normalized [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/main.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143532.154016:INFO:CONSOLE(1779)] "%cTRACE color: #888 [File Watcher (node.js)] >> normalized [CHANGED] /home/andrew/.config/Code - Exploration/logs/20201213T143528/renderer1.log", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143552.301275:INFO:CONSOLE(1779)] "%cTRACE color: #888 [storage state.vscdb] updateItems(): insert(Map(1) {memento/workbench.parts.editor => {"editorpart.state":{"serializedGrid":{"root":{"type":"branch","data":[{"type":"leaf","data":{"id":0,"editors":[{"id":"workbench.editors.welcomePageInput","value":"{}"}],"mru":[0],"preview":0},"size":990}],"size":574},"orientation":0,"width":574,"height":990},"activeGroup":0,"mostRecentActiveGroups":[0]}}}), delete(Set(0) {})", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143552.304286:INFO:CONSOLE(1779)] "%cTRACE color: #888 [storage state.vscdb] Trace (event): BEGIN TRANSACTION", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143552.304443:INFO:CONSOLE(1779)] "%cTRACE color: #888 [storage state.vscdb] Trace (event): INSERT INTO ItemTable VALUES ('memento/workbench.parts.editor','{"editorpart.state":{"serializedGrid":{"root":{"type":"branch","data":[{"type":"leaf","data":{"id":0,"editors":[{"id":"workbench.editors.welcomePageInput","value":"{}"}],"mru":[0],"preview":0},"size":990}],"size":574},"orientation":0,"width":574,"height":990},"activeGroup":0,"mostRecentActiveGroups":[0]}}')", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[8213:1213/143552.305608:INFO:CONSOLE(1779)] "%cTRACE color: #888 [storage state.vscdb] Trace (event): END TRANSACTION", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
[main 2020-12-13T14:35:52.411Z] [storage state.vscdb] updateItems(): insert(Map(2) {workbench.grid.width => 622, workbench.grid.height => 1012}), delete(Set(0) {})
[main 2020-12-13T14:35:52.412Z] [storage state.vscdb] Trace (event): BEGIN TRANSACTION
[main 2020-12-13T14:35:52.412Z] [storage state.vscdb] Trace (event): INSERT INTO ItemTable VALUES ('workbench.grid.width','622'),('workbench.grid.height','1012')
[main 2020-12-13T14:35:52.413Z] [storage state.vscdb] Trace (event): END TRANSACTION
[main 2020-12-13T14:35:58.409Z] update#checkForUpdates, state =  idle
[main 2020-12-13T14:35:58.410Z] update#setState checking for updates
[main 2020-12-13T14:35:58.410Z] RequestService#request https://update.code.visualstudio.com/api/update/linux-x64/exploration/d530b3b27d0f52a0290cdb53031ba60f02927c60
[main 2020-12-13T14:35:58.447Z] update#setState idle
[8213:1213/143612.499578:INFO:CONSOLE(1779)] "%cTRACE color: #888 Layout#layout, height: 1012, width: 941", source: file:///usr/share/code-exploration/resources/app/out/vs/workbench/workbench.desktop.main.js (1779)
http://: Invalid host name.
Unexpected crash report id length
Failed to get crash dump id.
Report Id:

VSCode crashes when I move the cursor into the window, and the terminal it's launched from displays this as soon as I do:

http://: Invalid host name.
Unexpected crash report id length
Failed to get crash dump id.
Report Id:

Here is a video of this happening: https://www.youtube.com/watch?v=7JOz1q59qGc

The text in the window is crisp, which is not the case on XWayland applications on hi-DPI displays on sway, so it does actually appear to be launching in Wayland!

I'd be more than happy to help by providing additional info :)

@kriive
Copy link

kriive commented Dec 14, 2020

@andrewnicolalde as far as I understand, the latest code-exploration build is still on 11.0.3, thus it doesn't have the Ozone code path properly enabled.

@theGeekyLad
Copy link

Any idea when we can see VS Code with Electron 12 and the partial Wayland support?

@ghost
Copy link

ghost commented Dec 29, 2020

@theGeekyLad Wait at least until Electron 12 itself is released. It's in beta right now.

image

@LyesSaadi
Copy link

According to this document, Electron 12 will be released the 2nd of March 2021 😢.

@a0n
Copy link

a0n commented Jan 6, 2021

Really looking forward to this!

@adrusi
Copy link

adrusi commented Jan 10, 2021

While we're all waiting for native wayland support, a bit of a workaround:

Run code-server and use it from Firefox, which has native wayland support. Ideally run it in an SSB (firefox's equivalent of chrome's PWAs) to avoid keybinding conflicts. That'll require enabling browser.ssb.enabled in about:config and running code-server with SSL (I achieve this by importing a root cert into firefox, but there are alternatives).

If you don't require access to the marketplace or proprietary extensions, this should suffice until the Electron 12 builds are ready.

@Jamesxu182
Copy link

For someone who is using archlinux and wayland. I created an aur package called "visual-studio-code-wayland", which basically builds vscode with electron 12. it is inspired by the patch from @kriive above. please see here: https://aur.archlinux.org/packages/visual-studio-code-wayland.

@tyalie
Copy link

tyalie commented Jan 21, 2021

I should definitely switch to Arch one day all the best packages are there 😂

@IzhakJakov
Copy link

IzhakJakov commented Mar 15, 2022

Oh you are trying to use code-insiders. I am just using code-oss.
code --enable-features=UseOzonePlatform --ozone-platform=wayland worked for me.
code is a softlink to code-oss which is an invoker to an unbranded version of vscode.
https://wiki.archlinux.org/title/Visual_Studio_Code.


What happens if you add the followings:

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

to ~/.config/electron-flags.conf as described in this document?

That worked for me but I had to use ~/.config/electron13-flags.conf which is described in this document as well.

@IzhakJakov
Copy link

code-insiders is essentially an invoker for $VSCODE_PATH/resources/app/out/cli.js
You can try adding --enable-features=UseOzonePlatform --ozone-platform=wayland directly to:

ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" --ms-enable-electron-run-as-node "$@"
and see what happens.

@thblckjkr
Copy link

I added the flags to /usr/bin/code-insiders and the line ended up looking ike this:

ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" --ms-enable-electron-run-as-node "$@" --enable-features=UseOzonePlatform --ozone-platform=wayland

The output was the same (flags not recognized) and the program failed to start.

If I try to run the binary directly, it still fails, but now it says: segmentation fault.

$ /opt/visual-studio-code-insiders/code-insiders --ozone-platform=wayland
[14304:0315/122951.408013:ERROR:gpu_init.cc(454)] Passthrough is not supported, GL is egl, ANGLE is 
[14304:0315/122951.411317:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
Warning: 'ozone-platform' is not in the list of known options, but still passed to Electron/Chromium.
[0315/122951.464512:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0315/122951.483451:ERROR:directory_reader_posix.cc(42)] opendir /home/thblckjkr/.config/Code - Insiders/Crashpad/attachments/1afec696-1873-45a6-aedc-cda4c093efb9: No such file or directory (2)
Segmentation fault (core dumped)

I also added the flags on the ~/.config/electron-flags.conf file, but it looks like it isn't recognized and loaded on my installation.

@IzhakJakov
Copy link

I just ran:

❯ ELECTRON_RUN_AS_NODE=1 electron13 /usr/lib/code/out/cli.js /usr/lib/code/code.js --enable-features=UseOzonePlatform --ozone-platform=wayland
Warning: 'enable-features' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'ozone-platform' is not in the list of known options, but still passed to Electron/Chromium.

And confirmed that although I get this warning. code is indeed running in wayland.
I can easily tell because xwayland does not respect my dark theme. Also I am using a 4k monitor and code on xwayland is pixelated very badly. So when I run code with --enable-features=UseOzonePlatform --ozone-platform=wayland, it's using wayland and when I don't it is using xwayland

image
wayland on the right VS xwayland on the left

Another way to find out if the program you are running is wayland or not is to simply stop xwayland and if you can not click on anything in some app, that app is xwayland. You can re-enable xwayland and everything you click should work again.

Try that on your code-insiders


One interesting thing I found out is that while you do not need xwayland for code to be running if it was invoked with --enable-features=UseOzonePlatform --ozone-platform=wayland, you still need it to be running when you start code1. I hope this is something that would be fixed in the future.

Footnotes

  1. If you start code with --enable-features=UseOzonePlatform --ozone-platform=wayland, you can close xwayland afterwards.

@HubKing
Copy link

HubKing commented Mar 16, 2022

@HubKing arrow_up

I am using (Gnome) Manjaro. The version in the official repository is Code OSS. That thing did not start if I pass those flags.

The version in in AUR,
image
seems to use Wayland if I pass those flags, because the text does not look blurry, but it has no window decoration, so I cannot drag the window.

image

Also, it seems to be using Electron 13. I have manually installed the latest Electron, whose version seems to be 17, and it looks crisp text. I want to try "ELECTRON_RUN_AS_NODE=1 electron /usr/lib/code/out/cli.js /usr/lib/code/code.js ...." but there are no such files. I only see "/opt/visual-studio-code", and it has "cli.js", but no "code.js". It has "code", but its size is 130MB, so it probably is not a JS file.

image

@IzhakJakov
Copy link

I am using (Gnome) Manjaro. The version in the official repository is Code OSS. That thing did not start if I pass those flags.

Hmm... I wonder how you called it because it works for me on sway.


seems to use Wayland if I pass those flags, because the text does not look blurry, but it has no window decoration, so I cannot drag the window.

According to this document on Gnome you might need additional feature to enable window decorations on wayland:

--enable-features=UseOzonePlatform,WaylandWindowDecorations

BTW, unless you change the default keybindings for Gnome, you should be able to move the window by holding +<mouse_button> (I am not sure which mouse button)

@abraxxa
Copy link

abraxxa commented Mar 16, 2022

Adding on the cli works for me on Ubuntu 21.10 with sway, in ~/.config/electron-flags.conf and ~/.config/electron13-flags.conf doesn't. XDG_CONFIG_HOME isn't set by sway, not sure if that makes a difference.

@nkia-christoph
Copy link

nkia-christoph commented Mar 22, 2022

According to this document on Gnome you might need additional feature to enable window decorations on wayland

Alternatively you can use the custom title bar. Works well for me on Pop!_OS and also saves some vertical space.

Screenshot from 2022-03-22 10-30-41

@rstrube
Copy link

rstrube commented Mar 30, 2022

VSCode 1.66 just hit stable for Arch, and after upgrading to 1.66 I can no longer run VSCode as a native wayland application. There must be a regression issue. Previously I code run: code --enable-features=UseOzonePlatform --ozone-platform=wayland or simply setup ~/.config/code-flags.conf with:

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

And it would run as a native wayland application.

When I try to do this with 1.66, the application fails to start.

I can still run it just fine as an XWayland application.

Note: you can run xlsclients to see any applications that are running under XWayland.

@RicArch97
Copy link

Since Chromium 97, enabling the Wayland backend only requires the --ozone-platform-hint=auto flag, which then automatically detects Wayland if you're using it. VSCode should be on Chromium 98 now so you can use that instead.

(this has nothing to do with the comment above)

@rstrube
Copy link

rstrube commented Mar 30, 2022

Since Chromium 97, enabling the Wayland backend only requires the --ozone-platform-hint=auto flag, which then automatically detects Wayland if you're using it. VSCode should be on Chromium 98 now so you can use that instead.

(this has nothing to do with the comment above)

I've tried that, and it didn't seem to work (even before the hard crash now with VSCode 1.66). I'm not sure if it's because VSCode is still using an older version of electron? You're correct that it does work for Google Chrome. In fact I do have the following in my ~/.config/chrome-flags.conf

--enable-features=WebRTCPipeWireCapturer
--ozone-platform-hint=auto

It it works fine for Chrome.

Edit: continued...
But this does not appear to work for VSCode.

@rstrube
Copy link

rstrube commented Mar 30, 2022

I wanted to provide a coredump of the crash that is occurring with VSCode 1.66 when attempting to run it as a native wayland application. I'm not sure if this will help or not.

Based on this thread it seemed that there was a regression introduced with 1.66 (which people using code-insiders started to notice). Now that 1.66 is stable this same problem is affecting everyone.

vscode_1.66.coredump.txt

@oscarkey
Copy link

I'm also hitting this as of 1.66. Seems like it's probably the same issue as being discussed here? #146349

@paolomainardi
Copy link

I don't know if has already been said, but also Chrome updated yesterday on Arch - Version 100.0.4896.60 (Official Build) (64-bit) - is broken with Wayland now.

@bacteriostat
Copy link

Electron17 is now updated to 17.3.1. Now I am able to launch code under wayland with code --enable-features=UseOzonePlatform --ozone-platform=wayland. But the --ozone-platform-hint=auto flag seems to have no effect. It does work on chromium.

@pbryan
Copy link

pbryan commented Apr 4, 2022

[pbryan@sesame ~]$ /opt/visual-studio-code/code --enable-features=UseOzonePlatform --ozone-platform=wayland
[304926:0404/102527.563331:ERROR:gpu_init.cc(454)] Passthrough is not supported, GL is egl, ANGLE is 
[304926:0404/102527.567356:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
Warning: 'enable-features' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'ozone-platform' is not in the list of known options, but still passed to Electron/Chromium.
[304883:0404/102527.615072:ERROR:cursor_loader.cc(116)] Failed to load a platform cursor of type kNull
[0404/102527.620756:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0404/102527.640310:ERROR:directory_reader_posix.cc(42)] opendir /home/pbryan/.config/Code/Crashpad/attachments/0946e5db-6f17-4fa7-a220-d77c8b893670: No such file or directory (2)
Segmentation fault (core dumped)

@slagiewka
Copy link

FWIW the Insiders version runs, but starts as LoDPI on a display which has 200% scaling. Using Developer: Reload Window fixes that and it then runs as proper HiDPI window.

Same is with latest signal-desktop, but for Signal I know of no way to reload it the window...

@major-mayer

This comment was marked as resolved.

@bbx0
Copy link

bbx0 commented Apr 21, 2022

Actually on Arch code runs with native wayland using the respective settings. :)

Version: 1.66.0
Commit: e18005f0f1b33c29e81d732535d8c0e47cafb0b5
Date: 2022-04-02T14:00:30.308Z
Electron: 17.4.0
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Linux x64 5.17.3-zen1-1-zen
$ pacman -Q code                                                                                                                                                                                                         
code 1.66.0-2
$ cat ~/.config/electron17-flags.conf                                                                                                                                                                                    
--enable-features=UseOzonePlatform,WaylandWindowDecorations,WebRTCPipeWireCapturer
--ozone-platform=wayland
--ozone-platform-hint=auto

--ozone-platform-hint=auto has currently no effect. I just maintain it for future reference.

@major-mayer
Copy link

Well i don't know what went wrong before, but now for me it also works... Sorry for the spam
BTW: You don't need UseOzonePlatform anymore. Ozone is the new default since a few Chromium releases.

@abraxxa
Copy link

abraxxa commented Apr 26, 2022

None of those config files work for me on Ubuntu 22.04 with code 1.66.2. Launching code with --verbose spews so much output it doesn't help me see the problem.
Any pointers?

@RicArch97
Copy link

RicArch97 commented Apr 26, 2022

None of those config files work for me on Ubuntu 22.04 with code 1.66.2. Launching code with --verbose spews so much output it doesn't help me see the problem.
Any pointers?

If you mean the ~/.config/electron-flags.conf file, that's Arch Linux specific.

@abraxxa
Copy link

abraxxa commented Apr 26, 2022

Yes, this an the version specific electron17-flags.conf.
I've tried ~/.config/chrome-flags.conf as well, was ignored as well.

@kevindumanoir
Copy link

I got the same issue as @slagiewka with a 150% scaling. The same issue happens when you relaunch Chrome while keeping active tabs.

@noahtallen
Copy link

On Fedora 36 + Sway, code --ozone-platform=wayland successfully launches VS Code in Wayland (no need for the other flags), but it seems we are still waiting on #134612 and its PR #135191 for a global configuration.

One way to work around this is to copy the code.desktop file from /usr/share/applications to ~/.local/share/applications, and set the Exec line to Exec=/usr/share/code/code --ozone-platform=wayland --unity-launch %F. Then Code opens using Wayland when running it via the quick launcher. (Note that the file paths might be different depending on the OS; this is for Fedora.)

Once Code is already running from an app launcher, the code CLI command will work with Wayland. Even when code ./path/to/dir opens a directory in a new window, that new window runs Wayland as long as you've already opened code from a launcher.

I don't think this issue is really fixed until VS Code is natively using Wayland by default if it's available.

@bacteriostat
Copy link

The flag --ozone-platform-hint needs to be added to electron from chromium (electron/electron#33810) and then electron apps can automatically launch on X11/Wayland based on the current session.

@github-actions github-actions bot locked and limited conversation to collaborators May 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
electron Issues and items related to Electron insiders-released Patch has been released in VS Code Insiders linux Issues with VS Code on Linux upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream
Projects
None yet
Development

No branches or pull requests