PowerShell / PowerShell/vscode-powershell

[PSScriptAnalyzer] Updating of Problems pane intermittent

Aperta
#1,216 3 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Area-Script Analysis Issue-Performance
Lingua principale
TypeScript
Stelle
1.9k
Fork
548
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

System Details

1.20.1
f88bbf9137d24d36d968ea6b2911786bfe103002
x64

Major Minor Build Revision


1 6 0 0

arcticicestudio.nord-visual-studio-code@0.6.0
casualjim.theme-desertex@0.0.6
davidmart.theme-jsfiddle-like-syntax-vscode@0.0.6
DotJoshJohnson.xml@1.9.2
gerane.Theme-azure@0.0.2
gerane.Theme-Dreamweaver@0.0.2
gerane.Theme-feelgood@0.0.2
gerane.Theme-Flat@0.0.2
gerane.Theme-TomorrowNight@0.0.2
GoliafRS.monokai-grs@0.0.31
idleberg.hopscotch@0.2.2
ispushkin.pushkin-is-white-theme@0.0.6
jansenfuller.crayon-vscode@0.5.1
jdinhlife.theme-gruvbox-dark-medium@0.0.6
Kal.theme-glacier@0.0.1
karyfoundation.theme-karyfoundation-themes@16.0.1
kentor.theme-oceanic-next-no-italics@1.0.1
lkytal.FlatUI@1.4.4
MaxfieldWalker.vscode-color-theme-spirited-away@1.3.2
ms-vscode.notepadplusplus-keybindings@1.0.2
ms-vscode.PowerShell@1.6.0
ms-vscode.Theme-1337@0.1.4
NoHomey.theme-realgithub@1.0.9
rebornix.toggle@0.0.1
redhat.java@0.19.0
saviorisdead.Theme-GitHubCleanWhite@0.0.3
sharksym.theme-cobalt0@0.0.5
slevesque.vscode-autohotkey@0.2.2
vangware.dark-plus-material@1.0.27
vscjava.vscode-java-debug@0.6.0
vscjava.vscode-java-test@0.3.0
vscjava.vscode-maven@0.5.2
zhuangtongfa.Material-theme@2.12.5

Name Value


PSVersion 5.1.16299.248
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.16299.248
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Issue Description

With the update to 1.6.0 I am playing with replacing ISE with VScode again. So far it's going well.

The 'PROBLEMS' pane, and the underlined syntax info is really nice, but it seems to be a little off here and there. I find that if I fix an issue, it often does not reflect in the PROBLEMS pane. When I click the error it jumps back to the location where the issue has already been fixed. If I close and reopen the script, the issue is cleared from the 'PROBLEMS' pane. Easier though is to simply make another edit to the script, and the issue will disappear from the pane.

It appears that either that the script change event is not firing... or the call to psscriptanalyzer is suspended until further changes occur.

This can be annoying when loading multiple scripts and having to fix a simple issue across all of them, as the issues seem to stick in the 'PROBLEMS' pane without further actions.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo le diagnostiche obsolete del riquadro PROBLEMS in Visual Studio Code con la PowerShell extension e PSScriptAnalyzer dopo aver corretto un problema. Verifica se l’evento di modifica dello script viene attivato e se l’analisi viene eseguita nuovamente; è completato quando le diagnostiche vengono cancellate immediatamente dopo la correzione, senza riaprire lo script né apportare un’altra modifica.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
powershell, typescript, vscode
Ambito
developer-experience, tooling
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.