We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f792926 commit 198a175Copy full SHA for 198a175
src/test/index.test.ts
@@ -11,10 +11,16 @@ const getUri = (rel: string) => {
11
return uri
12
}
13
14
+const sleep = (ms: number): Promise<void> =>
15
+ new Promise((resolve) => {
16
+ setTimeout(resolve, ms)
17
+ })
18
+
19
suite('common', () => {
20
test('diagnostics for CSS', async () => {
21
const uri = getUri('components/index.css')
- await vscode.commands.executeCommand('vscode.open', uri)
22
+ await vscode.window.showTextDocument(uri)
23
+ await sleep(1000)
24
assert.equal(vscode.languages.getDiagnostics(uri).length, 2)
25
})
26
0 commit comments