Expose electron version to extension code
See original GitHub issueIn general, extension that uses binary dependency may want to read electron version to properly prepare such dependencies to work in provided environment.
I’m want to integrate telemetry into extension to better understand users behavior.
Google’s stackdriver
chosen for this purpose, but there is issue that stop me from deploy extension.
Stackdriver libs using another one called grpc
which is binary module and it requires to be built upon specific elector version (as long as extension code use electrons require
).
So to sum up, when my extension downloaded/updated by vscode, it starts to download precompiled grpc
binary, but there i need to get electron version vscode compiled with.
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
VS Code Sandboxing
By exposing code caching options in Electron, we can forcefully trigger code caching in Chromium when using the bypassHeatCheck option. In ...
Read more >Using Preload Scripts - Electron
To demonstrate this concept, you will create a preload script that exposes your app's versions of Chrome, Node, and Electron into the renderer....
Read more >Architecture for an extensible electron app? - Stack Overflow
VS Code exposes an API for extensions. They can subscribe to events to listen for them, call exposed API functions, register new providers ......
Read more >Electron Preload Script - Quasar Framework
For security reasons, the renderer thread (your UI code from /src ) does not have access to the Node.js stuff. However, you can...
Read more >Notes on running Electron - DataStation
DataStation is an Electron app. It runs on Windows, macOS and Linux. The UI code is all React and TypeScript. This is the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If I understand docs properly language server is intended to be separate process (non restricted to NodeJs) so extension author should be able to configure such process in a proper way. On the other hand extension is started by vscode in which case author has no control over environment. So i think it should be ok that only extension gets proper versions in
process
as long as developer can control language server creation.No. I’ll open another one in main
vscode
repo.Thanks again for help!