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
Problem with syntax highlighting for non typescript project #1192
Comments
With // test.js
import { defineComponent } from 'vue';
const A = defineComponent({
setup() {
return {
HelloWorld: HelloWorld,
};
},
});
const B = defineComponent({
props: [],
setup() {
return {
HelloWorld: HelloWorld,
};
},
});
type A_Keys = keyof InstanceType<typeof A>; // "HelloWorld" | "$" | "$data" | "$props" | "$attrs" | "$refs" | "$slots" | "$root" | "$parent" | "$emit" | "$el" | "$options" | "$forceUpdate" | "$nextTick" | "$watch"
type B_Keys = keyof InstanceType<typeof B>; // string | number | symbol |
So is there any fix for this? or is there any way to temporarily turn off the red highlighting on the component tag. Thank you! |
@sirichart downgrading volar to |
Ah that's great, thank you for this! |
After the publisher was changed to |
Just use |
I'm having some trouble getting syntax highlighting work for a non typescript project.
Strangely enough the error only occurs when defining props using
defineProps
.vscode: v1.66.2
volor: v0.34.6
The text was updated successfully, but these errors were encountered: