mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 17:22:20 -05:00
Adds build connection info feature (#2192)
* connection string * formatting * change serailize reponse type to match connect params * add connection string serialization * readd the connection string to the connection widget * format * remove unnecessary change * update serializer to require provider * update name of function * fix function name * bump dataprotocol and sqltools * revert unnecessary change * remove more unnecessary chagnes * bump sqltoolsserivce * adde configuration for auto parsing the clipboard
This commit is contained in:
committed by
Karl Burtram
parent
21c4429c6e
commit
033c8cb8b1
@@ -27,7 +27,6 @@ import { ISerializationService } from 'sql/services/serialization/serializationS
|
||||
import { IFileBrowserService } from 'sql/parts/fileBrowser/common/interfaces';
|
||||
import { IExtHostContext } from 'vs/workbench/api/node/extHost.protocol';
|
||||
import { extHostNamedCustomer } from 'vs/workbench/api/electron-browser/extHostCustomers';
|
||||
import severity from 'vs/base/common/severity';
|
||||
|
||||
/**
|
||||
* Main thread class for handling data protocol management registration.
|
||||
@@ -91,6 +90,9 @@ export class MainThreadDataProtocol implements MainThreadDataProtocolShape {
|
||||
getConnectionString(connectionUri: string, includePassword: boolean): Thenable<string> {
|
||||
return self._proxy.$getConnectionString(handle, connectionUri, includePassword);
|
||||
},
|
||||
buildConnectionInfo(connectionString: string): Thenable<sqlops.ConnectionInfo> {
|
||||
return self._proxy.$buildConnectionInfo(handle, connectionString);
|
||||
},
|
||||
rebuildIntelliSenseCache(connectionUri: string): Thenable<void> {
|
||||
return self._proxy.$rebuildIntelliSenseCache(handle, connectionUri);
|
||||
}
|
||||
@@ -343,7 +345,7 @@ export class MainThreadDataProtocol implements MainThreadDataProtocolShape {
|
||||
|
||||
public $registerAgentServicesProvider(providerId: string, handle: number): TPromise<any> {
|
||||
const self = this;
|
||||
this._jobManagementService.registerProvider(providerId, <sqlops.AgentServicesProvider> {
|
||||
this._jobManagementService.registerProvider(providerId, <sqlops.AgentServicesProvider>{
|
||||
providerId: providerId,
|
||||
getJobs(connectionUri: string): Thenable<sqlops.AgentJobsResult> {
|
||||
return self._proxy.$getJobs(handle, connectionUri);
|
||||
|
||||
Reference in New Issue
Block a user