mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Allow running non-continuous selected SQL code blocks in the query tool. #7293
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user