Open oxxford opened 7 years ago
Hi @oxxford
I missed the notification about this pull request for some reason, sorry about that.
What are you doing exactly in your code? Could you elaborate?
Cheers, F
Hello, @fmontesi
Sorry, I could not answer because had exams and was busy.
On fist step I scan directory where a file is located, and parse every file to see if there are some fields with output/input port, interface, type, I add it to the respective list. I create two lists for ports, two for interfaces and two for types, because these from the file have more priority than from other files.
After that I subcribe on cursor's position changing to check if it's pointing to a module(type, interface or port) name by looking it up in respective lists. If there is match - I show notification.
If a file is opened in the editor it also become subcribed.
I think I mentioned main points, if you still need some informantion - feel free to ask.
Best,
Dmitry.
I tried this task: https://github.com/jolie-projects/open_projects/tree/master/ide#inline-documentation-o. But I supposed to show info about port/interface/type as a notification, because it doesn't blank the code and easier to handle.