question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Go to Next Difference doesn't work

See original GitHub issue

**monaco-editor version: official playgournd 0.25.2 **Browser: chrome **OS: windows 10 Playground code that reproduces the issue:

Here is the sample, according to my understanding, Go to Next Difference(F7)" should jump to the last line which has difference. However, it behaves like Select Next Word. Just jump to the next word which is the same as my cursor point to.

var originalModel = monaco.editor.createModel("1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\nheLLo world!", "text/plain");
var modifiedModel = monaco.editor.createModel("1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\n1\nhello orlando!", "text/plain");

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

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
demonguycommented, Jul 2, 2021

I’m also looking at it. But i’m new to javascript

0reactions
1819981451commented, Jul 15, 2021

I don’t know exactly why t.getActiveCodeEditor returns null, but it seems that its setActiveCodeEditor has never been called

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to go to next changes in VS Code side-by-side view?
To go to the next difference use Alt + F5 . To go to the previous difference use Shift + Alt + F5...
Read more >
Command to jump to the next/previous difference in the diff ...
F7 and Shift+F7 navigate through the diff hunks, but they do so in an accessible way. i.e. they are the mechanism through which...
Read more >
vimdiff - how to jump to next difference in long line - shortcut ]c ...
Hi, I have files with long lines and when doing diff it is time consuming to move to the diff change (marked red...
Read more >
vimdiff: Jump to next difference inside line? - Super User
You can jump to the "next difference" ( ] c ), but this will jump to the next line with a difference. Is...
Read more >
Next Section does not go to next file - Scooter Forums
I tried the "Next File" command, but it skips straight to the next file even when there are further differences in the current...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found