Commit graph

296 commits

Author SHA1 Message Date
Nigel Breslaw
feee3188d7
VSCODE: Add std-widgets to Vscode help links (#8658) 2025-06-10 11:18:06 +03:00
dependabot[bot]
01ab76ce92
build(deps): bump simple-git from 3.27.0 to 3.28.0 (#8652)
Bumps [simple-git](https://github.com/steveukx/git-js/tree/HEAD/simple-git) from 3.27.0 to 3.28.0.
- [Release notes](https://github.com/steveukx/git-js/releases)
- [Changelog](https://github.com/steveukx/git-js/blob/main/simple-git/CHANGELOG.md)
- [Commits](https://github.com/steveukx/git-js/commits/simple-git@3.28.0/simple-git)

---
updated-dependencies:
- dependency-name: simple-git
  dependency-version: 3.28.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-09 16:54:02 +03:00
Nigel Breslaw
d2041e5d28
Teach VScode to open the browser help for basic elements (#8580) 2025-06-02 16:26:45 +03:00
dependabot[bot]
ff1dcaa75b
build(deps-dev): bump esbuild from 0.25.4 to 0.25.5 (#8586)
* build(deps-dev): bump esbuild from 0.25.4 to 0.25.5

Bumps [esbuild](https://github.com/evanw/esbuild) from 0.25.4 to 0.25.5.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.4...v0.25.5)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-version: 0.25.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* [autofix.ci] apply automated fixes

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-02 13:23:30 +03:00
Tasuku Suzuki
83db461f63
Transition: Introduce in-out to allow writing symmetry animation (#8509) 2025-05-26 09:17:22 +02:00
Nigel Breslaw
f40ce5fb1b
Basic live-preview telemetry (#8488) 2025-05-21 11:35:25 +03:00
Simon Hausmann
0a0e7614e9 TextMate Grammar: Add support from re-exports 2025-05-19 15:21:37 +02:00
dependabot[bot]
1e0716cbd1
build(deps-dev): bump esbuild from 0.25.3 to 0.25.4 (#8430)
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.25.3 to 0.25.4.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.3...v0.25.4)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-version: 0.25.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-12 12:54:15 +03:00
ogoffart
e0099ea500 Bump version number to 1.12.0 2025-04-30 13:27:50 +00:00
Simon Hausmann
dbe4a684c6
biome: Enable lint to check for missing await statements (#8305) 2025-04-29 14:57:52 +02:00
dependabot[bot]
57e6561f8c
build(deps-dev): bump esbuild from 0.25.2 to 0.25.3 (#8289)
* build(deps-dev): bump esbuild from 0.25.2 to 0.25.3

Bumps [esbuild](https://github.com/evanw/esbuild) from 0.25.2 to 0.25.3.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.2...v0.25.3)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-version: 0.25.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* dedupe

* pnpm approve-builds

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nigel Breslaw <nigel.breslaw@slint.dev>
2025-04-29 09:27:21 +03:00
Olivier Goffart
c8b13ff904 tmLanguage: don't match every identifier as a variable
Overuse of highlighted blue is not pretty
2025-04-10 10:10:26 +02:00
Olivier Goffart
788966ea4f tmLanguage: support out of context snippet
such as
```slint
in property <brush> xxx: color;
```
even if the property is not in a component, it should still be
hishlighted
2025-04-10 10:10:26 +02:00
Olivier Goffart
6457d7b275 vscode grammar test: use valid comment so the slint files are valid 2025-04-10 10:10:26 +02:00
Tobias Hunger
a53986520f tm: Add missing # to actually find the function-call include 2025-04-09 18:15:35 +02:00
Simon Hausmann
33561b0457 Remove unnecessary try / catch blocks when using the winit-based wasm-preview
Commit b2645dff6c and 4b37d9a1f1 introduced the use of spawn, which doesn't thrown anymore.
2025-04-09 08:50:39 +02:00
dependabot[bot]
2feb048fa5
build(deps): bump typescript from 5.8.2 to 5.8.3 (#8069)
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.8.2 to 5.8.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml)
- [Commits](https://github.com/microsoft/TypeScript/commits)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 5.8.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-08 11:00:19 +03:00
dependabot[bot]
f3a2b19b59
build(deps-dev): bump esbuild from 0.25.1 to 0.25.2 (#7989) 2025-04-01 09:50:55 +03:00
Nigel Breslaw
daba39e34b
Better dev commands for VScode development (#7951)
These changes make developing the vscode extension more productive.

- The lsp is compiled for Skia which on the Mac ensures the fonts render correctly and the UI will run at 120fps on displays that support high frame rates.
- The compiled plugin will open with an actual project. This saves at least 2 extra clicks to open some project everytime you compile the extension and want to see it.
2025-03-26 10:46:43 +02:00
Simon Hausmann
264470fb61 Add Python to the templates for the VS code extension quick picker 2025-03-25 16:32:16 +01:00
Tobias Hunger
7276484d3c vscode: Redo TextMate grammar
Make the textmate grammar match better and test that it
actually works as intended.

Fixes: #4457
Fixes: #6323
2025-03-21 17:46:10 +01:00
dependabot[bot]
dbfa7aea3b
build(deps-dev): bump shx from 0.3.4 to 0.4.0 (#7874)
Bumps [shx](https://github.com/shelljs/shx) from 0.3.4 to 0.4.0.
- [Release notes](https://github.com/shelljs/shx/releases)
- [Changelog](https://github.com/shelljs/shx/blob/main/CHANGELOG.md)
- [Commits](https://github.com/shelljs/shx/compare/v0.3.4...v0.4.0)

---
updated-dependencies:
- dependency-name: shx
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-18 13:12:24 +02:00
ogoffart
178cf21c2e Bump version number to 1.11.0 2025-03-18 09:48:22 +00:00
dependabot[bot]
8a8d93fbed
build(deps-dev): bump esbuild from 0.25.0 to 0.25.1 (#7839) 2025-03-13 21:11:13 +02:00
dependabot[bot]
efb4d23f38
build(deps): bump typescript from 5.7.3 to 5.8.2 (#7780)
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.7.3 to 5.8.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.7.3...v5.8.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-04 16:39:14 +02:00
Tobias Hunger
53d972eb12
vscode: Fix tmGrammar test (#7750)
* vscode: Fix tmGrammar test

We can not have a copyright header in the test files,
they must start with the SYNTAX TEST annotation in
the first bytes.

* Update REUSE.toml

Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>

---------

Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2025-02-26 19:04:30 +01:00
Simon Hausmann
245400c47b Fix VSCE build
The CI has been using the deprecated vsce package to test .vsix creation, while it was renamed to @vscode/vsce a while ago. Last night, the vsce publish action we're using switched to @vscode/vsce and now the vsce build is failing, because of a bug that was hidden:

In vsce 2.25 support for `files` in `package.json` was introduced, which was just `bin/slint-lsp-*` in our package. That would omit the extension entry point and many other files, causing the vsce package creation step to fail.

Fix this by fixing the CI to use the same vsce version as the action is using, and replace the files with the default and the ignore setting of files we definitely want to exclude from the package.

With this, the package now contains these files:

```
slint-1.10.0.vsix
├─ [Content_Types].xml
├─ extension.vsixmanifest
└─ extension/
   ├─ .gitignore [0.03 KB]
   ├─ LICENSE.txt [0.04 KB]
   ├─ biome.json [0.2 KB]
   ├─ esbuild.js [2.22 KB]
   ├─ extension-logo.png [6.76 KB]
   ├─ language-configuration.json [1.49 KB]
   ├─ package.json [7.93 KB]
   ├─ readme.md [3.85 KB]
   ├─ slint-file-icon.svg [0.83 KB]
   ├─ slint.injection.json [1.61 KB]
   ├─ slint.markdown-injection.json [1.37 KB]
   ├─ slint.tmLanguage.json [8.79 KB]
   ├─ telemetry.json [2.21 KB]
   ├─ bin/
   │  └─ slint-lsp [82.21 MB]
   ├─ out/
   │  ├─ .gitignore [0 KB]
   │  ├─ browser.js [321.26 KB]
   │  ├─ browser.js.map [406.49 KB]
   │  ├─ browserServerMain.js [18.27 MB]
   │  ├─ browserServerMain.js.map [255.8 KB]
   │  ├─ extension.js [457.78 KB]
   │  ├─ extension.js.map [617.27 KB]
   │  ├─ slint_lsp_wasm.js [84.62 KB]
   │  └─ slint_lsp_wasm_bg.wasm [13.56 MB]
   ├─ snippets/
   │  └─ slint.json [0.53 KB]
   └─ static/
      └─ walkthroughs/
         └─ welcome/ (4 files) [17.1 KB]
```
2025-02-24 10:00:18 +01:00
Nigel Breslaw
e3a0e1dc93
PNPM 'override' old esbuild versions. (#7605)
0.24 causes security warnings.
2025-02-11 16:31:08 +02:00
Nigel Breslaw
45cd9a9719
Upgrade PNPM 9.x to 10.3 (#7602)
This also recreates the lock file in an attempt to clear out the old version of esbuild that is causing alerts.
2025-02-11 15:00:43 +02:00
dependabot[bot]
e21efee376
build(deps-dev): bump esbuild from 0.24.2 to 0.25.0 (#7582) 2025-02-11 13:13:15 +02:00
Tobias Hunger
33928e4958 lsp: Do not send status nmessages
Nigel says those are annoying as they tend to overstay
their welcome.
2025-02-11 11:29:01 +01:00
dependabot[bot]
3b65677770
build(deps): bump fs-extra from 11.2.0 to 11.3.0 (#7405)
Bumps [fs-extra](https://github.com/jprichardson/node-fs-extra) from 11.2.0 to 11.3.0.
- [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jprichardson/node-fs-extra/compare/11.2.0...11.3.0)

---
updated-dependencies:
- dependency-name: fs-extra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-20 10:21:49 +02:00
dependabot[bot]
870805ec19 build(deps): bump typescript from 5.2.2 to 5.7.3
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.2.2 to 5.7.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.2.2...v5.7.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-14 15:25:56 +01:00
ogoffart
c83af3ca5c Bump version number to 1.10.0 2025-01-13 13:38:41 +00:00
Tasuku Suzuki
346d1c2df3 Fix typos
Ran `typos .` and fixed all typos that do make sense.
https://crates.io/crates/typos
2025-01-13 08:35:20 +01:00
Olivier Goffart
57f42c0870 LSP: Submit the full backtrace to the crash reporter 2025-01-10 23:23:43 +01:00
Olivier Goffart
3e94bd2167 Janitor: Remove trailing whitespaces from all files
`git grep -I -l -O'sed -i "s/[[:space:]]*$//"' -e ''`
2025-01-10 13:23:22 +01:00
dependabot[bot]
7d20db9be0
build(deps-dev): bump esbuild from 0.24.0 to 0.24.2 (#7198)
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.24.0 to 0.24.2.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.24.0...v0.24.2)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-30 20:18:44 +02:00
ogoffart
f309a551b5 Bump version number to 1.9.2 2024-12-30 10:18:16 +00:00
aurindam
dc3f29b6da Bump version number to 1.9.1 2024-12-19 12:57:19 +00:00
Tobias Hunger
1663337ad5
vscode: Add a hello world file template (#7089)
* vscode: Add a hello world file template

* Update editors/vscode/snippets/slint.json

Co-authored-by: Simon Hausmann <hausmann@gmail.com>
2024-12-13 11:25:55 +01:00
Olivier Goffart
61ed193765 Fix vscode extension wasm preview
Somehow the casing was fixed in 04a870a589
2024-12-09 14:56:05 +01:00
Olivier Goffart
1773d0a3cb vscode extension: say that we support "ui" as an extension kind
According to the docs in https://code.visualstudio.com/api/advanced-topics/extension-host#preferred-extension-location
that seems to fit. Hoping that we would see the wasm preview in more
cases such as live share
2024-12-09 14:43:27 +01:00
Simon Hausmann
736e588df0 Fix type check on clean checkout
With pnpm, @types/vscode is in the global node_modules
2024-12-05 13:34:09 +01:00
Simon Hausmann
6d9fcc5d6b Fix TypeScript type check in VS Code extension
... and fix the build after commit 92f4a291ea, which
pulls in https://github.com/microsoft/vscode-languageserver-node/pull/1298
2024-12-05 12:37:18 +01:00
Tobias Hunger
b0fe8d6cfb live-preview: Handle document deletion better 2024-11-27 18:04:54 +01:00
dependabot[bot]
888fc275a6
build(deps): bump typescript from 5.2.2 to 5.7.2 (#6897)
NOTE: This updates typescript to 5.72 for all projects except api/node which cannot be updated
till typedoc is also updated.

* build(deps): bump typescript from 5.2.2 to 5.7.2

Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.2.2 to 5.7.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.2.2...v5.7.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nigel Breslaw <nigel.breslaw@slint.dev>
2024-11-25 19:32:07 +02:00
dependabot[bot]
92f4a291ea
build(deps): bump the vscode group with 2 updates (#6859)
Bumps the vscode group with 2 updates: [vscode-languageclient](https://github.com/Microsoft/vscode-languageserver-node/tree/HEAD/client) and [vscode-languageserver](https://github.com/Microsoft/vscode-languageserver-node/tree/HEAD/server).


Updates `vscode-languageclient` from 8.1.0 to 9.0.1
- [Release notes](https://github.com/Microsoft/vscode-languageserver-node/releases)
- [Commits](https://github.com/Microsoft/vscode-languageserver-node/commits/release/client/9.0.1/client)

Updates `vscode-languageserver` from 8.1.0 to 9.0.1
- [Release notes](https://github.com/Microsoft/vscode-languageserver-node/releases)
- [Commits](https://github.com/Microsoft/vscode-languageserver-node/commits/release/client/9.0.1/server)

---
updated-dependencies:
- dependency-name: vscode-languageclient
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: vscode
- dependency-name: vscode-languageserver
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: vscode
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-21 11:58:45 +02:00
dependabot[bot]
ad8a23571a
build(deps): bump @biomejs/biome from 1.9.3 to 1.9.4 (#6863)
* build(deps): bump @biomejs/biome from 1.9.3 to 1.9.4

Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 1.9.3 to 1.9.4.
- [Release notes](https://github.com/biomejs/biome/releases)
- [Changelog](https://github.com/biomejs/biome/blob/main/CHANGELOG.md)
- [Commits](https://github.com/biomejs/biome/commits/cli/v1.9.4/packages/@biomejs/biome)

---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* format:fix

* Ignore lint item

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nigel Breslaw <nigel.breslaw@slint.dev>
2024-11-21 00:28:19 +02:00
Aurindam Jana
9d851b7942
fix typo 2024-11-19 13:09:48 +01:00