Microsoft/TypeScript

Unable to get intellisense from IIFE functions

Open

#49,742 opened on 2022年6月29日

GitHub で見る
 (0 comments) (1 reaction) (0 assignees)TypeScript (6,726 forks)batch import
Experience EnhancementHelp WantedSuggestion

Repository metrics

Stars
 (48,455 stars)
PR merge metrics
 (平均マージ 6d 17h) (30d で 9 merged PRs)

説明

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

コントリビューターガイド