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

Constants not working with autocomplete in webstorm #96

Open
funkimunky opened this issue Oct 6, 2020 · 3 comments
Open

Constants not working with autocomplete in webstorm #96

funkimunky opened this issue Oct 6, 2020 · 3 comments

Comments

@funkimunky
Copy link

I cannot get the constants in Global/Constant.js to work with webstorm.
If I just copy the constants into main.js it will autocomplete but when the ScreepsAutocomplete folder is set up as global library or just copied into the project directory the constants are not picked up by webstorm.

@v-vinson
Copy link

Same question

@darvan42
Copy link

I have exact the same problem and can report the same behaviour which funkimunky described.

@darvan42
Copy link

darvan42 commented Jan 4, 2021

I have exact the same problem and can report the same behaviour which funkimunky described.

I have found a workaround. I added typescript definitions for sreeps from this repository everything works fine. Even if I only work with javascript.
I used npm install @types/screeps in the webstorm console to install it

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

3 participants