mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Update Ruby LSP config to install necessary gems automatically
This commit is contained in:
parent
9f260a4490
commit
b26bf95288
@ -13,7 +13,6 @@
|
|||||||
// Installing all necessary extensions for vscode
|
// Installing all necessary extensions for vscode
|
||||||
// Taken from: .vscode/extensions.json
|
// Taken from: .vscode/extensions.json
|
||||||
"extensions": [
|
"extensions": [
|
||||||
"kaiwood.endwise",
|
|
||||||
"Shopify.ruby-lsp",
|
"Shopify.ruby-lsp",
|
||||||
"sorbet.sorbet-vscode-extension",
|
"sorbet.sorbet-vscode-extension",
|
||||||
"github.vscode-github-actions",
|
"github.vscode-github-actions",
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
// Installing all necessary extensions for vscode
|
// Installing all necessary extensions for vscode
|
||||||
// Taken from: .vscode/extensions.json
|
// Taken from: .vscode/extensions.json
|
||||||
"extensions": [
|
"extensions": [
|
||||||
"kaiwood.endwise",
|
|
||||||
"Shopify.ruby-lsp",
|
"Shopify.ruby-lsp",
|
||||||
"sorbet.sorbet-vscode-extension",
|
"sorbet.sorbet-vscode-extension",
|
||||||
"github.vscode-github-actions",
|
"github.vscode-github-actions",
|
||||||
|
1
.vscode/extensions.json
vendored
1
.vscode/extensions.json
vendored
@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"kaiwood.endwise",
|
|
||||||
"Shopify.ruby-lsp",
|
"Shopify.ruby-lsp",
|
||||||
"sorbet.sorbet-vscode-extension",
|
"sorbet.sorbet-vscode-extension",
|
||||||
"github.vscode-github-actions",
|
"github.vscode-github-actions",
|
||||||
|
7
.vscode/ruby-lsp-activate.sh
vendored
Normal file
7
.vscode/ruby-lsp-activate.sh
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
HOMEBREW_PREFIX="$(cd "$(dirname "$0")"/../ && pwd)/"
|
||||||
|
|
||||||
|
"${HOMEBREW_PREFIX}bin/brew" install-bundler-gems --add-groups=style,typecheck,vscode >/dev/null 2>&1
|
||||||
|
|
||||||
|
export PATH="${HOMEBREW_PREFIX}/Library/Homebrew/vendor/portable-ruby/current/bin:${PATH}"
|
||||||
|
export BUNDLE_WITH="style:typecheck:vscode"
|
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -9,12 +9,13 @@
|
|||||||
"rubyLsp.rubyVersionManager": {
|
"rubyLsp.rubyVersionManager": {
|
||||||
"identifier": "custom"
|
"identifier": "custom"
|
||||||
},
|
},
|
||||||
"rubyLsp.customRubyCommand": "PATH=${workspaceFolder}/Library/Homebrew/vendor/portable-ruby/current/bin:$PATH",
|
"rubyLsp.customRubyCommand": "source ../../.vscode/ruby-lsp-activate.sh",
|
||||||
"rubyLsp.bundleGemfile": "Library/Homebrew/Gemfile",
|
"rubyLsp.bundleGemfile": "Library/Homebrew/Gemfile",
|
||||||
"rubyLsp.formatter": "rubocop",
|
"rubyLsp.formatter": "rubocop",
|
||||||
"[ruby]": {
|
"[ruby]": {
|
||||||
"editor.defaultFormatter": "Shopify.ruby-lsp",
|
"editor.defaultFormatter": "Shopify.ruby-lsp",
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
|
"editor.formatOnType": true,
|
||||||
"editor.semanticHighlighting.enabled": true,
|
"editor.semanticHighlighting.enabled": true,
|
||||||
},
|
},
|
||||||
"shellcheck.customArgs": [
|
"shellcheck.customArgs": [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user