forked from pgadmin-org/pgadmin4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed new line indentation in query editor and add a user preference …
…to disable it. pgadmin-org#7295
- Loading branch information
1 parent
e03d65d
commit ad34ee2
Showing
4 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
14 changes: 14 additions & 0 deletions
14
web/pgadmin/static/js/components/ReactCodeMirror/extensions/extraStates.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,14 @@ | ||
///////////////////////////////////////////////////////////// | ||
// | ||
// pgAdmin 4 - PostgreSQL Tools | ||
// | ||
// Copyright (C) 2013 - 2023, The pgAdmin Development Team | ||
// This software is released under the PostgreSQL Licence | ||
// | ||
////////////////////////////////////////////////////////////// | ||
|
||
import { Facet } from '@codemirror/state'; | ||
|
||
export const indentNewLine = Facet.define({ | ||
combine: values => values.length ? values[0] : true, | ||
}); |
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