From 10abe3061517be796348d20a853fa01b3c7250e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Ferr=C3=A0s?= Date: Tue, 27 Aug 2024 15:24:30 +0200 Subject: [PATCH] Do not double convert UriToPath --- server/internal/lsp/server/Initialize.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/internal/lsp/server/Initialize.go b/server/internal/lsp/server/Initialize.go index c40b898..b93ce5c 100644 --- a/server/internal/lsp/server/Initialize.go +++ b/server/internal/lsp/server/Initialize.go @@ -69,13 +69,10 @@ func (s *Server) Initialize(serverName string, serverVersion string, capabilitie } func (h *Server) indexWorkspace() { - path, _ := fs.UriToPath(h.state.GetProjectRootURI()) + path := h.state.GetProjectRootURI() files, _ := fs.ScanForC3(fs.GetCanonicalPath(path)) - //s.server.Log.Debug(fmt.Sprint("Workspace FILES:", len(files), files)) for _, filePath := range files { - //h.language.Debug(fmt.Sprint("Parsing ", filePath)) - content, _ := os.ReadFile(filePath) doc := document.NewDocumentFromString(filePath, string(content)) h.state.RefreshDocumentIdentifiers(&doc, h.parser)