reqlanOverviewIdeasFilesCode filesClustersAttributesGraphPrint
Ideas/import_code_completion_ranking

Idea detail

import_code_completion_ranking

reqlan rq/extension/language-support/features-imports.rq:106

block

Summary

Rank import path completions by directory proximity ( hop count from the completing file's directory to the candidate's directory ), then directories before files, then path alphabetically.
Example: typing `../` ranks `../close.rq` before `../../../path.rq`.
Emit sortText for that order, and set filterText so the editor does not re-rank by label fuzzy score over proximity.

Jump to outbound references

Jump to inbound references

Navigation

Source file

reqlan rq/extension/language-support/features-imports.rq

community 18

community cluster

features-imports.rq

file cluster

reqlan rq/extension/language-support

folder cluster

status: Not present

status cluster

tag: Not present

tag cluster

Printable page

Static print-friendly idea sheet.

Attributes

KeyValue
tests completion.test.ts
implementation reqlan-path-completion.ts, reqlan-completion-provider.ts

Browse all attributes

Ancestor context

No ancestor chain recorded.

Outbound references

KindIdeaPathSnippet
file_reference ../../../packages/language/src/reqlan-completion-provider.ts packages/language/src/reqlan-completion-provider.ts reqlan-completion-provider.ts
file_reference ../../../packages/language/src/reqlan-path-completion.ts packages/language/src/reqlan-path-completion.ts reqlan-path-completion.ts
file_reference ../../../packages/language/test/completion.test.ts packages/language/test/completion.test.ts completion.test.ts

Inbound references

KindIdeaPathSnippet
references import_code_completion reqlan rq/extension/language-support/features-imports.rq import_code_completion_ranking

Unresolved references

KindIdeaPathSnippet
None

Local graph

Initialising graph…