Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/vs
diff options
context:
space:
mode:
authorMatt Bierner <matb@microsoft.com>2022-06-09 04:10:35 +0300
committerGitHub <noreply@github.com>2022-06-09 04:10:35 +0300
commit088e2a8d6ca983cf257c1120ed1082713b074014 (patch)
treeb28e149b72f08ec42554978c9ff24132b4cf9451 /src/vs
parentdc3b8f245665ba0b7fdfade0292a17eff545b20a (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.ts8
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);
- });
+ }));
}
}