dotnet / dotnet/vscode-csharp

Show fields before other things in hints list

Open
#1,897 2 comments 0 reactions 0 assignees View on GitHub
Completion Enhancement
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
18h 40m
Merged PRs (30d)
31

Description

## Environment data
`dotnet --info` output:

> .NET Command Line Tools (2.0.0)
>
> Product Information:
> Version: 2.0.0
> Commit SHA-1 hash: cdcd1928c9
>
> Runtime Environment:
> OS Name: Windows
> OS Version: 10.0.15063
> OS Platform: Windows
> RID: win10-x64
> Base Path: C:\Program Files\dotnet\sdk\2.0.0\
>
> Microsoft .NET Core Shared Framework Host
>
> Version : 2.0.0
> Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d

VS Code version:

> Version 1.18.1
> Commit 929bacba01ef658b873545e26034d1a8067445e9
> Date 2017-11-16T18:32:36.023Z
> Shell 1.7.9
> Renderer 58.0.3029.110
> Node 7.9.0
> Architecture x64

C# Extension version:
1.13.1

## Steps to reproduce
Create an object with [object initializer](https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/object-and-collection-initializers). Press `ctrl+space` to open up the hints list while filling the fields.

## Expected behavior
The list displays relevant things (the fields of the class being initialized) before less relevant things.

## Actual behavior
The list is sorted alphabetically. Things like `#region` are displayed before relevant things. You may [look here](https://imgur.com/a/kAMuw) to see an example.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.