vscode-csharp
vscode-csharp copied to clipboard
Inserting open parenthesis in front of string literal adds closing parenthesis
Environment Data
VS Code version: 1.99.3 C# Extension version: 2.74.24
Steps to Reproduce
- Add the following code wherever syntactically applicable:
var s = ""; - Insert an opening parenthesis in front of
"".
Expected Behavior
The closing parenthesis should not be inserted.
This is indeed the behavior in Visual Studio today.
Actual Behavior
The closing parenthesis is inserted: var s = ()"";.
This does not happen when the opening parenthesis is inserted in front of other symbols, including number literals: var i = (0;.