Tooltip won't display type information, instead shows "ts" in vscode insider
See original GitHub issue- I have searched through existing issues
- I have read through docs
- I have read FAQ
- I have tried restarting VS Code or running
Vetur: Restart VLS
Info
-
Platform: Win
-
Vetur version: 0.30.3
-
VS Code version: 1.52.0-insider (system setup) Commit: 0a80aacc7be1ab03ec0f94b8ac1a84949a83f35d Date: 2020-11-26T07:36:22.965Z Electron: 11.0.2 Chrome: 87.0.4280.63 Node.js: 12.18.3 V8: 8.7.220.24-electron.0 OS: Windows_NT x64 10.0.19041
-
VS Code stable version: Version: 1.51.1 (user setup) Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f Date: 2020-11-10T23:34:32.027Z Electron: 9.3.3 Chrome: 83.0.4103.122 Node.js: 12.14.1 V8: 8.3.110.13-electron.0 OS: Windows_NT x64 10.0.19041
Problem
In the latest version of VS Code Insiders Vetur can’t show type information in TypeScript Vue projects but instead just shows “ts”. I’ve restarted the TypeScript Language Server and the VLS several times, tried updating both VS Code and Vetur and also removed and reinstalled Vetur completely, without any difference. The problem isn’t bound to a specific project, it happened in every file I tried. I can open the same project and file in the stable version of VS Code and it will work fine as expected (see screenshots below).
Expected behaviour working as of VS Code 1.51.1
[INFO ] Loaded bundled typescript@4.0.5.
[INFO ] Loaded bundled prettier.
[INFO ] Loaded bundled @starptech/prettyhtml.
[INFO ] Loaded bundled prettier-eslint.
[INFO ] Loaded bundled prettier-tslint.
[INFO ] Loaded bundled stylus-supremacy.
[INFO ] Loaded bundled @prettier/plugin-pug.
Vetur initialized
Actual behaviour as of VS Code 1.52.0-insiders
[1126/135948.678:ERROR:registration_protocol_win.cc(102)] CreateFile: Das System kann die angegebene Datei nicht finden. (0x2)
[INFO ] Loaded bundled typescript@4.1.2.
[INFO ] Loaded bundled prettier.
[INFO ] Loaded bundled @starptech/prettyhtml.
[INFO ] Loaded bundled prettier-eslint.
[INFO ] Loaded bundled prettier-tslint.
[INFO ] Loaded bundled stylus-supremacy.
[INFO ] Loaded bundled @prettier/plugin-pug.
Vetur initialized
Reproducible Case
- Create a Vue 2 project with vue-cli and enable TypeScript support.
- Open the project in VS Code insiders.
- Paste the following code in any component:
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
@Component({ })
export default class TestView extends Vue {
field: string;
}
</script>
- Hover over
field
.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7 (2 by maintainers)
Top GitHub Comments
@vainamov It looks like the most recent insiders version is working again:
Tested with
@rs3d thanks for this, I was struggling to make it work. Upgrading VSCode worked just fine!