Giter VIP home page Giter VIP logo

preferences-inheritance's People

Contributors

isplasher avatar

Stargazers

 avatar

Watchers

 avatar

preferences-inheritance's Issues

Loss of data after merge

Here testing stuff with 1.1.0.
settings.core.json
settings.ui.json
settings.shell.json
settings.python.json

After merge I get this final json:
settings.json

emeraldwalk.runonsave is missing in the final JSON. Also space formatting is not preserved:

  "emeraldwalk.runonsave": {
    "commands": [
      {
        "match": "\\.vscode/settings\\.(.+)\\.json$",
        "cmd": "sed '/^\\s*\\/\\//d' ${workspaceFolder}/.vscode/settings.*.json | sed -z 's/,\\s*\\([]}]\\)/\\1/g' | jq -s 'reduce .[] as $item ({}; . * $item)' > /tmp/settings.json && mv /tmp/settings.json ${workspaceFolder}/.vscode/settings.json"
      }
    ]
  },

vs

  "commands": [
  {
    "match": "\\.vscode/settings\\.(.+)\\.json$",
    "cmd": "sed '/^\\s*\\/\\//d' ${workspaceFolder}/.vscode/settings.*.json | sed -z 's/,\\s*\\([]}]\\)/\\1/g' | jq -s 'reduce .[] as $item ({}; . * $item)' > /tmp/settings.json && mv /tmp/settings.json ${workspaceFolder}/.vscode/settings.json"
  }
],

Relative paths do not work?

First of all:
Great idea! And that kinda solves my issue, however I've found that relative paths do not work.

Example:

  "preferencesInheritance.targets": [
    {
      "sources": [
        ".vscode/settings.shared.json"
      ],
      "output": ".vscode/settings.json"
    }
  ],

Returns:

2024-01-11 17:48:59.009 [error] [Extension Host] Failed to merge settings
2024-01-11 17:48:59.009 [error] [Extension Host] CodeExpectedError: cannot open file:///.vscode/settings.shared.json. Detail: Unable to read file '/.vscode/settings.shared.json' (Error: Unable to resolve nonexistent file '/.vscode/settings.shared.json')
    at r.$tryOpenDocument (vscode-file://vscode-app/usr/share/codium/resources/app/out/vs/workbench/workbench.desktop.main.js:2169:87835)

preferencesInheritance.nnotifyOnNewWorkspace typo

Whenever we change some settings from interface the VSCode creates this record in json:

preferencesInheritance.nnotifyOnNewWorkspace

And this setting doesn't do anything. However if manually changed to:

preferencesInheritance.notifyOnNewWorkspace

Everything works. Probably just a typo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.