-
Notifications
You must be signed in to change notification settings - Fork 25
WI #2011 Add -now --nowatchers options #2013
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
Conversation
| { | ||
| _DepWatcher.SetDirectoryWatcher(depFolder); | ||
| _CopyWatcher.Dispose(); | ||
| foreach (var depFolder in Configuration.CopyFolders) |
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.
naming copyFolder instead of depFolder
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.
yes done in
0165442
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.
Leaving a remark here: the -nowatchers disable watchers for copies and dependencies but there is no notificaton to signal a dependency needs to be refreshed. So the -nowatchers option should not be used in TC mode, it is intended to work with -cob option.
|
This a good remark, tha's why the option is "to disable", so that TC plugin noes not need to be updated. I think -cob option is for specific language COBOL features. But you are right here -now option is for performances in a Cobol editor and LSR mode, and can no be applied to TC. |
What has been done
_now, --nowatchers options have been added to TypeCobolLanguageServer projet, so that FileSystemWatcher on Copy and Dependency can be disabled.
Beacuse on change the CopyWatcher used to request the a reparsing on all opened document, and this for each COPY refreshed.