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 1c2095d commit f07b791Copy full SHA for f07b791
autoload/OmniSharp/util.vim
@@ -232,7 +232,10 @@ function! OmniSharp#util#ServerDir() abort
232
let basedir = OmniSharp#util#Trim(
233
\ system('cmd.exe /c echo %LocalAppData% 2>/dev/null'))
234
let win_dir = join([basedir, 'omnisharp-vim', 'omnisharp-roslyn'], '\')
235
- return OmniSharp#util#TranslatePathForClient(win_dir)
+ let unix_dir = OmniSharp#util#TranslatePathForClient(win_dir)
236
+ " Ensure the the dir is not relative, and then strip the trailing '\' added
237
+ " by the ':p' filename-modifier
238
+ return fnamemodify(unix_dir, ':p')[:-2]
239
elseif exists('$XDG_CACHE_HOME')
240
let basedir = expand('$XDG_CACHE_HOME')
241
else
0 commit comments