【问题标题】:vscode tooltips doesn't work when using jest使用 jest 时 vscode 工具提示不起作用
【发布时间】:2017-10-05 19:16:15
【问题描述】:

我有一个奇怪的场景,当鼠标悬停在 Visual Studio 代码中的变量上时,工具提示信息停止使用 Jest 测试框架。 Mocha 中完全相同的测试将在我调试时显示工具提示。

VSCode 版本 1.16.1

这是通常出现的工具提示:

导致工具提示停止显示的测试:

var axios = require('axios')

describe('asdf', () =>{
    it('does stuff', async () => {

        var boo = { 'hi':'bye'}
        console.log(boo)

        // uncomment out this line and the tooltip disappears!
        //var result = axios.post('', {})
    })
})

github repo for reproduction

【问题讨论】:

    标签: javascript node.js visual-studio-code jestjs


    【解决方案1】:

    看起来是 VSCode 的一个 bug,报告了 here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-04-21
      • 2018-10-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多