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

Vue LS gives not full error information outside Hybrid Mode #4733

Open
toNeptune9 opened this issue Aug 28, 2024 · 1 comment
Open

Vue LS gives not full error information outside Hybrid Mode #4733

toNeptune9 opened this issue Aug 28, 2024 · 1 comment

Comments

@toNeptune9
Copy link

Vue - Official extension or vue-tsc version

Vue - Official, v.2.0.28

VSCode version

1.92.2

Vue version

3.3.4

TypeScript version

5.5.3

System Info

No response

Steps to reproduce

  1. Disable the Hybrid Mode in VSCode
  2. Create a Vue file
  3. Paste into script part the following TS code:
export type StrictTranslationKey = 'test'

export function bindEnumeratedTranslations<Key extends string>(list: readonly Key[], mapping: (key: Key) => StrictTranslationKey): Record<Key, string>
export function bindEnumeratedTranslations<Enum extends Record<string, string | number>>(value: Enum, mapping: (key: Enum[string]) => StrictTranslationKey): Record<Enum[string], string>
export function bindEnumeratedTranslations<Key extends string, Enum extends Record<string, string | number>>(list: readonly Key[] | Enum, mapping: (key: Key | Enum[string]) => StrictTranslationKey): Record<any, any> {
    // stub
    return {}
}

const correct = bindEnumeratedTranslations(['test', 'test2'], key => 'test')

const error = bindEnumeratedTranslations(['test', 'test2'], key => 'wrong')
  1. Check the error for bindEnumeratedTranslations at the line
const error = bindEnumeratedTranslations(['test', 'test2'], key => 'wrong')

What is expected?

Full error description like this:

image5

This works only with enabled Hybrid Mode.

What is actually happening?

Not full error description:

vscode missed

image6

Link to minimal reproduction

No response

Any additional comments?

No response

@zaalbarxx
Copy link

Related Webstorm issue:
https://youtrack.jetbrains.com/issue/WEB-66674

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