-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Conversation
6d87ac2
to
ecc44ec
Compare
@@ -299,3 +299,42 @@ export interface WorkspaceEdit { | |||
edits: Array<ResourceTextEdit | ResourceFileEdit>; | |||
rejectReason?: string; | |||
} | |||
|
|||
export enum SymbolKind { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hello, does it conflict with https://github.com/theia-ide/theia/blob/b9d9bba4bf1ad1bccde86b02230f4b143be7d189/packages/plugin-ext/src/plugin/types-impl.ts#L1101 ? (like removing one or the other)
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@evidolob WDYT ?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
@benoitf don't you mind to merge this PR? |
Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
rebased on master |
This PR replaces previously added mock for
document.registerDocumentSymbolProvider
API with the implementation.Closes #3200
Sample plugin is here eclipse/che-theia-samples#16