Skip to content

Fix #323: DSC IntelliSense can cause language service to crash #324

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

Merged
merged 2 commits into from
Dec 19, 2016

Conversation

daviwil
Copy link
Contributor

@daviwil daviwil commented Dec 19, 2016

This change fixes an issue which appears sometimes when getting
IntelliSense results within a DSC resource. The completion results return
a replacement range of -1 which causes an exception in our BufferRange
class. This fix catches and logs this exception so that the session may
continue.

This change fixes an issue which appears sometimes when getting
IntelliSense results within a DSC resource.  The completion results return
a replacement range of -1 which causes an exception in our BufferRange
class.  This fix catches and logs this exception so that the session may
continue.

Also fixes PowerShell/vscode-powershell#391.
@daviwil daviwil added this to the 0.8.1 milestone Dec 19, 2016
@daviwil daviwil merged commit b695ba3 into develop Dec 19, 2016
@daviwil daviwil deleted the daviwil/fix-323 branch December 19, 2016 15:53
TylerLeonhardt pushed a commit to TylerLeonhardt/PowerShellEditorServices that referenced this pull request Feb 26, 2019
…aunch-json-program

Replace program with script in launch.json.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants