intel / intel/dml-language-server

Discussion topic for autocomplete assistance from the DLS

Open
#17 0 comments 0 reactions 0 assignees View on GitHub
enhancement Low Priority
Dominant language
Rust
Stars
9
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Currently the DLS offers no hints or assistance to the client in regards to autocomplete. However it would be reasonable to do so based on semantic/structural info around the cursor position which is available in the DLS but not to the client by default.

There are two levels to this;
The first is auto complete with DML keywords and snippets:
Our current snippets already do this (a bit), but it can be improved. Notably the langserver has more coherent knowledge of the context of the cursor and can limit/expand suggestions based on our exact grammar.

The second is auto complete with semantic knowledge from the device:
This is auto-completing with things like known symbols, known fields in a struct, register fields that have been declared but not been assigned bits, unoverridden methods etc.

I separate these because the first level can be done based on _isolated analysis_ only, while the second also requires a _device analysis_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.