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.

An option to place config in a dedicated file (not in the .vscode/setting.json)

See original GitHub issue

Good day!

Thanks for taking care of this super useful module!

We use it as the default way to build css from scss in our projects. So the module config is actually a part of the project and should be version controlled. But the config is stored in .vscode/setting.json, which contains env specific stuff like, for example, peacock settings and lots of others, that should be set differently for different users.

Could we store vscode-live-sass-compiler’s settings separately (as an option)? In a special config file or in some generic sass setting file (if it exists)?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
glenn2223commented, Apr 13, 2022

No, I understood what you wanted. However, as I said, I had my reservations;

  • if someone was to import a project with this new file. In the VSCode settings GUI, and in the settings.json file itself, it would have one thing, but the result would differ without any obvious reason as to why
  • someone at a workplace has one folder with a bunch of different projects linked to it so their paths would differ from someone else’s (who just has that one folder/project) and they have no control over adjusting the settings

It’s also worth noting that microsoft/vscode#15909 will also work in this way (settings from work overridden by user’s personal settings.json)

The files you’re referring to are the start and end of the hierarchy, but the settings in VSCode are hierarchical.

Sorry don’t mean to be argumentative in any way, just want to make my points. This is all very much in the air so I’m open to being convinced that there is a better way

0reactions
glenn2223commented, Jul 12, 2022

Sorry, I thought I’d replied to this.

I don’t think you can trigger an extension method with a task. I think they’re more for things like building (may be wrong though)

I had a thought. As you want to have separate user and project settings, why not strip user settings from the .vscode/settings.json file and then use VSCode’s user settings for personalisation settings?

VS Code Settings UI with the "User" tab highlighted


FYI: still planning on implementing it in the future. However, more in line with being global (not overwritable)

Read more comments on GitHub >

github_iconTop Results From Across the Web

User and Workspace Settings - Visual Studio Code
json file. You can open the settings. json file with the Preferences: Open Settings (JSON) command in the Command Palette (Ctrl+Shift+P). Once the...
Read more >
Add ability to extend from other settings files #15909 - GitHub
An option to place config in a dedicated file (not in the .vscode/setting.json) glenn2223/vscode-live-sass-compiler#171.
Read more >
VSCode Missing settings in settings.json file - Stack Overflow
Open the command palette (either with F1 or Ctrl + Shift + P ) · Type "open settings" · And then choose Open...
Read more >
VSCode settings.json | vs code settings.json - YouTube
How to find settings. json file in VSCode ? VSCode settings. json not working or not applying? In this tutorial we will locate...
Read more >
Setting up VSCode to use with the dbt CLI - Show and Tell
(optional) add to the requirements.txt what packages w/ versions you plan to do in this project (example below); create a new file .vscode/settings.json...
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