MCPcopy
hub / github.com/dotnet/vscode-csharp / add

Method add

src/compositeDisposable.ts:24–30  ·  view source on GitHub ↗
(disposable: IDisposable)

Source from the content-addressed store, hash-verified

22 }
23
24 public add(disposable: IDisposable) {
25 if (!disposable) {
26 throw new Error('disposable cannot be null');
27 }
28
29 this.disposables.add(() => disposable.dispose());
30 }
31}

Callers 15

constructorMethod · 0.95
activateFunction · 0.95
startMethod · 0.95
registerCommandsFunction · 0.95
constructorMethod · 0.95
registerProvidersMethod · 0.95
activateFunction · 0.95
prioritization.tsFile · 0.80
isDeferredCommandFunction · 0.80
addDisposablesFunction · 0.80
startMethod · 0.80
startMethod · 0.80

Calls 1

disposeMethod · 0.65

Tested by

no test coverage detected