Skip to content

Commit

Permalink
chore: update vscode config
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5c3p73r committed Nov 2, 2023
1 parent 33ffb44 commit ee4cd87
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 10 deletions.
7 changes: 2 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,14 @@
"terminal.integrated.defaultProfile.linux": "zsh"
},
"extensions": [
// ruby & rails
"shopify.ruby-extensions-pack",
// below extensions count are equal above pack.
// "koichisasada.vscode-rdbg",
// sorbet.sorbet-vscode-extension

"aki77.rails-db-schema",
// "castwide.solargraph",
// "kaiwood.endwise",

// misc
"redhat.vscode-yaml",

"editorconfig.editorconfig"
]
}
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
app:
build:
context: ..
dockerfile: .devcontainer/Dockerfile.dev
dockerfile: .devcontainer/Dockerfile

environment:
DATABASE_URL: postgres://postgres:postgres@db/postgres
Expand Down
22 changes: 22 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"sorbet.enabled": true,
"rubyLsp.enabledFeatures": {
"codeActions": true,
"diagnostics": true,
"documentHighlights": true,
"documentLink": true,
"documentSymbols": true,
"foldingRanges": true,
"formatting": true,
"hover": true,
"inlayHint": true,
"onTypeFormatting": true,
"selectionRanges": true,
"semanticHighlighting": true,
"completion": true,
"codeLens": true,
"definition": true,
"workspaceSymbol": true,
"references": true
},
}
27 changes: 27 additions & 0 deletions bin/tapioca
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

#
# This file was generated by Bundler.
#
# The application 'tapioca' is installed as part of a gem, and
# this file is here to facilitate running it.
#

ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)

bundle_binstub = File.expand_path("bundle", __dir__)

if File.file?(bundle_binstub)
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
load(bundle_binstub)
else
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
end
end

require "rubygems"
require "bundler/setup"

load Gem.bin_path("tapioca", "tapioca")
8 changes: 4 additions & 4 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
# Subscribe short url 010497e7-95c0-4655-bcd0-2714168d4ba4
get "/:id", to: "shorts#show", id: /(\w{4,}-*){5}/, as: :short

if ENV["ENABLE_DASHBOARD"] == "true" || Rails.env.development?
mount GoodJob::Engine => "dashboard", as: 'dashboard'
end

scope "(:locale)" do
root "coaches#index", as: :locale_root

Expand All @@ -22,9 +26,5 @@
end
end

if ENV["ENABLE_DASHBOARD"] == "true" || Rails.env.development?
mount GoodJob::Engine => "dashboard"
end

root "coaches#new"
end

0 comments on commit ee4cd87

Please sign in to comment.