def isTypescript(view=None):
    if view is None:
        view = sublime.active_window().active_view()
    return 'source.ts' in view.scope_name(0)
dataset/ETHPy150Open lavrton/sublime-better-typescript/TypeScript.py/isTypescript/original