Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vscode] Stub for proposed API: EditSessionIdentityProvider #12508

Conversation

marcdumais-work
Copy link
Contributor

@marcdumais-work marcdumais-work commented May 9, 2023

What it does

EditSessionIdentityProvider is a new proposed API. As of 1.72.2 it's only used
in built-in git (vscode.git).

This commit adds a stub implementation, sufficient to use vscode.git 1.72.2 and
hopefully later versions, if we need it to. The eventual goal is to implement this
API with a working implementation.

Temporary test commit:
To make it easier to test the stub implementation, a temporary commit as added
to the PR, to be removed before merging.

Change of plans: replacing @theia/git will definately interfere with some of our tests.
Instead here's the git diff of the commit, that can guide a reviewer how to modify locally
the example app, so it uses [email protected] instead of @theia/git. This will be
useful to test locally this PR: (unzip locally - contains a single text file: git-diff.txt)

git-diff.zip

Fixes #12437

How to test

Do the changes suggested above so that the example app uses vscode built-in git instead of
@theia/git. Unzip the file below to an empty "plugins" folder at the root of the theia repo (a few
built-ins v1.72.2, not published yet). You may remove the markdown extension for now and keep
the two git extensions :

builtins-extensions-for-tests.zip

Do not run yarn download:plugins after adding the vscode git extensions v1.72.2,
since the command might install another version along, which might interfere with
the tests.

Review checklist

Reminder for reviewers

EditSessionIdentityProvider is a new proposed API. As of 1.72.2
it's only used in built-in git (vscode.git).

This commit adds a stub implementation, sufficient to use
vscode.git 1.72.2 and hopefully later versions, if we need
it to. The eventual goal is to implement this API with a
working implementation.

Fixes eclipse-theia#12437

Signed-off-by: Marc Dumais <[email protected]>
@marcdumais-work marcdumais-work added vscode issues related to VSCode compatibility builtins Issues related to VS Code builtin extensions labels May 9, 2023
@marcdumais-work marcdumais-work self-assigned this May 9, 2023
@marcdumais-work marcdumais-work force-pushed the new-proposed-apis-1.72.2-editSessionIdentityProvider branch from 6e4b850 to d8a40ae Compare May 9, 2023 20:41
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

  • confirmed the bug on master related to the activation of the plugin
  • confirmed that the plugin successfully activates with the changes

I only have a minor comment.

packages/plugin-ext/src/plugin/workspace.ts Outdated Show resolved Hide resolved
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@marcdumais-work marcdumais-work merged commit fa94013 into eclipse-theia:master May 10, 2023
@marcdumais-work marcdumais-work deleted the new-proposed-apis-1.72.2-editSessionIdentityProvider branch May 10, 2023 14:43
tsmaeder pushed a commit to tsmaeder/theia that referenced this pull request May 23, 2023
…theia#12508)

* [vscode] Stub for proposed API: EditSessionIdentityProvider

EditSessionIdentityProvider is a new proposed API. As of 1.72.2
it's only used in built-in git (vscode.git).

This commit adds a stub implementation, sufficient to use
vscode.git 1.72.2 and hopefully later versions, if we need
it to. The eventual goal is to implement this API with a
working implementation.

Fixes eclipse-theia#12437

Signed-off-by: Marc Dumais <[email protected]>

* Update packages/plugin-ext/src/plugin/workspace.ts

Co-authored-by: Vincent Fugnitto <[email protected]>

---------

Signed-off-by: Marc Dumais <[email protected]>
Co-authored-by: Vincent Fugnitto <[email protected]>
@vince-fugnitto vince-fugnitto added this to the 1.38.0 milestone May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builtins Issues related to VS Code builtin extensions vscode issues related to VSCode compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[builtins] [proposed API] [[email protected]]: Theia lacks proposed API: editSessionIdentityProvider
2 participants