Repository navigation
fix: Restrict continue comment to whitespace separated slashes - #321230
Merged
Dmitriy Vasyura (dmitrivMS) merged 2 commits intoJun 14, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates multiple VS Code language configurations to unify and simplify onEnterRules behavior for continuing // (and /// in C#) comments when pressing Enter.
Changes:
- Standardized
beforeText/afterTextregexes for//line-comment continuation across many extensions. - Simplified several configs from
{ "pattern": "..." }objects to plain regex strings forbeforeText/afterText. - Adjusted C# rules to correctly continue
///documentation comments separately from//line comments.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| extensions/typescript-basics/language-configuration.json | Replaces prior TS-specific regex with a shared // continuation pattern. |
| extensions/swift/language-configuration.json | Simplifies beforeText/afterText patterns and standardizes // continuation. |
| extensions/rust/language-configuration.json | Simplifies and standardizes // continuation rule patterns. |
| extensions/php/language-configuration.json | Simplifies and standardizes // continuation rule patterns. |
| extensions/objective-c/language-configuration.json | Simplifies and standardizes // continuation rule patterns. |
| extensions/less/language-configuration.json | Simplifies and standardizes // continuation rule patterns. |
| extensions/json/language-configuration.json | Simplifies and standardizes // continuation rule patterns. |
| extensions/javascript/javascript-language-configuration.json | Replaces prior JS-specific regex with a shared // continuation pattern. |
| extensions/java/language-configuration.json | Simplifies and standardizes // continuation rule patterns. |
| extensions/groovy/language-configuration.json | Simplifies and standardizes // continuation rule patterns. |
| extensions/go/language-configuration.json | Simplifies and standardizes // continuation rule patterns. |
| extensions/csharp/language-configuration.json | Splits handling of /// doc comments vs // line comments and standardizes patterns. |
| extensions/cpp/language-configuration.json | Simplifies and standardizes // continuation rule patterns. |
Aiday Marlen Kyzy (aiday-mar)
approved these changes
Jun 13, 2026
Collaborator
|
RedCMD (@RedCMD) Could you please address the other Copilot comments? |
Contributor
Author
|
I had addressed the comments in the original description before copilot spoke |
Collaborator
|
RedCMD (@RedCMD) Thanks, because of how internal process for code-reviews works, it's best to resolve them if they are addressed - this will expedite the process. |
Dmitriy Vasyura (dmitrivMS)
enabled auto-merge (squash)
June 13, 2026 21:19
Dmitriy Vasyura (dmitrivMS)
approved these changes
Jun 14, 2026
Dmitriy Vasyura (dmitrivMS)
merged commit Jun 14, 2026
9b43a71
into
microsoft:main
38 of 40 checks passed
RedCMD (RedCMD)
added a commit
to RedCMD/vscode
that referenced
this pull request
Jun 24, 2026
Dmitriy Vasyura (dmitrivMS)
added a commit
that referenced
this pull request
Jul 29, 2026
* fix: Restrict continue comment to whitespace separated slashes * fix: bug introduced in #321230 --------- Co-authored-by: Dmitriy Vasyura <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #298057
comments now must take up an entire line
OR
be surrounded with at least one whitespace before and after
cc Aiday Marlen Kyzy (@aiday-mar)