go-language-server v0.6.56 Release Notes

Release Date: 2017-03-29 // about 7 years ago
  • Editing improvements

    • Ramya Rao (@ramya-rao-a)
      • Use gomodifytags to add/remove tags on selected struct fields. PR 880
        • If there is no selection, then the whole struct under the cursor will be selected for the tag modification.
        • Go: Add Tags command adds tags configured in go.addTags setting to selected struct fields. By default, json tags are added. Examples:
          • To add xml tags, set go.addTags to {"tags": "xml"}
          • To add xml with cdata option, set go.addTags to {"tags": "xml", "options": "xml=cdata"}
          • To add both json and xml tags, set go.addTags to {"tags": "json,xml"}
        • Go: Remove Tags command removes tags configured in go.removeTags setting from selected struct fields.
          • By default, all tags are removed.
          • To remove only say xml tags, set go.removeTags to {"tags": "xml"}
        • To be prompted for tags instead of using the configured ones, set go.addTags and/or go.removeTags to {"promptForTags": true}
      • Fix rename issue when diff tool from Git or Cygwin are in the PATH in Windows. PR 866
      • Keywords are now supported in completion suggestions. PR 865
      • Suggestion items to import packages disabled in single line import statements and the line with package definition where they do not make sense. PR 860

    Debugging improvements

    • Ramya Rao (@ramya-rao-a)
      • Support to build and run your Go file. PR 881
        • Press Ctrl+F5 or run the command Debug: Start Without Debugging to run using the currently selected launch configuration.
        • If you don't have a launch.json file, then the current file will be run.
        • Supported only for launch configs with type as debug and program that points to a Go file and not package
      • New envFile attribute in launch.json where you can provide a file with env variables to use while debugging. PR 849
      • Use current file's directory instead of folder opened in VS Code to debug in the default configurations. Commit 0915e50a

    Tooling improvements

    • Ramya Rao (@ramya-rao-a)
      • New Setting go.languageServerFlags that will be passed while running the Go language server. PR 882
        • Set this to ["trace"] to see the traces from the language server in the output pane under the channel "go-langserver"
        • Set this to ["trace", "logfile", "path to a text file to log the trace] to log the traces and errors from the language server to a file.
      • Go: Install Tools command now installs delve as well in Linux and Windows, but not in Mac OSX. Commit 30ea096 Fixes Bug 874
    • netroby @netroby
      • Go: Install Tools command now installs godoc. PR 854

    Others

    • Ramya Rao (@ramya-rao-a)
      • Use GOPATH as defined by the go env output as default. Use go binary from default platform specific locations when GOROOT is not set as env variable. Fixes Bug 873
      • Fix compiling errors for vendor packages in case of symlinks. PR 864
      • Support links in the test output, which then navigates the user to the right line of the test file where tests are failing. PR 885
      • Experimental new setting go.editorContextMenuCommands to control which commands show up in the editor context menu.
    • Albert Callarisa (@acroca) and Ramya Rao (@ramya-rao-a)
      • New setting go.gotoSymbol.ignoreFolders that allows to ignore folders while using the "Go to Symbol in Workspace" feature. This takes in an array of folder names (not paths). Best used to ignore vendor folders while doing a workspace symbol search. PR 795