this
does not appear in autocomplete when certain JSDoc annotations are present
#48679
Labels
Bug
A bug in TypeScript
Domain: Completion Lists
The issue relates to showing completion lists in an editor
Help Wanted
You can do this
Milestone
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
this
keyword shows up in the autocomplete as expected.function
withthis
set to some specific type:this
no longer appears, VSCode autocorrects toglobalThis
instead.Notes:
This seems to occur no matter where the JSDoc comment is in the file. Here it is with it in a
@param
tag on a class method:I could be making incorrect JSDoc syntax, but I have my doubts, as this syntax throws no errors and gives me proper Intellisense for
this
when I create my callback functions when calling a method like the above with an inline function definition, which is what I wanted.The text was updated successfully, but these errors were encountered: