@kkdev92/vscode-ext-kit - v4.1.1
    Preparing search index...

    Function createScope

    • Creates a DisposableCollection that is disposed automatically when the extension deactivates, by registering itself in context.subscriptions.

      For user-owned resources only. context.subscriptions is a synchronous disposal surface, so anything needing asynchronous teardown belongs in a hosted service or an application-owned ResourceScope instead.

      Parameters

      Returns DisposableCollection

      const scope = createScope(context);
      scope.add(vscode.window.createStatusBarItem());
      // ...later, when the feature is turned off early:
      scope.dispose();