slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
16.93k stars 565 forks source link

vscode web extension not working with file from github. #1323

Closed ogoffart closed 2 years ago

ogoffart commented 2 years ago

The slint-nightly vscode extension now can be loaded as a web extension on the online vscode on e.g https://vscode.dev . The slint-nightly extension can be loaded and the wasm LSP works well for file loaded from with the "file / open" menu (eg: local files) so one can have auto-completion, error reporting, and go to symbol. But it doesn't work for file loaded from a git repository for some reason.

The extension is loaded. the LSP worker is started. The initialize() callback is called and we call and return from the wasm properly for this call. But no further callback are recieved on the lsp worker.

Screenshot_20220606_200600

(In that screenshot, the breakpoint line 8250 is hit, and we can check that ths_lsp is properly created and that the call to capabilities() actually return the right result. But no further breakpoint is hit. Which kind of mean that no further notification was sent.)

Step to reproduce:

ogoffart commented 2 years ago

The fix worked