mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-23 17:23:02 -05:00
Add default name to promptAddItem (#19439)
* Add default name to promptAddItem * Change to addItemPrompt
This commit is contained in:
@@ -59,12 +59,23 @@ declare module 'sqldbproj' {
|
||||
* Prompts the user to add a new item to the specified project
|
||||
* @param project The project to add the item to
|
||||
* @param relativeFilePath The relative path in the project where the item should be added
|
||||
* @param itemType Optional - The type of item to add. If not specified the user will choose from a list of available types
|
||||
* @param options The additional options to use
|
||||
*/
|
||||
promptAddItem(project: ISqlProject, relativeFilePath: string, itemType?: string): Promise<void>;
|
||||
addItemPrompt(project: ISqlProject, relativeFilePath: string, options?: AddItemOptions): Promise<void>;
|
||||
|
||||
}
|
||||
|
||||
export interface AddItemOptions {
|
||||
/**
|
||||
* The type of item to add. If not specified the user will choose from a list of available types
|
||||
*/
|
||||
itemType?: string,
|
||||
/**
|
||||
* The default name to display in the name prompt
|
||||
*/
|
||||
defaultName?: string
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of an item in a SQL Project
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user