mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-21 16:27:39 -06:00
Allow running non-continuous selected SQL code blocks in the query tool. #7293
This commit is contained in:
parent
a0f7d0d50f
commit
1a1734cf5c
@ -20,6 +20,7 @@ Bundled PostgreSQL Utilities
|
||||
New features
|
||||
************
|
||||
|
||||
| `Issue #7293 <https://github.com/pgadmin-org/pgadmin4/issues/7293>`_ - Allow running non-continuous selected SQL code blocks in the query tool.
|
||||
|
||||
Housekeeping
|
||||
************
|
||||
|
@ -197,7 +197,7 @@ export default class CustomEditorView extends EditorView {
|
||||
}
|
||||
|
||||
getSelection() {
|
||||
return this.state.sliceDoc(this.state.selection.main.from, this.state.selection.main.to) ?? '';
|
||||
return this.state.selection.ranges.map((range)=>this.state.sliceDoc(range.from, range.to)).join('') ?? '';
|
||||
}
|
||||
|
||||
replaceSelection(newValue) {
|
||||
|
Loading…
Reference in New Issue
Block a user