def _ask_for_files(self, dialog=True):
""" Ask to define all files which are the roots of the reference tree """
if dialog:
sublime.message_dialog("Please name all files which should be compiled, relative to %s/ \n \n You don't need to specify files which are refrenced using /// <reference> or import a = require('a');\n\n So only name the files which are on top of your reference tree.\n\n Press <Esc> or enter nothing to finish." % self.tsconfigfolder)
firstfile = os.path.relpath(self.view.file_name(), self.tsconfigfolder)
Debug('project+', 'Ask for files')
self.window.show_input_panel("(%i) Please name all files which should be compiled, relative to %s/"
% (len(self.files), self.tsconfigfolder),
firstfile if dialog else "",
lambda file: self._file_entered(file),
None, # on change
lambda: self._file_entered(""))
评论列表
文章目录