Microsoft/TypeScript

Unable to get intellisense from IIFE functions

Open

#49 742 ouverte le 29 juin 2022

Voir sur GitHub
 (0 commentaires) (1 réaction) (0 assignés)TypeScript (6 726 forks)batch import
Experience EnhancementHelp WantedSuggestion

Métriques du dépôt

Stars
 (48 455 stars)
Métriques de merge PR
 (Merge moyen 6j 17h) (9 PRs mergées en 30 j)

Description

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

Guide contributeur