Skip to content

Remove document from workspace on didClose for non-package #147

Closed

Description

@renkun-ken

Previously, #123 enables removing objects in GlobalNameSpace when they are removed from document. However, when more and more documents are open in editor, the workspaces contains more and more documents, so that the completion provides more and more items. Even when most documents are closed, although they are removed from documents, they are still left in Workspace, which seems a bit inconsistent.

I'm not sure if it makes sense that if the workspace is not a package, then closing a document should remove the document from the workspace so that all relevant objects of the documents are removed.

Activity

  1. changed the title [-]Remove document from workspaces on didClose for non-package[/-] [+]Remove document from workspace on didClose for non-package[/+] on Dec 23, 2019
  2. randy3k commented on Dec 23, 2019

    @randy3k
    Member

    How about creating a Workspace for each individual file if the rootUri is not a package? I haven't given it a deep thought, but it seems reasonable.

    Additionally, we could search for source(...) command to check if we need to import a workspace into another workspace.

  3. randy3k commented on Feb 8, 2020

    @randy3k
    Member

    With #198, all relevant objects of a file will be removed if the file is closed except if it is from an R package.

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