mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-27 09:35:37 -05:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user