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

[plug-in] Add languages.registerCodeLensProvider API mock #3352

Merged
merged 1 commit into from
Oct 31, 2018

Conversation

azatsarynnyy
Copy link
Member

Signed-off-by: Artem Zatsarynnyi [email protected]

The PR mocks languages.registerCodeLensProvider API call to eliminate error

TypeError: vscode.languages.registerCodeLensProvider is not a function

when using a plug-in which makes such API call.

It's needed for eclipse-che/che#10574

@azatsarynnyy azatsarynnyy added the plug-in system issues related to the plug-in system label Oct 31, 2018
@azatsarynnyy azatsarynnyy self-assigned this Oct 31, 2018
@@ -4779,6 +4810,19 @@ declare module '@theia/plugin' {
*/
export function registerCodeActionsProvider(selector: DocumentSelector, provider: CodeActionProvider, metadata?: CodeActionProviderMetadata): Disposable;

/**
Copy link
Contributor

Choose a reason for hiding this comment

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

wrong indent

Copy link
Member Author

Choose a reason for hiding this comment

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

Thx. Fixed

@azatsarynnyy azatsarynnyy merged commit ab06a80 into master Oct 31, 2018
@azatsarynnyy azatsarynnyy deleted the az/api-codelens branch October 31, 2018 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plug-in system issues related to the plug-in system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants