You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is happening for new script files that haven't been saved yet, they are still marked as "Untitled". If you create a new file, paste in Joel's example script, click the file type selector in the status bar and turn it to PowerShell then hit Shift+Alt+F, you'll see the crash. Here's the exception from the logs:
System.IO.FileNotFoundException: Could not find file 'C:\Program Files (x86)\Microsoft VS Code Insiders\Untitled-1'
We basically just need to handle untitled files correctly.
Please fill in these details so that we can help you!
System Details
Windows 10 AU
1.9.0-Insider
0.9.0
$PSVersionTable
:Issue Description
Crash when calling format document on a new unsaved document.
Steps to repro
Create a New File
Set the Syntax to PowerShell
Write something in it, like
Then hit "Format Document" (e.g.
alt+shift+f
)Attached Logs
1484856115-dfce8230-a989-4c8e-85bd-d9a055a6031d1484856005946.zip
The text was updated successfully, but these errors were encountered: