Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit 8ee95d9

Browse files
committed
adding intellisense to contributing
1 parent 6237f90 commit 8ee95d9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ It can take some time to get used to the regular expressions.
1717
To visually test your changes click on `Launch Extension` on the left panel and open a project of your choosing.
1818
Something I tend to do is copy (or symlink) the fixtures fodler (colorize-fixtures) and open that with the launched window
1919

20+
## Intellisense isues
21+
22+
Intellisense is handled by https://github.com/microsoft/typescript-styled-plugin.
23+
24+
The best way to debug issues with intellisense is to clone that repo, then use `yarn link` with this repository. That should allow you to inspect what's happening better.
25+
26+
For most things `typescript-styled-plugin` is just a [pass-through](https://github.com/microsoft/typescript-styled-plugin/blob/master/src/_language-service.ts#L87-L95) to the CSS/SCSS language services. For example, looking at [getCompletionItems](https://github.com/microsoft/typescript-styled-plugin/blob/master/src/_language-service.ts#L215-L244) you can see it just calls the equivalent on the upstream language services. So if something works natively (CSS file), but not in styled-components its most likely because it's not passing the correct events through.
27+
2028
## Tests
2129

2230
You can run tests simply by running `yarn test`.

0 commit comments

Comments
 (0)