Respond to code review comments

This commit is contained in:
Mohamed Hegazy 2014-12-10 13:02:31 -08:00
parent 956a08943b
commit 46fcf91981
2 changed files with 2 additions and 1 deletions

View File

@ -167,6 +167,7 @@ module FourSlash {
settings.module = ts.ModuleKind.CommonJS;
break;
default:
ts.Debug.assert(typeof globalOptions[prop] === "undefined" || globalOptions[prop] === "None");
settings.module = ts.ModuleKind.None;
break;
}

View File

@ -222,7 +222,7 @@ module ts {
throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");
return null;
}
return <CompilerOptions>JSON.parse(<any>settingsJson);
return <CompilerOptions>JSON.parse(settingsJson);
}
public getScriptFileNames(): string[] {