Skip to content

Commit

Permalink
Added logging of project file mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
PMunch committed Nov 9, 2023
1 parent 4a014d6 commit ab69737
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nimlsp.nim
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ proc getProjectFile(fileUri: string): string =
result = projectFile
certainty = Nimble
path = dir
debugLog "Found project file " & result & " for input file " & fileUri

template getNimsuggest(fileuri: string): Nimsuggest =
projectFiles[openFiles[fileuri].projectFile].nimsuggest
Expand All @@ -190,7 +191,7 @@ if paramCount() == 1:
echo "PATH, path to the Nim source directory, defaults to \"", nimpath, "\""
quit 0
of "--version":
echo "nimlsp v", version, " built for Nim version ", NimVersion
echo "nimlsp v", version, " - built for Nim version ", NimVersion
when defined(debugLogging): echo "Compiled with debug logging"
when defined(debugCommunication): echo "Compiled with communication logging"
quit 0
Expand Down

0 comments on commit ab69737

Please sign in to comment.