XSharpPublic
XSharpPublic copied to clipboard
VS Integration: Intellisense does not recognize members of a generic structure nested in a namespace
There is the following code:
USING TestNamespace
FUNCTION Start() AS VOID STRICT
LOCAL gs AS GenericTestStruct<INT>
? gs:Value1 // No hints (undeclared)
gs: // Nothing
RETURN
BEGIN NAMESPACE TestNamespace // <- If you remove the namespace, the hints in the Start function will start working
/// <summary>GenericTestStruct.</summary>
STRUCTURE GenericTestStruct<T> WHERE T IS STRUCT
/// <summary>Value1.</summary>
PUBLIC Value1 AS T
/// <summary>Value2.</summary>
PUBLIC Value2 AS T
END STRUCTURE
END NAMESPACE
If you hover mouse over the 'Value1' field, no tooltip is displayed. Also, if you type a colon after the variable name 'gs', the list of structure members is not displayed. If you comment out the namespace around the structure definition, Intellisense works fine.
Example project: XSharpBetaTest.zip
Environment: X# 2.18.0.4 IDE VS 2022 17.7.6