| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the previous implementation, the extensions were using only one way
to communicate with each other, which was getting a notification when a
config value was set or changed. This was problematic on startup because
there was no order in which the extensions were activated and when
messages were handled. b5bf26ac084823758be18453bb61579fefceb57c
partially fixed this issue by adding a way to wait for `qt-cpp` to be
ready, but it was still not enough. The extension should read config
values when they are ready, not when messages are sent from other
extensions.
Remove the `lazy` initialization parameter in `Project` classes. Instead
of using that parameter, we remove the firing event from `addProject()`
and only fire when the project is added after startup. This way, we
don't need the `lazy` parameter anymore.
Since `processMessage()` is not used during startup, this commit also
fixes QTBUG-131702 on the extension side.
qt-lib:
This commit changes `QtWorkspaceConfigMessage` and removes values in it.
`QtWorkspaceConfigMessage` is now used only to notify that a value or
values were set. The value `CoreApi` can be accessed by `getValue`
and `setValue`.
* Update the `CoreApi` interface
* Add `setValue`
* Rename `update` to `notify`
* Remove `get<T>()` from `QtWorkspaceConfigMessage`
qt-core:
* Remove the internal checking mechanism to understand if a value was
set or changed. Instead, just store values.
qt-cpp:
* Update `processMessage()` for the new usage.
* Initialize config values explicitly during startup.
qt-qml:
* Update `processMessage()` for the new usage.
* Separate starting `qmlls` from the constructor.
It should be started when the conditions are met.
* Get config values and update parameters inside `onProjectAdded()`
Task-number: QTBUG-131702
Change-Id: If9831ea1257d123f777e6ae2afb92f33942dd3da
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
|
| |
|
|
|
|
|
|
|
| |
During the startup,`qt-qml` and `qt-ui` should wait until `qt-cpp`` sets
the initial configuration values. Otherwise, qt-qml qt-ui may not be
able to access the correct configuration values.
Change-Id: I974a0e5e7e9cb541ea4a382ac85c303b6b59646f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
|
| |
|
|
|
|
|
|
| |
When multiple assets exist for the same platform on
https://qtccache.qt.io/QMLLS/LatestRelease, use the newest.
Change-Id: I0e129b40bd8466fcc1d654fc5f02dd73205eab5d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
|
| |
|
|
|
|
| |
Fixes: VSCODEEXT-98
Change-Id: I46bdef0ef83632be50206e1d1c8812cbbe22d9a8
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Since event handlers are not disposed properly, they are still active
when the project is closed. This can cause those handlers to be called
after the project is closed, which can lead to errors.
* Dispose project managers inside `Deactivate()`
Change-Id: Idd7b8548f7c16c41c0e4fd7052fa7ae988678bc4
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
When either users don't want to use the QML Language Server or they have
`qt-qml.qmlls.customExePath` set, showing the download prompt could be
annoying. This commit adds a new setting `doNotAskForQmllsDownload` to
disable the download prompt.
Change-Id: I5fb0712c94e97ad91f3f0a52e6176a12dffc7712
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
|
| |
|
|
|
|
|
|
| |
* Pass the build directory to qmlls with `-b`
* Detect the build directory change from the CMake extension
Change-Id: I8279b444036e174762f9d469fd8b4abdaba66e83
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
When only the value is checked whether it is undefined or not, it
doesn't give us the correct result because the value either can be
set to undefined or not set at all. We get undefined in both cases.
We should check the key is set in the message first instead.
Change-Id: Ic4c17e96c3975adcbc49eb82e7b1999d3dcec851
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* Add message handling to `qt-qml` extension
* Pass qml import obtained from either `qtpaths` or Qt installation
* Add `additionalImportPaths` to get additional import paths from the
user.
* Add `useQmlImportPathEnvVar` to pass `-E` option to qmlls.
Fixes: VSCODEEXT-104
Change-Id: Ic84bf7a6834d2d84b738e759a69c27ba47bf1fc5
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
|
| |
|
|
|
| |
Change-Id: I396aaf055f35c7c67ec7c760c61a16b12c8c322b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
In the previous implementation, the download process continued even
after the user canceled the download. This commit fixes the issue by
aborting the download when the user cancels it.
* Use optional chaining to reduce indentation
Change-Id: I6603d0cb76078e89e33b592cea39f717fb8ba2a2
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
|
| |
|
|
|
|
|
|
|
| |
* Move `fetchWithAbort()` to `qt-lib`
* Add progress bar option to `fetchAssetAndDecide()`
* Use `fetchWithAbort()` instead of `fetch()` in `fetchAssetAndDecide()`
Change-Id: Ifd054d96427a89c9e24ac130a7362afe014ee8de
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
|
| |
|
|
|
|
|
| |
Amends f6b80894533915ac70656058c9155960fc99a0c9
Change-Id: I543865c9f54396fc1c1816e0186787b46646fe47
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove the global qmlls usage
* Start qmlls instance for each project
* Use configuration per project instead of global configuration
* Use `workspaceFolder` scope for qmlls configuration
* Implement `QMLProjectManager`
- When a new version of the QML language server is available, restart
all qmlls instances.
* Prepare codebase for `qmlls` cli parameters per project
Change-Id: If4bbd7f99da5ebd054a550419afa985bd65b2f3f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
* Send events when commands are executed
* Add https://www.npmjs.com/package/@vscode/extension-telemetry
* Update ThirdPartyNotices.txt
Task-number: VSCODEEXT-62
Change-Id: I7c88b0db55fa14da6d66025e7fa4458726f5ce6b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add two commands to enhance user control over installation status.
* `checkQmllsUpdate` checks for recent updates on the server and
provides a window to ask the user whether to install it.
* `downloadQmlls` downloads and install qmlls regardless of
the current installation status. This could be useful when the user
wants to reinstall from scratch.
Task-number: VSCODEEXT-68
Change-Id: I293b17fdfdd478b16753b6f6b1346a11716f1b2f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Orkun Tokdemir <orkun.tokdemir@qt.io>
|
| |
|
|
|
| |
Change-Id: I27282a7e316f847e62e8751cb9eb52ea38a4aff2
Reviewed-by: Orkun Tokdemir <orkun.tokdemir@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Add feature to download the qmlls from central server.
The extension checks for a new qmlls release at startup using
server-provided JSON, which includes version and binary locations.
If an update is available, the binary is installed in `UserLocalDir`.
Task-number: VSCODEEXT-68
Change-Id: Iff179def26d233e6089faf2d6a1864e87b11ef9a
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Orkun Tokdemir <orkun.tokdemir@qt.io>
|
| |
|
|
|
| |
Change-Id: I6622d0decd8c788bcd6573838a20de261fc1e896
Reviewed-by: Orkun Tokdemir <orkun.tokdemir@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
The `ProjectManager` classes in qt-core, qt-cpp are now derived from
the `ProjectManager` template class in qt-lib.
Rename `ProjectBase` to `Project` for simplcity and consistency.
Change-Id: I66492028f43eb8822e2be5cde87de8a97c214381
Reviewed-by: Orkun Tokdemir <orkun.tokdemir@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
* Add tilde support for `qt-cpp.installationRoot`,
`qt-cpp.qtadditionalQtPaths`, `qt-qml.qmlls.customExePath` and
`qt-ui.customWidgetsDesignerExePath`.
* Update the `package.json` files
* Update ThirdPartyNotices.txt
Change-Id: Ieefda914b46e78882cc18dd98eef86d26399f1b8
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
|
| |
|
|
|
| |
Change-Id: Id7b61cc70c97b3e859a0004bb206e970ca51f17e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
|
| |
|
|
|
|
| |
Change-Id: I138089a389e6c9c6ab78f3f7238a38232e7203d0
Reviewed-by: Orkun Tokdemir <orkun.tokdemir@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
* Update package.json to enable qmlls by default.
* Use an information message instead of an error message when the
qmlls extension is not found.
Change-Id: I50fc67635b303be147ed71fc05a1c7797413a6b4
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
|
| |
|
|
|
| |
Change-Id: I1e526a649de31f992d0652ccee8fb973e0ec7133
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
|
|
|
Amends c45fc76944f8a280ccc9483cc47236fd98275fb6
* Update github actions
* Update ci-scripts
* Remove unused test folder
* Remove unused dependencies & update `ThirdPartyNotices.txt`s
* Remove unused activation events
Fixes: VSCODEEXT-79
Fixes: VSCODEEXT-80
Change-Id: I450fefdde5209454ef11e1b9cd12162753d4fa36
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
|