mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-15 18:46:36 -05:00
only show new query when query is supported (#17346)
* only show new query when query is supported * test case fix and pr comments * rename context key
This commit is contained in:
@@ -27,6 +27,7 @@ export interface ConnectionProviderProperties {
|
||||
notebookKernelAlias?: string;
|
||||
azureResource?: string;
|
||||
connectionOptions: azdata.ConnectionOption[];
|
||||
isQueryProvider?: boolean;
|
||||
}
|
||||
|
||||
export interface ProviderFeatures {
|
||||
|
||||
@@ -38,7 +38,8 @@ export class CapabilitiesService extends Disposable implements ICapabilitiesServ
|
||||
};
|
||||
this._providers.set(id, provider);
|
||||
}
|
||||
|
||||
// By default isQueryProvider is true.
|
||||
provider.connection.isQueryProvider = provider.connection.isQueryProvider !== false;
|
||||
this._onCapabilitiesRegistered.fire({ id, features: provider });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user