zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
48.21k stars 2.86k forks source link

Typing a forward slash in a TSX file comes up with a list of files from the "/" root directory #14932

Open SamHep0803 opened 2 months ago

SamHep0803 commented 2 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Whenever I go to close a TSX tag, the list of auto complete options includes a list of files in my mac's root directory.

Environment

Zed: v0.145.1 (Zed Preview) OS: macOS 14.5.0 Memory: 16 GiB Architecture: aarch64

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

image

If applicable, attach your Zed.log file to this issue.

No response

notpeter commented 2 months ago

Can you provide an example file which triggers this issue so I can see if I can reproduce it? Thanks

SamHep0803 commented 2 months ago

https://github.com/SamHep0803/ctl is an example, but essentially any TSX file that I've ever tried to edit does this.

notpeter commented 2 months ago

https://github.com/SamHep083/ctl is an example, but essentially any TSX file that I've ever tried to edit does this.

I assume you meant SamHep0803/ctl (not SamHep083/ctl), but there's no public repo there. Can you make it public, grant me access or provide another example? Thanks

SamHep0803 commented 2 months ago

Can you make it public, grant me access or provide another example? Thanks

Made it public, but like I said this happens on any project with TSX files.

notpeter commented 2 months ago

Hi @SamHep0803, I am not able to reproduce this with your project with the default settings.

  1. Can you share any additional details from your ~/.zed/settings.json (languages, language server options, etc)?
  2. Could you provide a video of this happening?

I believe you when you say "any TSX file that I've ever tried to edit does this" and I just want to understand the conditions which might triggering it. It's clearly not happening to everyone, but I'd be surprised if you're the only one and so we want to track it down.

SamHep0803 commented 2 months ago

https://github.com/user-attachments/assets/11966988-fa82-4b7f-9dff-379f57bec1a7

~/.zed/settings.json

{
  "show_inline_completions": true,
  "vim_mode": true,
  "base_keymap": "VSCode",
  "ui_font_family": "Geist Mono",
  "buffer_font_family": "Geist Mono",
  "theme": "Catppuccin Macchiato",
  "ui_font_size": 16,
  "buffer_font_size": 20,
  "hard_tabs": false,
  "tab_size": 2,
  "preferred_line_length": 80,
  "project_panel": {
    "dock": "right",
    "button": false
  },
  "relative_line_numbers": true,
  "cursor_blink": false,
  "terminal": {
    "font_size": 18,
    "button": false
  },
  "toolbar": {
    "breadcrumbs": false,
    "quick_actions": false
  },
  "features": {
    "copilot": false,
    "inline_completion_provider": "none",
    "eslint": true
  },
  "assistant": {
    "button": false
  },
  "collaboration_panel": {
    "button": false
  },
  "chat_panel": {
    "button": false
  },
  "notification_panel": {
    "button": false
  },
  "tab_bar": {
    "show": false
  },
  "file_scan_exclusions": [
    "**/.git",
    "**/.svn",
    "**/.hg",
    "**/CVS",
    "**/.DS_Store",
    "**/Thumbs.db",
    "**/.classpath",
    "**/.settings",
    "**/node_modules"
  ]
}