Code reference detail
linking.test.ts:import idea reference resolves to imported file when local idea shares name
packages/language/test/linking.test.ts:import idea reference resolves to imported file when local idea shares name
| Idea | Status | Tags | Summary |
|---|---|---|---|
| sensible_alias_support | if an imported idea shares a name with an idea in the current file: When the import uses an alias, the base name may be reused locally — see ["../../language/imports.rq".import_tokenisation]. | ||
| syntax_features | The extension should provide language support for. rq files via the lsp. Syntax features should cover ideas, ideasets, imports, references, attributes, comments, and lists. Broken imports and references should be validated and reported in the editor. Go-to-definition and find-references should work for ideas, imports, and cross-file links. Autoformatting should be supported for. rq files. | ||
| import_keywords | The keywords import, from, and as are reserved for import statements. Import keywords may also appear as ordinary words in idea body text when not at statement start. | ||
| import_tokenisation | if an import is given an alias, then the base name is still available as a variable name and should not cause a conflict. Only the alias binds in the importing file; the imported idea's base name may be reused for a local idea. e. g. The same rule applies to qualified imports with `as`. Unaliased imports still bind the idea name and conflict with a local idea of that name. Related: ["../extension/syntax/features-syntax.rq".sensible_alias_support]. |
Reference labels
../../../packages/language/test/linking.test.ts:import idea reference resolves to imported file when local idea shares name, ../../packages/language/test/linking.test.ts:import idea reference resolves to imported file when local idea shares name