Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@
!/.sublime
/.sublime/homebrew.sublime-workspace
!/.vscode
!/homebrew.code-workspace

# Unignore AI configuration
!/.cursor
Expand Down
55 changes: 55 additions & 0 deletions homebrew.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"folders": [
{
"path": ".",
"name": "brew"
},
{
"path": "Library/Taps/homebrew/homebrew-core",
"name": "homebrew-core"
},
{
"path": "Library/Taps/homebrew/homebrew-cask",
"name": "homebrew-cask"
}
],
"settings": {
"files.exclude": {
"Library/Taps": true,
// Exclude all files in bin except for brew
"bin/[^b]*": true,
"bin/b[^r]*": true,
"bin/br[^e]*": true,
"bin/bre[^w]*": true,
// brew aliases are in the form brew-*
"bin/brew-*": true,
},
"rubyLsp.rubyVersionManager": {
"identifier": "custom"
},
"rubyLsp.customRubyCommand": "source /opt/homebrew/.vscode/ruby-lsp-activate.sh",
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardcoded absolute path /opt/homebrew/.vscode/ruby-lsp-activate.sh will fail for users who don't have Homebrew installed in /opt/homebrew (e.g., Linux users or Intel Mac users with /usr/local). The existing .vscode/settings.json uses a relative path source ../../.vscode/ruby-lsp-activate.sh which is more portable. Consider using a similar relative path or ${workspaceFolder}/.vscode/ruby-lsp-activate.sh.

Suggested change
"rubyLsp.customRubyCommand": "source /opt/homebrew/.vscode/ruby-lsp-activate.sh",
"rubyLsp.customRubyCommand": "source ${workspaceFolder}/.vscode/ruby-lsp-activate.sh",

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth noting: this needs to be an absolute path because it's executed relative to each individual folder, so the ../../ won't be correct for the taps

"rubyLsp.bundleGemfile": "Library/Homebrew/Gemfile",
"rubyLsp.formatter": "rubocop",
"sorbet.enabled": true,
"sorbet.lspConfigs": [
{
"id": "default",
"name": "Brew Typecheck",
"description": "Default configuration",
"command": [
"./bin/brew",
"typecheck",
"--lsp"
]
}
],
"sorbet.selectedLspConfigId": "default",
"shellformat.effectLanguages": [
"shellscript"
],
"shellformat.path": "${workspaceFolder}/Library/Homebrew/utils/shfmt.sh",
"shellformat.flag": "-i 2 -ci -ln bash",
"simplecov-vscode.path": "Library/Homebrew/test/coverage/.resultset.json",
"simplecov-vscode.enabled": false,
Comment on lines +5 to +53
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent indentation: this file primarily uses tabs for indentation (as seen throughout), but lines 5, 9, 13, 17-18, 25, and 53 use spaces. For consistency with the rest of the file, these lines should use tabs.

Copilot uses AI. Check for mistakes.
}
}
Loading