Skip to content

Commit

Permalink
Watch all dvc.yamls for changes to plots
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed Jun 2, 2022
1 parent d245ba6 commit 27f588f
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions extension/src/plots/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ export class PlotsData extends BaseData<{ data: PlotsOutput; revs: string[] }> {
internalCommands: InternalCommands,
updatesPaused: EventEmitter<boolean>
) {
super(dvcRoot, internalCommands, updatesPaused, [
{
name: 'update',
process: () => this.update()
}
])
super(
dvcRoot,
internalCommands,
updatesPaused,
[
{
name: 'update',
process: () => this.update()
}
],
['dvc.yaml']
)
}

public async update(): Promise<void> {
Expand Down

0 comments on commit 27f588f

Please sign in to comment.