microsoft / microsoft/monaco-editor
[Bug] Code actions tooltip "Ctrl + Enter" to preview is not functional
Open
@justschen is already working on this.
Since Dec 14, 2023.
bug
editor-core
- Dominant language
- JavaScript
- Stars
- 46.8k
- Forks
- 4.1k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 1
Description
Reproducible in vscode.dev or in VS Code Desktop?
- Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
- Not reproducible in the monaco editor playground
Monaco Editor Playground Link
Monaco Editor Playground Code
const text = `function hello() {
alert('Hello world!');
}`;
// Hover on each property to see its docs!
monaco.editor.create(document.getElementById("container"), {
value: text,
language: "javascript",
automaticLayout: true,
});
Reproduction Steps
Write the following text in the preview editor:
function hello() {
alert('Hello world!');
}
hell
Check out the quick fix for the word "hell". Hover over that option.
A tooltip with the text "Etner to apply, Ctrl + Enter to preview" will appear.
Press Ctrl + Enter.
Actual (Problematic) Behavior
Same behavior as pressing "Enter". That option is being selected.
Expected Behavior
If Ctrl + Enter doesn't do anything, then it should be removed.
Additional Context
Hey,
Is there an option to remove this tooltip? or to change the text of the tooltip?
Ctrl + Enter is not doing anything different then just clicking "Enter".
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.