Class WorkspaceCommandContribution

Implements

  • CommandContribution

Constructors

Properties

app: FrontendApplication
clipboardService: ClipboardService
compareHandler: WorkspaceCompareHandler
deleteHandler: WorkspaceDeleteHandler
duplicateHandler: WorkspaceDuplicateHandler
fileDialogService: FileDialogService
fileService: FileService
labelProvider: LabelProvider
messageService: MessageService
onDidCreateNewFileEmitter: Emitter<DidCreateNewResourceEvent> = ...
onDidCreateNewFolderEmitter: Emitter<DidCreateNewResourceEvent> = ...
openerService: OpenerService
selectionService: SelectionService
workspaceService: WorkspaceService

Accessors

Methods

  • Returns an error message if the file name is invalid. Otherwise, an empty string.

    Parameters

    • name: string

      the simple file name of the file to validate.

    • parent: FileStat

      the parent directory's file stat.

    • allowNested: boolean = false

      allow file or folder creation using recursive path

    Returns Promise<string>