golangconfig: Fix operation when no project file is open in ST3

Previously settings loading functionality assumed that a project
was opened when being run in Sublime Text 3. This fixes the mocks
to properly replicate the behavior of ST3, and adds a check to
_get_most_specific_setting() before trying to use project data.

Change-Id: Ia646345701092f454fd762af2bb527a51d530ef2
Reviewed-on: https://go-review.googlesource.com/16250
Reviewed-by: Jason Buberel <jbuberel@google.com>
2 files changed
tree: 6bad6eb02201f87f116e8005a2c72f51def2eb55
  1. all/
  2. dev/
  3. docs/
  4. .gitignore
  5. .pep8
  6. .sublime-dependency
  7. AUTHORS
  8. CONTRIBUTING.md
  9. CONTRIBUTORS
  10. LICENSE
  11. Main.sublime-menu
  12. PATENTS
  13. readme.md
readme.md

golangconfig

golangconfig is a Sublime Text dependency designed to be a common API for configuration of Go environment variables. It is intended to be used by any and all Go-related Sublime Text packages in an effort to help reduce duplication of user configuration.

The documentation for the package is split into two audiences:

Other documentation: