Comments (3)
Just to add an observation: I think this issue is Sonoma specific as watch seems to work on 13.6.4 (Ventura).
from typescript.
When testing this issue, make sure you don't use Vim. Creating/deleting files seems to trigger the file watcher, so it's possible for Vim users to not notice this issue (possibly due to swap files) while VSCode users do.
Consistent repro can be done like:
tsc --watch --watchFile usefseventsonparentdirectory
echo "console.log('Hello world!')" > main.ts
cat main.js
echo "console.log('Hello world 2!')" > main.ts
cat main.js
from typescript.
I found the bisect:
git checkout dc113f8170 // latest `main` as of this post
git revert e40730f
npm run build && npm run build:compiler
I suspect the issue is that the modifiedTime
is the modified time of the directory, not the file. At least when I console.log
it and compare with stat
this seems to be the case, and fileOrDirectory
is printing as the directory and only relativeFileName
has the file.
from typescript.
Related Issues (20)
- TS String Literal Performance: TypeScript string-parsing opts out of tail-recursion HOT 9
- Autocomplete breaks after one property for an array generic HOT 3
- Type narrowed too much HOT 6
- array in conditional type issue HOT 1
- Missing CommonJS import Intellisense after changing file extension from .js to .ts HOT 4
- NoInfer type not being narrowed properly HOT 5
- Preserve type narrowing of readonly properties of classes for use in closures HOT 4
- type guard narrowing to a type with type with `any` in type parameters replaces `any` with `unknown` HOT 8
- `tsc --watch` changes shell's current directory to ~ in Terminal.app while running HOT 4
- A shadowed variable is generated in a an async function with a default parameter declared as a static property of a class when targeting ES5. HOT 2
- can't narrow from `unknown` to "not a number or bigint" HOT 7
- array in conditional type issue HOT 4
- autocomplete workaround for string literal inside template literal stopped working since `v5.3.3` HOT 7
- Improper Type Inference in Async Generator Callback HOT 1
- TypeScript cannot deduce decomposed array type. HOT 13
- Sync/Async mix return types with Generics not allowed HOT 1
- Inconsistent enforcement of allowed keys on an object when using 'extends' HOT 4
- missing import for `fetchUrl` in quick fix menu HOT 2
- Contravariant inference gets picked when a a better covariant candidate exists
- Generator return type always widened HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typescript.