Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual Studio代码-Powershell-高CPU和低性能在Powershell文件之间切换_Powershell_Visual Studio Code - Fatal编程技术网

Visual Studio代码-Powershell-高CPU和低性能在Powershell文件之间切换

Visual Studio代码-Powershell-高CPU和低性能在Powershell文件之间切换,powershell,visual-studio-code,Powershell,Visual Studio Code,我刚刚安装了Visual Studio代码1.16.1 我有以下扩展: Visual Studio代码0.6.3的Chef扩展 代码大纲0.0.10 Powershell 1.4.3 Ruby 0.15.0 我尝试在VSCode中编辑Powershell。 已加载Powershell(版本5.1) 但是每次我在一个打开的文件(在当前的测试用例中,是psm1和psd1)之间切换时,我都会在资源管理器侧栏的顶部看到一个小加载栏,就在资源管理器文本的下方 在这个过程中,我不能“运行选择”,代码大纲

我刚刚安装了Visual Studio代码1.16.1

我有以下扩展:

  • Visual Studio代码0.6.3的Chef扩展
  • 代码大纲0.0.10
  • Powershell 1.4.3
  • Ruby 0.15.0
我尝试在VSCode中编辑Powershell。 已加载Powershell(版本5.1)

但是每次我在一个打开的文件(在当前的测试用例中,是psm1和psd1)之间切换时,我都会在资源管理器侧栏的顶部看到一个小加载栏,就在资源管理器文本的下方

在这个过程中,我不能“运行选择”,代码大纲不会更新,在编写代码之前,我也没有任何形式的语法帮助。然后你想做的所有事情都会同时发生

在我切换窗口之前,一切正常。在我切换文件的那一刻,它再次开始“加载/工作”,我必须等待大约30秒,它才能完成这项工作

我还尝试过禁用所有扩展(Powershell除外),我看到了几乎相同的行为。切换选项卡时,会进行加载,但在上面描述的资源管理器侧栏中看不到加载栏

我目前没有一台不同的机器来测试这一点,正在寻找第二台机器来排除计算机


我正在研究记录一个bug,但在此之前,我想在这里检查一下

这是我看到的一个问题,让我回到ISE进行PowerShell开发。每次你关闭/打开一个项目时,它都必须启动一个新主机,但它不能完全关闭旧主机。这是我看到的一个问题,让我回到ISE进行PowerShell开发。每次关闭/打开项目时,它都必须启动一个新主机,而不会完全关闭旧主机。