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. .gitignore
  2. .pep8
  3. .sublime-dependency
  4. AUTHORS
  5. CONTRIBUTING.md
  6. CONTRIBUTORS
  7. LICENSE
  8. Main.sublime-menu
  9. PATENTS
  10. all/
  11. dev/
  12. docs/
  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: