Releases: microsoft/vscode-extension-telemetry
New function to expose telemetry level
- Added
telemetryLevel
to the telemetry reporter class. This can be useful in cases where an external service wants to respect the same telemetry level as VS code. For example you could send your telemetry level alongside an API request and the server would respect the same settings as the user's VS Code instance. More info can be found in the typings shipped with the module. - Fixed wrong header in readme
Update Readme + fix vulnerable dependencies
- Fixed incorrect README details due to package name change
- Upgraded some vulnerable dependencies to newer version
Move to @vscode/extension-telemetry and bug fixes
This package has been moved from vscode-extension-telemetry to @vscode/extension-telemetry to better unify the packages vscode publishes.
Some bug fixes:
- Remote name being wrongly reported
- Better cleaning of passwords and other possible credentials from telemetry.
Fix monkey patching + support older version of node
- Fixes #12 which was causing weird issues when using
console
in certain contexts. - Lowers the browser target component as
esnext
is too high for many codebases. We now targetes6
.
Small perf improvements + new common property
- Removed an inefficient cleaning regex. Definitely recommend updating as this can cause unnecessarily high CPU usage.
- Added new common property
common.nodeArch
thanks to @radeksimko. This will collect the system architecture to provide more insights into arm vs x86 system usage - Updated build machine to Node LTS from Node 14.
Add telemetry caching
With the recent addition of lazy-loading it was possible to get into a state where logged telemetry wouldn't be sent due to the client not being ready. This releases adds caching which stores logged events created before the client is ready and then sends them once it is. Additionally, a larger refactor was done internally to reduce duplicated appender code.
Fix compatibility with old versions of VS Code
- Fix old version of VS Code not respecting telemetry setting
- Fix old version of VS Code throw with
isNewAppInstall
Lazy loading
Adds dynamic imports to the app insights modules so that when telemetry is off they don't load at all. Minor performance improvements might be seen when telemetry is off due to not loading these additional modules.
Note: This version bumped our target from ES6 to ES2020 due to these dynamic imports
Support new telemetry settings
- VS Code has introduced
telemetry.telemetryLevel
for more granularity between turning off all telemetry and still allowing error telemetry. This update now supports and respects that setting. - Add new common property
common.product
which says where VS Code is running, i.e. desktop, codespaces, github.dev
Better typings + More cleaning!
- Add JS Doc comments to
.d.ts
file for intellisense - Better cleaning of possibly leaked user data by looking for keywords such as key & token
- Lower target to Node 12 to support older extensions