-
Notifications
You must be signed in to change notification settings - Fork 32
Conversation
Relevant commit: 454b93c |
Damn was also working on fixing this one :P |
@laginha87 Yeah, I'm trying to fix #61, although, this PR doesn't work yet. The graph is not updated on Maybe I'm checking the wrong file? on |
that bit is a bit overkill you should be able to just run |
@laginha87 Working now! 🎉 And is resilient to errors in code as well ^ ✨ |
…scry into fa/reload-completion
@crystal-lang-tools/scry Can I get another review here? 😅 |
src/scry/workspace.cr
Outdated
def initialize(root_uri, process_id, max_number_of_problems) | ||
@root_uri = root_uri | ||
@process_id = process_id | ||
@max_number_of_problems = max_number_of_problems | ||
@open_files = {} of String => {TextDocument, Completion::MethodDB} | ||
@dependency_graph = Completion::DependencyGraph::Graph.new | ||
@lookup_path = ENV["CRYSTAL_PATH"].split(":") + [@root_uri] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small note: Remember: If you're doing + [expr]
you're having 2 new arrays!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about ENV["CRYSTAL_PATH"].split(":") << @root_uri
?
This PR does:
For some reason the graph is not getting updated yetFixed! 🎉 see Reload completion on file changes #98 (comment)Changes
text_document.filename
/cc @laginha87