mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 09:35:37 -05:00
Fix sql projects net6 warnings (#17673)
* fix .net 6 error showing on startup * fix double warning * addressing comments * update key string
This commit is contained in:
@@ -82,9 +82,6 @@ export default class MainController implements vscode.Disposable {
|
||||
IconPathHelper.setExtensionContext(this.extensionContext);
|
||||
|
||||
await templates.loadTemplates(path.join(this.context.extensionPath, 'resources', 'templates'));
|
||||
|
||||
// ensure .net core is installed
|
||||
await this.netcoreTool.findOrInstallNetCore();
|
||||
}
|
||||
|
||||
public dispose(): void {
|
||||
|
||||
@@ -252,7 +252,8 @@ export class ProjectsController {
|
||||
|
||||
const message = utils.getErrorMessage(err);
|
||||
if (err instanceof DotNetError) {
|
||||
void vscode.window.showErrorMessage(message);
|
||||
// DotNetErrors already get shown by the netCoreTool so just show this one in the console
|
||||
console.error(message);
|
||||
} else {
|
||||
void vscode.window.showErrorMessage(constants.projBuildFailed(message));
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ import { ShellCommandOptions, ShellExecutionHelper } from './shellExecutionHelpe
|
||||
const localize = nls.loadMessageBundle();
|
||||
|
||||
export const DBProjectConfigurationKey: string = 'sqlDatabaseProjects';
|
||||
export const NetCoreInstallLocationKey: string = 'netCoreSDKLocation';
|
||||
export const NetCoreInstallLocationKey: string = 'netCoreSDK Location';
|
||||
export const NetCoreDoNotAskAgainKey: string = 'netCoreDoNotAsk';
|
||||
export const NetCoreDowngradeDoNotShowAgainKey: string = 'netCoreDowngradeDoNotShow';
|
||||
export const NetCoreNonWindowsDefaultPath = '/usr/local/share';
|
||||
|
||||
Reference in New Issue
Block a user