Skip to content

Commit d93ab92

Browse files
committed
chore: Update for 0.6.x
1 parent 2223922 commit d93ab92

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/src/language_server/completion.re

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ let toplevel_keywords = [
274274
PlainText("module"),
275275
PlainText("provide"),
276276
PlainText("abstract"),
277-
Snippet("include", "include \"$1\"$0"),
278-
Snippet("from", "from \"$1\" use { $0 }"),
277+
Snippet("from", "from \"$1\" include $0"),
278+
Snippet("use", "use $1.{ $0 }"),
279279
];
280280

281281
let expression_keywods = [
@@ -457,12 +457,12 @@ let get_completion_context = (documents, uri, position: Protocol.position) => {
457457
when !hit_eol && token_non_breaking_lst(token_list) =>
458458
CompletableAfterLet
459459
// TODO: Reimplement the as completion
460-
| [{token: Parser.STRING(str), end_loc}, {token: Parser.FROM}, ..._]
460+
| [{token: Parser.MODULE, end_loc}, {token: Parser.INCLUDE}, ..._]
461461
when
462462
!hit_eol
463463
&& after_range(end_loc, offset)
464464
&& !last_token_eq(Parser.AS, token_list) =>
465-
CompletableInclude(str, true)
465+
CompletableAs
466466
| [
467467
{token: Parser.STRING(str), start_loc, end_loc},
468468
{token: Parser.FROM},

0 commit comments

Comments
 (0)