From bae01102ee25b111d566ae4b2aee3aeb1d959263 Mon Sep 17 00:00:00 2001 From: Cameron Clark Date: Sun, 17 Aug 2025 01:04:27 +0100 Subject: [PATCH] refactor: remove unused parameter from `tryInvokeWildCardDirectories` --- internal/project/configfileregistry.go | 2 +- internal/project/service.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) } }