rhaiscript / lsp

Language server for Rhai.
Apache License 2.0
43 stars 4 forks source link

Scope variable in definition files problem with types #83

Closed schungx closed 2 years ago

schungx commented 2 years ago

Right now, let variable; in definition files have no type declaration.

When I add types to it:

let variable: String;

it screws up variable resolution in the LSP -- e.g. the goto-definition no longer works.

let variable: ?;

Marking the variable as ? does continue to work.

tamasfe commented 2 years ago

I can't reproduce this, so I assume it was #84.

image