Skip to content

Add indentation rules for Visual Basic#284711

Merged
dmitrivMS merged 7 commits intomainfrom
dev/dmitriv/vb-indent-rules
Dec 26, 2025
Merged

Add indentation rules for Visual Basic#284711
dmitrivMS merged 7 commits intomainfrom
dev/dmitriv/vb-indent-rules

Conversation

@dmitrivMS
Copy link
Contributor

Fixes #118932

Copilot AI review requested due to automatic review settings December 22, 2025 01:23
@dmitrivMS dmitrivMS added the editor-autoindent Editor auto indentation issues label Dec 22, 2025
@dmitrivMS dmitrivMS requested a review from aiday-mar December 22, 2025 01:23
@dmitrivMS dmitrivMS self-assigned this Dec 22, 2025
@dmitrivMS dmitrivMS enabled auto-merge December 22, 2025 01:23
@vs-code-engineering vs-code-engineering bot added this to the December / January 2026 milestone Dec 22, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds indentation rules for Visual Basic to fix issue #118932, enabling automatic indentation support for VB files. The changes introduce regex patterns that match VB block structures (If/End If, Sub/End Sub, etc.) to determine when to increase or decrease indentation.

Key Changes

  • Added vbIndentationRules with patterns for Visual Basic block structures
  • Enabled and updated test case to verify indentation behavior
  • Added comprehensive onEnterRules for proper line break handling

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/vs/editor/test/common/modes/supports/indentationRules.ts Exports test indentation rules with case-insensitive VB keyword patterns
src/vs/editor/contrib/indentation/test/browser/indentation.test.ts Imports and registers VB rules, enables previously skipped test
extensions/vb/language-configuration.json Adds indentation and onEnter rules for production use, but patterns lack case-insensitive flags

Copy link
Contributor

Copilot AI commented Dec 22, 2025

@dmitrivMS I've opened a new pull request, #284782, to work on those changes. Once the pull request is ready, I'll request review from you.

@dmitrivMS dmitrivMS merged commit 1e06fcd into main Dec 26, 2025
28 checks passed
@dmitrivMS dmitrivMS deleted the dev/dmitriv/vb-indent-rules branch December 26, 2025 12:48
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Feb 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

editor-autoindent Editor auto indentation issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add language configuration file for visual basic

4 participants