Comments (7)
Thanks @cchamberlain! Yes, the tags are currently case-sensitive.
@martaver Can you please try changing the case in your code, or configure uppercase Styled
as a supported tag: https://github.com/Microsoft/typescript-styled-plugin#tags
from typescript-styled-plugin.
Also, not getting any syntax errors...
I would say that my plugin isn't getting triggered, and that I've stuffed up the configuration, but then where are these border
, gradient
and transition
properties coming from?
from typescript-styled-plugin.
@martaver I think you're running into this because you are using an unusual convention for your styled-components
default import (capitalized). The docs and all examples I've seen use:
import styled from "styled-components";
const Container = styled.div`
margin: 1rem auto;
`;
When I make mine uppercase like yours, it appears to not work correctly. Not saying this shouldn't be supported, but you'd probably hit less issues with IDE plugins if you stick to the convention.
from typescript-styled-plugin.
Hi @mjbvz
Trying both over here, doesn't seem to be happening...
"plugins": [
{
"name": "typescript-styled-plugin",
"tags": [
"Styled",
"styled",
"Sty",
"css"
]
}
]
That's my tsconfig for client bundle. Also using lower-case styled
now, no change in behavior.
It's odd that a few properties appear but not the rest.
Could it be a problem that my tsconfig is nested, in a folder deeper than the root?
from typescript-styled-plugin.
Yes, the suggestions in your screenshot are just VS Code's generic snippets that show up pretty much everywhere.
I suspect the plugin is not being activated. #9 tracks a similar problem. Currently, your tsconfig must be in the root folder. Can you please try creating a tsconfig at the root and seeing if the plugin is activated then?
from typescript-styled-plugin.
Still no dice... I'll try to spend some more time with it soon, but for now I have to drop it.
from typescript-styled-plugin.
Closing this out as not actionable.
If you are still blocked on this you can also try using the vscode styled components extension which now bundles this plugin
from typescript-styled-plugin.
Related Issues (20)
- ts-styled-plugin(9999) HOT 6
- Unknown property: accent-color HOT 1
- IntelliSense for new CSS property names and values HOT 10
- } expected (9999) when using @property & @scroll-timeline syntax HOT 1
- Autocomplete Custom Properties HOT 2
- Selecting Intellisense suggestion results in doubled content being typed HOT 1
- `emmet.showExpandedAbbreviation: never` doesn't disable Emmet abbreviation autocomplete HOT 1
- Send correct replacement range information (use OptionalReplacementSpan) HOT 2
- ) expected , { expected (9999) when using @supports not ( not backdrop-filter : blur(10px)) { } HOT 1
- Version 1.70 intellisense does not work HOT 2
- [Feature Request] allow detecting of plain template strings HOT 1
- semi-colon expected when using props in "${...}" - ts-styled-plugin(9999) HOT 1
- Update dependency from `vscode-emmet-helper` to `@vscode/emmet-helper`. HOT 1
- Error with multiline selectors with Subsitutions HOT 2
- How to avoid ts-styled-plugin(9999) when i am not even using styled components and don't have the plugin installed anywhere? HOT 1
- Doesn't recognize @layer at-rule HOT 2
- How to fail a commit to Git based on errors from ts-styled-plugin? HOT 1
- Support suppression/ignore comments HOT 2
- How to disable entirely without affecting other TS checking in VS Code HOT 4
- Unknown property: 'y'ts-styled-plugin(9999) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typescript-styled-plugin.