From 1e87166ea5ca4b8306a667950dc9fc42ba22ca00 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Thu, 27 Feb 2025 22:02:20 +0000 Subject: [PATCH] chore(cursor): update settings, keybindings, and remove extensions causing issues Specifically, the Linter extension was causing the whole extension stack in VSCode to crash and restart every 5-10 seconds when working on large Rails projects. End result was VSCode becoming completely unresponsible for 5-ish seconds as all extensions reloaded. --- cursor/extensions.cursor.lock | 15 ++++++-------- cursor/keybindings.json | 38 +++++++++++++++++++++-------------- cursor/settings.json | 27 ++++++++++++++++++++++++- 3 files changed, 55 insertions(+), 25 deletions(-) diff --git a/cursor/extensions.cursor.lock b/cursor/extensions.cursor.lock index 28b7b86..663765f 100644 --- a/cursor/extensions.cursor.lock +++ b/cursor/extensions.cursor.lock @@ -1,10 +1,9 @@ # cursor Extensions -# Generated on Mon Feb 24 10:45:17 GMT 2025 +# Generated on Thu Feb 27 22:00:25 GMT 2025 alefragnani.project-manager@12.8.0 antiantisepticeye.vscode-color-picker@0.0.4 antyos.openscad@1.3.2 -arahata.linter-actionlint@0.1.0 bibhasdn.unique-lines@1.0.0 bodil.file-browser@0.2.11 bufbuild.vscode-buf@0.7.0 @@ -17,7 +16,6 @@ dbaeumer.vscode-eslint@3.0.10 dnut.rewrap-revived@1.16.3 emeraldwalk.runonsave@0.2.7 exiasr.hadolint@1.1.2 -fnando.linter@0.0.19 foxundermoon.shell-format@7.2.5 github.remotehub@0.64.0 github.vscode-github-actions@0.27.1 @@ -28,7 +26,7 @@ gruntfuggly.todo-tree@0.0.226 hashicorp.terraform@2.34.3 hbenl.vscode-test-explorer@2.22.1 humao.rest-client@0.25.1 -joshbolduc.commitlint@2.6.0 +joshbolduc.commitlint@2.6.1 kahole.magit@0.6.66 karunamurti.haml@1.4.1 m4ns0ur.base64@1.0.0 @@ -49,16 +47,15 @@ ms-vscode.remote-server@1.5.2 ms-vscode.test-adapter-converter@0.2.1 ms-vscode.vscode-speech@0.12.1 ms-vsliveshare.vsliveshare@1.0.5948 -ninoseki.vscode-mogami@0.0.42 pflannery.vscode-versionlens@1.16.2 pkief.material-icon-theme@5.19.0 redhat.vscode-xml@0.27.2 redhat.vscode-yaml@1.16.0 rrudi.vscode-dired@0.0.9 -rust-lang.rust-analyzer@0.3.2317 -shopify.ruby-extensions-pack@0.1.12 -shopify.ruby-lsp@0.9.6 -sorbet.sorbet-vscode-extension@0.3.37 +rust-lang.rust-analyzer@0.3.2319 +shopify.ruby-extensions-pack@0.1.13 +shopify.ruby-lsp@0.9.7 +sorbet.sorbet-vscode-extension@0.3.39 sumneko.lua@3.13.6 swellaby.vscode-rust-test-adapter@0.11.0 tamasfe.even-better-toml@0.21.2 diff --git a/cursor/keybindings.json b/cursor/keybindings.json index 2d59bb6..374679b 100644 --- a/cursor/keybindings.json +++ b/cursor/keybindings.json @@ -257,6 +257,21 @@ }, // // =========================================================================== + // Text selection + // =========================================================================== + // + { // Expand selection. + "key": "alt+.", + "command": "editor.action.smartSelect.expand", + "when": "editorTextFocus" + }, + { // Shrink/contract selection. + "key": "alt+,", + "command": "editor.action.smartSelect.shrink", + "when": "editorTextFocus" + }, + // + // =========================================================================== // Text manipulation // =========================================================================== // @@ -267,6 +282,14 @@ "command": "emacs-mcx.tabToTabStop", "when": "editorTextFocus && !editorReadonly && !inlineSuggestionVisible && !editorHoverFocused && !editorTabMovesFocus && !suggestWidgetVisible && !inSnippetMode && !editorTabCompletion && !editorParameterHintsVisible && !cursorAtInlineEdit && !cpp.shouldAcceptTab" }, + { // Cycle spacing. + // This is a basic emulation Emacs' built-in cycle-spacing command. It + // doesn't actually cycle spacing, but it performs the first step which is + // to replace all spacing surrounding the cursor with a single space. + "key": "alt+space", + "command": "macros.cycleSpacing", + "when": "editorTextFocus && !editorReadonly" + }, { // Comment line. "key": "ctrl+c /", "command": "editor.action.commentLine", @@ -337,21 +360,6 @@ }, // // =========================================================================== - // Text selection - // =========================================================================== - // - { // Expand selection. - "key": "alt+.", - "command": "editor.action.smartSelect.expand", - "when": "editorTextFocus" - }, - { // Shrink/contract selection. - "key": "alt+,", - "command": "editor.action.smartSelect.shrink", - "when": "editorTextFocus" - }, - // - // =========================================================================== // Multi-cusor // =========================================================================== // diff --git a/cursor/settings.json b/cursor/settings.json index 471b00b..deba15d 100644 --- a/cursor/settings.json +++ b/cursor/settings.json @@ -28,10 +28,16 @@ "editor.minimap.enabled": true, // // =========================================================================== + // Diffs + // =========================================================================== + // + "diffEditor.ignoreTrimWhitespace": false, + // + // =========================================================================== // Git // =========================================================================== // - "git.blame.editorDecoration.enabled": true, + "git.blame.editorDecoration.enabled": false, // // =========================================================================== // Files @@ -153,6 +159,7 @@ // Extension URL: // - https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github // - https://marketplace.visualstudio.com/items?itemName=GitHub.remotehub + // "githubRepositories.autoFetch.enabled": false, // // =========================================================================== @@ -220,6 +227,12 @@ "editor.insertSpaces": true, "editor.tabSize": 2 }, + // Ruby Test Explorer + "rubyTestExplorer.logpanel": false, + // Use mise to execute ruby test explorer bundler commands to ensure correct + // version of Ruby is used. + "rubyTestExplorer.minitestCommand": "mise x -- bundle exec rake", + "rubyTestExplorer.rspecCommand": "mise x -- bundle exec rspec", // // =========================================================================== // Shellscript @@ -308,6 +321,18 @@ // back into the editor. Without the delay the focus commands runs before // Test Results appear and steal focus. // + "cycleSpacing": [ + // This is a basic emulation Emacs' built-in cycle-spacing command. It + // doesn't actually cycle spacing, but it performs the first step which is + // to replace all spacing surrounding the cursor with a single space. + "emacs-mcx.deleteHorizontalSpace", + { + "command": "type", + "args": { + "text": " " + } + } + ], "runTestCurrentFile": [ "testing.runCurrentFile", {