fix: Sync telemetry setting to the LS
Description
The telemetry setting from VSCode was not synced with the LS. This MR fixes the issue
Testing
- Checkout this branch
- Provide the
trackingUrl
for the local Snowplow collector in the Client config for the LS here
telemetry: {
trackingUrl: 'http://localhost:9091',
}
- Link the LS branch from this MR gitlab-org/editor-extensions/gitlab-lsp!372 (merged)
- Run extension
- In VSCode go to
Settings => Telemetry
selectall
in the dropdown to enable telemetry or any other value to disable it. - Trigger some code suggestions, note that the LS should log a warning when telemetry is disabled and not log any other telemetry messages further.
- Check the local snowplow collector (reset before test). No new events should be coming when telemetry is disabled and when it is turned back on, should start coming.
What CHANGELOG entry will this MR create?
-
fix:
Bug fix fixes - a user-facing issue in production - included in changelog -
feature:
New feature - a user-facing change which adds functionality - included in changelog -
BREAKING CHANGE:
(fix or feature that would cause existing functionality to change) - should bump major version, mentioned in the changelog -
None - other non-user-facing changes
Closes #1389 (closed)
Edited by Olena Horal-Koretska