File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33namespace ts {
44 export type FileWatcherCallback = ( fileName : string , removed ?: boolean ) => void ;
5- export type DirectoryWatcherCallback = ( directoryName : string ) => void ;
5+ export type DirectoryWatcherCallback = ( fileName : string ) => void ;
66 export interface WatchedFile {
77 fileName : string ;
88 callback : FileWatcherCallback ;
Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ namespace ts.server {
268268 }
269269
270270 removeRoot ( info : ScriptInfo ) {
271- if ( ! this . filenameToScript . contains ( info . path ) ) {
271+ if ( this . filenameToScript . contains ( info . path ) ) {
272272 this . filenameToScript . remove ( info . path ) ;
273273 this . roots = copyListRemovingItem ( info , this . roots ) ;
274274 this . resolvedModuleNames . remove ( info . path ) ;
Original file line number Diff line number Diff line change @@ -2919,6 +2919,7 @@ namespace ts {
29192919 const changesInCompilationSettingsAffectSyntax = oldSettings &&
29202920 ( oldSettings . target !== newSettings . target ||
29212921 oldSettings . module !== newSettings . module ||
2922+ oldSettings . moduleResolution !== newSettings . moduleResolution ||
29222923 oldSettings . noResolve !== newSettings . noResolve ||
29232924 oldSettings . jsx !== newSettings . jsx ||
29242925 oldSettings . allowJs !== newSettings . allowJs ) ;
You can’t perform that action at this time.
0 commit comments