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

tags option doesn't work #5

Open
mayank99 opened this issue Jan 9, 2023 · 1 comment
Open

tags option doesn't work #5

mayank99 opened this issue Jan 9, 2023 · 1 comment

Comments

@mayank99
Copy link

mayank99 commented Jan 9, 2023

The docs mention that an array of tags can be specified with @styled/typescript-styled-plugin.

"plugins": [
{
"name": "@styled/typescript-styled-plugin",
"tags": ["styled", "css", "sty"]
}
]

However, I cannot get this to work. Adding, for example, "foo" to that array, I don't get syntax highlighting on foo like how I do with css.

"plugins": [
	{
		"name": "@styled/typescript-styled-plugin",
		"tags": ["styled", "css", "foo"] // does not work
	}
]

(I have tried installing @styled/typescript-styled-plugin and typescript in my deps, to no effect)

I also cannot get other options to work, for example validate.

"plugins": [
	{
		"name": "@styled/typescript-styled-plugin",
		"validate": false // does not work
	}
]

I was able to get validate to work when using typescript-styled-plugin instead of @styled/typescript-styled-plugin, but tags does not work.

"plugins": [
	{
		"name": "typescript-styled-plugin",
		"validate": false, // works
		"tags": ["styled", "css", "foo"] // does not work
	}
]

The README switches back and forth between the two plugin names so I'm not sure which one is right.

"name": "@styled/typescript-styled-plugin",

"name": "typescript-styled-plugin",


Environment info: pnpm workspaces, vscode, windows 11

@mayank99
Copy link
Author

mayank99 commented Jan 9, 2023

actually, after updating to the pre-release version (v1.7.6) of vscode-styled-components, i was able to get linting and intellisense working with custom tags (passed with @styled/typescript-styled-plugin), but syntax highlighting is still broken.

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

No branches or pull requests

1 participant