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

[vscode-intelisence] incorrectly detects typescript class as CSS #1183

Closed
OmgImAlexis opened this issue Jun 29, 2022 · 5 comments · Fixed by #1169
Closed

[vscode-intelisence] incorrectly detects typescript class as CSS #1183

OmgImAlexis opened this issue Jun 29, 2022 · 5 comments · Fixed by #1169

Comments

@OmgImAlexis
Copy link

In a project I have code similar to the following, static is being detected by UnoCSS.

export class UserService {
    static async findById(id: string) {
        console.log(id);
    }
}

image
image

@TrickyPi
Copy link
Contributor

Same as #978

@OmgImAlexis
Copy link
Author

Same as #978

Agreed only I cant really change static in this case. I also noticed it happening in .d.ts files which as far as I know will never have CSS in them.

@TrickyPi
Copy link
Contributor

TrickyPi commented Jun 29, 2022

Currently, we can override the exclude config to avoid this issue.

Unocss({
  exclude:[/\.d\.ts$/]
})

@antfu
Copy link
Member

antfu commented Jun 29, 2022

.d.ts is not included by default

@OmgImAlexis
Copy link
Author

.d.ts is not included by default

Curious as to how it's being picked up then as I installed the plugin and havent changed any settings yet.

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

Successfully merging a pull request may close this issue.

3 participants