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

Add deprecated fields to LanguageConfiguration #10050

Merged
merged 1 commit into from
Sep 4, 2021
Merged

Add deprecated fields to LanguageConfiguration #10050

merged 1 commit into from
Sep 4, 2021

Conversation

dineshUmasankar
Copy link
Contributor

What it does

Handling issue: #10031

There are two deprecate fields __electricCharacterSupport and __characterPairSupport in LanguageConfiguration.
I added these declarations into theia.d.ts and ensured they were marked with deprecation annotations.

As #10031 stated, I only added declarations for support but did not pursue implementation.

How to test

I require help with testing the existence of fields within interfaces. Would I write up a test inside of the respective package.spec.ts?

Review checklist

Reminder for reviewers

@tsmaeder tsmaeder self-requested a review September 4, 2021 07:12
Copy link
Contributor

@tsmaeder tsmaeder left a comment

Choose a reason for hiding this comment

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

:lgtm:

@tsmaeder
Copy link
Contributor

tsmaeder commented Sep 4, 2021

Hi @dineshUmasankar thanks for taking care of this. I guess we can relax the testing requirements on Theia ignoring two optional fields ;-)

@tsmaeder tsmaeder merged commit d350116 into eclipse-theia:master Sep 4, 2021
@dineshUmasankar
Copy link
Contributor Author

@tsmaeder For future reference, how would I go about testing fields in Theia?

@msujew
Copy link
Member

msujew commented Sep 5, 2021

@dineshUmasankar Usually, you would use/write a vscode extension that makes use of whatever you add to the theia.d.ts file. See this PR for an example, in which the DebugSessionOptions where added.

@tsmaeder
Copy link
Contributor

tsmaeder commented Sep 6, 2021

There are also many samples that can be useful for testing here: https://github.com/Microsoft/vscode-extension-samples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants