File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
extension/src/repository/data Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 11import { join } from 'path'
2- import { Event , EventEmitter } from 'vscode'
2+ import { Event , EventEmitter , RelativePattern } from 'vscode'
33import { AvailableCommands , InternalCommands } from '../../commands/internal'
44import { DiffOutput , ListOutput , StatusOutput } from '../../cli/reader'
55import { isAnyDvcYaml } from '../../fileSystem'
@@ -141,12 +141,15 @@ export class RepositoryData extends DeferredDisposable {
141141 const gitRoot = await getGitRepositoryRoot ( this . dvcRoot )
142142
143143 this . dispose . track (
144- createFileSystemWatcher ( join ( this . dvcRoot , '**' ) , ( path : string ) => {
145- if ( isExcluded ( this . dvcRoot , path ) ) {
146- return
144+ createFileSystemWatcher (
145+ new RelativePattern ( this . dvcRoot , '**' ) ,
146+ ( path : string ) => {
147+ if ( isExcluded ( this . dvcRoot , path ) ) {
148+ return
149+ }
150+ return this . managedUpdate ( path )
147151 }
148- return this . managedUpdate ( path )
149- } )
152+ )
150153 )
151154
152155 this . dispose . track (
You can’t perform that action at this time.
0 commit comments