Skip to content

VS Code: Auto-completion #41

@lars-reimann

Description

@lars-reimann

Autocompletion can be added using a CompletionProvider. Currently, however, the extension only has very basic auto-completion. It should also have auto-completion for the following:

  • Cross-references:

    • SmlAnnotationUse -> annotation=[SmlAnnotation]
    • SmlArgument -> parameter=[SmlParameter]
    • SmlYield -> result=[SmlResult]
    • SmlReference -> declaration=[SmlDeclaration]
    • SmlNamedType -> declaration=[SmlNamedTypeDeclaration]
    • Constraint -> leftOperand=[SdsParameter]
    • SmlTypeArgument -> typeParameter=[SmlTypeParameter]
  • Nesting (must only suggest stuff in the current scope):

    • SmlMemberAccess-> member=SmlReference
    • SmlMemberType -> member=SmlNamedType
  • Keywords (unless there is a snippet for it):

    • Boolean literals: true/false
    • this
    • null
    • Modifies: static
    • Operators: or, and, not, ==, !=, ===, !==, <, <=, >=, >, +, -, *, /, ?:
    • Type Parameter Variance: in, out
    • Type Parameter Constraints: sub, super

Metadata

Metadata

Assignees

Labels

releasedIncluded in a releasevscode 🔨Issues regarding tools like the VS Code extension

Type

No type

Projects

Status

✔️ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions