vscode-nushell-lang
vscode-nushell-lang copied to clipboard
dashes are wrongly considered as token boundaries (specifically, in Goto Definition)
given the following code
def foo-bar [] { }
def baz [] {
foo-bar
}
in the foo-bar call inside baz,
- Goto Definition on the
foolinks to the tokenfooindef foo-bar - Goto Definition on the
barlinks to the tokenbarindef foo-bar - No Goto Definition on the dash between
fooandbar - Hovering on any part of
foo-barincluding the dash, correctly shows the information forfoo-bar
instead, for 1-3, all parts of the identifier should link to the token foo-bar of def foo-bar
(note that nushell recommends kebab-case for function names, so this is a common thing.)