GoProjectSettings.GoProjectSettingsBean settings = GoProjectSettings.getInstance(project).getState();
Map<String,String> sysEnv = GoSdkUtil.getExtendedSysEnv(sdkData, projectDir, testConfiguration.envVars, settings.prependGoPath, settings.useGoPath);
if (testConfiguration.goVetEnabled) {
try {
ToolWindowManager manager = ToolWindowManager.getInstance(project);
ToolWindow window = manager.getToolWindow(GoCommonConsoleView.ID);
if (GoCommonConsoleView.consoleView == null) {
GoCommonConsoleView.consoleView = TextConsoleBuilderFactory.getInstance().createBuilder(project).getConsole();
}
ConsoleView consoleView = GoCommonConsoleView.consoleView;
if (window == null) {
window = manager.registerToolWindow(GoCommonConsoleView.ID, false, ToolWindowAnchor.BOTTOM);
ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();
Content content = contentFactory.createContent(consoleView.getComponent(), "", false);
window.getContentManager().addContent(content);
window.setIcon(GoSdkUtil.getProjectIcon(sdk));