Skip to content

feat: Limit parent directory search for nimsuggest#356

Merged
jmgomez merged 1 commit into
nim-lang:masterfrom
esafak:getProjectFileAutoGuess
Jul 23, 2025
Merged

feat: Limit parent directory search for nimsuggest#356
jmgomez merged 1 commit into
nim-lang:masterfrom
esafak:getProjectFileAutoGuess

Conversation

@esafak
Copy link
Copy Markdown
Contributor

@esafak esafak commented Jul 23, 2025

  • Modify ls.nim to limit the number of times the nimsuggest process searches up through parent directories.
  • The limit is now configurable via workspace settings maxNimsuggestProcesses.
  • If only one nimsuggest process is used, the search for parent projects is disabled (limit set to 0).
  • This prevents all files from being opened in the same nimsuggest process when using a single instance.

Fixes #350

*   Modify ls.nim to limit the number of times the nimsuggest process searches up through parent directories.
*   The limit is now configurable via workspace settings `maxNimsuggestProcesses`.
*   If only one nimsuggest process is used, the search for parent projects is disabled (limit set to 0).
*   This prevents all files from being opened in the same nimsuggest process when using a single instance.
@jmgomez jmgomez merged commit 7bfb16a into nim-lang:master Jul 23, 2025
1 check passed
@esafak esafak deleted the getProjectFileAutoGuess branch July 23, 2025 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set an upper limit to to decide the project root is in a parent directory with a .nimble file

2 participants