Feature/sqlcmd - ADS changes to enable SQLCMD (#6555)

* Basic SQLCMD functionality to run query and toggle mode

* icons and  some cleanup

* Adding PR comments
This commit is contained in:
Udeesha Gautam
2019-08-20 11:40:16 -07:00
committed by GitHub
parent c513204501
commit 9117b02c72
8 changed files with 147 additions and 3 deletions

View File

@@ -42,10 +42,12 @@ export interface IQueryEditorStateChange {
resultsVisibleChange?: boolean;
executingChange?: boolean;
connectingChange?: boolean;
sqlCmdModeChanged?: boolean;
}
export class QueryEditorState extends Disposable {
private _connected = false;
private _isSqlCmdMode = false;
private _resultsVisible = false;
private _executing = false;
private _connecting = false;
@@ -96,6 +98,17 @@ export class QueryEditorState extends Disposable {
public get executing(): boolean {
return this._executing;
}
public set isSqlCmdMode(val: boolean) {
if (val !== this._isSqlCmdMode) {
this._isSqlCmdMode = val;
this._onChange.fire({ sqlCmdModeChanged: true });
}
}
public get isSqlCmdMode(): boolean {
return this._isSqlCmdMode;
}
}
/**