... and ignore them on file change notifications: The
Editor manages the file content, so we do not need to
care for the on-disk content for these files.
Get a notification of any file change/deleteion. This feels like
overdoing it a bit, but we need to reload when resources change
and those can be anything.
Ask VSCode to only send files stored on disc to the LSP,
not random other kinds of buffers. The LS can not make
sense of anything else anyway as it can nto get to
the resources stored next to buffer it works on.
For WASm we can load more kinds of buffers. Whitelist a range
of possibnle buffer schemes, incl. `vscode-vfs` which is used
on `github.dev`.
This does stop VSCode from asking the LS to process random
other buffers like those containing a git diff of a slint file.
Fixes: #6375
Replaces the use of NPM with PNPM. This should make it quick and easy to update any of the dependencies as dependabot will now see everything in one go.
Puts a shared biome.json in the root.
Deletes the prettier config files.
Deletes the unused pre-commit hooks.
Applies biome linting and formatting to the slintpad project.
Send the event only if Slint code is edited, which is as soon as we
provide a code lens ("Show Preview"). This works for .slint files as
well as Rust files where the slint macro is embedded.
Enables the following checks for the editors/vscode extension project on CI:
- Typescript syntax checking.
- Code formating (biome).
- Code linting (biome).
Documents usage in Readme.md
Removed unused images.
Sets NPM versions to exact version e.g 8.2.1, not ^8.0.0. (prepare for dependabot).
Update all dependencies.
Use npm clean-install instead of npm install. This means an up to date package-lock.json file must exist in the project. Ensuring local development and the CI are repeatable builds that use the same dependency packages.
This always asks for the user to select a location for the project.
If VScode is already in a folder it will default to that location.
Then at the end the user is asked if they wish to open the project in a new window, the current window or current window, but new workspace.
Typescript tweaked to be less hardcoded strings with potential errors from typos.
It is used to show the output of `debug()`.
User don't find this output if it doesn't exist before there is any
debug output. So make sure it always exist.
(Note: this is not for the browser version, since then we use
console.log instead of the "Slint LSP" output from stderr)
This enhances the extension:
If you open the command palette (CMD + Shift + P) there is a new 'Slint: Create New Project'.
This will talk you through new project creation, language selection and open a new window.
This PR also installs Biome that was missed out of an earlier change.
highjack the code to show the text document when we detect it comes from
the preview panel, in order to not show the code in the active panel,
but to the left of it (or to the right when the preview is already to
the left)
Theyre are no more shared files, so move the files
into vscode and set up a syntax check over there.
That was not possible before as the typescript
compiler would error out on the shared files being
outside its root directory.
Fix warning in json file:
> This activation event can be removed as VS Code generates these automatically from your package.json contribution declarations.