Beispiel #1
0
    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
Beispiel #2
0
    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
Beispiel #3
0
 def test_is_fsharp_project_can_fail(self):
     self.assertFalse(fs.is_fsharp_project('foo.txt'))
Beispiel #4
0
 def test_can_detect_fs_project_file(self):
     self.assertTrue(fs.is_fsharp_project('foo.fsproj'))