BowlerHatLLC / vscode-as3mxml

ActionScript & MXML language extension for Visual Studio Code. Develop apps for Adobe AIR, Adobe Flash Player, or Apache Royale.
https://as3mxml.com/
Apache License 2.0
256 stars 39 forks source link

Completion: Higher priority for classes that are already imported #648

Closed ylazy closed 1 year ago

ylazy commented 1 year ago

Hi!

My lib contains a class named StringUtil. When I type:

import com.ylazy.utils.StringUtil;

Stringu

VSCode show mx.utils.StringUtil in a higher priority than com.ylazy.utils.StringUtil:

image

I think it's better to make imported classes a higher priority than others.

Thanks!

ylazy commented 1 year ago

I want to add a similar case:

image

The validateSize function should have the highest priority.

Even better if we can get the code hint immediately at super. instead of super.val

Another case:

image

The Label constructor should be there at the top of the list.

Thanks!

ylazy commented 1 year ago

Another case:

(moved to https://github.com/BowlerHatLLC/vscode-as3mxml/issues/665)

joshtynjala commented 1 year ago

The variable _exist should be there on the list but it isn't. Workaround: insert ; then try again.

Please open a separate issue for this one. Thanks!