reqlanOverviewIdeasFilesCode filesClustersAttributesGraphPrint

Printable idea sheet

search_code_actions

reqlan rq/extension/host/features-commands.rq:64

Katz 0.116

when cursor is in a `reference`, there shouls be a code action to search for references to that idea.
it should also allow wrapping a selected string, or the word at the cursor when in idea-body prose, as a new `reference`.
it should open up a webview modal that shows a search dialog that allows the user to search for potential references.
the search menu should preserve / show the context of the would-be reference: the rest of the containing idea, with styling, and with the selected text pulsing / styled prominently.
it should support fuzzy / partial searching via fuzzy_search. it should list the closest matches in a paginated view.
selecting the idea should fill / replace the reference ( or wrap the selection as `name` ) and an import ( if required ) appropiately
The lightbulb command ( `reqlan.searchReference` ) is arg-less because VS Code caches arg-bearing code-action commands and may dispose them on refresh ( error text like Actual command not found ).
At invoke time the extension resolves the site via LSP `reqlan/referenceSearchSite`, or a local parse of the active editor when the language client is not yet running — it must not fail with a false " language server is not ready " when a local site can be resolved.

implementation
reqlan-idea-reference-site.ts, reqlan-reference-search-site.ts, reqlan-code-action-provider.ts, code_actions.rs, reference-search-panel.ts, reference-search-import-path.ts, fuzzy-search.ts, native-workspace-index.ts, register-import-error-commands.ts, main.ts, main.ts
status
done
tests
code-actions.test.ts, reference-search.test.ts, extension-package.test.ts, fuzzy.rs, code_actions.rs:offers_search_code_action_when_cursor_is_inside_a_resolved_reference, code_actions.rs:offers_wrap_code_action_for_a_prose_selection, code_actions.rs:wraps_the_word_under_the_cursor_when_selection_is_empty

Interactive page: search_code_actions