Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commenting-out individual doc comments produces invalid code #236

Open
kj4tmp opened this issue Sep 29, 2024 · 1 comment
Open

Commenting-out individual doc comments produces invalid code #236

kj4tmp opened this issue Sep 29, 2024 · 1 comment
Labels

Comments

@kj4tmp
Copy link

kj4tmp commented Sep 29, 2024

Given this example code:

/// This function does nothing
pub fn foo() void {}

Actual behavior:

If cursor is placed in a single doc comment line, doing ctrl+/ causes the following:

/ This function does nothing
pub fn foo() void {}

Which is not valid zig code.

Expected behavior:

// /// This function does nothing
pub fn foo() void {}

Which is similar to what I get when highlighting the whole block:

// /// This function does nothing
// pub fn foo() void {}
@kj4tmp kj4tmp changed the title Commenting-out individual doc comments produces invalid code. Commenting-out individual doc comments produces invalid code Sep 29, 2024
@Techatrix
Copy link
Collaborator

VS Code does not support declaring multiple line comments for a language. microsoft/vscode#64659

@Techatrix Techatrix added the bug label Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants