Vetur: Different JSDoc Intellisense Behaviour on Script Block and on JavaScript File

Created on 24 Aug 2020  路  2Comments  路  Source: vuejs/vetur

  • [x] I have searched through existing issues
  • [x] I have read through docs
  • [x] I have read FAQ

Info

  • Platform: MacOS
  • Vetur version: 0.26.1
  • VS Code version: 1.48.1

Problem


This is intellisense in JavaScript file:

JavaScript Intellisense

It shows description and example.

And this is intellisense in <script> block on Vue SFC:

Vue JavaScript Intellisense

It doesn't show description and example.

This is also occurrs on <script lang="ts"> block on Vue SFC:

Vue TypeScript Intellisense

Reproducible Case



  • Create a index.js and export named function that has JSDoc description and example.

  • Try to import it on JavaScript

  • Try to import it on <script> block on Vue SFC

Minimal Reproduction: https://github.com/jefrydco/vue-intellisense-behaviour

bug typescript

All 2 comments

While at it I fixed hover/completion as well:

image

Was this page helpful?
0 / 5 - 0 ratings