Skip to content

Store parse_data separately and combine them in GlobalNameSpace - #123

Merged
randy3k merged 1 commit into
REditorSupport:masterfrom
renkun-ken:global-ns
Dec 3, 2019
Merged

randy3k merged 1 commit into
REditorSupport:masterfrom
renkun-ken:global-ns

Conversation

@renkun-ken

@renkun-ken renkun-ken commented Dec 3, 2019 •

Copy link
Copy Markdown
Member

This PR addresses #58 by modifying the mechanism of populating the global namespace. One extreme is to infinitely expand global namespace (current approach), the other extreme is to provide completion per document. This PR is an attempt to strike a balance so that global namespace is not infinitely expanding but still shares symbols between multiple documents.

The current mechanism merges objects from parse data on each workspace update. Even if a symbol is removed from all documents, the symbol still lives in the global namespace.

Storing parse_data of each uri separately and combine them on each update will remove symbols that are removed in documents, making global namespace consistent with documents.

@renkun-ken
renkun-ken requested a review from randy3k December 3, 2019 06:43
@randy3k

randy3k commented Dec 3, 2019

Copy link
Copy Markdown
Member

LGTM. Thank you for working on it.

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.

2 participants