mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-05 01:25:38 -05:00
Add option for using generic SQL queries to filter EditData rows via a query editor pane. (#1329)
This commit is contained in:
@@ -131,6 +131,16 @@ export abstract class EditorInput implements IEditorInput {
|
||||
return this._onDispose.event;
|
||||
}
|
||||
|
||||
// {{SQL CARBON EDIT}}
|
||||
// Saving is not supported in the EditData query editor, so this can be overriden in its Input.
|
||||
private _savingSupported: boolean = true;
|
||||
public get savingSupported(): boolean {
|
||||
return this._savingSupported;
|
||||
}
|
||||
public disableSaving() {
|
||||
this._savingSupported = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the associated resource of this input if any.
|
||||
*/
|
||||
|
||||
@@ -167,6 +167,11 @@ export class UntitledEditorInput extends EditorInput implements IEncodingSupport
|
||||
}
|
||||
|
||||
public isDirty(): boolean {
|
||||
// {{SQL CARBON EDIT}}
|
||||
if (!this.savingSupported) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.cachedModel) {
|
||||
return this.cachedModel.isDirty();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user