Improper Member Scope of VB Modules

SyntaxEditor .NET Languages Add-on for WPF Forum

Posted 11 years ago by Tobias Römer
Version: 12.2.0570
Avatar

Hello again,

the visibility scope of VB Module members is expanded to the containing namespace (see http://msdn.microsoft.com/library/aa711943(v=VS.71).aspx). 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
		Console.WriteLine(|)
	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 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

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 11 years ago by Tobias Römer
Avatar

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

The latest build of this product (v24.1.2) was released 0 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.