zed icon indicating copy to clipboard operation
zed copied to clipboard

show_completion_documentation = false removes slash command descriptions

Open notpeter opened this issue 1 year ago • 3 comments

Description

Steps to reproduce:

  1. Add "show_completion_documentation": false, to your Zed User settings.
  2. Open an assistant panel.
  3. Type /

I don't know whether this is intended behavior. I assume it just an accidental setting/style re-use.

Environment

Zed: v0.163.0 (Zed Nightly d92166f9f602b2904c96bf7d41cd3b58c2421ffb) OS: macOS 14.7.0 Memory: 64 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

Default show_completion_documentation = false
Screenshot 2024-11-18 at 16 59 44 Screenshot 2024-11-18 at 16 59 51

notpeter avatar Nov 18 '24 22:11 notpeter

I imagine this could be resolved via a special-case. However, a more consistent way for it to be resolved might be:

  • Add "Assistant" as a language.
  • Make show_completion_documentation a LanguageSetting. I have a PR for this in #21722 since it seems like a nice thing regardless of this particular issue.
  • Have default settings for "Assistant" language set show_completion_documentation = true.

Not entirely sure if this is desirable / what the ramifications are. One issue with this is that slash completion appears to be active even when in other languages (such as a markdown code block that specifies a language).

mgsloan avatar Dec 08 '24 22:12 mgsloan

I have this issue with code snippets - I think show_code_completion_documentation shouldn't affect the description; if you don't want a description simply don't define one:

  "await sleep": {
    "description": "add async delay", <-- // dont define this
    "prefix": ["sleep", "wait", "delay", "timeout"],  
    "body": "await new Promise(r => setTimeout(r, ${0}))"
  },

The completion documentation is super clunky for me but the inline-description is just as clunky as its turned on as when it's turned off

nicholaswmin avatar Dec 19 '24 05:12 nicholaswmin

This is still an issue with text threads in the new agentic panel in Zed v0.189.x.

notpeter avatar May 28 '25 19:05 notpeter

Hi there! 👋 We're working to clean up our issue tracker by closing older bugs that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and it will be kept open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, it will close automatically in 14 days. Thanks for your help!

github-actions[bot] avatar Nov 19 '25 07:11 github-actions[bot]