File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -121,8 +121,6 @@ func (w *WatchedFiles[T]) Clone(input T) *WatchedFiles[T] {
121
121
}
122
122
123
123
func createResolutionLookupGlobMapper (workspaceDirectory string , currentDirectory string , useCaseSensitiveFileNames bool ) func (data map [tspath.Path ]string ) patternsAndIgnored {
124
- rootPath := tspath .ToPath (currentDirectory , "" , useCaseSensitiveFileNames )
125
- rootPathComponents := tspath .GetPathComponents (string (rootPath ), "" )
126
124
comparePathsOptions := tspath.ComparePathsOptions {
127
125
CurrentDirectory : currentDirectory ,
128
126
UseCaseSensitiveFileNames : useCaseSensitiveFileNames ,
@@ -145,7 +143,7 @@ func createResolutionLookupGlobMapper(workspaceDirectory string, currentDirector
145
143
if tspath .ContainsPath (workspaceDirectory , fileName , comparePathsOptions ) {
146
144
includeWorkspace = true
147
145
continue
148
- } else if tspath .ContainsPath (rootPathComponents [ 0 ] , fileName , comparePathsOptions ) {
146
+ } else if tspath .ContainsPath (currentDirectory , fileName , comparePathsOptions ) {
149
147
includeRoot = true
150
148
continue
151
149
} else {
You can’t perform that action at this time.
0 commit comments