mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 09:35:37 -05:00
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:
@@ -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 {
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user