• @perviouslyiner@lemmy.world
    link
    fedilink
    3
    edit-2
    1 year ago

    “oh, the line you are typing is incomplete and therefore the whole file is invalid which means there is nothing to suggest for autocomplete”

  • unalivejoy
    link
    fedilink
    English
    21 year ago

    Meanwhile rust when you try to use a variable before saving.

  • Aliyss
    link
    fedilink
    11 year ago

    Just type faster than the LSP needs to check. I don’t see an issue.

  • myxi
    link
    fedilink
    English
    1
    edit-2
    1 year ago

    I turn off LSPs during my train of thoughts. I don’t want all red and yellow underline bullshit to disrupt my thoughts. Like, calm the fuck down. I WILL write the correct code eventually; just give me some fucking time.

    Well, I use Neovim, so turning off the LSPs or restarting them is sufficiently simple.

    When I work on a new project, or on a new feature, I temporarily turn off the LSP, and rely on the compiler to figure out where the code errors. Plain white text gives me the freedom to write whatever the fuck I want without any disruption. Of course, I eventually turn on the LSP again to fix the little issues.

    • @dvlsg@lemmy.world
      link
      fedilink
      English
      01 year ago

      Just enable format-on-save. That way gofmt can helpfully delete that variable you just added that you were for sure never going to use. You’re welcome!

      • ShieldGengar
        link
        fedilink
        11 year ago

        My thing is imports. Like, why, why do you delete it right after I typed it in and saved?

  • @Venator@lemmy.nz
    link
    fedilink
    -1
    edit-2
    1 year ago

    Sometimes I think it could be easier to just use the variable before its declared and then let the IDE auto fix create it, but I never remember to try it 😂