Seb*_*lor 6 javascript visual-studio-code
在创建JS对象并定义一些访问器时,我发现我之后无法获得智能感知 this.
示例代码:
function Obj(foo) {
this.foo = foo;
}
Obj.prototype = {
get bar() {
return this.// No intellisense here
},
set bar(val) {
this.foo = val
}
};
Run Code Online (Sandbox Code Playgroud)
但创建一个方法Obj.prototype.test = function () {...}
将获得intellisense.
有没有办法用这个用户设置复制相同的词法分析,或者它是一个真正的缺陷/错误?
如您所见,它只显示以前使用过的单词,而不显示任何其他内容.
归档时间: |
|
查看次数: |
607 次 |
最近记录: |