Skip to content

Send workspace folder diff upon listener notification#512

Merged
dbaeumer merged 2 commits intomicrosoft:masterfrom
tsmaeder:451_send_early_wsfolder_changes
Sep 20, 2019
Merged

Send workspace folder diff upon listener notification#512
dbaeumer merged 2 commits intomicrosoft:masterfrom
tsmaeder:451_send_early_wsfolder_changes

Conversation

@tsmaeder
Copy link
Contributor

This is a fix for

Workspace folder changes are not sent to the server if they occur during initialisation #451

The gist of the fix is to remember the workspace folders sent to a language server during the "initialize" call and then send the diff between that state and the current WS folders when registering the workspace change listener.

Signed-off-by: Thomas Mäder tmader@redhat.com

@msftclas
Copy link

msftclas commented Aug 30, 2019

CLA assistant check
All CLA requirements met.

Signed-off-by: Thomas Mäder <tmader@redhat.com>
@tsmaeder tsmaeder force-pushed the 451_send_early_wsfolder_changes branch from 280b5c0 to f7ca6c1 Compare September 4, 2019 06:57
@tsmaeder
Copy link
Contributor Author

tsmaeder commented Sep 4, 2019

Fixed lint errors

id: id,
registerOptions: undefined
});
this.sendInitialEvent(workspace.workspaceFolders);
Copy link
Member

Choose a reason for hiding this comment

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

To make this consistent with other feature (e.g. DidOpenTextDocumentFeature) could we send the extra event in the register hook. Then we always have the same code pathes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

like so?

@dbaeumer
Copy link
Member

@tsmaeder thanks for the PR. I have one minor request. See above.

Signed-off-by: Thomas Mäder <tmader@redhat.com>
@dbaeumer dbaeumer merged commit 50ffd38 into microsoft:master Sep 20, 2019
@dbaeumer dbaeumer added this to the 3.15 milestone Sep 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants