vscode-zig icon indicating copy to clipboard operation
vscode-zig copied to clipboard

Commenting-out individual doc comments produces invalid code

Open jeffective opened this issue 1 year ago • 1 comments

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 {}

jeffective avatar Sep 29 '24 18:09 jeffective

VS Code does not support declaring multiple line comments for a language. https://github.com/Microsoft/vscode/issues/64659

Techatrix avatar Sep 29 '24 22:09 Techatrix