forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Remove autocomplete.preloadModules #1704
Copy link
Copy link
Closed
Labels
area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
Milestone
Metadata
Metadata
Assignees
Labels
area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
Type
Fields
Give feedbackNo fields configured for issues without a type.
Environment data
Actual behavior
Referencing this question: https://stackoverflow.com/questions/49912163/vscode-add-preloaded-module-from-extrapath/49926294#49926294
I have added the maya's completion path to python.autocomplete.extraPaths(/Applications/Autodesk/maya2018/devkit/other/pymel/extras/completion/py) available to download by the Autodesk Maya's DevKit, because I would like to have the intellisense working with those modules.
Then, i have also added the module "maya" to python.autocomplete.preloadModules, because I would like to speed up the intellisense, but I think that is not working at all. It takes like 10 seconds to show the intellisense options
Steps to reproduce:
1- You can download the Maya's DevKit with it's own autocomplete modules from here:
https://apps.autodesk.com/MAYA/en/Detail/Index?id=5525491636376351277&os=Win64&appLang=en
2- Unzip the file, and add the folder to python.autocomplete.extraPaths (In my case, the one that I told you above)
3- Add the maya module to python.autocomplete.preloadModules
4- Try restarting VSCode and importing the module with the following snippet:
import maya.cmds as cmdsLet me know if you need some more info!
Thanks for this amazing Extension and for your hard work!