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.

Flag machine specific configurations like paths as machine scoped

See original GitHub issue

I am developer from VS Code and we introduced Machine Scope for configurations in 1.34 which will help in remote set ups.

I would like to encourage extension authors to adopt to machine scope if you have any settings that you think they are scoped to machine like powershell.powerShellExePath

For example, If you have settings that allow users to customize an executable path that exists on the machine in which extension is running, then you can tag such settings as machine scoped. This will let VS Code to read this setting from the location where the extension is running.

  • When extension is running locally, VS Code reads this setting only from User settings on the same machine.
  • When extension is running remotely, VS Code reads this setting only from Remote settings on the remote machine.

If the extension is running remotely in a remote set up, then this will help the extension not to read paths configured in local machine user settings and bail as the paths not exist in the remote machine.

Note that machine scoped settings are overridable only in user or remote settings.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
rkeithhillcommented, Jun 14, 2019

Nevermind. Helps if you install the extension in the WSL Remote for Insiders. 🤦‍♂

0reactions
TylerLeonhardtcommented, Jun 18, 2019

Right, what I’m getting at is that marking something as “machine” scoped so the setting is marked “different in remote scenarios” is confusing since WSL is still on the same machine.

Apologies if this came off as bike-shedding, but I was confused by the ask initially and didn’t want customers to be confused as well.

Something like “host” might have been a better name, IMO.

Anyway, we’ll mark our settings that pertain to executable paths as scope:"machine" 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration Tutorial — Spack Tutorial documentation
Configuration Tutorial¶. This tutorial will guide you through various configuration options that allow you to customize Spack's behavior with respect to ...
Read more >
Managing gcloud CLI configurations
To change the active configuration for a single command invocation, you can use the --configuration flag on any gcloud CLI command:.
Read more >
Feature Toggles (aka Feature Flags) - Martin Fowler
Release Toggles allow incomplete and un-tested codepaths to be shipped to production as latent code which may never be turned on. These are...
Read more >
Advanced settings configuration in WSL - Microsoft Learn
WSL 2 runs as a lightweight virtual machine (VM), so uses virtualization ... The directory path should look something like: /etc/wsl.conf .
Read more >
Advanced configuration - GitLab Docs
The Docker container runs on the local machine. This setting changes how the commands are run inside that container. If you want to...
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