def open(self, view):
""" Should be called if a new view is opened, and this view belongs
to the same tsconfig.json file """
if view not in self.views:
Debug('project+', "View %s added to project %s" % (view.file_name(), self.tsconfigfile))
self.views.append(view)
view.settings().set('auto_complete', self.get_setting("auto_complete"))
view.settings().set('extensions', ['ts'])
window = view.window()
if window is None:
Debug('notify', "ArcticTypescript: Window is None, why??")
return
if window not in self.windows:
Debug('project+', "New Window added to project %s" % (self.tsconfigfile, ))
self.windows.append(view.window())
评论列表
文章目录