Skip to content

WorkspaceFolder value in resolved environment is incorrect #20105

Closed

Description

The documentation for worksapceFolder is as follows

              /**
               * Any specific workspace folder this environment is created for.
               */
              readonly workspaceFolder: Uri | undefined;

However when I resolve the environment the value is the folder of the enviornment it self.
See below,

  • Workspace folder in vscode is the folder stuff
  • The virtual enviornment is .vengWidgets and this is inside stuff folder
  • However the value for workspaceFolder is .venvWidgets

This causes issues as we exclude environments that do not belong to the current workscape folder stuff

Screen Shot 2022-10-28 at 04 28 51

Activity

  1. added
    feature-request
    on Oct 27, 2022
  2. added
    triage-needed
    on Oct 27, 2022
  3. added
    bug
    triage-needed
    and removed
    feature-request
    triage-needed
    on Oct 27, 2022
  4. added
    area-environments
    needs PR
    and removed
    triage-needed
    on Oct 28, 2022
  5. karrtikr commented on Oct 28, 2022

    @karrtikr

    .vengWidgets workspace also belongs to current workspace stuff, so this seems expected. Regardless, changed the API to return WorkspaceFolder instead of Uri to clearly indicate which workspace the env belongs to.

  6. added
    verification-needed
    author-verification-requested
    and removed
    verification-needed
    on Oct 28, 2022
  7. DonJayamanne commented on Nov 1, 2022

    @DonJayamanne
    Author

    Kartik Raj (@karrtikr)
    We are no longer using this API.

  8. locked as resolved and limited conversation to collaborators on Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-environmentsauthor-verification-requestedbugneeds PRverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions