-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New-EditorFile triggers an error messsage #1210
Comments
Thanks for this! Interesting. Does that error happen when you run:
In the integrated console? |
Does for me :\MICROSOFT\PowerShell> $psEditor.GetEditorContext()
I:\MICROSOFT\PowerShell> New-EditorFile
|
I can repro if I comment out @tylerl0706 there's an overload on btw this is probably a good one for the Hackathon :) |
Perfect for the hackathon! |
Thanks for the report everyone! |
|
@alexandair, right if you have a PowerShell file open, and you run that, it should work. New-editorfile creates a new file, so if that file is not a PowerShell file, that call will error out. |
This only seems to happen with Untitled files... because:
works fine. |
I can't reproduce this with the latest version of the extension. |
Ah yes this was fixed in #1580. We can close this. Thanks! |
Issue Description
When I run New-EditorFile, a new file is created, but I also get an error message:
Attached Logs
Follow the instructions in the README
about capturing and sending logs.
The text was updated successfully, but these errors were encountered: