Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different JSDoc Intellisense Behaviour on Script Block and on JavaScript File #2193

Closed
3 tasks done
jefrydco opened this issue Aug 24, 2020 · 2 comments
Closed
3 tasks done

Comments

@jefrydco
Copy link

  • I have searched through existing issues
  • I have read through docs
  • 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

@octref
Copy link
Member

octref commented Aug 25, 2020

This is a special pre-processing recently added in VS Code: https://github.com/microsoft/vscode/blob/8ba70d8bdc3a10e3143cc4a131f333263bc48eef/extensions/typescript-language-features/src/utils/previewer.ts

I copied it over:

image

@octref octref closed this as completed in e21fe22 Aug 25, 2020
@octref
Copy link
Member

octref commented Aug 25, 2020

While at it I fixed hover/completion as well:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants