Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 20, 2026

Issue #51212 claims PR #51020 didn't fix the ReDim documentation. Investigation confirms the source code is already correct in main branch.

Current State

Snippet52 (ReDim example) correctly contains:

Dim intArray(10, 10, 10) As Integer
ReDim Preserve intArray(10, 10, 20)
ReDim Preserve intArray(10, 10, 15)
ReDim intArray(10, 10, 10)

Snippet59 (renamed from duplicate Snippet52) correctly contains:

Class SampleCollection
    Private items As New List(Of String)
    ' Property indexer implementation
End Class

Analysis

Conclusion

Source code is correct. Issue likely caused by stale cache on learn.microsoft.com. The published documentation needs to be rebuilt to reflect changes from PR #51020.

Recommendation: Close issue as invalid or escalate to documentation build team for cache refresh.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • learn.microsoft.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>The examples for ReDim don't use ReDim</issue_title>
<issue_description>### Type of issue

Other (describe below)

Description

It appears the wrong snippet is included in this article. A previous fix in #51020 didn't fix the issue.

Page URL

https://learn.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/redim-statement

Content source URL

https://github.com/dotnet/docs/blob/main/docs/visual-basic/language-reference/statements/redim-statement.md

Document Version Independent Id

feb113f1-26c6-b103-b27a-bbce9f150dac

Platform Id

0a6efd18-8a8e-95f4-7e77-684bf73d285f

Article author

@BillWagner

Metadata

  • ID: a1565b01-9263-3e6a-c1e8-3be60f55a379
  • PlatformId: 0a6efd18-8a8e-95f4-7e77-684bf73d285f
  • Service: dotnet-visualbasic

Related Issues</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Fix examples for ReDim to use ReDim correctly Investigation: ReDim documentation source is correct, no changes needed Jan 20, 2026
Copilot AI requested a review from BillWagner January 20, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The examples for ReDim don't use ReDim

2 participants