import { PathsCommand } from './pathsCommand' ; import ResourceBundleQuickPick = require ( '../../vscode/resourceBundleQuickPick' ) ; import * as vscode from 'vscode' ; import Promise = require ( 'bluebird' ) ; class DeployResourceBundle extends PathsCommand { static create ( ) { return new DeployResourceBundle ( ) ; } constructor ( ) { super ( 'Resource Bundle' , 'deploy-resource-bundle' ) ; } execute ( selectedResource ? ) { return ResourceBundleQuickPick . showResourceBundleQuickPick ( ) . then ( ( selectedResourceBundle ) => { let selectedResource = vscode . Uri . file ( selectedResourceBundle . path ) ; return super . execute ( selectedResource ) ; } ) ; } } export = DeployResourceBundle ;