Remove sql project build dependency on STS (#20447)

* download Microsoft.Build.Sql sdk and extract

* cleanup extracted folder and nuget

* add constants

* cleanup

* remove package-lock.json

* making outputChannel required and some cleanup

* only download if the files aren't already there

* Add todo

* add try catches

* addressing comments
This commit is contained in:
Kim Santiago
2022-08-31 14:04:06 -07:00
committed by GitHub
parent eedf6e01c3
commit 8926c4f605
7 changed files with 793 additions and 309 deletions

View File

@@ -8,6 +8,7 @@ import * as os from 'os';
import * as vscode from 'vscode';
import * as path from 'path';
import { BuildHelper } from '../tools/buildHelper';
import { TestContext, createContext } from './testContext';
describe('BuildHelper: Build Helper tests', function (): void {
@@ -38,8 +39,9 @@ describe('BuildHelper: Build Helper tests', function (): void {
});
it('Should get correct build folder', async function (): Promise<void> {
const testContext: TestContext = createContext();
const buildHelper = new BuildHelper();
await buildHelper.createBuildDirFolder();
await buildHelper.createBuildDirFolder(testContext.outputChannel);
// get expected path for build
let expectedPath = vscode.extensions.getExtension('Microsoft.sql-database-projects')?.extensionPath ?? 'EmptyPath';
@@ -48,4 +50,3 @@ describe('BuildHelper: Build Helper tests', function (): void {
});
});