diff --git a/src/vs/editor/contrib/suggest/suggest.ts b/src/vs/editor/contrib/suggest/suggest.ts index ff1e75b7d9e..1e855db7505 100644 --- a/src/vs/editor/contrib/suggest/suggest.ts +++ b/src/vs/editor/contrib/suggest/suggest.ts @@ -168,7 +168,7 @@ class CompletionItemModel { constructor( readonly items: CompletionItem[], readonly needsClipboard: boolean, - readonly dispoables: IDisposable, + readonly disposable: IDisposable, ) { } } @@ -343,7 +343,7 @@ registerDefaultLanguageCommand('_executeCompletionItemProvider', async (model, p await Promise.all(resolving); return result; } finally { - setTimeout(() => completions.dispoables.dispose(), 100); + setTimeout(() => completions.disposable.dispose(), 100); } }); diff --git a/src/vs/editor/contrib/suggest/suggestModel.ts b/src/vs/editor/contrib/suggest/suggestModel.ts index ec7c1d24e64..bb93c2aca5a 100644 --- a/src/vs/editor/contrib/suggest/suggestModel.ts +++ b/src/vs/editor/contrib/suggest/suggestModel.ts @@ -468,7 +468,7 @@ export class SuggestModel implements IDisposable { ); // store containers so that they can be disposed later - this._completionDisposables.add(completions.dispoables); + this._completionDisposables.add(completions.disposable); this._onNewContext(ctx); diff --git a/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.ts b/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.ts index 446f4940e2a..b16e6f07410 100644 --- a/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.ts +++ b/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.ts @@ -59,7 +59,7 @@ registerAction2(class extends Action2 { } const notebook = editor.viewModel.notebookDocument; - const dispoables = new DisposableStore(); + const disposable = new DisposableStore(); try { const edits: ResourceTextEdit[] = []; @@ -67,7 +67,7 @@ registerAction2(class extends Action2 { for (const cell of notebook.cells) { const ref = await textModelService.createModelReference(cell.uri); - dispoables.add(ref); + disposable.add(ref); const model = ref.object.textEditorModel; @@ -86,7 +86,7 @@ registerAction2(class extends Action2 { await bulkEditService.apply(edits, { label: localize('label', "Format Notebook") }); } finally { - dispoables.dispose(); + disposable.dispose(); } } }); diff --git a/src/vs/workbench/services/commands/test/common/commandService.test.ts b/src/vs/workbench/services/commands/test/common/commandService.test.ts index 1500f8566ad..32bd443f38a 100644 --- a/src/vs/workbench/services/commands/test/common/commandService.test.ts +++ b/src/vs/workbench/services/commands/test/common/commandService.test.ts @@ -103,7 +103,7 @@ suite('CommandService', function () { test('Stop waiting for * extensions to activate when trigger is satisfied #62457', function () { let callCounter = 0; - const dispoables = new DisposableStore(); + const disposable = new DisposableStore(); let events: string[] = []; let service = new CommandService(new InstantiationService(), new class extends NullExtensionService { @@ -118,7 +118,7 @@ suite('CommandService', function () { let reg = CommandsRegistry.registerCommand(event.substr('onCommand:'.length), () => { callCounter += 1; }); - dispoables.add(reg); + disposable.add(reg); resolve(); }, 0); }); @@ -132,7 +132,7 @@ suite('CommandService', function () { assert.equal(callCounter, 1); assert.deepEqual(events.sort(), ['*', 'onCommand:farboo'].sort()); }).finally(() => { - dispoables.dispose(); + disposable.dispose(); }); });