matthiasblaesing commented on issue #4034:
URL: https://github.com/apache/netbeans/issues/4034#issuecomment-1112492285
Thank you - the fix for the exception is trivial - but the it becomes more
interesting:
```diff
# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- a/ide/lsp.client/src/org/netbeans/modules/lsp/client/Utils.java
+++ b/ide/lsp.client/src/org/netbeans/modules/lsp/client/Utils.java
@@ -195,7 +195,9 @@
if (cmd.isLeft()) {
command = cmd.getLeft();
} else {
- Utils.applyWorkspaceEdit(cmd.getRight().getEdit());
+ if(cmd.getRight().getEdit() != null) {
+ Utils.applyWorkspaceEdit(cmd.getRight().getEdit());
+ }
command = cmd.getRight().getCommand();
}
if (command != null) {
```
But then it becomes more interesting: the typescript server sends a request
to the IDE `_typescript.rename`. The IDE logs that as unsupported and the
typescript server then sends an error notification, that the IDE does not
support the request. This needs more work and maybe tie in from the typescript
plugin in NetBeans itself.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists