Pure-D / serve-d

D LSP server (dlang language server protocol server)
MIT License
200 stars 48 forks source link

auto-import: suggest & add local import if there is an import in another (unreachable) scope #288

Open WebFreak001 opened 1 year ago

WebFreak001 commented 1 year ago

e.g.

import std.stdio : writeln;

void main()
{
    readln();
}

should suggest std.stdio : readln, adding to the existing selective import.

When there is an import coming from another function it may possibly affect the suggested imports as well.