forked from pgsql-io/omnidb-ng
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds explain selected feature refs: #533
extends pgsql ace editor mode with code folding adds more functionality and renames getQueryEditorValue to getEditorContent
- Loading branch information
Showing
4 changed files
with
36 additions
and
13 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
pgmanage/app/static/pgmanage_frontend/src/ace-mode-pgsql-extended.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
ace.define( | ||
"ace/mode/pgsql_extended", | ||
["require", "exports", "ace/lib/oop", "ace/mode/text", "ace/range"], | ||
function (acequire, exports) { | ||
const oop = acequire("ace/lib/oop"); | ||
const PgsqlMode = acequire("ace/mode/pgsql").Mode; | ||
const SqlFoldMode = acequire("./folding/sql").FoldMode; | ||
|
||
const ExtendedPgsqlMode = function () { | ||
PgsqlMode.call(this); | ||
this.foldingRules = new SqlFoldMode(); | ||
}; | ||
oop.inherits(ExtendedPgsqlMode, PgsqlMode); | ||
|
||
// Export the mode | ||
exports.Mode = ExtendedPgsqlMode; | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters