Skip to content

Commit

Permalink
chore: Fix issues after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
spotandjake committed Feb 15, 2024
1 parent ba225ee commit 53ef8b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions compiler/src/language_server/document.rei
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ let grain_type_code_block: string => string;

let grain_code_block: string => string;

let markdown_join: (string, string) => string;

let print_type: (Env.t, Types.type_expr) => string;

let print_mod_type: Types.module_declaration => string;
6 changes: 3 additions & 3 deletions compiler/src/language_server/hover.re
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ let declaration_lens = (ident: Ident.t, decl: Types.type_declaration) => {

let include_lens = (env: Env.t, path: Path.t) => {
let module_decl = Env.find_module(path, None, env);
markdown_join(
grain_code_block("module " ++ Path.name(path)),
Document.markdown_join(
Document.grain_code_block("module " ++ Path.name(path)),
module_lens(module_decl),
);
};

let exception_declaration_lens =
(ident: Ident.t, ext: Types.extension_constructor) => {
grain_type_code_block(
Document.grain_type_code_block(
Printtyp.string_of_extension_constructor(~ident, ext),
);
};
Expand Down

0 comments on commit 53ef8b5

Please sign in to comment.