From 170719af9e9ab9bb890dd22f6b45300ba8d82c77 Mon Sep 17 00:00:00 2001 From: Tilmann Meyer Date: Wed, 3 Jul 2019 15:38:55 +0200 Subject: [PATCH 1/2] Added typescript support --- README.md | 8 ++++++-- package.json | 6 ++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 395b0c2..c3a6e36 100644 --- a/README.md +++ b/README.md @@ -26,23 +26,26 @@ Missing CSS support for HTML documents. - nunjucks - javascript - javascriptreact +- typescript +- typescriptreact ## Remote Style Sheets Remote style sheets can be specified in VS Code settings: -``` +```json "css.remoteStyleSheets": [ "https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" ] ``` + ## Style Sheet File Extensions By default, `css` and `scss` files in the project are parsed. You may configure this in VS Code Settings Remote style sheets can be specified in VS Code settings: -``` +```json "css.fileExtensions": [ "css", "scss"] ``` @@ -51,4 +54,5 @@ Remote style sheets can be specified in VS Code settings: [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=ecmel.vscode-html-css) ## Usage + You can view a list of attributes via `ctrl + space`. diff --git a/package.json b/package.json index 2ccb2ed..431dce5 100644 --- a/package.json +++ b/package.json @@ -60,9 +60,11 @@ "onLanguage:md", "onLanguage:nunjucks", "onLanguage:javascript", - "onLanguage:javascriptreact" + "onLanguage:javascriptreact", + "onLanguage:typescriptreact", + "onLanguage:typescript" ], - "main": "./out/src/extension", + "main": "./out/extension", "scripts": { "vscode:prepublish": "npm run compile", "compile": "tsc -p ./", From af3497679cd5f5c6e06199523ca991bcb4732dfa Mon Sep 17 00:00:00 2001 From: Tilmann Meyer <47182955+ATiltedTree@users.noreply.github.com> Date: Wed, 3 Jul 2019 15:41:39 +0200 Subject: [PATCH 2/2] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 431dce5..5bbd2ae 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "onLanguage:typescriptreact", "onLanguage:typescript" ], - "main": "./out/extension", + "main": "./out/src/extension", "scripts": { "vscode:prepublish": "npm run compile", "compile": "tsc -p ./",