diff options
author | Matt Bierner <matb@microsoft.com> | 2022-06-09 04:10:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-09 04:10:35 +0300 |
commit | 088e2a8d6ca983cf257c1120ed1082713b074014 (patch) | |
tree | b28e149b72f08ec42554978c9ff24132b4cf9451 /src/vs | |
parent | dc3b8f245665ba0b7fdfade0292a17eff545b20a (diff) |
Fix some missing registrations (#151575)
Noticed these calls were not using the returned disposable
Diffstat (limited to 'src/vs')
-rw-r--r-- | src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.ts b/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.ts index 8fbc0999419..712c2369044 100644 --- a/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.ts +++ b/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.ts @@ -285,15 +285,15 @@ export class NotebookClipboardContribution extends Disposable { } if (PasteAction) { - PasteAction.addImplementation(PRIORITY, 'notebook-clipboard', accessor => { + this._register(PasteAction.addImplementation(PRIORITY, 'notebook-clipboard', accessor => { return this.runPasteAction(accessor); - }); + })); } if (CutAction) { - CutAction.addImplementation(PRIORITY, 'notebook-clipboard', accessor => { + this._register(CutAction.addImplementation(PRIORITY, 'notebook-clipboard', accessor => { return this.runCutAction(accessor); - }); + })); } } |