mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
fix for issue 3065 (#3067)
* fix for 3065 * remove the parameter, no need to save connection
This commit is contained in:
@@ -27,8 +27,7 @@ export class CommandLineService implements ICommandLineProcessing {
|
|||||||
@IQueryEditorService private _queryEditorService: IQueryEditorService,
|
@IQueryEditorService private _queryEditorService: IQueryEditorService,
|
||||||
@IObjectExplorerService private _objectExplorerService: IObjectExplorerService,
|
@IObjectExplorerService private _objectExplorerService: IObjectExplorerService,
|
||||||
@IEditorService private _editorService: IEditorService,
|
@IEditorService private _editorService: IEditorService,
|
||||||
)
|
) {
|
||||||
{
|
|
||||||
let profile = null;
|
let profile = null;
|
||||||
if (this._environmentService && this._environmentService.args.server) {
|
if (this._environmentService && this._environmentService.args.server) {
|
||||||
profile = new ConnectionProfile(_capabilitiesService, null);
|
profile = new ConnectionProfile(_capabilitiesService, null);
|
||||||
@@ -52,8 +51,7 @@ export class CommandLineService implements ICommandLineProcessing {
|
|||||||
this.processCommandLine();
|
this.processCommandLine();
|
||||||
} else {
|
} else {
|
||||||
registry.onNewProvider(e => {
|
registry.onNewProvider(e => {
|
||||||
if (e.id === Constants.mssqlProviderName)
|
if (e.id === Constants.mssqlProviderName) {
|
||||||
{
|
|
||||||
this.processCommandLine();
|
this.processCommandLine();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -381,8 +381,7 @@ export class ConnectionManagementService extends Disposable implements IConnecti
|
|||||||
resolve(this._connectionStatusManager.getOriginalOwnerUri(ownerUri));
|
resolve(this._connectionStatusManager.getOriginalOwnerUri(ownerUri));
|
||||||
} else {
|
} else {
|
||||||
const options: IConnectionCompletionOptions = {
|
const options: IConnectionCompletionOptions = {
|
||||||
// Should saving the connection be a command line switch?
|
saveTheConnection: false,
|
||||||
saveTheConnection : true,
|
|
||||||
showConnectionDialogOnError: true,
|
showConnectionDialogOnError: true,
|
||||||
showDashboard: purpose === 'dashboard',
|
showDashboard: purpose === 'dashboard',
|
||||||
params: undefined,
|
params: undefined,
|
||||||
|
|||||||
Reference in New Issue
Block a user