.net intellisense break in workspaces

オープン
#2,157 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
powershell, typescript, vscode

調査の方向性

DudDashboard リポジトリを使用して VS Code ワークスペースで障害を再現し、単一の PowerShell ファイルと、多数のファイルを含むフォルダーを比較します。まず、添付されたログと、IntelliSense の繰り返しリクエスト周辺における拡張機能の動作を確認します。PowerShell セッションの読み込み後、および IntelliSense を再度開いた後も .NET 名前空間の候補が利用可能なままであれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Area-IntelliSense Issue-Bug

Issue Type: Bug

This happens whenever I have anything loaded in Powershell with more than a few files.

Whenever I start VsCode and / or kill my session, there is a moment where the .net intelisense work normally.

image

However, a mere second after, anything from the .net space disappear and I only get the Powershell intellisense instead.

image

If using VsCode with a single file, it works fine.
As soon as I open a folder containing dozens of Powershell files (within or without a workspace), it work briefly as the session load, then break.

To reproduce:

  1. Clone https://github.com/itfranck/DudDashboard
  2. Start VSCode
  3. Open a ps1 file
  4. Type [System. then press space

For a few seconds, Collections / Threading / Net and other .Net namespace will be available.
If you repeat the operation a few time, the .Net namespaces stop being suggested and only Powershell suggestions occurs.

This happened for a few months with both Powershell and Powershell Preview extension and with both VsCode and VsCode insiders.

Here are the logs :
logs.zip
Context :

  • I opened vscode
  • I loaded my workspace containing my project
  • I typed [system. then pressed CTRL + Space to force intellisense then I saw .net elements shown there and pressed Escape to close the intellisense.
  • Powershell integrated console message showed in the terminal
  • I pressed CTRL + Space again
  • Intellisense showed again, but this time, all .net related suggestion had disappeared.

If there's any addtional logs I can include to provide more insight, I will be happy to.

Extension version: 2019.5.0
VS Code version: Code 1.37.1 (f06011ac164ae4dc8e753a3fe7f9549844d15e35, 2019-08-15T16:17:55.855Z)
OS version: Windows_NT x64 10.0.17763

System Info
Item Value
CPUs Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz (8 x 3500)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.89GB (18.23GB free)
Process Argv
Screen Reader no
VM 0%
主要言語
TypeScript
スター
1.9k
フォーク
548
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PowerShell/vscode-powershell のほかの issue

PowerShell/vscode-powershell の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。