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:
- Created 2 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m also looking at it. But i’m new to javascript
I don’t know exactly why t.getActiveCodeEditor returns null, but it seems that its setActiveCodeEditor has never been called