Langium version: 4.0.0
Package name: langium
Related discussion: #2025
Steps To Reproduce
Link to code example:
The ReferenceInfo interface has an index property:
|
/** |
|
* Information about a cross-reference. This is used when traversing references in an AST or to describe |
|
* unresolved references. |
|
*/ |
|
export interface ReferenceInfo { |
|
reference: Reference | MultiReference |
|
container: AstNode |
|
property: string |
|
index?: number |
|
} |
However, the completion provider always misses it:
|
const refInfo: ReferenceInfo = { |
|
reference, |
|
container: node, |
|
property: assignment.feature |
|
}; |
The current behavior
The refInfo is missing the index in any case.
The expected behavior
The index should be set if available.
Langium version: 4.0.0
Package name: langium
Related discussion: #2025
Steps To Reproduce
Link to code example:
The
ReferenceInfointerface has anindexproperty:langium/packages/langium/src/syntax-tree.ts
Lines 137 to 146 in 38d5f16
However, the completion provider always misses it:
langium/packages/langium/src/lsp/completion/completion-provider.ts
Lines 444 to 448 in 38d5f16
The current behavior
The
refInfois missing theindexin any case.The expected behavior
The
indexshould be set if available.