Skip to content

Add nil assertion for thisType.symbol#2799

Open
apendua wants to merge 1 commit intomicrosoft:mainfrom
apendua:fix-2798
Open

Add nil assertion for thisType.symbol#2799
apendua wants to merge 1 commit intomicrosoft:mainfrom
apendua:fix-2798

Conversation

@apendua
Copy link
Contributor

@apendua apendua commented Feb 16, 2026

GetSymbolNameForPrivateIdentifier requires the first parameter not to be nil, but apparently thisType.symbol is not always specified, e.g. when global this is used globally in a module.

Fixes #2798

GetSymbolNameForPrivateIdentifier requires the first parameter not to be nil, but apparently thisType.symbol is not always specified, e.g. when global this is used globally in a module.

Fixes microsoft#2798
Copilot AI review requested due to automatic review settings February 16, 2026 21:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

Panic in textDocument/diagnostics on private property assignment at "global" this

1 participant