From 39a3db4538b19c33a8281ed4ced9a63c564246d3 Mon Sep 17 00:00:00 2001 From: Matt Seddon Date: Thu, 26 May 2022 13:29:52 +1000 Subject: [PATCH] fire exp show watcher whenever a .dvc file changes --- extension/src/experiments/data/index.ts | 2 +- extension/src/test/suite/experiments/data/index.test.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extension/src/experiments/data/index.ts b/extension/src/experiments/data/index.ts index 4616ca5b6c..0c5d0e59e7 100644 --- a/extension/src/experiments/data/index.ts +++ b/extension/src/experiments/data/index.ts @@ -40,7 +40,7 @@ export class ExperimentsData extends BaseData { }, { name: 'fullUpdate', process: () => this.update() } ], - ['dvc.lock', 'dvc.yaml', 'params.yaml'] + ['dvc.lock', 'dvc.yaml', 'params.yaml', '*.dvc'] ) this.watchExpGitRefs() diff --git a/extension/src/test/suite/experiments/data/index.test.ts b/extension/src/test/suite/experiments/data/index.test.ts index 6853dba01f..25c07301a2 100644 --- a/extension/src/test/suite/experiments/data/index.test.ts +++ b/extension/src/test/suite/experiments/data/index.test.ts @@ -62,7 +62,7 @@ suite('Experiments Data Test Suite', () => { join( dvcDemoPath, '**', - `{dvc.lock,dvc.yaml,params.yaml,nested${sep}params.yaml,summary.json}` + `{dvc.lock,dvc.yaml,params.yaml,*.dvc,nested${sep}params.yaml,summary.json}` ) ) }) @@ -134,14 +134,14 @@ suite('Experiments Data Test Suite', () => { join( dvcDemoPath, '**', - `{dvc.lock,dvc.yaml,params.yaml,nested${sep}params.yaml,summary.json}` + `{dvc.lock,dvc.yaml,params.yaml,*.dvc,nested${sep}params.yaml,summary.json}` ) ) expect(getFirstArgOfCall(mockCreateFileSystemWatcher, 1)).to.equal( join( dvcDemoPath, '**', - `{dvc.lock,dvc.yaml,params.yaml,nested${sep}params.yaml,new_params.yml,new_summary.json,summary.json}` + `{dvc.lock,dvc.yaml,params.yaml,*.dvc,nested${sep}params.yaml,new_params.yml,new_summary.json,summary.json}` ) ) })