PowerShell / PowerShell/vscode-powershell
VS Code\PowerShell - "Formatting Document" Long Execution Time
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1.9k
- Forks
- 548
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
System Details
- Operating system name and version: Windows 10 Ent x64
- VS Code version: 1.14.2 (Latest)
- PowerShell extension version: 1.4.1 (Latest)
- Output from
$PSVersionTable:
Name Value
PSVersion 5.1.15063.483
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.15063.483
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Copy / paste the following commands into the PowerShell Integrated Console, and paste the output here:
code -v
1.14.2
cb82febafda0c8c199b9201ad274e25d9a76874e
$pseditor.EditorServicesVersion
Major Minor Build Revision
1 4 1 0
code --list-extensions --show-versions
ms-vscode.PowerShell@1.4.1
$PSVersionTable
v-toddle.microsoft.com.zip
Name Value
PSVersion 5.1.15063.483
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.15063.483
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Issue Description
Hello! I posted this to VS Code and they referred me here (https://github.com/Microsoft/vscode/issues/31985#issuecomment-320095822)
I've noticed over the last couple days/week that VS Code is taking a very long time on "Formatting Document". I have my VS Code instance configured to format the document on every save, and I save constantly, so this is a real PITA. :( I have attached the contents of $env:APPDATA\Code\User to this report.
Steps to Reproduce
Steps to Reproduce:
Configure VS Code using my settings.json
Open up any Posh Script. I have encountered this on scripts with as few as 120 lines
Make a change
Save file
Blue bar at bottom of VS Code states "Formatting Document". VS Code is responsive, but Snippets and Intellisense do not function until it completes doing whatever it was doing.
Reproduces without extensions: No
Attached Logs
Follow the instructions in the README
about capturing and sending logs.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie mit der Überprüfung der angehängten settings.json und der Log-Archive, und reproduzieren Sie anschließend die Formatierung beim Speichern mit einem PowerShell-Skript in VS Code. Verfolgen Sie den Formatierungspfad der Erweiterung und überprüfen Sie, dass die Formatierung zügig abgeschlossen wird, ohne Snippets oder IntelliSense zu blockieren; bestätigen Sie das Verhalten anhand der gemeldeten Umgebungsdetails.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- powershell, vscode
- Bereich
- developer-experience, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100