fix for issue 3065 (#3067)

* fix for 3065

* remove the parameter, no need to save connection
This commit is contained in:
Alan Ren
2018-10-31 16:13:09 -07:00
committed by Karl Burtram
parent 1f76c85b1b
commit a06f80bdb1
2 changed files with 22 additions and 25 deletions

View File

@@ -27,8 +27,7 @@ export class CommandLineService implements ICommandLineProcessing {
@IQueryEditorService private _queryEditorService: IQueryEditorService,
@IObjectExplorerService private _objectExplorerService: IObjectExplorerService,
@IEditorService private _editorService: IEditorService,
)
{
) {
let profile = null;
if (this._environmentService && this._environmentService.args.server) {
profile = new ConnectionProfile(_capabilitiesService, null);
@@ -52,8 +51,7 @@ export class CommandLineService implements ICommandLineProcessing {
this.processCommandLine();
} else {
registry.onNewProvider(e => {
if (e.id === Constants.mssqlProviderName)
{
if (e.id === Constants.mssqlProviderName) {
this.processCommandLine();
}
});

View File

@@ -381,8 +381,7 @@ export class ConnectionManagementService extends Disposable implements IConnecti
resolve(this._connectionStatusManager.getOriginalOwnerUri(ownerUri));
} else {
const options: IConnectionCompletionOptions = {
// Should saving the connection be a command line switch?
saveTheConnection : true,
saveTheConnection: false,
showConnectionDialogOnError: true,
showDashboard: purpose === 'dashboard',
params: undefined,