style erases vscode user settings
System details
Omarchy 3.0.0
What's wrong?
When selecting a style from the menu, the theme is applied in VS Code as expected. However, the settings.json file is overwritten and replaced with only a single line:
{ "workbench.colorTheme": "Gruvbox Dark Medium" }
When selecting a style from the menu, the theme is applied in VS Code as expected. However, the settings.json file is overwritten and replaced with only a single line:
{ "workbench.colorTheme": "Gruvbox Dark Medium" }
doesn't seem to be the case for me.. do you have a copy of your previous settings.json file? if yes can i have a look at it?
Sure, i just removed work related stuff. `` {
"workbench.colorTheme": "Gruvbox Dark Medium",
// nvim
"vscode-neovim.neovimInitVimPaths.linux": "~/.config/nvim/init.lua",
"editor.lineNumbers": "relative",
// Error lense
"errorLens.enabledDiagnosticLevels": ["error"],
"errorLens.delay": 1000,
"errorLens.statusBarIconsEnabled": false,
"errorLens.statusBarMessageEnabled": false,
"errorLens.gutterIconsEnabled": false,
"errorLens.codeLensEnabled": false,
"errorLens.followCursor": "closestProblem",
"errorLens.selectProblemType": "closestSeverity",
"errorLens.followCursorMore": 3,
// Settings
"window.title": "${dirty}${rootName}${separator}${activeEditorShort}",
"workbench.iconTheme": "material-icon-theme",
"editor.selectionHighlight": true,
// "editor.cursorStyle": "line",
"editor.cursorSmoothCaretAnimation": "off",
"editor.cursorWidth": 4,
"workbench.list.smoothScrolling": true,
"editor.cursorBlinking": "solid",
"explorer.compactFolders": false,
"editor.smoothScrolling": true,
"workbench.colorCustomizations": {
"[Palenight (Mild Contrast)]": {
"editorCursor.foreground": "#ffff00",
"terminalCursor.foreground": "#ffff00",
"tab.activeBorder": "#ffff00"
},
"[Palenight]": {
"editorCursor.foreground": "#ffff00",
"terminalCursor.foreground": "#ffff00",
"tab.activeBorder": "#ffff00"
},
"[GitHub Light]": {
"editorCursor.foreground": "#292d3e",
"terminalCursor.foreground": "#292d3e",
"tab.activeBorder": "#292d3e"
},
},
// My own tab settings
"workbench.editor.showTabs": "multiple",
"workbench.editor.tabSizing": "fit",
"workbench.editor.wrapTabs": true,
"workbench.editor.limit.enabled": true,
"workbench.editor.limit.value": 9,
"workbench.editor.limit.perEditorGroup":true,
/**
* GIT
**/
"git.confirmSync": false,
"git.autofetch": true,
//"git.postCommitCommand": "push",
"github.copilot.enable": {
"*": true,
"plaintext": false,
"markdown": false,
"scminput": false,
"sql": true
},
/**
* Better Defaults
**/
"editor.copyWithSyntaxHighlighting": false,
"diffEditor.ignoreTrimWhitespace": false,
"editor.emptySelectionClipboard": false,
"window.newWindowDimensions": "inherit",
"editor.multiCursorModifier": "ctrlCmd",
"files.trimTrailingWhitespace": true,
"diffEditor.renderSideBySide": false,
"editor.snippetSuggestions": "top",
"editor.detectIndentation": false,
"window.nativeFullScreen": false,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
/**
* Hide Everything
**/
"workbench.activityBar.location": "hidden",
//"workbench.editor.showTabs": "single",
"editor.minimap.enabled": false,
/**
* Find
**/
"scm.diffDecorations": "none",
"editor.hover.enabled": false,
//"editor.matchBrackets": "never",
"workbench.tips.enabled": false,
"editor.colorDecorators": false,
"git.decorations.enabled": false,
"workbench.startupEditor": "none",
"editor.lightbulb.enabled": "off",
// "editor.selectionHighlight": false,
"editor.overviewRulerBorder": false,
"editor.renderLineHighlight": "none",
"editor.occurrencesHighlight": "off",
"problems.decorations.enabled": false,
"editor.renderControlCharacters": false,
"editor.hideCursorInOverviewRuler": true,
"editor.gotoLocation.multipleReferences": "goto",
"editor.gotoLocation.multipleDefinitions": "goto",
"editor.gotoLocation.multipleDeclarations": "goto",
"workbench.editor.enablePreviewFromQuickOpen": false,
"editor.gotoLocation.multipleImplementations": "goto",
"editor.gotoLocation.multipleTypeDefinitions": "goto",
/**
* Typography
**/
"editor.fontSize": 16,
"editor.lineHeight": 2.2,
"editor.suggestFontSize": 16,
"editor.suggestLineHeight": 28,
"terminal.integrated.fontSize": 15,
"terminal.integrated.lineHeight": 1.5,
// "editor.fontFamily": "JetBrains Mono",
"editor.fontFamily": "CaskaydiaMono Nerd Font Mono",
// "editor.fontFamily": "IBM Plex Mono",
"editor.fontLigatures": true,
/**
* Prettier
**/
"[snowflake-sql]": {
//"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
},
"[jinja-sql]": {
// "editor.defaultFormatter": "innoverio.vscode-dbt-power-user",
//"editor.formatOnSave": true,
},
"[sql]": {
//"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
},
"[javascript]": {
//"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
},
"prettier.requireConfig": true,
"prettier.useEditorConfig": false,
/**
* Better Comments
**/
"better-comments.tags": [
{
"tag": "!",
"color": "#FF2D00",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "- !",
"color": "#FF2D00",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "?",
"color": "#3498DB",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "- ?",
"color": "#3498DB",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "//",
"color": "#474747",
"strikethrough": true,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "todo",
"color": "#FF8C00",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": true,
"italic": false
},
{
"tag": "- todo",
"color": "#FF8C00",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": true,
"italic": false
},
{
"tag": "*",
"color": "#98C379",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "- *",
"color": "#98C379",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
],
/**
* Material Icon Theme
**/
"material-icon-theme.files.associations": {
"**.sql": "",
"**.yml": "yaml-mod"
},
"material-icon-theme.files.customClones": [
{
"name": "yaml-mod",
"base": "yaml",
"color": "purple-500",
"fileNames": ["yaml.yml"]
},
{
"name": "rust-lib",
"base": "rust",
"color": "light-green-300",
"lightColor": "light-green-600",
"fileNames": ["lib.rs"]
}
],
"material-icon-theme.folders.associations": {
"edw": "database"
},
"material-icon-theme.folders.customClones": [
{
"name": "Raw",
"base": "folder",
"color": "#88E788",
"folderNames": ["landing"]
},
{
"name": "Bronze",
"base": "folder",
"color": "#cd7f32",
"folderNames": ["staging", "ods"]
},
{
"name": "Silver",
"base": "folder",
"color": "#c8c8c8",
"folderNames": ["raw_vault", "biz_vault", "intermediate"]
},
{
"name": "Gold",
"base": "folder",
"color": "#FFD700",
"folderNames": ["information_marts", "marts"]
},
{
"name": "Data_Sharing",
"base": "folder",
"color": "#1195e4",
"folderNames": ["data_sharing"]
},
{
"name": "explore",
"base": "folder",
"color": "white",
"folderNames": ["explore"]
},
{
"name": "dependencies",
"base": "folder",
"color": "black",
"folderNames": ["dependencies"]
},
{
"name": "homebi",
"base": "folder",
"color": "light-blue-200",
"folderNames": ["homebi"]
},
{
"name": "macros",
"base": "base",
"color": "orange-400",
"folderNames": ["macros"]
},
],
/**
* Indent Rainbow
**/
"indentRainbow.indicatorStyle": "light",
// we use a simple 1 pixel wide line
"indentRainbow.lightIndicatorStyleLineWidth": 1,
// the same colors as above but more visible
"indentRainbow.colors": [
"rgba(255,255,64,0.3)",
"rgba(127,255,127,0.3)",
"rgba(255,127,255,0.3)",
"rgba(79,236,236,0.3)"
],
/**
* Changed in UI
**/
"projectManager.openInNewWindowWhenClickingInStatusBar": true,
"projectManager.openInCurrentWindowIfEmpty": "onlyUsingSideBar",
"projectManager.confirmSwitchOnActiveWindow": "always",
"security.workspace.trust.untrustedFiles": "open",
"dbcode.resultLocation": "panel",
"dbcode.history.enabled": true,
"notebook.lineNumbers": "on",
"workbench.editor.enablePreview": false,
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"dbcode.ai.inlineCompletion": false,
"dbcode.notebook.maxTabs": 10,
"dbcode.maxTabs": 10,
"dbcode.cloudProviders": [],
"github.copilot.nextEditSuggestions.enabled": true,
"editor.definitionLinkOpensInPeek": true,
"editor.peekWidgetDefaultFocus": "editor",
"extensions.experimental.affinity": {
"asvetliakov.vscode-neovim": 1
},
"aws.telemetry": false,
"explorer.confirmDelete": false,
"window.commandCenter": false,
"workbench.layoutControl.enabled": false,
"chat.commandCenter.enabled": false,
"window.menuBarVisibility": "compact",
"zenMode.showTabs": "single",
"errorLens.messageEnabled": true
}
``
i think its due to the fact that jq cant handle json with comments, if you remove the comments and trailing commas, you can make it work for now..
Just submitted a PR to fix this. As you guessed @SamrudhNelli it's an issue with jq and jsonc.
This was happening for me too. I'm just going to say VS Code, Visual Studio Code, and vscode in my comment to keyword-stuff a bit and help people find this issue. For me, I think it was a symlink thing, as I didn't have any comments in my settings file.