We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm able to get the text of the editor with window.editor.getValue()
window.editor.getValue()
And I'm able to get the currently selected text-positions with window.editor.getSelection()
window.editor.getSelection()
But how do I get the text-value of the currently selected text ?
Like when I have multiple sql statements, select one statement, and press F5 to execute it - I need the actual text ;)
The text was updated successfully, but these errors were encountered:
Try:
window.editor.getModel().getValueInRange(window.editor.getSelection())
Sorry, something went wrong.
Works like a charm. Thanks !
@kristianoye Thanks It's saved my time
No branches or pull requests
I'm able to get the text of the editor with
window.editor.getValue()
And I'm able to get the currently selected text-positions with
window.editor.getSelection()
But how do I get the text-value of the currently selected text ?
Like when I have multiple sql statements, select one statement, and press F5 to execute it - I need the actual text ;)
The text was updated successfully, but these errors were encountered: