We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f949f59 commit 8241a46Copy full SHA for 8241a46
src/tsc/context.ts
@@ -1,3 +1,4 @@
1
+import path from 'node:path'
2
import Debug from 'debug'
3
import type ts from 'typescript'
4
@@ -29,6 +30,7 @@ export function createContext(): TscContext {
29
30
}
31
32
export function invalidateContextFile(context: TscContext, file: string): void {
33
+ file = path.resolve(file).replaceAll('\\', '/')
34
debug(`invalidating context file: ${file}`)
35
context.files.delete(file)
36
context.programs = context.programs.filter((program) => {
0 commit comments