Skip to content

Commit 825c3d2

Browse files
committed
fix: Make installCommands return a Disposable
1 parent b623d85 commit 825c3d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)