Skip to content

Hi #113

Description

@SBJgamer

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

Activity

  1. 1819981451 commented on Jul 12, 2021

    @1819981451

    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
                }
                    ...
                }
    
  2. juaniscoding commented on Dec 1, 2023

    @juaniscoding

    help you with what??

  3. SiweiZhong commented on Dec 1, 2023

    @SiweiZhong
  4. huangfuyixiao commented on Dec 1, 2023

    @huangfuyixiao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions