Skip to content
New issue

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

[Bug] Illegal value for lineNumber #4730

Open
1 of 2 tasks
joecarl opened this issue Oct 29, 2024 · 0 comments
Open
1 of 2 tasks

[Bug] Illegal value for lineNumber #4730

joecarl opened this issue Oct 29, 2024 · 0 comments

Comments

@joecarl
Copy link
Contributor

joecarl commented Oct 29, 2024

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.52.0#XQAAAAIkAgAAAAAAAABBqQkHQ5NjdMjwa-jY7SIQ9S7DNlzs5W-mwj0fe1ZCDRFc9ws9XQE0SJE1jc2VKxhaLFIw9vEWSxW3yscw0kd0FVciAJM8XEuX7Os378jBGtVLkr6ryuhqvky-XZ9Sy0vyFSI1m9lYQpwqOsaKmhydYWIo-9hGbv_4wlPIsEpVooDN3UCgYV8kLlvOGD8rooZ1WJ_A9v5uEdBOb0AipkE4nFHt4fpakpkyG-1p7O0Lqu0PLvpSZ-3czGDL5Ch4Rq5b3TwBB3i3RQ8ipOflrAzAJPxJXesguDmuXGiOs8DBjdIHDXn-9abB035-a5xuJsBfqx0optiY_XFBiwyMG4FfmSnqz13FpC3GYYZNpzBdgbnYxXgg2V5Eh1f_7ytxGQ

Monaco Editor Playground Code

const originalModel = monaco.editor.createModel(
	/* set from `originalModel`: */ `hello world`,
	"text/plain"
);
const modifiedModel = monaco.editor.createModel(
	/* set from `modifiedModel`: */ `hello world
hello world
hello world`,
	"text/plain"
);

const diffEditor = monaco.editor.createDiffEditor(
	document.getElementById("container"),
	{
		originalEditable: true,
		automaticLayout: true,
	}
);
diffEditor.setModel({
	original: originalModel,
	modified: modifiedModel,
});

Reproduction Steps

Select lines 2 and 3 in the right editor and then hit Del key.

Actual (Problematic) Behavior

Removing lines in any diff editor raises the Illegal value for lineNumber error under some circumstances.

Expected Behavior

No response

Additional Context

Using version 0.52.0
This error doesn't happen with version 0.51.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant