Idea detail
editor_reference_activation
reqlan rq/extension/language/syntax/features-syntax-highlighting.rq:125
Summary
A file reference and an idea reference have no underline in the resting editor.
The editor shows an underline when the user holds Ctrl and the pointer is on that reference.
Ctrl + click follows the reference in the active editor.
A target in the open file moves the cursor in that editor.
A target in another file opens in the active editor group.
The editor does not open a second copy of the current file.
The editor does not open a browser page for a file or idea reference.
Alt + Left is navigate-back. It restores the caret from before go-to-definition.
The extension keeps that JUMP on a reqlan stack because Cursor often skips the editor history entry for same-file definition.
The stack also records jumps that start in comment-reference host languages
( comment_reference_navigate_back ).
Definition targets prefer an open workspace tab URI so Cursor does not open a detached file copy.
The definition target range must move the caret ( not an empty 0: 0 – 0: 0 range ).
A click that is already on the declaration name is not a JUMP.
The TextMate scope is `meta.link.reqlan`.
A `markup.underline` scope forces an underline in the resting editor.
`.rq` file and idea references omit `markup.underline` — no resting underline.
Comment `rq:…` sites add `markup.underline` via the comment injection grammar
( comment_reference_resting_underline ).
A file document link is always underlined, and its `#L` URI opens another editor.
The extension does not give the editor a file document link.
Ctrl + hover uses the definition request. That request is reference_goto_definition_speed.
The interactive underline is the lexer token under the cursor: the path string or the idea id from the parser.
Definition returns `LocationLink.originSelectionRange` for that token so the editor does not invent a word from brackets or quotes.
Path segment names inside a quoted path are not reference tokens.
The host does not register a DefinitionProvider for other languages, and does not rescan open source files for this activation.
When the engine is rust, the language-server document selector includes all file-scheme documents except the comment-host blocklist, and definition navigates resolved `rq:…` sites
( references_in_functional_code_comments,
comment_reference_language_blocklist ).
A web URL and a command link ( folder, wildcard ) stay document links.
A click on a web URL opens that URL in the browser.
Related: reference_document_links, non_web_reference_navigation, editor_reference_activation.
Navigation
Attributes
| Key | Value |
|---|---|
| implementation | patch-textmate.mjs, reqlan.tmLanguage.json, reqlan-comment.injection.json, language-configuration.json, editor-link-activation.ts, register-editor-link-activation.ts, definition-navigation.ts, definition-navigation-stack.ts, register-definition-navigation.ts, main.ts, analysis.rs, session.rs |
| status | done |
| tests | textmate-wildcard-highlight.test.ts:reference rules use the meta.link scope, editor-link-activation.test.ts:keeps web URL and command document links, editor-link-activation.test.ts:editor words are identifiers; reference tokens come from the parser, editor-link-activation.test.ts:go-to-definition does not send the buffer, editor-link-activation.test.ts:comment injection link scope includes markup.underline, editor-link-activation.test.ts:package.json contributes comment.rq.injection, definition-navigation.test.ts:records a command selection move as a definition jump, definition-navigation.test.ts:records a cross-file command jump from the prior caret, definition-navigation.test.ts:tracks non-blocklisted languages for navigate-back, definition-navigation.test.ts:records only landings in reqlan targets, definition-navigation.test.ts:navigate-back keybinding is not limited to .rq editors, session.rs:definition_origin_is_the_lexer_token_under_the_cursor, session.rs:comment_definition_follows_a_resolved_rq_reference |
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | references_in_functional_code_comments | reqlan rq/extension/language/comment-references/functional-code-comment-references.rq | editor_reference_activation |
| references | comment_reference_resting_underline | reqlan rq/extension/language/comment-references/functional-code-comment-references.rq | editor_reference_activation |
| references | comment_reference_navigate_back | reqlan rq/extension/language/comment-references/functional-code-comment-references.rq | editor_reference_activation |
| references | language_server_rust | reqlan rq/extension/language/support/language-server-rust.rq | editor_reference_activation |
| references | reference_document_links | reqlan rq/extension/language/syntax/features-syntax-highlighting.rq | editor_reference_activation |
| references | reference_goto_definition_speed | reqlan rq/extension/language/syntax/features-syntax-highlighting.rq | editor_reference_activation |
| references | reference_resolution_folder | reqlan rq/extension/language/syntax/features-syntax-highlighting.rq | editor_reference_activation |
| references | file_references | reqlan rq/extension/language/syntax/features-syntax.rq | editor_reference_activation |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…