File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ interface CgMonacoServices extends Services {
1515 window : WatchableConsoleWindow
1616}
1717
18- function installCommands ( services : CgMonacoServices ) {
18+ function installCommands ( services : CgMonacoServices ) : Disposable {
1919 // Comes from https://github.com/redhat-developer/vscode-java/blob/9b0f0aca80cbefabad4c034fb5dd365d029f6170/src/extension.ts#L155-L160
2020 // Other commands needs to be implemented as well?
2121 // (https://github.com/eclipse/eclipse.jdt.ls/issues/376#issuecomment-333923685)
22- services . commands . registerCommand ( 'java.apply.workspaceEdit' , ( edit : WorkspaceEdit ) => {
22+ return services . commands . registerCommand ( 'java.apply.workspaceEdit' , ( edit : WorkspaceEdit ) => {
2323 if ( edit . documentChanges != null && edit . documentChanges . some ( change => RenameFile . is ( change ) || CreateFile . is ( change ) ) ) {
2424 alert ( 'Unimplemented command' )
2525 return
You can’t perform that action at this time.
0 commit comments