Skip to content

Commit 644d8ec

Browse files
authored
Fire exp show watcher whenever a .dvc file changes (#1778)
1 parent 70bd692 commit 644d8ec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

extension/src/experiments/data/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class ExperimentsData extends BaseData<ExperimentsOutput> {
4040
},
4141
{ name: 'fullUpdate', process: () => this.update() }
4242
],
43-
['dvc.lock', 'dvc.yaml', 'params.yaml']
43+
['dvc.lock', 'dvc.yaml', 'params.yaml', '*.dvc']
4444
)
4545

4646
this.watchExpGitRefs()

extension/src/test/suite/experiments/data/index.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ suite('Experiments Data Test Suite', () => {
6262
join(
6363
dvcDemoPath,
6464
'**',
65-
`{dvc.lock,dvc.yaml,params.yaml,nested${sep}params.yaml,summary.json}`
65+
`{dvc.lock,dvc.yaml,params.yaml,*.dvc,nested${sep}params.yaml,summary.json}`
6666
)
6767
)
6868
})
@@ -134,14 +134,14 @@ suite('Experiments Data Test Suite', () => {
134134
join(
135135
dvcDemoPath,
136136
'**',
137-
`{dvc.lock,dvc.yaml,params.yaml,nested${sep}params.yaml,summary.json}`
137+
`{dvc.lock,dvc.yaml,params.yaml,*.dvc,nested${sep}params.yaml,summary.json}`
138138
)
139139
)
140140
expect(getFirstArgOfCall(mockCreateFileSystemWatcher, 1)).to.equal(
141141
join(
142142
dvcDemoPath,
143143
'**',
144-
`{dvc.lock,dvc.yaml,params.yaml,nested${sep}params.yaml,new_params.yml,new_summary.json,summary.json}`
144+
`{dvc.lock,dvc.yaml,params.yaml,*.dvc,nested${sep}params.yaml,new_params.yml,new_summary.json,summary.json}`
145145
)
146146
)
147147
})

0 commit comments

Comments
 (0)