mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-11 06:02:53 -05:00
Ignore symbolic links when enumerating directories
This commit is contained in:
@@ -232,7 +232,7 @@ module ts {
|
||||
var directories: string[] = [];
|
||||
for (var i = 0; i < files.length; i++) {
|
||||
var name = combinePaths(path, files[i]);
|
||||
var stat = _fs.statSync(name);
|
||||
var stat = _fs.lstatSync(name);
|
||||
if (stat.isFile()) {
|
||||
if (!extension || fileExtensionIs(name, extension)) {
|
||||
result.push(name);
|
||||
|
||||
@@ -323,8 +323,9 @@ module ts {
|
||||
startTimer();
|
||||
}
|
||||
|
||||
// Upon detecting a file change, wait for the 250ms and then perform a recompilation. The reasoning is that
|
||||
// in some cases an editor can save all files at once, and we'd like to just perform a single recompilation.
|
||||
// Upon detecting a file change, wait for 250ms and then perform a recompilation. This gives batch
|
||||
// operations (such as saving all modified files in an editor) a chance to complete before we kick
|
||||
// off a new compilation.
|
||||
function startTimer() {
|
||||
if (timerHandle) {
|
||||
clearTimeout(timerHandle);
|
||||
|
||||
Reference in New Issue
Block a user