Skip to content

Commit 9d230d5

Browse files
Jackson Deanchriseppstein
Jackson Dean
authored andcommitted
feat: Adds custom css data for css-blocks at rules.
Reference: https://code.visualstudio.com/api/extension-guides/custom-data-extension
1 parent b21a594 commit 9d230d5

File tree

2 files changed

+52
-33
lines changed

2 files changed

+52
-33
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": 1.1,
3+
"atDirectives": [
4+
{
5+
"name": "@block",
6+
"description": "Import a block reference for use within another block"
7+
},
8+
{
9+
"name": "@export",
10+
"description": "Export a block reference to expose it to the template context of the current block"
11+
}
12+
]
13+
}
+39-33
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,41 @@
11
{
2-
"private": true,
3-
"name": "@css-blocks/vscode",
4-
"description": "VSCode part of CSS Blocks' language server",
5-
"author": "LinkedIn",
6-
"license": "BSD-2-Clause",
7-
"version": "0.0.1",
8-
"repository": {
9-
"type": "git",
10-
"url": "https://github.com/LinkedIn/css-blocks"
11-
},
12-
"engines": {
13-
"vscode": "^1.33.0"
14-
},
15-
"activationEvents": [
16-
"onLanguage:handlebars",
17-
"onLanguage:scss",
18-
"onLanguage:css"
19-
],
20-
"main": "./dist/extension",
21-
"scripts": {
22-
"update-vscode": "vscode-install",
23-
"postinstall": "vscode-install",
24-
"compile": "tsc --build",
25-
"watch": "tsc --build --watch",
26-
"test": "echo 'No tests.'"
27-
},
28-
"dependencies": {
29-
"vscode-languageclient": "^5.2.1",
30-
"@css-blocks/language-server": "^0.0.1"
31-
},
32-
"devDependencies": {
33-
"vscode": "^1.1.35"
34-
}
2+
"private": true,
3+
"name": "@css-blocks/vscode",
4+
"description": "VSCode part of CSS Blocks' language server",
5+
"author": "LinkedIn",
6+
"license": "BSD-2-Clause",
7+
"version": "0.0.1",
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/LinkedIn/css-blocks"
11+
},
12+
"engines": {
13+
"vscode": "^1.33.0"
14+
},
15+
"activationEvents": [
16+
"onLanguage:handlebars",
17+
"onLanguage:scss",
18+
"onLanguage:css"
19+
],
20+
"contributes": {
21+
"css": {
22+
"customData": [
23+
"./css-blocks.css-data.json"
24+
]
25+
}
26+
},
27+
"main": "./dist/extension",
28+
"scripts": {
29+
"update-vscode": "vscode-install",
30+
"postinstall": "vscode-install",
31+
"compile": "tsc --build",
32+
"watch": "tsc --build --watch"
33+
},
34+
"dependencies": {
35+
"vscode-languageclient": "^5.2.1",
36+
"@css-blocks/language-server": "^0.0.1"
37+
},
38+
"devDependencies": {
39+
"vscode": "^1.1.35"
40+
}
3541
}

0 commit comments

Comments
 (0)