Skip to content

Commit

Permalink
Enable snippets again
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGavin committed Feb 18, 2025
1 parent 1177a10 commit 85fdba2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/completion.odin
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,7 @@ get_identifier_completion :: proc(
continue
}

if result.snippet.insert != "" && false {
if result.snippet.insert != "" {
item := CompletionItem {
label = result.name,
insertText = result.snippet.insert,
Expand Down Expand Up @@ -1670,7 +1670,7 @@ get_core_insert_package_if_non_existent :: proc(ast_context: ^AstContext, pkg: s
}
}

strings.write_string(&builder, fmt.tprintf("import \"core:%v\"", pkg))
strings.write_string(&builder, fmt.tprintf("import \"core:%v\" \n", pkg))

return {
newText = strings.to_string(builder),
Expand Down

0 comments on commit 85fdba2

Please sign in to comment.