Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The auto-import option only appears when within a method #63

Closed
Jarrio opened this issue Nov 30, 2016 · 5 comments
Closed

The auto-import option only appears when within a method #63

Jarrio opened this issue Nov 30, 2016 · 5 comments
Assignees

Comments

@Jarrio
Copy link

Jarrio commented Nov 30, 2016

When typing out a class property you do not get the option for auto-import:

Outside Method

outsidemethod gif

Within Method

withinmethod

@nadako
Copy link
Member

nadako commented Dec 6, 2016

@Gama11 I'll leave this to you :)

@Gama11
Copy link
Member

Gama11 commented Dec 6, 2016

I think this one is for @Simn. This needs to be implemented / supported on the Haxe side, which I have no idea how to do.

@Simn Simn self-assigned this Dec 6, 2016
@Simn
Copy link
Member

Simn commented Dec 6, 2016

Someone give me some sample code.

@Gama11
Copy link
Member

Gama11 commented Dec 6, 2016

You just need a variable at class level:

class Main {
    static var testCase:TestCase;

    static function main() {}
}

^Diagnostics should suggest an import for haxe.unit.TestCase there.

@Gama11
Copy link
Member

Gama11 commented Jan 20, 2017

Moved to HaxeFoundation/haxe#5950.

@Gama11 Gama11 closed this as completed Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants