diff --git a/src/server/documentation/provider.v b/src/server/documentation/provider.v index 3834254f..08a46d84 100644 --- a/src/server/documentation/provider.v +++ b/src/server/documentation/provider.v @@ -129,7 +129,7 @@ fn (mut p Provider) import_spec_documentation(element psi.ImportSpec) ? { p.write_separator() p.sb.write_string('---\n') - p.sb.write_string('${dir}\n') + p.sb.write_string('```${dir}```\n') } fn (mut p Provider) module_documentation(element psi.ModuleClause) ? { diff --git a/src/server/general.v b/src/server/general.v index c1b02008..18a7e827 100644 --- a/src/server/general.v +++ b/src/server/general.v @@ -106,6 +106,12 @@ pub fn (mut ls LanguageServer) initialized(mut wr ResponseWriter) { if need_index_stdlib { ls.indexing_mng.indexer.add_indexing_root(ls.paths.vmodules_root, .modules, ls.paths.cache_dir) + for path in os.vmodules_paths()[1..] { + if path.is_blank() { + continue + } + ls.indexing_mng.indexer.add_indexing_root(path, .modules, ls.paths.cache_dir) + } ls.indexing_mng.indexer.add_indexing_root(ls.paths.vlib_root, .standard_library, ls.paths.cache_dir) }