Microsoft/TypeScript

Unable to get intellisense from IIFE functions

Open

#49.742 aperta il 29 giu 2022

Vedi su GitHub
 (0 commenti) (1 reazione) (0 assegnatari)TypeScript (6726 fork)batch import
Experience EnhancementHelp WantedSuggestion

Metriche repository

Star
 (48.455 star)
Metriche merge PR
 (Merge medio 6g 17h) (9 PR mergiate in 30 g)

Descrizione

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.68.1
  • OS Version: Windows_NT x64 10.0.19044

Steps to Reproduce:

  1. Create a object.
/** @namespace a */
var a = {};
  1. Add a property to object in function (IIFE)
(function(){
  /** @type {boolean} */
  a.b = false;
})();

It's show any when hover a.b, not boolean. And you will not see the IntelliSense when typing a.. image image

Guida contributor