diff --git a/internal/project/configfileregistry.go b/internal/project/configfileregistry.go index fc4600e4af..e7432651ff 100644 --- a/internal/project/configfileregistry.go +++ b/internal/project/configfileregistry.go @@ -235,7 +235,7 @@ func (c *ConfigFileRegistry) onConfigChange(path tspath.Path, changeKind lsproto return true } -func (c *ConfigFileRegistry) tryInvokeWildCardDirectories(fileName string, path tspath.Path) { +func (c *ConfigFileRegistry) tryInvokeWildCardDirectories(fileName string) { configFiles := c.ConfigFiles.ToMap() for configPath, entry := range configFiles { entry.mu.Lock() diff --git a/internal/project/service.go b/internal/project/service.go index 9fbf1c5ed4..952dad0f24 100644 --- a/internal/project/service.go +++ b/internal/project/service.go @@ -216,7 +216,7 @@ func (s *Service) OpenFile(fileName string, fileContent string, scriptKind core. s.openFiles[info.path] = projectRootPath if existing == nil && info != nil && !info.isDynamic { // Invoke wild card directory watcher to ensure that the file presence is reflected - s.configFileRegistry.tryInvokeWildCardDirectories(fileName, info.path) + s.configFileRegistry.tryInvokeWildCardDirectories(fileName) } result := s.assignProjectToOpenedScriptInfo(info) s.cleanupProjectsAndScriptInfos(info, result) @@ -331,7 +331,7 @@ func (s *Service) OnWatchedFilesChanged(ctx context.Context, changes []*lsproto. for _, project := range s.inferredProjects { project.onWatchEventForNilScriptInfo(fileName) } - s.configFileRegistry.tryInvokeWildCardDirectories(fileName, path) + s.configFileRegistry.tryInvokeWildCardDirectories(fileName) } }