Skip to content

Commit

Permalink
vscode: update settings for 1.85
Browse files Browse the repository at this point in the history
https://code.visualstudio.com/updates/v1_85

Commented out portions of Python config will work when Ruff cuts a new release

astral-sh/ruff#8822
  • Loading branch information
kbd committed Dec 8, 2023
1 parent 6c3a8b5 commit c603149
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
16 changes: 9 additions & 7 deletions HOME/Library/Application Support/Code/User/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -251,7 +252,7 @@

// language-specific
"[plaintext]": {
"editor.wordBasedSuggestions": false,
"editor.wordBasedSuggestions": "off",
"editor.wordWrap": "bounded",
},

Expand All @@ -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": [],
Expand All @@ -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,
Expand All @@ -310,7 +312,7 @@

"[elixir]": {
"editor.formatOnSave": true,
"editor.wordBasedSuggestions": true,
"editor.wordBasedSuggestions": "matchingDocuments",
"editor.acceptSuggestionOnEnter": "on",
},
"elixirLS.suggestSpecs": false,
Expand Down
3 changes: 3 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[lint.isort]
known-local-folder = ["lib"]

# [format]
# quote-style = "preserve"

0 comments on commit c603149

Please sign in to comment.