Skip to main content

Module ShowOpenDialog

Module ShowOpenDialog 

Source
Expand description

nativeHost:showOpenDialog handler. Wires VS Code’s nativeHostService.showOpenDialog(options) contract to Tauri’s dialog plugin.

Contract:

  • properties: ["openDirectory" | "openFile" | "multiSelections" | "createDirectory" | "showHiddenFiles"]
  • filters: [{ name, extensions: ["vsix", …] }, …]
  • title, buttonLabel, defaultPath
  • returns { canceled: bool, filePaths: string[] }.

The “Install from VSIX…” flow relies on filters to narrow the picker to .vsix and on openFile + multiSelections so the user can pick multiple archives at once.

Functions§

ShowOpenDialog