nushell / nushell/vscode-nushell-lang

Nushell / VSCode IDE Integration LSP Bughunt & Features

Open
#91 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Nushell
Stars
153
Forks
31
PR merge metrics
No merged PRs in 30d

Description

This is a list to document bugs found in the LSP or IDE functionality from nushell. Also to list existing functionality and missing features we want to add.

Bugs?

Inlays
  • No inlays in env.nu (let-env's are not variables and therefore do not have inlays. i mistakenly thought they should)
  • No inlays in (Darren's) config.nu (it's a bit flaky. Sometimes works. Sometimes doesn't work. Doesn't work at all for let-env config =)
  • Inlays are using shape? instead of type (they're capitalized). Fixed in https://github.com/nushell/nushell/pull/8801
Hover
  • No hovers in (Darren's) config.nu (caused complex by big script?)
  • Too many hover messages (Go to a script that is working, hover by moving mouse horizontally along and watch the debug. there are lots of messages with the same info. could be just duplicate logging without uniq names, or could be some type of bug where we're calling nushell too many times. could be what throttling is about? 💡 maybe store current cursor position and not update if it's in a certain range. very minute changes in cursor position currently run the nushell code again.) Marked as done because we have to pass the cursor position
  • Hover over command with a sub-command, the command has a popup, the sub-command says "string" in the popup. Would be nice to treat this as one command.
  • Hover over the custom command name in the declaration of the def should show the help text
  • Hover improve built-ins https://github.com/nushell/nushell/pull/8881
  • Hover scrollbar sometimes is at the bottom instead of top
  • Hover messes up tables like in the ansi command
  • Hover doesn't work at end of file https://github.com/nushell/vscode-nushell-lang/pull/99
Goto Definition
  • Goto Definition goes to the start of the block versus the start of the custom command
Completions
  • Fix variable completions when inside of a block that introduces a new variable
Errors & Warnings
Validation / Check

Configuration

Potential Features to Add

Existing Functionality

  • Goto Definition
  • Hover over variables and get type
  • Hover over custom command and show help popup
  • Hover over built-in command and show help popup
  • Show errors with a red squiggly line
  • Auto complete built-in commands

Cleanup

Pre-Publish

  • Update readme with more screenshots or gifs showing new features
  • Update repo description
  • Update changelog
  • Update version
  • Update regexes

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by choosing one unchecked LSP or VS Code integration item and reproduce it with the Nushell language server in VS Code. Done means the selected behavior works as described and is verified against the relevant existing functionality or configuration item.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.