Repository: vscode
Issue: Slowdown in native file dialogs for wayland
Labels: bug,freeze-slow-crash-leak,linux,snap


Issue Type: <b>Performance Issue</b>

I/O operations (e.g. opening a file, deleting files, opening links) using the VSCode interface are noticeably laggy. Initially I thought this might be to do with my filesystem itself but doing the same on other software (e.g. LibreOffice) does not produce any noticeable lag.

In fact, clicking the "Preview on GitHub" button when I tried to report this issue causes the same lag!

Steps to reproduce:

* Open VSCode.
* Attempt to open a file / folder OR delete file in VSCode explorer tab.



VS Code version: Code 1.45.1 (5763d909d5f12fe19f215cbfdd29a91c0fa9208a, 2020-05-14T08:27:22.494Z)
OS version: Linux x64 5.4.0-33-generic snap

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (8 x 2984)|
|GPU Status|2d_canvas: unavailable_software<br>flash_3d: disabled_software<br>flash_stage3d: disabled_software<br>flash_stage3d_baseline: disabled_software<br>gpu_compositing: disabled_software<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>protected_video_decode: disabled_off<br>rasterization: disabled_software<br>skia_renderer: disabled_off_ok<br>video_decode: disabled_software<br>viz_display_compositor: enabled_on<br>viz_hit_test_surface_layer: disabled_off_ok<br>webgl: unavailable_software<br>webgl2: unavailable_software|
|Load (avg)|1, 1, 1|
|Memory (System)|15.11GB (5.31GB free)|
|Process Argv|--force-user-env --no-sandbox --unity-launch --no-sandbox|
|Screen Reader|no|
|VM|0%|
|DESKTOP_SESSION|ubuntu-wayland|
|XDG_CURRENT_DESKTOP|Unity|
|XDG_SESSION_DESKTOP|ubuntu-wayland|
|XDG_SESSION_TYPE|wayland|
</details><details>
<summary>Process Info</summary>

```
CPU %	Mem MB	   PID	Process
    0	   139	  7417	code main
    0	    31	  7419	   zygote
    0	    93	  7456	   gpu-process
    0	    46	  7458	   utility
    0	   294	  7468	   window (App.js - part9 (Workspace) - Visual Studio Code)
    0	   108	  7736	     watcherService
    0	    62	  7751	     searchService
    0	     0	  7915	     /bin/bash
    0	    46	 12024	       node /usr/share/yarn/bin/yarn.js run dev
    0	     0	 12047	         electron_node index.js 
    0	    31	 12048	           /home/linuxbrew/.linuxbrew/Cellar/node/14.3.0_1/bin/node /home/zegheim/Documents/projects/fullstackopen/tutorial/backend/node_modules/.bin/nodemon --inspect index.js
    0	     0	 12068	             sh -c node --inspect index.js
    0	    46	 12069	               /home/linuxbrew/.linuxbrew/Cellar/node/14.3.0_1/bin/node --inspect index.js
    0	     0	 11678	     /bin/bash
    0	    46	 12790	       node /usr/share/yarn/bin/yarn.js start
    0	     0	 12811	         /bin/sh -c react-scripts start
    0	    31	 12812	           /home/linuxbrew/.linuxbrew/Cellar/node/14.3.0_1/bin/node /home/zegheim/Documents/projects/fullstackopen/tutorial/node_modules/.bin/react-scripts start
    0	   155	 12819	             /home/linuxbrew/.linuxbrew/Cellar/node/14.3.0_1/bin/node /home/zegheim/Documents/projects/fullstackopen/tutorial/node_modules/react-scripts/scripts/start.js
    0	     0	 11739	     /bin/bash
    0	   124	 12622	     extensionHost
    0	    77	 12659	       electron_node tsserver.js 
    0	   371	 12660	       electron_node tsserver.js 
    0	   124	 12712	         electron_node typingsInstaller.js typesMap.js 
    0	    62	 12677	       /snap/code/33/usr/share/code/code /snap/code/33/usr/share/code/resources/app/extensions/json-language-features/server/dist/jsonServerMain --node-ipc --clientProcessId=12622
    0	    93	 12680	       electron_node eslintServer.js 
    0	   108	  7754	   shared-process
    0	     0	 13804	     /bin/sh -c /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    0	     0	 13805	       /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    0	   108	 13774	   window (Issue Reporter)
```

</details>
<details>
<summary>Workspace Info</summary>

```
|  Window (App.js - part9 (Workspace) - Visual Studio Code)
|    Folder (tutorial): 65 files
|      File types: js(16) json(6) png(4) rest(4) map(4) txt(3) eslintignore(2)
|                  gitignore(2) lock(2) ico(2)
|      Conf files: package.json(2)
|    Folder (phonebook): 65 files
|      File types: js(15) json(6) rest(6) png(4) map(4) txt(3) gitignore(2)
|                  lock(2) ico(2) html(2)
|      Conf files: package.json(2);
```

</details>
<details><summary>Extensions (11)</summary>

Extension|Author (truncated)|Version
---|---|---
vscode-markdownlint|Dav|0.36.0
vscode-eslint|dba|2.1.5
unsaved|esa|0.2.5
prettier-vscode|esb|5.0.0
vscode-firefox-debug|fir|2.8.0
rest-client|hum|0.23.2
vscode-edit-csv|jan|0.2.9
vscode-language-babel|mgm|0.0.27
python|ms-|2020.5.80290
debugger-for-chrome|msj|4.12.8
autodocstring|njp|0.5.3


</details>
<!-- generated by issue reporter -->