microsoft / microsoft/monaco-editor

[Bug] Code actions tooltip "Ctrl + Enter" to preview is not functional

Open
#3,723 0 comments 0 reactions 2 assignees View on GitHub

@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?
Monaco Editor Playground Link

https://microsoft.github.io/monaco-editor/playground.html?source=v0.36.1#example-creating-the-editor-hello-world

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.