question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: EditorBrowsable.Advanced

See original GitHub issue

Issue Description

UnityEngine has a deprecated public class iPhoneSettings, which always show before if for me. It lives under UnityEngine namespace so I can’t avoid importing it.

Screen Shot 2019-04-20 at 16 49 18 Screen Shot 2019-04-20 at 17 04 37 Screen Shot 2019-04-20 at 17 07 45

Since very few class names start with lowercase letters, I wonder if I could control the order of this specific example. Or just exclude classes with lowercase letters from suggestions.

(Also I would like to confirm this behaviour is by-design: this plugin will always list iClass before if when typing on a newline?)

Steps to Reproduce

Open any Unity project repo, create a new script, import UnityEngine namespace, and type.

Expected Behavior

Prefer to list if over iPhoneSettings as it’s more likely to be used (given context).

Actual Behavior

iPhoneSettings always listed before if.

Logs

N/A

OmniSharp log

N/A

C# log

N/A

Environment information

VSCode version: 1.33.1 C# Extension: 1.18.0

Mono Information OmniSharp using global mono :5.18.1
Dotnet Information .NET Core SDK (reflecting any global.json): Version: 2.2.105 Commit: 7cecb35b92

Runtime Environment: OS Name: Mac OS X OS Version: 10.14 OS Platform: Darwin RID: osx.10.14-x64 Base Path: /usr/local/share/dotnet/sdk/2.2.105/

Host (useful for support): Version: 2.2.3 Commit: 6b8ad509b6

.NET Core SDKs installed: 2.1.4 [/usr/local/share/dotnet/sdk] 2.2.105 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.2.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.2.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.2.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download

Visual Studio Code Extensions
Extension Author Version
applescript idleberg 0.14.2
csharp ms-vscode 1.18.0
mel sator-imaging 0.1.2
python ms-python 2019.3.6139
shader slevesque 1.1.4
shaderlabvscodefree amlovey 1.1.3
unity-debug Unity 2.7.2
vscode-jade-snippets mrmlnc 1.0.1

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
imba-tjdcommented, May 9, 2019

workaround: "editor.snippetSuggestions": "top"

1reaction
strangenooracommented, Aug 26, 2019

I am frustrated by this one as well. Especially IPhoneSettings often appearing when I want to type if or int. Would it be possible to always prefer such basic language keywords over imported classes?

Read more comments on GitHub >

github_iconTop Results From Across the Web

EditorBrowsable attribute not respected by Intellisense
In Visual Studio 2017, when I write "instance" and press dot (.), the Intellisense popup shows all methods. Since MyClass implements ...
Read more >
ServiceClient.IService.EntityMembersUpdate ... - Microsoft Learn
EditorBrowsable (System.ComponentModel.EditorBrowsableState.Advanced)] Microsoft.MasterDataServices. ... EntityMembersUpdateRequest request); [<System.
Read more >
NDoc / Feature Requests / #212 Hidden methods not to be ...
Hi! I've got a method like the following: <Obsolete("Use new function instead"), System.ComponentModel.EditorBrowsable(ComponentModel.EditorBrowsableState.
Read more >
EditorBrowsableState.Never and Accessing InitialMargin from ...
These questions about Visual Studio and the EditorBrowsable() attribute would be ... Another client has made a feature request for this.
Read more >
Visual Studio: How to view "Advanced" properties in the ...
The EditorBrowsable is only for the TEXT editor, and the attribute that controls the display in the Properties window is "Browsable(false)".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found