Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • VSXExtensionsModel

Index

Constructors

Properties

_installed: Set<string> = ...
_recommended: Set<string> = ...
_searchError?: string
_searchResult: Set<string> = ...
clientProvider: OVSXClientProvider
extensionFactory: VSXExtensionFactory
extensions: Map<string, VSXExtension> = ...

single source of all extensions

initialized: Deferred<void> = ...
onDidChange: Event<void> = ...
onDidChangeEmitter: Emitter<void> = ...
pluginSupport: HostedPluginSupport
preferences: PreferenceService
progressService: ProgressService
searchCancellationTokenSource: CancellationTokenSource = ...
updateSearchResult: ((...arguments: []) => Promise<void>) = ...

Type declaration

    • (...arguments: []): Promise<void>
    • Debounce promise-returning & async functions.

      example
      import pDebounce = require('p-debounce');

      const expensiveCall = async input => input;

      const debouncedFn = pDebounce(expensiveCall, 200);

      for (const i of [1, 2, 3]) {
      debouncedFn(i).then(console.log);
      }
      //=> 3
      //=> 3
      //=> 3

      Parameters

      • Rest ...arguments: []

      Returns Promise<void>

      A function that delays calling fn until after wait milliseconds have elapsed since the last time it was called.

workspaceService: WorkspaceService

Accessors

  • get installed(): IterableIterator<string>
  • get recommended(): IterableIterator<string>
  • get searchError(): undefined | string
  • get searchResult(): IterableIterator<string>

Methods

  • compareExtensions(a: string, b: string): number
  • compileReadme(readmeMarkdown: string): string
  • doChange<T>(task: (() => Promise<T>)): Promise<T>
  • doChange<T>(task: (() => Promise<T>), token: CancellationToken): Promise<undefined | T>
  • doInit(): Promise<void>
  • doUpdateSearchResult(param: VSXSearchParam, token: CancellationToken): Promise<void>
  • getRecommendationsForScope(scope: "defaultValue" | "globalValue" | "workspaceValue" | "workspaceFolderValue" | "value", root?: URI): Required<RecommendedExtensions>
  • init(): void
  • initInstalled(): Promise<void>
  • initRecommended(): Promise<void>
  • initSearchResult(): Promise<void>
  • isInstalled(id: string): boolean
  • onDidFailRefresh(id: string, error: unknown): undefined | VSXExtension
  • refresh(id: string, version?: string): Promise<undefined | VSXExtension>
  • updateInstalled(): Promise<void>