Skip to content

Commit

Permalink
analyzer: fix vmodules_root check in setup_vpaths (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
get200 authored Apr 14, 2024
1 parent 7828291 commit e8cbd4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/general.v
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ fn (mut ls LanguageServer) setup_vpaths() ! {
}
ls.paths.vlib_root = vlib_path
vmodules_root := os.vmodules_dir()
if !os.is_dir(ls.paths.vmodules_root) {
if !os.is_dir(vmodules_root) {
return error('Failed to find vmodules path')
}
ls.paths.vmodules_root = vmodules_root
Expand Down

0 comments on commit e8cbd4d

Please sign in to comment.