Microsoft/TypeScript

Unable to get intellisense from IIFE functions

Open

#49,742 创建于 2022年6月29日

在 GitHub 查看
 (0 评论) (1 反应) (0 负责人)TypeScript (6,726 fork)batch import
Experience EnhancementHelp WantedSuggestion

仓库指标

Star
 (48,455 star)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 9 个 PR)

描述

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

贡献者指南