You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IntelliSense - Display names of properties assignable by an object initializer in auto-completion list without needing editor.wordBasedSuggestions.
#656
Closed
seraku24 opened this issue
Aug 12, 2016
· 1 comment
.NET Command Line Tools (1.0.0-preview2-003121)
Product Information:
Version: 1.0.0-preview2-003121
Commit SHA-1 hash: 1e9d529bc5
Runtime Environment:
OS Name: Windows
OS Version: 10.0.10586
OS Platform: Windows
RID: win10-x64
VS Code version: 1.4.0
C# Extension version: 1.3.0
Steps to reproduce
Disable editor.wordBasedSuggestions.
Type the open curly brace that begins an object initializer. (See the following code snippet.)
classPerson{publicstringFirstName;publicstringLastName;}staticclassProgram{privatestaticvoidMain(){varchemist=new Person {FirstName="Walter",LastName="White",};}}
This issue occurs after typing new Person {.
Expected behavior
The names of any assignable properties are shown in the auto-completion list.
Actual behavior
No property names are included in the auto-completion list.
Like issue #652, the editor option editor.wordBasedSuggestions might show the property names only as a side effect. The expectation is that IntelliSense recognizes an object initializer and displays the writable properties of the object, which matches the behavior seen in Visual Studio.
The text was updated successfully, but these errors were encountered:
Environment data
dotnet --info
output:VS Code version: 1.4.0
C# Extension version: 1.3.0
Steps to reproduce
editor.wordBasedSuggestions
.This issue occurs after typing
new Person {
.Expected behavior
The names of any assignable properties are shown in the auto-completion list.
Actual behavior
No property names are included in the auto-completion list.
Like issue #652, the editor option
editor.wordBasedSuggestions
might show the property names only as a side effect. The expectation is that IntelliSense recognizes an object initializer and displays the writable properties of the object, which matches the behavior seen in Visual Studio.The text was updated successfully, but these errors were encountered: