util

Utilitiy methods to quark api.

util.createContextMenu(items)

util.createElementFromHtml(html)

Creates an HTML element from string.

  • arguments
    • html string
  • returns Element

util.createFileSystemWatcher(path[, options])

Creates a file system watcher.

  • arguments
    • path string | Array<string>
    • options WatchOptions(optional)
  • returns Watcher

util.createInputBox()

Creates an Input box

util.createMainMenuItem(label, items[, priority])

Creates a main menu item.

util.createOutputChannel(name)

Creates an output channel.

util.createQuickView(name)

Creates a quick view pannel. Similar to the one used by commands.

util.createSnackbar(message[, type, duration])

Creates a snackbar notification.

  • arguments
    • message string
    • type 'danger' | 'success' | 'warning' | 'info'
    • duration number
  • returns SnackbarItem <!--

util.createVueWebComponent(name, data, createElement)

Creates a vuejs web component.

  • arguments
    • name string
    • data Vue.ComponentOptions<any>
    • createElement boolean
  • returns undefined | HTMLElement -->
Last Updated: 8/22/2019, 5:29:31 PM
MIT Licensed | Copyright © 2019-present Nishkal Kashyap