Skip to content

Commit

Permalink
Do not double convert UriToPath
Browse files Browse the repository at this point in the history
  • Loading branch information
pherrymason committed Aug 27, 2024
1 parent 24d8cfd commit 10abe30
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions server/internal/lsp/server/Initialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 10abe30

Please sign in to comment.