Skip to content

Commit cdf4cde

Browse files
author
Zhengbo Li
committed
Merge pull request microsoft#9002 from zhengbli/moreTsserverTests
Add tests for tsserver project system
2 parents 8b7fb8e + 78792df commit cdf4cde

4 files changed

Lines changed: 300 additions & 22 deletions

File tree

src/compiler/sys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace 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;

src/server/editorServices.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

src/services/services.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)