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
No response
editorInstance.setSelection({startLineNumber: 4,startColumn: 12,endLineNumber: 4,endColumn: 14});
I am using "monaco-editor": "0.41.0" version
The text was updated successfully, but these errors were encountered:
XX
const editor = monaco.editor.create(document.getElementById("container"), { value: '123456789012345678901234567890\n123456789012345678901234567890\n123456789012345678901234567890\n12345678901XX45678901234567890', language: "plaintext", }); const commandId = editor.addCommand( 0, function () { editor.setSelection({startLineNumber: 4,startColumn: 12,endLineNumber: 4,endColumn: 14}); }, "" ); monaco.languages.registerCodeLensProvider("plaintext", { provideCodeLenses: function (model, token) { return { lenses: [ { range: { startLineNumber: 1, startColumn: 1, endLineNumber: 2, endColumn: 1, }, id: "command.setSelection", command: { id: commandId, title: "Set Selection", }, }, ], dispose: () => {}, }; }, });
Sorry, something went wrong.
No branches or pull requests
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
Reproduction Steps
editorInstance.setSelection({startLineNumber: 4,startColumn: 12,endLineNumber: 4,endColumn: 14});
I am using "monaco-editor": "0.41.0" version
Actual (Problematic) Behavior
No response
Expected Behavior
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: