[Windows] Add `wslMode` to settings
See original GitHub issueIt seems the WSL mode in Windows is very powerful, as it allows to keep all tools in their original OSX/Linux versions and plug them in into the native Windows IDEs.
Adding a setting to enable wslMode
would allow Windows users to quickly configure the extension without the need to install bridges or any other hack, and it would allow us to tweak the data that goes from the server to the VSCode client, to make sure everything works properly.
A couple of use cases for this setting:
- Prepending
bash -ic
to paths: so instead of having to installocaml-on-windows
, just adding this setting on VSCode would work - Adapting file paths: because
bsb
ormerlin
would be running on Linux mode, we would need to adapt fromfile:///mnt/c/project/myFile.re
toC:\project\myFile.re
so the diagnostics work properly (underline text on file, double click to open, etc)
There are probably more cases.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:23 (3 by maintainers)
Top Results From Across the Web
Advanced settings configuration in WSL - Microsoft Learn
A guide to the wsl.conf and .wslconfig files used for configuring settings when running multiple Linux distributions on Windows Subsystem ...
Read more >Setting Up Windows Subsystem for Linux (WSL) and Windows ...
Setting Up Windows Subsystem for Linux (WSL) and Windows Terminal. 1. Enable Developer Mode. Open the Settings app and click Update & Security...
Read more >Stepwise Guide to Enable Windows 10 Subsystem for Linux
To enable the Windows Subsystem for Linux (Beta), open the Control Panel, click Programs and Features, and click Turn Windows Features On or...
Read more >Setup Windows Subsystem Linux (WSL) on Windows 10
Before activating the WSL, we need to activate the developer mode in windows. Open Windows settings and click on the Update & Security...
Read more >How to set up Linux on Windows with WSL 2 | by Sigrid Huemer
1. Enable WSL · 2. Check if virtualization is enabled · 3. Enable Virtual Machine feature · 4. Restart machine · 5. Download...
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
@jchavarri yeah, in OCaml.
I’ll just add btw that if someone wants to create a PR for the current implementation that gets WSL working in a robust way, I’m happy to merge that as a temporary measure. I’m just spread a bit thin with other projects at the moment and it’s kind of hard to justify putting a lot more energy into a rewrite of the current server core in typescript if the intention is to move on to something better soon after anyway.
There was a breakthrough in thinking by realizing BuckleScript couldn’t be used on native Windows because it was generating invalid Merlin files and that was causing problems with Merlin.
Automating adding ‘bash -ci’ prefix is a convenience change.
Right now, the most important thing to happen to get extension working w/ Windows & WSL is to fix Unix/Windows path translation issue .
#TheOneWindowsThing