question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expose electron version to extension code

See original GitHub issue

In 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:closed
  • Created 5 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
salterokcommented, Oct 31, 2018

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.

0reactions
salterokcommented, Oct 31, 2018

No. I’ll open another one in main vscode repo.

Thanks again for help!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found