Bumping SqlToolsService to 4.7.0.17 (#22823)

* Bumping STS

* Whoops

* Upgrading STS to 4.7.0.17
This commit is contained in:
Benjin Dubishar
2023-04-21 16:44:52 -07:00
committed by GitHub
parent db03525b10
commit c581b0285d
5 changed files with 69 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"downloadUrl": "https://github.com/Microsoft/sqltoolsservice/releases/download/{#version#}/microsoft.sqltools.servicelayer-{#fileName#}",
"version": "4.7.0.15",
"version": "4.7.0.17",
"downloadFileNames": {
"Windows_86": "win-x86-net7.0.zip",
"Windows_64": "win-x64-net7.0.zip",

View File

@@ -666,6 +666,16 @@ export namespace GetSqlObjectScriptsRequest {
export const type = new RequestType<SqlProjectParams, mssql.GetScriptsResult, void, void>('sqlProjects/getSqlObjectScripts');
}
export namespace ExcludeFolderRequest {
export const type = new RequestType<FolderParams, azdata.ResultStatus, void, void>('sqlProjects/excludeFolder');
}
export namespace MoveFolderRequest {
export const type = new RequestType<MoveFolderParams, azdata.ResultStatus, void, void>('sqlProjects/moveFolder');
}
//#endregion
//#endregion
@@ -910,6 +920,13 @@ export interface FolderParams extends SqlProjectParams {
path: string;
}
export interface MoveFolderParams extends FolderParams {
/**
* Path of the folder, typically relative to the .sqlproj file
*/
destinationPath: string;
}
export interface CreateSqlProjectParams extends SqlProjectParams {
/**
* Type of SQL Project: SDK-style or Legacy

View File

@@ -386,6 +386,21 @@ declare module 'mssql' {
*/
deleteFolder(projectUri: string, path: string): Promise<azdata.ResultStatus>;
/**
* Exclude a folder and its contents from a project
* @param projectUri Absolute path of the project, including .sqlproj
* @param path Path of the folder, typically relative to the .sqlproj file
*/
excludeFolder(projectUri: string, path: string): Promise<azdata.ResultStatus>;
/**
* Move a folder and its contents within a project
* @param projectUri Absolute path of the project, including .sqlproj
* @param destinationPath Path of the folder, typically relative to the .sqlproj file
* @param path Path of the folder, typically relative to the .sqlproj file
*/
moveFolder(projectUri: string, destinationPath: string, path: string): Promise<azdata.ResultStatus>;
/**
* Add a post-deployment script to a project
* @param projectUri Absolute path of the project, including .sqlproj

View File

@@ -461,4 +461,25 @@ export class SqlProjectsService extends BaseService implements mssql.ISqlProject
const params: contracts.MoveItemParams = { projectUri: projectUri, destinationPath: destinationPath, path: path };
return await this.runWithErrorHandling(contracts.MoveNoneItemRequest.type, params);
}
/**
* Exclude a folder and its contents from a project
* @param projectUri Absolute path of the project, including .sqlproj
* @param path Path of the folder, typically relative to the .sqlproj file
*/
public async excludeFolder(projectUri: string, path: string): Promise<azdata.ResultStatus> {
const params: contracts.FolderParams = { projectUri: projectUri, path: path };
return await this.runWithErrorHandling(contracts.ExcludeFolderRequest.type, params);
}
/**
* Move a folder and its contents within a project
* @param projectUri Absolute path of the project, including .sqlproj
* @param destinationPath Path of the folder, typically relative to the .sqlproj file
* @param path Path of the folder, typically relative to the .sqlproj file
*/
public async moveFolder(projectUri: string, destinationPath: string, path: string): Promise<azdata.ResultStatus> {
const params: contracts.MoveFolderParams = { projectUri: projectUri, destinationPath: destinationPath, path: path };
return await this.runWithErrorHandling(contracts.MoveFolderRequest.type, params);
}
}

View File

@@ -493,6 +493,21 @@ declare module 'vscode-mssql' {
*/
deleteFolder(projectUri: string, path: string): Promise<ResultStatus>;
/**
* Exclude a folder and its contents from a project
* @param projectUri Absolute path of the project, including .sqlproj
* @param path Path of the folder, typically relative to the .sqlproj file
*/
excludeFolder(projectUri: string, path: string): Promise<ResultStatus>;
/**
* Move a folder and its contents within a project
* @param projectUri Absolute path of the project, including .sqlproj
* @param destinationPath Path of the folder, typically relative to the .sqlproj file
* @param path Path of the folder, typically relative to the .sqlproj file
*/
moveFolder(projectUri: string, destinationPath: string, path: string): Promise<ResultStatus>;
/**
* Add a post-deployment script to a project
* @param projectUri Absolute path of the project, including .sqlproj