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

Stub registerMappedEditProvider #13681

Conversation

tsmaeder
Copy link
Contributor

@tsmaeder tsmaeder commented May 5, 2024

What it does

Stub registerMappedEditProvider

Fixes #13649

Contributed on behalf of STMicroelectronics

How to test

  1. Start Theia with the 1.88.1 typescript-language-features extensions
  2. Open a typescript file
  3. Observe: you should not get an exception about registerMappedEditProviderbeing undefined

Follow-ups

Review checklist

Reminder for reviewers

Contributed on behalf of STMicroelectronics

Signed-off-by: Thomas Mäder <t.s.maeder@gmail.com>
@tsmaeder tsmaeder requested a review from rschnekenbu May 5, 2024 07:15
Copy link
Contributor

@rschnekenbu rschnekenbu left a comment

Choose a reason for hiding this comment

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

This PR looks good to me, only one minor comment. Implementation is marked as stubbed anyway, and the API analysis does not take proposed API into account currently, so not a big issue IMO

}

export namespace chat {
export function registerMappedEditsProvider(documentSelector: DocumentSelector, provider: MappedEditsProvider): Disposable;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe adding @stubbed here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A priori, that makes no sense to me: this is the declaration of the API. Isn't the fact that it's stubbed a property of the implementation? Does the API comparator walk the API declarations to find the stubbed flag?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, the vscode-theia-comparator project runs through theia.d.ts and vscode.d.ts to generate the compatibility report. I would tend to do the same on the proposed.d.ts files.

Screenshot from 2024-05-06 15-38-39

@tsmaeder tsmaeder merged commit 0501d74 into eclipse-theia:master May 6, 2024
11 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

vscode.chat.registerMappedEditsProvider not implemented but used in typescript-language-features 1.88.1
2 participants