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

Global component intellisense for props is breaking in latest release #487

Closed
soulsam480 opened this issue Sep 14, 2021 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@soulsam480
Copy link

soulsam480 commented Sep 14, 2021

Hii @johnsoncodehk , The props intellisense for global components seems to be broken in the latest release. It was working previously in v0.27.19. When typing the prop name it doesn't give me hints, after adding and hovering on the prop it gives me the definition. Here are some screenshots.

While typing
2021-09-14_10-21

after adding the prop and hovering
2021-09-14_10-22

GLobal component definition

// src/components.d.ts

import { ComponentPublicInstance } from 'vue';
type OmitDefaults<T extends ComponentPublicInstance> = Omit<T, keyof ComponentPublicInstance>;

declare module '@vue/runtime-core' {
  export interface GlobalComponents {
    QBtn: DefineComponent<OmitDefaults<InstanceType<typeof import('quasar')['QBtn']>>>;
   }
}
@johnsoncodehk johnsoncodehk added the bug Something isn't working label Sep 14, 2021
@soulsam480
Copy link
Author

Hi, updated the extension and i think this is not fixed yet, the same issue is happening for local components too

@soulsam480
Copy link
Author

soulsam480 commented Sep 16, 2021

Works as expected now, Thanks for the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants