Non-public properties in generated assembly break code completion #1111
Labels
Area-LangService-AutoComplete
autocomplete/intellisense
Bug
Impact-Low
(Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone
I have type provider (generated types) which produces C# assembly. Generated assembly contains class
IsikuStaatus
with propertyBaseValue
that has public getter and private setter. When accessing that class via Intellisense I get<Note>
property with error message containing "Property 'BaseValue' on provided type 'IsikuStaatus' has CanWrite=true but there was no value from GetSetMethod()"According to MSDN it seems that CanWrite returns false only when setter is not defined, while GetSetMethod() returns only public setter method.
Repro steps
Expected behavior
Should display read-only property in completion list.
Actual behavior
Displays
<Note>
property in completion list with message "Property '%s' on provided type '%s' has CanWrite=true but there was no value from GetSetMethod()"Known workarounds
Ignore
<Note>
property message and use expected property as normal (won't display any error in editor or throw exception at runtime).Related information
The text was updated successfully, but these errors were encountered: