def run(self, edit):
		active_file_path = self.active_file_path();

		root = JsDuck.detectRoot(sublime, active_file_path);
		if not root:
			sublime.status_message('Active file path does not contain project.');
			return;

		if JsDuck.isActive(): 
			sublime.status_message('JsDuck is already active...');
			return;

		JsDuck.buildJsDuck(sublime, root);
Пример #2
0
    def run(self, edit):
        active_file_path = self.active_file_path()

        root = JsDuck.detectRoot(sublime, active_file_path)
        if not root:
            sublime.status_message(
                'Active file path does not contain project.')
            return

        if JsDuck.isActive():
            sublime.status_message('JsDuck is already active...')
            return

        JsDuck.buildJsDuck(sublime, root)
	def __doUpdate(self, filePath):
		global lastRun;
		lastRun = time.time();
		root = JsDuck.detectRoot(sublime, filePath);
		sublime.set_timeout(lambda: JsDuck.buildJsDuck(sublime, root), 10)
Пример #4
0
 def __doUpdate(self, filePath):
     global lastRun
     lastRun = time.time()
     root = JsDuck.detectRoot(sublime, filePath)
     sublime.set_timeout(lambda: JsDuck.buildJsDuck(sublime, root), 10)