Skip to content

Commit

Permalink
fix: update watched files correctly if there are multiple config files (
Browse files Browse the repository at this point in the history
#536)

* fix: update watched files correctly if there are multiple config files

Closes #535

* fix: return configs
  • Loading branch information
sheremet-va authored Nov 19, 2024
1 parent 2bf3c9c commit 2403fab
Show file tree
Hide file tree
Showing 13 changed files with 850 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ node_modules
test-results
.yarn
.pnp.*
samples/**/coverage
samples/**/coverage
tests-logs-*
10 changes: 10 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@
],
"outFiles": ["${workspaceFolder}/dist/**/*.js"]
},
{
"name": "Run Extension Multi-Config Sample",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"${workspaceFolder}/samples/multiple-configs"
],
"outFiles": ["${workspaceFolder}/dist/**/*.js"]
},
{
"name": "Run Extension Monorepo Sample",
"type": "extensionHost",
Expand Down
5 changes: 5 additions & 0 deletions samples/multiple-configs/app1/test-app1.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { test, expect } from 'vitest'

test('math', () => {
expect(1 + 1).toBe(2)
})
1 change: 1 addition & 0 deletions samples/multiple-configs/app1/vitest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default {}
5 changes: 5 additions & 0 deletions samples/multiple-configs/app2/test-app2.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { test, expect } from 'vitest'

test('math', () => {
expect(1 + 1).toBe(2)
})
1 change: 1 addition & 0 deletions samples/multiple-configs/app2/vitest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default {}
7 changes: 7 additions & 0 deletions samples/multiple-configs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "multiple-configs",
"private": true,
"dependencies": {
"vitest": "^2.1.5"
}
}
Loading

0 comments on commit 2403fab

Please sign in to comment.