Skip to content

Commit

Permalink
chore: Update for 0.6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
spotandjake committed Aug 2, 2024
1 parent 2223922 commit d93ab92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/src/language_server/completion.re
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ let toplevel_keywords = [
PlainText("module"),
PlainText("provide"),
PlainText("abstract"),
Snippet("include", "include \"$1\"$0"),
Snippet("from", "from \"$1\" use { $0 }"),
Snippet("from", "from \"$1\" include $0"),
Snippet("use", "use $1.{ $0 }"),
];

let expression_keywods = [
Expand Down Expand Up @@ -457,12 +457,12 @@ let get_completion_context = (documents, uri, position: Protocol.position) => {
when !hit_eol && token_non_breaking_lst(token_list) =>
CompletableAfterLet
// TODO: Reimplement the as completion
| [{token: Parser.STRING(str), end_loc}, {token: Parser.FROM}, ..._]
| [{token: Parser.MODULE, end_loc}, {token: Parser.INCLUDE}, ..._]
when
!hit_eol
&& after_range(end_loc, offset)
&& !last_token_eq(Parser.AS, token_list) =>
CompletableInclude(str, true)
CompletableAs
| [
{token: Parser.STRING(str), start_loc, end_loc},
{token: Parser.FROM},
Expand Down

0 comments on commit d93ab92

Please sign in to comment.