Java icon indicating copy to clipboard operation
Java copied to clipboard

Hi

Open SBJgamer opened this issue 3 years ago • 4 comments

Hi im new on github i need 5 star only can you help me for complete my task

SBJgamer avatar May 19 '21 22:05 SBJgamer

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
            }
                ...
            }

1819981451 avatar Jul 12 '21 09:07 1819981451

help you with what??

juaniscoding avatar Dec 01 '23 14:12 juaniscoding

感谢来信!已收到您的邮件!

SiweiZhong avatar Dec 01 '23 14:12 SiweiZhong

来件已收到,我会尽快回复

huangfuyixiao avatar Dec 01 '23 14:12 huangfuyixiao