Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ArticleProvider

Provides a custom TreeDataProviderto fill a View with a list of Article objects.

Hierarchy

  • ArticleProvider

Implements

  • TreeDataProvider<any>

Index

Constructors

constructor

  • new ArticleProvider(view: string, context: ExtensionContext): ArticleProvider

Properties

Private _onDidChangeTreeData

_onDidChangeTreeData: EventEmitter<any> = new vscode.EventEmitter<any>()

context

context: ExtensionContext

frontpage_limit

frontpage_limit: number | undefined

frontpage_sort

frontpage_sort: string | undefined

frontpage_time

frontpage_time: string | undefined

onDidChangeTreeData

onDidChangeTreeData: Event<any> = this._onDidChangeTreeData.event

subreddit_limit

subreddit_limit: number | undefined

subreddit_sort

subreddit_sort: string | undefined

subreddit_time

subreddit_time: string | undefined

view

view: string

Controller - Provider Methods

getChildren

getTreeItem

setSort

  • setSort(view: string, sort: string): void

Other Methods

refresh

  • refresh(): void