-
Notifications
You must be signed in to change notification settings - Fork 7
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
update and fork #2
Conversation
jasonwilliams
commented
Nov 30, 2022
- hwb(), var() and calc() added to the css language server. This raises the completions body length to 160 in tests
- Update dependencies
this raises the completions body length to 160 in tests - Update dependencies
So since these updates were released in I first tried out my installed version Indeed, it also works with So maybe somehow the updates of dependencies in |
Ran into the problem with a different CSS property just now - Maybe the property is too new and not yet in the The error message is "Unknown property: 'accent-color". |
yeah CSS properties aren't handled here but maybe you can help me understand a bit more how this chain works. We use https://github.com/microsoft/vscode-css-languageservice which pulls from https://github.com/microsoft/vscode-custom-data/tree/main/web-data and I can see it in there: https://github.com/microsoft/vscode-custom-data/blob/main/web-data/data/browsers.css-data.json#L19798 You may have to get the debugger out and have a look, directions for testing are here: Once setup you should see data travelling from CSS language server -> typescript styled plugin -> VSCode. I would just follow the chain all the way to the root until you can see why it's not showing up. Also, if you're able to make a new issue in VSCode repo about that, that would be helpful also |
@karlhorky see styled-components/vscode-styled-components#387 (comment) you should try vs 1.7.7 (you’re using 1.7.5) |
Yeah, I am on the Release version. I will wait until the new versions are no longer marked as Pre-Release to upgrade (as many users will) |
yeah but it has no effect. {
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"allowImportingTsExtensions": true,
"strictNullChecks": true,
// "noImplicitAny": false,
"plugins": [
{
"name": "next"
},
{
"name": "typescript-styled-plugin",
"lint": {
"validProperties": [
"-webkit-background-clip",
"vector-effect"
]
}
}
],
"paths": {
"@components/*": ["./src/components/*"],
"@hooks/*": ["./src/hooks/*"],
"@constants": ["./src/constants"],
"@helpers/*": ["./src/helpers/*"],
"@utils": ["./src/utils"],
"@lib/*": ["./src/lib/*"],
"@types": ["./types"],
"@layouts/*": ["./src/layouts/*"],
"@content": ["./src/content"],
"@server/*": ["./src/server/*"],
"@post-helpers/*": ["./src/post-helpers/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "types/**/*.d.ts", "src/helpers/mdx-components.helpers.js", "src/helpers/mdx-components.helpers.js", "src/components/Playground/Toolbar/FormatButton.js"],
"exclude": ["node_modules"]
} |