Summary
Grayscale supports a combined import and use statement (STANDARD.md §8.3) that imports a module and brings its members into scope in a single line. The LSP does not recognize this syntax.
Example
import and use @arrays
import and use @arrays, @strings
Equivalent to:
import @arrays
using arrays
Scope
- Recognize
import and use as valid syntax (no false diagnostics)
- Treat the imported module as both imported and "used" for completion purposes
- Add hover docs for the
use keyword explaining its role in import and use
Summary
Grayscale supports a combined
import and usestatement (STANDARD.md §8.3) that imports a module and brings its members into scope in a single line. The LSP does not recognize this syntax.Example
Equivalent to:
Scope
import and useas valid syntax (no false diagnostics)usekeyword explaining its role inimport and use