coc-python icon indicating copy to clipboard operation
coc-python copied to clipboard

Renaming a function looks in node_modules directory

Open arlopurcell opened this issue 3 years ago • 0 comments

I'm trying to rename a function, but I'm getting this error: Refactor failed. Syntax error in file <node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py> line <464>: invalid syntax

This is a django project with includes frontend stuff and so there's a node_modules directory in the root of the repository. Really I'd like to restrict the refactor to just the proj directory of the project so that it's not looking in node_modules. Is there a way to set the root of the python project somewhere? or maybe a way to exclude certain directories from the refactor?

Thanks!

arlopurcell avatar Aug 28 '20 13:08 arlopurcell