Skip to content

Commit ab8baac

Browse files
committed
v0.2.0
1 parent acbc5a2 commit ab8baac

File tree

9 files changed

+204
-101
lines changed

9 files changed

+204
-101
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ dist
22
node_modules
33
.vscode-test/
44
.vsix
5+
*.vsix
56
.DS_Store
67
.rts2_cache_cjs

.vscodeignore

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
.vscode/**
2-
.vscode-test/**
3-
out/test/**
4-
out/**/*.map
5-
src/**
6-
img/**
7-
.gitignore
8-
tsconfig.json
9-
vsc-extension-quickstart.md
1+
*
2+
*/**
3+
**/.DS_Store
4+
5+
!package.json
6+
!README.md
7+
!dist/index.js
8+
!dist/server/index.js
9+
!resources/**/*

package-lock.json

Lines changed: 37 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-tailwindcss",
33
"displayName": "Tailwind CSS IntelliSense",
44
"description": "Tailwind CSS class name completion",
5-
"version": "0.1.16",
5+
"version": "0.2.0",
66
"publisher": "bradlc",
77
"engines": {
88
"vscode": "^1.30.0"
@@ -13,7 +13,7 @@
1313
"galleryBanner": {
1414
"color": "#f1f5f8"
1515
},
16-
"icon": "icon.png",
16+
"icon": "resources/icon.png",
1717
"keywords": [
1818
"tailwind",
1919
"tailwindcss",
@@ -30,7 +30,7 @@
3030
"grammars": [
3131
{
3232
"scopeName": "source.css.tailwind",
33-
"path": "./syntaxes/tailwind.tmLanguage.json",
33+
"path": "./resources/syntaxes/tailwind.tmLanguage.json",
3434
"injectTo": [
3535
"source.css",
3636
"source.css.scss",
@@ -39,48 +39,46 @@
3939
]
4040
}
4141
],
42-
"views": {
43-
"explorer": [
44-
{
45-
"id": "tailwindcssConfigExplorer",
46-
"name": "Tailwind CSS Configuration"
42+
"configuration": {
43+
"type": "object",
44+
"title": "Tailwind CSS IntelliSense configuration",
45+
"properties": {
46+
"tailwindCSS.emmetCompletions": {
47+
"type": "boolean",
48+
"default": false,
49+
"description": "Enable class name completions for Emmet-style syntax"
4750
}
48-
]
49-
},
50-
"commands": [
51-
{
52-
"command": "tailwindcss.goToDefinition",
53-
"title": "Go To Definition"
5451
}
55-
]
52+
}
5653
},
5754
"preview": true,
5855
"scripts": {
5956
"vscode:prepublish": "npm run build",
60-
"build": "ncc build src/index.ts --out dist --minify --external vscode",
57+
"build": "ncc build src/index.ts --out dist --minify --external vscode && ncc build src/server.ts --out dist/server --minify",
6158
"watch": "ncc build src/index.ts --out dist --watch --external vscode",
59+
"start": "npm run watch",
6260
"postinstall": "node ./node_modules/vscode/bin/install",
6361
"test": "npm run build && node ./node_modules/vscode/bin/test"
6462
},
65-
"author": "Brad Cornes <bradlc41@gmail.com>",
63+
"author": "Brad Cornes <hello@bradley.dev>",
6664
"license": "MIT",
6765
"homepage": "https://github.com/bradlc/vscode-tailwindcss/blob/master/README.md",
6866
"bugs": {
6967
"url": "https://github.com/bradlc/vscode-tailwindcss/issues",
70-
"email": "bradlc41@gmail.com"
68+
"email": "hello@bradley.dev"
7169
},
7270
"repository": {
7371
"type": "git",
7472
"url": "https://github.com/bradlc/vscode-tailwindcss.git"
7573
},
76-
"dependencies": {
74+
"devDependencies": {
75+
"@types/node": "^11.13.5",
76+
"@zeit/ncc": "^0.17.4",
7777
"color": "^3.1.0",
7878
"dlv": "^1.1.2",
79+
"tailwindcss-language-server": "0.0.1",
7980
"tmp": "0.0.33",
81+
"vscode": "^1.1.26",
8082
"vscode-languageclient": "^5.2.1"
81-
},
82-
"devDependencies": {
83-
"@zeit/ncc": "^0.8.1",
84-
"vscode": "^1.1.26"
8583
}
8684
}

resources/icon.png

18.6 KB
Loading
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"scopeName": "source.css.tailwind",
3+
"fileTypes": [],
4+
"injectionSelector": "meta.property-list.css, meta.property-list.scss",
5+
"name": "TailwindCSS",
6+
"patterns": [
7+
{
8+
"begin": "^\\s*(@)apply\\b",
9+
"beginCaptures": {
10+
"0": {
11+
"name": "keyword.control.at-rule.apply.tailwind"
12+
},
13+
"1": {
14+
"name": "punctuation.definition.keyword.tailwind"
15+
}
16+
},
17+
"end": ";",
18+
"endCaptures": {
19+
"0": {
20+
"name": "punctuation.terminator.rule.tailwind"
21+
}
22+
},
23+
"patterns": [
24+
{
25+
"begin": "(?x)\n(?=\n (?:\\|)? # Possible anonymous namespace prefix\n (?:\n [-\\[:.*\\#a-zA-Z_] # Valid selector character\n |\n [^\\x00-\\x7F] # Which can include non-ASCII symbols\n |\n \\\\ # Or an escape sequence\n (?:[0-9a-fA-F]{1,6}|.)\n )\n)",
26+
"end": "(?=\\s*[;])",
27+
"patterns": [
28+
{
29+
"match": "!\\s*important(?![\\w-])",
30+
"name": "keyword.other.important.tailwind"
31+
},
32+
{
33+
"captures": {
34+
"1": {
35+
"name": "punctuation.definition.entity.tailwind"
36+
},
37+
"2": {
38+
"patterns": [
39+
{
40+
"include": "source.css#escapes"
41+
}
42+
]
43+
}
44+
},
45+
"match": "(?x)\n(\\.)? # Valid class-name\n(\n (?: [-a-zA-Z_0-9]|[^\\x00-\\x7F] # Valid identifier characters\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # Escape sequence\n )+\n) # Followed by either:\n(?= $ # - End of the line\n | [\\s,.\\#)\\[:{>;+~|] # - Another selector\n | /\\* # - A block comment\n)",
46+
"name": "entity.other.attribute-name.class.tailwind"
47+
}
48+
]
49+
}
50+
]
51+
},
52+
{
53+
"begin": "(?i)(?<![\\w-])(config|theme)(\\()",
54+
"beginCaptures": {
55+
"1": {
56+
"name": "support.function.config.tailwind"
57+
},
58+
"2": {
59+
"name": "punctuation.section.function.begin.bracket.round.tailwind"
60+
}
61+
},
62+
"end": "\\)",
63+
"endCaptures": {
64+
"0": {
65+
"name": "punctuation.section.function.end.bracket.round.tailwind"
66+
}
67+
},
68+
"patterns": [
69+
{
70+
"include": "source.css#property-values"
71+
}
72+
]
73+
}
74+
]
75+
}

0 commit comments

Comments
 (0)