Skip to content

Commit

Permalink
Contribute typescript-styled-plugin to provide styled intellisense
Browse files Browse the repository at this point in the history
Fixes styled-components#2
Fixes styled-components#38

Uses the `typescript-styled-plugin` to add intellisense, error reporting, and other language features for styled strings.

This requires VS Code 1.20+ (current insiders builds). Users on 1.19 will only get the intellisense if they are working in a jsconfig or tsconfig project
  • Loading branch information
mjbvz committed Jan 12, 2018
1 parent b8b7ee1 commit 6632275
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 2 deletions.
42 changes: 42 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 18 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"languages": [
{
"id": "source.css.styled",
"aliases": ["CSS (Styled Components)"],
"aliases": [
"CSS (Styled Components)"
],
"configuration": "./css-styled.configuration.json"
}
],
Expand All @@ -31,13 +33,27 @@
"path": "./syntaxes/css.json"
},
{
"injectTo": ["source.js", "source.ts", "source.jsx", "source.js.jsx", "source.tsx"],
"injectTo": [
"source.js",
"source.ts",
"source.jsx",
"source.js.jsx",
"source.tsx"
],
"scopeName": "styled",
"path": "./syntaxes/styled-components.json",
"embeddedLanguages": {
"styled": "css"
}
}
],
"typescriptServerPlugins": [
{
"name": "typescript-styled-plugin"
}
]
},
"dependencies": {
"typescript-styled-plugin": "^0.3.1"
}
}

0 comments on commit 6632275

Please sign in to comment.