def is_enabled(self): v = self.window.active_view() if v and fs.is_fsharp_project(v.file_name()): return True msg = 'FSharp: Not a project file.' print(msg) sublime.status_message(msg) return False
def test_is_fsharp_project_can_fail(self): self.assertFalse(fs.is_fsharp_project('foo.txt'))
def test_can_detect_fs_project_file(self): self.assertTrue(fs.is_fsharp_project('foo.fsproj'))