Skip to content

VS integration: class members select list shows private class members #1188

@leon-ts

Description

@leon-ts

If overloaded methods are declared in a class, one of which is private, and it is declared first, then when you hover the mouse cursor over the method, the description of the private method is displayed. Also, such a method is displayed by the VS editor in the selection list of overload methods available for calling.

Example:

FUNCTION Start() AS VOID STRICT

	LOCAL oTestClass AS TestClass
	oTestClass := TestClass{}
	oTestClass:DoSomething(1)

	RETURN

CLASS TestClass

	CONSTRUCTOR() STRICT
	END CONSTRUCTOR

	/// <summary>Private DoSomething.</summary>
	HIDDEN METHOD DoSomething(nParam1 AS INT, nParam2 AS INT) AS VOID STRICT
		RETURN

	/// <summary>Public DoSomething.</summary>
	METHOD DoSomething(nParam1 AS INT) AS VOID STRICT
		RETURN

END CLASS

Screenshot 1:
Screenshot1

Screenshot 2:
Screenshot2

If you declare a public method first, then the display of tooltips and the overload selection list become correct (without the private method).

Environment:
X# 2.14.0.4
VS 2019

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions