Skip to content

Follow LSP protocol when workspace folders are changed and adapt root workspace uri if folder is changed#754

Merged
ccordoba12 merged 14 commits into
palantir:developfrom
zerocewl:AdaptRootWorkspace
May 13, 2020
Merged

Follow LSP protocol when workspace folders are changed and adapt root workspace uri if folder is changed#754
ccordoba12 merged 14 commits into
palantir:developfrom
zerocewl:AdaptRootWorkspace

Conversation

@zerocewl

@zerocewl zerocewl commented Feb 25, 2020

Copy link
Copy Markdown
Contributor

If a workspace folder is changed via m_workspace__did_change_workspace_folders and the removed uri equals the root uri, the root_uri will be adapted. Additional the self.workspace will be reseted with a new Workspace which contains the workspace.

The adoption of the root_uri is necessary if a the root workspace folder changes and the jedi completion should use this new workspace folder.

Fixes #720

@ccordoba12

ccordoba12 commented May 5, 2020

Copy link
Copy Markdown
Contributor

@zerocewl, sorry for the big delay in taking a look at this one. Does this supersede your PRs in #749 and #750 completely? I mean, is this the only PR we need to review?

@ccordoba12 ccordoba12 added this to the 0.32.0 milestone May 10, 2020
@ccordoba12

Copy link
Copy Markdown
Contributor

@andfoy, please review this one.

@ccordoba12 ccordoba12 changed the title Adapt root workspace uri if workspace folder is changed Follow LSP protocol when workspace folders are changed and adapt root workspace uri if workspace folder is changed May 13, 2020
@ccordoba12 ccordoba12 changed the title Follow LSP protocol when workspace folders are changed and adapt root workspace uri if workspace folder is changed Follow LSP protocol when workspace folders are changed and adapt root workspace uri if folder is changed May 13, 2020
@ccordoba12 ccordoba12 merged commit 6a7eae7 into palantir:develop May 13, 2020
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.

Workspace folders not implemented completely

3 participants