Skip to content

Missing space in clangd suggestions for C++ #39515

@legokol

Description

@legokol

Summary

Spaces in some clangd suggestions from C++ are missing

Description

There are some suggestions, like namespace, template or throw expression, where a space between completed part and user-written part is missing. Here are some screenshots:

Image Image Image

And here is a screenshot from vscode with clangd extension with a space in place:

Image

Steps to reproduce:

  1. Enable clangd lsp for zed, use it in C++
  2. Try getting code suggestions for either namespace, template or throw expression

Expected Behavior: There should be spaces (like in vscode)
Actual Behavior: There are none

Zed Version and System Specs

Zed: v0.206.6 (Zed)
OS: Linux Wayland endeavouros unknown
Memory: 31.3 GiB
Architecture: x86_64
GPU: NVIDIA GeForce RTX 2060 SUPER || NVIDIA || 580.82.09

Metadata

Metadata

Assignees

No one assigned

    Labels

    autocompletionsFeedback for code completions in the editorc++C++ programming language supportgood first issueIssue suitable for first-time contributors

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions