.net intellisense break in workspaces

Abierto
#2,157 7 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
powershell, typescript, vscode

Línea de trabajo

Reproduce el fallo en un espacio de trabajo de VS Code usando el repositorio DudDashboard, comparando un único archivo de PowerShell con una carpeta que contenga muchos archivos. Empieza revisando los registros adjuntos y el comportamiento de la extensión en torno a las solicitudes repetidas de IntelliSense. Se considera terminado cuando las sugerencias de espacios de nombres de .NET siguen disponibles después de que se cargue la sesión de PowerShell y después de volver a abrir IntelliSense.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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%
Lenguaje dominante
TypeScript
Estrellas
1.9k
Forks
548
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de PowerShell/vscode-powershell

Todos los issues de PowerShell/vscode-powershell

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.