Skip to content

Conversation

@mayanje
Copy link
Contributor

@mayanje mayanje commented Jul 22, 2021

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.

@mayanje mayanje requested review from fm-117 and rooksdo July 22, 2021 09:23
@mayanje mayanje self-assigned this Jul 22, 2021
@trafico-bot trafico-bot bot added the 🔍 Ready for Review Pull Request is not reviewed yet label Jul 22, 2021
{
_DepWatcher.SetDirectoryWatcher(depFolder);
_CopyWatcher.Dispose();
foreach (var depFolder in Configuration.CopyFolders)
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes done in
0165442

Copy link
Contributor

@fm-117 fm-117 left a 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.

@trafico-bot trafico-bot bot removed the 🔍 Ready for Review Pull Request is not reviewed yet label Jul 22, 2021
@mayanje
Copy link
Contributor Author

mayanje commented Jul 22, 2021

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.

@rooksdo rooksdo removed their request for review July 27, 2021 12:36
@trafico-bot trafico-bot bot added the 🔍 Ready for Review Pull Request is not reviewed yet label Jul 27, 2021
@mayanje mayanje merged commit 5d990e8 into develop Jul 28, 2021
@trafico-bot trafico-bot bot added ✨ Merged Pull Request has been merged successfully and removed 🔍 Ready for Review Pull Request is not reviewed yet labels Jul 28, 2021
@mayanje mayanje mentioned this pull request Oct 19, 2021
@fm-117 fm-117 deleted the 2011_DelayParsingTillAllCopyLoaded branch November 18, 2022 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants