Skip to content

Commit

Permalink
analyzer: add module index paths and wrapper module path as code block (
Browse files Browse the repository at this point in the history
  • Loading branch information
get200 authored Apr 20, 2024
1 parent 0f97daa commit 7e11a6f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/documentation/provider.v
Original file line number Diff line number Diff line change
Expand Up @@ -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) ? {
Expand Down
6 changes: 6 additions & 0 deletions src/server/general.v
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 7e11a6f

Please sign in to comment.