bash-lsp / bash-language-server

A language server for Bash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code snippet for `case` is invalid

xprnio opened this issue · comments

Code editor

Neovim

Platform

ArchLinux

Version

5.1.2

What steps will reproduce the bug?

Write case and wait for autocomplete

How often does it reproduce? Is there a required condition?

Always

What is the expected behavior?

case "expression" in
  pattern)
    command ...
    ;;
  *)
    command ...
    ;;
esac

What do you see instead?

case "expression" in
  pattern)
    command ...
    ;;
  *)
    command ...
    ;;
end

Additional information

The code snippet for case seems to be invalid.
I'm unsure as to whether it's editor-side or LSP-side, but according to the autocomplete window it seems to be coming from bash-language-server.

image

Nevermind, when I started looking for snippets in the codebase I noticed that the last change in snippets.ts was f790b35 which literally fixes this.