Java
Java copied to clipboard
Hi
Hi im new on github i need 5 star only can you help me for complete my task
The following code contains the reason to Go to Next difference (F7) bug and have corresponding comments The following code is in min/VS/Editor/editor.main.js
class N extends c.EditorAction {
constructor() {
super({
id: "editor.action.diffReview.next",
label: i.localize(10, null),
alias: "Go to Next Difference",
precondition: v.ContextKeyExpr.has("isInDiffEditor"),
kbOpts: {kbExpr: null, primary: 65, weight: 100}
})
}
run(e, t) {
const i = M(e);//Because M(e) return null, i = null
i && i.diffReviewNext()//Because i = null, i.diffreviewnext() will not be executed
}
}
function M(e) {
const t = e.get(h.ICodeEditorService), i = t.listDiffEditors(), n = t.getActiveCodeEditor();//n=null
if (!n) return null;//In JavaScript ! Null is true, so M(e) also return null
for (let e = 0, t = i.length; e < t; e++) {
const t = i[e]
;
if (t.getModifiedEditor().getId() === n.getId() || t.getOriginalEditor().getId() === n.getId()) return t
}
return null
}
class s extends o.CodeEditorServiceImpl {
getActiveCodeEditor() {
return null
}
...
}
help you with what??
感谢来信!已收到您的邮件!
来件已收到,我会尽快回复