diff --git a/src/harness/unittests/tsserverProjectSystem.ts b/src/harness/unittests/tsserverProjectSystem.ts index c4a641d5b13..71f5abd1ba8 100644 --- a/src/harness/unittests/tsserverProjectSystem.ts +++ b/src/harness/unittests/tsserverProjectSystem.ts @@ -66,7 +66,7 @@ namespace ts { runTsd(cachePath: string, typingsToInstall: string[], postInstallAction: (installedTypings: string[]) => void) { this.postInstallActions.push(map => { postInstallAction(map(typingsToInstall)); - }) + }); } sendResponse(response: server.InstallTypingsResponse) { @@ -75,7 +75,7 @@ namespace ts { enqueueInstallTypingsRequest(project: server.Project, typingOptions: TypingOptions) { const request = server.createInstallTypingsRequest(project, typingOptions, this.safeFileList, this.packageNameToTypingLocation, this.cachePath); - this.install(request) + this.install(request); } } @@ -260,7 +260,7 @@ namespace ts { readonly watchedDirectories: MapLike<{ cb: DirectoryWatcherCallback, recursive: boolean }[]> = {}; readonly watchedFiles: MapLike = {}; - + private filesOrFolders: FileOrFolder[]; constructor(public useCaseSensitiveFileNames: boolean, private executingFilePath: string, private currentDirectory: string, fileOrFolderList: FileOrFolder[]) { @@ -428,9 +428,9 @@ namespace ts { } writeFile(path: string, content: string): void { - this.createFileOrFolder({ path, content, fileSize: content.length }) + this.createFileOrFolder({ path, content, fileSize: content.length }); } - + createFileOrFolder(f: FileOrFolder, createParentDirectory = false): void { const base = getDirectoryPath(f.path); if (base !== f.path && !this.directoryExists(base)) { @@ -446,7 +446,7 @@ namespace ts { filesOrFolders.push(f); this.reloadFS(filesOrFolders); } - + readonly readFile = (s: string) => (this.fs.get(this.toPath(s))).content; readonly resolvePath = (s: string) => s; readonly getExecutingFilePath = () => this.executingFilePath; @@ -1520,7 +1520,7 @@ namespace ts { const host = createServerHost([file1, tsconfig, packageJson]); class TypingInstaller extends TestTypingsInstaller { cachePath = "/a/data/"; - constructor(host: server.ServerHost) { + constructor(host: server.ServerHost) { super(host); } }; @@ -1528,7 +1528,7 @@ namespace ts { const projectService = new server.ProjectService(host, nullLogger, nullCancellationToken, /*useSingleInferredProject*/ true, installer); projectService.openClientFile(file1.path); - checkNumberOfProjects(projectService, { configuredProjects: 1 }) + checkNumberOfProjects(projectService, { configuredProjects: 1 }); const p = projectService.configuredProjects[0]; checkProjectActualFiles(p, [ file1.path ]); @@ -1539,7 +1539,7 @@ namespace ts { host.createFileOrFolder(jquery, /*createParentDirectory*/ true); return ["jquery/jquery.d.ts"]; }); - checkNumberOfProjects(projectService, { configuredProjects: 1 }) + checkNumberOfProjects(projectService, { configuredProjects: 1 }); checkProjectActualFiles(p, [ file1.path, jquery.path ]); }); }); diff --git a/src/server/server.ts b/src/server/server.ts index b2a7a39b464..02bfa9b81f8 100644 --- a/src/server/server.ts +++ b/src/server/server.ts @@ -179,7 +179,7 @@ namespace ts.server { attach(projectService: ProjectService) { this.projectService = projectService; if (this.logger.hasLevel(LogLevel.requestTime)) { - this.logger.info("Binding...") + this.logger.info("Binding..."); } this.installer = childProcess.fork(combinePaths(__dirname, "typingsInstaller.js")); @@ -188,7 +188,7 @@ namespace ts.server { enqueueInstallTypingsRequest(project: Project, typingOptions: TypingOptions): void { const request = createInstallTypingsRequest( - project, + project, typingOptions, /*safeListPath*/ (combinePaths(process.cwd(), "typingSafeList.json")), // TODO: fixme /*packageNameToTypingLocation*/ createMap(), // TODO: fixme @@ -202,7 +202,7 @@ namespace ts.server { private handleMessage(response: InstallTypingsResponse) { if (this.logger.hasLevel(LogLevel.verbose)) { - this.logger.info(`Received response: ${JSON.stringify(response)}`) + this.logger.info(`Received response: ${JSON.stringify(response)}`); } this.projectService.updateTypingsForProject(response); }