From c603149369148814768822ea1ae7f6fecba3068c Mon Sep 17 00:00:00 2001 From: Keith Devens Date: Thu, 7 Dec 2023 20:44:47 -0500 Subject: [PATCH] vscode: update settings for 1.85 https://code.visualstudio.com/updates/v1_85 Commented out portions of Python config will work when Ruff cuts a new release https://github.com/astral-sh/ruff/pull/8822 --- .../Application Support/Code/User/settings.json | 16 +++++++++------- ruff.toml | 3 +++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/HOME/Library/Application Support/Code/User/settings.json b/HOME/Library/Application Support/Code/User/settings.json index a0926f86..24e111ff 100644 --- a/HOME/Library/Application Support/Code/User/settings.json +++ b/HOME/Library/Application Support/Code/User/settings.json @@ -27,7 +27,7 @@ "editor.inlayHints.enabled": "offUnlessPressed", "editor.inlayHints.fontSize": 12, "editor.accessibilitySupport": "off", - "editor.multiDocumentOccurrencesHighlight": true, + "editor.occurrencesHighlight": "multiFile", "terminal.integrated.fontFamily": "Victor Mono", "terminal.integrated.fontSize": 13, @@ -69,6 +69,7 @@ "security.workspace.trust.untrustedFiles": "open", "workbench.tree.indent": 15, + "workbench.tree.enableStickyScroll": true, "workbench.editor.showTabs": "multiple", "workbench.editor.wrapTabs": false, // buggy "workbench.editor.empty.hint": "hidden", @@ -251,7 +252,7 @@ // language-specific "[plaintext]": { - "editor.wordBasedSuggestions": false, + "editor.wordBasedSuggestions": "off", "editor.wordWrap": "bounded", }, @@ -266,8 +267,8 @@ "editor.insertSpaces": true, "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.codeActionsOnSave": { - "source.organizeImports": true, - "source.fixAll": true, + "source.organizeImports": "always", + "source.fixAll": "always", }, }, "json.schemas": [], @@ -289,9 +290,10 @@ "editor.formatOnType": true, "editor.tabSize": 4, "editor.defaultFormatter": "charliermarsh.ruff", + // "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "source.fixAll": true, - "source.organizeImports": true, + "source.organizeImports": "always", + "source.fixAll": "always", }, }, "python.globalModuleInstallation": true, @@ -310,7 +312,7 @@ "[elixir]": { "editor.formatOnSave": true, - "editor.wordBasedSuggestions": true, + "editor.wordBasedSuggestions": "matchingDocuments", "editor.acceptSuggestionOnEnter": "on", }, "elixirLS.suggestSpecs": false, diff --git a/ruff.toml b/ruff.toml index 5c58b5ad..8faee80c 100644 --- a/ruff.toml +++ b/ruff.toml @@ -1,2 +1,5 @@ [lint.isort] known-local-folder = ["lib"] + +# [format] +# quote-style = "preserve"