Visual Studio Code - Searching triggers Windows Defender process with high CPU usage - visual-studio-code

I'm trying to move from Netbeans IDE to VS Code. I have a fresh instalation (newest version 1.29.0) without any extensions on Windows 8.1.
When I try to search a file by CTRL+E immedietly Antimalware Service Executable process (Windows Defender) spikes CPU usage for a second and my CPU fan goes nuts. Even before I type to search anything. It's very annoying.
I have excluded code.exe from Windows Defender and the entire folder within I'm trying to search. It helped a little - 98% CPU usage lowered to like 40%. Still not the result I was hoping for.
CPU is Intel Core i7-2600.
What am I doing wrong?

I believe that this is a bug in VS code. A couple of issues have been raised about it on GitHub in the last few days:
https://github.com/Microsoft/vscode/issues/63070

Related

why Visual Studio Code is get slower and freezes and suddenly gives not responsing message

I have a problem with VS Code: whenever I code, debug, or run the code on my physical device using Flutter, it gets very slow, freezes, and shows "Windows is not responding: Reopen!" I disabled all the extensions, but nothing worked. I even tried some commands like deleting the user directory and disabling the extensions, but I still faced the same issue. I deleted the cache in AppData/Roaming/code, but still no luck. I also deleted the code file, and the same issue still exists! I even did this: -Open the Command Palette (Ctrl+Shift+P). Run the Preferences: Configure Runtime Arguments -Add "disable-hardware-acceleration": true. -Restart VS Code. I have looked it up all over the internet, and nothing worked! Please help me! these are the extntion:
Device Specifications:
Device name BadriyaHaddad
Processor Intel(R) Core(TM) i5-3230M CPU # 2.60GHz 2.60 GHz
Installed RAM 12.0 GB (11.9 GB usable)
Device ID 7B1CE693-8DEC-426E-B6FB-54CC3FADE82A
Product ID 00331-10000-00001-AA635
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display
Windows Specifications:
Edition Windows 10 Pro
Version 22H2
Installed on ‎11/‎27/‎2022
OS build 19045.2364
Experience Windows Feature Experience Pack 120.2212.4190.0
enter image description here

VS Code is slow and freezing and then not responding [duplicate]

I have a problem with VS Code: whenever I code, debug, or run the code on my physical device using Flutter, it gets very slow, freezes, and shows "Windows is not responding: Reopen!" I disabled all the extensions, but nothing worked. I even tried some commands like deleting the user directory and disabling the extensions, but I still faced the same issue. I deleted the cache in AppData/Roaming/code, but still no luck. I also deleted the code file, and the same issue still exists! I even did this: -Open the Command Palette (Ctrl+Shift+P). Run the Preferences: Configure Runtime Arguments -Add "disable-hardware-acceleration": true. -Restart VS Code. I have looked it up all over the internet, and nothing worked! Please help me! these are the extntion:
Device Specifications:
Device name BadriyaHaddad
Processor Intel(R) Core(TM) i5-3230M CPU # 2.60GHz 2.60 GHz
Installed RAM 12.0 GB (11.9 GB usable)
Device ID 7B1CE693-8DEC-426E-B6FB-54CC3FADE82A
Product ID 00331-10000-00001-AA635
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display
Windows Specifications:
Edition Windows 10 Pro
Version 22H2
Installed on ‎11/‎27/‎2022
OS build 19045.2364
Experience Windows Feature Experience Pack 120.2212.4190.0
enter image description here

Why does Eclipse freeze for nearly every action?

Problem
Every time I use Eclipse on my personal laptop, it constantly freezes (e.i. the process stops responding) for seemingly everything I do except for regular typing (without content assist). Any other action will cause it to freeze 7 out of 10 times, for roughly 10-20 seconds, mainly:
Any automatic proposal menus (e.g. when you type . after a variable name and a list of options appears) or manual ones (e.i. Ctrl + Space).
Any auto-import (Ctrl + Shift + O) or auto-format (Ctrl + Shift + Space)
Any context menu
Viewing JavaDoc comments
Any interaction with the project/package explorer
Any load/save operations
Any run/debug operation
Exiting the program
Every once in a while, it will not freeze, but the content assist will take a very long time to give me proposals, or the JavaDoc info will take a long time to load.
I use Eclipse on my work laptop and I do not experience any of these issues.
Things I've tried
Increase the RAM
Monitor the heap (I did not observe any correlation between heap size and freezing)
Move my workspace from my external drive to my internal drive
Run eclipse -clean
Perform a clean installation:
Delete the installation directory (%userprofile%\eclipse\java-XXXX-XX\eclipse)
Delete the .p2 directory (%userprofile%\.p2)
Download and install the latest version of Eclipse
Create a new workspace (and test it by creating a new project instead of importing old ones)
Disable the "Override high DPI scaling behavior" option (see this)
Environment
I am sure that someone is going to ask if I have a computer capable of running Eclipse. These are my laptop's specifications:
GPU : NVIDIA GeForce RTX 3070 Laptop GPU
CPU : AMD Ryzen 9 5900HS with Radeon Graphics
Memory: 16 GB RAM (15.41 GB RAM usable)
It's a ROG Zephyrus G15 (Model: GA503QR_GA503QR). I previously owned a G14 and had the same issue.
Observations
I notice that often when this happens explorer.exe also stops responding. I can still use other applications like Google Chrome, but I have to wait for Eclipse to respond before Windows Explorer starts responding.
Question
What are the potential causes of the described behaviors, and remedies thereof?

VS Code Restart The PC On Its Own after some time

For a long time I have been using VS Code but from 2-3 week I cannot use it as while working my pc randomly restart. For some time I think it was my pc's fault, then I recognize it happening only when I am working on VS Code. I cannot last 3–4 minutes doing work. I have tried reinstalling, deleting extension I don't know about, even deleting all data, I Have also tried deleting VS Code cached files multiple times, starting a new sync and try using older versions of VS Code. But the problem did not go. I have also tried using default setup of VS Code with no extensions installed and no change in settings. It automatically restarts on its own. Please help me with this issue.
VS Code version: Code 1.58.2 (c3f1263, 2021-07-14T22:10:15.214Z)
OS version: Windows_NT x64 10.0.19042
Restricted Mode: No
Spec-
|CPUs|Intel(R) Core(TM) i7-9700K CPU # 3.60GHz (8 x 3600)|
|Memory (System)|15.94GB

How do I stop VSCode from starting up maximized?

On just one of my two Linux systems, Visual Studio Code always starts in a maximized window. It doesn't do it on the other one. Both systems are Pop!_OS 20.10, upgraded along the way from each Pop!_OS release from 18.04. VSCode is 1.51.1, and has been doing this since I started using it about 1.36 or so. I'm using the default Gnome Shell on each system. On the system where it doesn't start maximized, it remembers its previous size and placement. If I double-click on the window header on the failing system, it returns to its prior placement and size, but if I close it in that state, when I reopen it it's maximized again.
I'm guessing there's a settings file or something that's set to force it to be maximized, but I didn't explicitly set anything like that, and I wasn't able to find anything when searching that would have that effect.
The failing system is one I built up with a Ryzen 9 3900X, 64 GB RAM, 1 TB M.2 PCIe 4 SSD, and an RTX 2060. The working system is a System76 Oryx Pro v4 with 64 GB and an 8th gen Core i7. VSCode has done this on the failing system ever since I was running it on a dual-hex Mac Pro, and on a 1080p monitor; I'm now using a 3840x2160 monitor - but that's what the Oryx Pro has on it, too.
What am I missing?
Following works on ubuntu 20.10. Position VSCode window where you would like it to open next time. Then, hit <Ctrl><CloseXButton>
This will close your current session. Next time you open this project via code ., you should get VSCode to open in that last state you <Ctrl>-closed it in.
I don't know where this status is stored in the settings file.