Instead of returning an "invalid:/" URL for the builtins, we should just
return a None result from the goto definition function.
Also add a test for goto_definition
Fixes#4126
Insert before the last whitespace. Adding Bar into `import { Foo } from
"..."` looks like this:
```slint
import { Foo , Bar} from "..." // old
import { Foo, Bar } from "..." // new
` ``
No behavior should change in this patch!
Move all the code directly related to the LSP into a `language` module,
with `server_loop.rs` becoming `language.rs`, managing that module.
All the preview related code is moved into `preview`, with `preview.rs`
basically forwarding to `native.rs` and `wasm.rs`.
Code accessed from both `language` and `preview` stayed where it was.
The comment says that the LSP protocol needs a +1/-1, but that's not the
case, and the vscode conversion function don't have that.
So remove that -1.
This fixes the property edition in the property view in vscode
These are two different concept, and it is confusing to keep them in the
same enum
We want to support component without any base element, and Void is
already used for global component, so do this refactoring before
Use the zero-line based lsp range/position types for the QueryProperties
lsp command results and convert them to monaco editor ranges for correct
text extraction.
The README.md contains the warning that used to be in lib.rs.
Add README.md files to all internal crates
... pointing to the official public crate to use instead.
Rename internal crates
fixup: README files
fixup rename