【发布时间】:2018-07-20 10:42:17
【问题描述】:
VSCode intellisense 很棒,当我导入类似的 javascript 函数时
import func from './file';
vs code 会给我一个有用的对话框,其中包含来自 jsdoc 的参数。这是因为我使用的是相对文件路径。
但是,如果我正在使用我当前的包,让我们将其称为我的 package.json 中列出的“公共”,并尝试使用其绝对路径引用文件,intellisense 不会提取该文件.
// import the same file as above, but using absolute path
// public is the name of the current npm package
import func from 'public/subfolder/file';
智能感知不再出现。
这是错误还是配置问题?
【问题讨论】:
标签: javascript visual-studio-code javascript-intellisense