Skip to content

Commit ac56f76

Browse files
committed
update doc
1 parent 826b8ca commit ac56f76

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,20 @@ Configuration depends on your layout of the project but some samples are below:
8585
}
8686
```
8787

88+
### EJS
89+
90+
```json
91+
{
92+
"css.enabledLanguages": ["ejs"]
93+
}
94+
```
95+
96+
```json
97+
{
98+
"css.styleSheets": ["src/**/*.ejs"]
99+
}
100+
```
101+
88102
## Commands
89103

90104
### Validate selectors

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@
7373
}
7474
]
7575
},
76+
"capabilities": {
77+
"untrustedWorkspaces": {
78+
"supported": false
79+
},
80+
"virtualWorkspaces": true
81+
},
7682
"main": "./dist/extension.js",
7783
"icon": "icon.png",
7884
"scripts": {

test/suite/extension.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ suite("Extension Test Suite", () => {
1010
test("should complete for html", async () => {
1111
const document = await workspace.openTextDocument({
1212
language: "html",
13-
content: "<style>.some{}</style>\n<a class='som'></a>",
13+
content: "<style>.selector{}</style>\n<a class='selecto'></a>",
1414
});
1515
const list = await commands.executeCommand<CompletionList>(
1616
"vscode.executeCompletionItemProvider",
1717
document.uri,
18-
new Position(1, 13)
18+
new Position(1, 17)
1919
);
20-
assert.ok(list.items.includes, "some");
20+
assert.ok(list.items.find((item) => item.label === "selector"));
2121
});
2222
});

0 commit comments

Comments
 (0)