-
Notifications
You must be signed in to change notification settings - Fork 14
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
Lsp edit #1
Lsp edit #1
Conversation
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.
Looks good, remarks below.
} | ||
|
||
undo(context: CommandExecutionContext): CommandResult { | ||
// TODO implement revert workspace edit |
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.
Please create an issue for this.
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.
@@ -0,0 +1,122 @@ | |||
/******************************************************************************** | |||
* Copyright (c) 2017-2018 TypeFox and others. |
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.
Copyright (c) 2018
src/sprotty/languageserver/delete.ts
Outdated
@@ -0,0 +1,89 @@ | |||
/******************************************************************************** | |||
* Copyright (c) 2017-2018 TypeFox and others. |
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.
Copyright (c) 2018
src/sprotty/languageserver/index.ts
Outdated
@@ -0,0 +1,21 @@ | |||
/******************************************************************************** | |||
* Copyright (c) 2017-2018 TypeFox and others. |
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.
Copyright (c) 2018
src/sprotty/languageserver/ranged.ts
Outdated
@@ -0,0 +1,40 @@ | |||
/******************************************************************************** | |||
* Copyright (c) 2017-2018 TypeFox and others. |
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.
Copyright (c) 2018
src/theia/languageserver/index.ts
Outdated
@@ -0,0 +1,17 @@ | |||
/******************************************************************************** | |||
* Copyright (c) 2017-2018 TypeFox and others. |
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.
Copyright (c) 2018
@@ -0,0 +1,69 @@ | |||
/******************************************************************************** | |||
* Copyright (c) 2017-2018 TypeFox and others. |
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.
Copyright (c) 2018
@@ -0,0 +1,28 @@ | |||
/******************************************************************************** | |||
* Copyright (c) 2017-2018 TypeFox and others. |
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.
Copyright (c) 2018
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 | ||
********************************************************************************/ | ||
|
||
export * from './languageserver-diagram-contributions' |
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.
What about languageserver-diagram-module?
handleExportSvgAction(action: ExportSvgAction): boolean { | ||
this.connector.then(c => c.save(this.sourceUri, action)) | ||
return true | ||
} | ||
|
||
handleRequestPopupModel(action: RequestPopupModelAction): boolean { | ||
if (action.elementId === this.currentRoot.id) { |
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.
We should generalize this so we allow multiple popup models and merge those received from the server with the locally created ones. Then we can also support palettes on elements other than the root, e.g. large container nodes. This should be handled in a separate issue / PR.
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.
readonly kind = DeleteWithWorkspaceEditCommand.KIND | ||
|
||
// TODO: consider URIs from individual element traces | ||
constructor(readonly workspace: Workspace, readonly sourceUri: string) {} |
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.
This is not a serializable action, right? Do we need to make a distinction between serializable and non-serializable actions?
Signed-off-by: Jan Koehnlein <[email protected]>
@@ -59,6 +74,18 @@ export class TheiaDiagramServer extends DiagramServer { | |||
this.resolveConnector = resolve) | |||
} | |||
|
|||
getConnector() { |
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.
Just curious, why did you choose Java-style getters here instead of TypeScript getters?
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.
Because it's a promise.
No description provided.