-
Notifications
You must be signed in to change notification settings - Fork 235
Untitled and in-memory PowerShell files should have language features enabled #44
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
Comments
Sounds like an unsaved file. I thought that wasn't possible yet? |
Actually... maybe it is. This weekend I converted to a new JSON protocol which gives responsibility to the client for sending file contents to the server (even if the file exists on disk). Maybe this is the first case where VS Code tried to send me an untitled file? |
Seems like it! But I have no idea how to even make Code aware of the language type without saving it... |
Actually, found it.
|
And changing the language on an unsaved file after switching it to PowerShell crashes the host process. :D |
Sounds like I need to fix that ;) |
Update README.md
A user reported a crash of the language service with the following log output:
It appears that VS Code sent an invalid file path to the language service: inmemory://model/3. Not sure what would cause it to send this path but the language service should be able to gracefully reject invalid file paths.
The text was updated successfully, but these errors were encountered: