-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nimsuggest: move library code into suggest
#892
Conversation
updated. |
I've done a quick read, but it looks like there was a move plus renames of 2 procedures and the extraction of another procedure. Were there any other changes that I didn't spot? The extraction of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I spotted a few things, but I really like the idea of separating these things out, so we have a general core suggest
module and then wrap it with nimsuggest
or lsp specific modules to specialize it.
I can help with the PR phrasing, I just need you to provide the core content (what and why).
Co-authored-by: Saem Ghani <[email protected]>
Co-authored-by: Saem Ghani <[email protected]>
Co-authored-by: Saem Ghani <[email protected]>
updated |
Yup, I just need a some time to clean-up the PR message. In the meantime, if you can take another attempt at it based on the recent PR messages I've cleaned up, that'll save me some time, thanks. |
suggest
@bung87 have a read through the PR title + body |
/merge |
<!--- The Pull Request (=PR) message is what will get automatically used as the commit message when the PR is merged. Make sure that no line is longer than 72 characters --> ## Summary Extract procedures that do not rely on the command-line from the `nimsuggest` module to the `suggest` module. ## Details Changes: - procedure `findNode` was moved and renamed to `findTrackedNode` - procedure `symFromInfo` was moved and renamed to `findTrackedSym` - the ide command execution part of `executeNoHooks` was extracted and moved into `executeCmd` This makes the `suggest` module more of a reusable component for other non-`nimsuggest` tools, e.g. the LSP server. --------- Co-authored-by: Saem Ghani <[email protected]>
Summary
Extract procedures that do not rely on the command-line from the
nimsuggest
module to thesuggest
module.Details
Changes:
findNode
was moved and renamed tofindTrackedNode
symFromInfo
was moved and renamed tofindTrackedSym
executeNoHooks
was extracted andmoved into
executeCmd
This makes the
suggest
module more of a reusable component for othernon-
nimsuggest
tools, e.g. the LSP server.