Skip to content

Autocompletion per document or for the whole workspace #58

Closed

Description

@renkun-ken

The current implementation of symbol provider is workspace-wide, i.e., if you open and edit 10 R script files, then all documents are parsed and all symbols are shared in the completion list when I edit one file.

This can sometimes be annoying if I need to edit a simple script and a very long script that defines a lot of symbols at the same time.

I'm wondering if it makes sense to provide symbols per document, or according to referenced documents (as mentioned in #20).

Activity

  1. randy3k commented on Sep 18, 2019

    @randy3k
    Member

    I guess we will need to check if the files are coming from the same package. Files from the same package should share the symbol completions. We may need to open a workspace for each independent file.

  2. renkun-ken commented on Dec 3, 2019

    @renkun-ken
    MemberAuthor

    Global namespace no longer infinitely grows with #123 merged. So the behavior is good enough for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions