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 document.registerDocumentSymbolProvider API #3483

Merged
merged 1 commit into from
Nov 21, 2018

Conversation

azatsarynnyy
Copy link
Member

@azatsarynnyy azatsarynnyy commented Nov 13, 2018

This PR replaces previously added mock for document.registerDocumentSymbolProvider API with the implementation.
Closes #3200
Sample plugin is here eclipse/che-theia-samples#16

@azatsarynnyy azatsarynnyy added the plug-in system issues related to the plug-in system label Nov 13, 2018
@azatsarynnyy azatsarynnyy self-assigned this Nov 13, 2018
@@ -299,3 +299,42 @@ export interface WorkspaceEdit {
edits: Array<ResourceTextEdit | ResourceFileEdit>;
rejectReason?: string;
}

export enum SymbolKind {
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

@azatsarynnyy azatsarynnyy Nov 14, 2018

Choose a reason for hiding this comment

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

@benoitf I'm not sure whether it's a good idea.
If I understand correctly, the model.ts is an API for main<->ext communication. But the types-impl.ts contains the types for using by the plugins. Correct me if I'm wrong, please.
Is it ok to depend one on another?

Copy link
Contributor

Choose a reason for hiding this comment

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

@evidolob WDYT ?

Copy link
Contributor

Choose a reason for hiding this comment

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

@azatsarynnyy You are right, types model.ts is for main<->ext communication. types-impl.ts contains implementation described in theia.d.ts

Copy link
Member Author

Choose a reason for hiding this comment

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

Are there any objections to merging this PR?

@azatsarynnyy
Copy link
Member Author

@benoitf don't you mind to merge this PR?

Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
@azatsarynnyy
Copy link
Member Author

rebased on master

@azatsarynnyy azatsarynnyy merged commit fe01a49 into master Nov 21, 2018
@azatsarynnyy azatsarynnyy deleted the az/sym branch November 21, 2018 13:00
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