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 |
saem
left a comment
There was a problem hiding this comment.
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 <saemghani+github@gmail.com>
Co-authored-by: Saem Ghani <saemghani+github@gmail.com>
Co-authored-by: Saem Ghani <saemghani+github@gmail.com>
|
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 <saemghani+github@gmail.com>
Summary
Extract procedures that do not rely on the command-line from the
nimsuggestmodule to thesuggestmodule.Details
Changes:
findNodewas moved and renamed tofindTrackedNodesymFromInfowas moved and renamed tofindTrackedSymexecuteNoHookswas extracted andmoved into
executeCmdThis makes the
suggestmodule more of a reusable component for othernon-
nimsuggesttools, e.g. the LSP server.