vscode-zig
vscode-zig copied to clipboard
Commenting-out individual doc comments produces invalid code
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 {}
VS Code does not support declaring multiple line comments for a language. https://github.com/Microsoft/vscode/issues/64659