We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e19934f commit ba6b9e6Copy full SHA for ba6b9e6
lib/ruby_lsp/tapioca/addon.rb
@@ -13,6 +13,7 @@
13
end
14
15
require "zlib"
16
+require "open3"
17
18
module RubyLsp
19
module Tapioca
@@ -133,9 +134,11 @@ def file_updated?(change, path)
133
134
false
135
136
- sig { returns(T::Boolean) }
137
+ sig { returns(T.nilable(T::Boolean)) }
138
def git_repo?
- Dir.exist?(".git")
139
+ _, status = Open3.capture2e("git rev-parse --is-inside-work-tree")
140
+
141
+ status.success?
142
143
144
sig { returns(T::Boolean) }
0 commit comments