Improper Member Scope of VB Modules

SyntaxEditor .NET Languages Add-on for WPF Forum

Posted 8 years ago by Tobias Römer
Version: 12.2.0570

Hello again,

the visibility scope of VB Module members is expanded to the containing namespace (see Technically, a VB Module is a static sealed class with a Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute.

It would greatly improve the VB Intellisense experience if Module members Scope is expanded to the namespace of the module. Typical use cases are the Modules in the Microsoft.VisualBasic namespaces, like "Constants" (for vbCrLf, vbTab, etc.) or "Strings" (for Asc(), Mid(), etc.)

As an example in the following situation I would expect to see all vb... constants in the Microsoft.VisualBasic.Constants class:

Imports System
Imports Microsoft.VisualBasic

Module NewVbModule
	Sub Test
	End Sub
End Module

 (note: the | marks the current caret position and a word completion session is started with crtl-space)

Than you very much for any efforts in this direction! :-)

Comments (2)

Answer - Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Tobias,

It looks like we already properly resolve things like vbTab when you hover over them but they aren't being added into the completion list.  We'll update that for the next maintenance release.

Actipro Software Support

Posted 8 years ago by Tobias Römer

It works with .571. Thank you for fixing this! :)

The latest build of this product (v2020.1.0) was released 18 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.