lexical-lsp / lexical

Lexical is a next-generation elixir language server
874 stars 80 forks source link

Fix `do` completing to `defmodule` in VSCode #642

Closed Moosieus closed 6 months ago

Moosieus commented 7 months ago

Pursuant to: https://discord.com/channels/269508806759809042/918183981344772117/1214563122686206033

objectuser — Today at 8:20 AM I'm using Lexical in VSCode. When I'm creating a do block, the first completion is defmodule and there's no completion listed in the pop-up for just do...end. Should I just use user snippets for a do...end block or is there a better way to configure these completions?

(From Elixir Discord)

Fixes include:

This may warrant user-testing across different editors to ensure existing completions remain consistent, as they may convert user-input-over-time to textDocument/completion requests differently.