Skip to content

Commit c7fd72f

Browse files
committed
fix linter
1 parent af95f17 commit c7fd72f

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/harness/unittests/tsserverProjectSystem.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ namespace ts {
6666
runTsd(cachePath: string, typingsToInstall: string[], postInstallAction: (installedTypings: string[]) => void) {
6767
this.postInstallActions.push(map => {
6868
postInstallAction(map(typingsToInstall));
69-
})
69+
});
7070
}
7171

7272
sendResponse(response: server.InstallTypingsResponse) {
@@ -75,7 +75,7 @@ namespace ts {
7575

7676
enqueueInstallTypingsRequest(project: server.Project, typingOptions: TypingOptions) {
7777
const request = server.createInstallTypingsRequest(project, typingOptions, this.safeFileList, this.packageNameToTypingLocation, this.cachePath);
78-
this.install(request)
78+
this.install(request);
7979
}
8080
}
8181

@@ -260,7 +260,7 @@ namespace ts {
260260

261261
readonly watchedDirectories: MapLike<{ cb: DirectoryWatcherCallback, recursive: boolean }[]> = {};
262262
readonly watchedFiles: MapLike<FileWatcherCallback[]> = {};
263-
263+
264264
private filesOrFolders: FileOrFolder[];
265265

266266
constructor(public useCaseSensitiveFileNames: boolean, private executingFilePath: string, private currentDirectory: string, fileOrFolderList: FileOrFolder[]) {
@@ -428,9 +428,9 @@ namespace ts {
428428
}
429429

430430
writeFile(path: string, content: string): void {
431-
this.createFileOrFolder({ path, content, fileSize: content.length })
431+
this.createFileOrFolder({ path, content, fileSize: content.length });
432432
}
433-
433+
434434
createFileOrFolder(f: FileOrFolder, createParentDirectory = false): void {
435435
const base = getDirectoryPath(f.path);
436436
if (base !== f.path && !this.directoryExists(base)) {
@@ -446,7 +446,7 @@ namespace ts {
446446
filesOrFolders.push(f);
447447
this.reloadFS(filesOrFolders);
448448
}
449-
449+
450450
readonly readFile = (s: string) => (<File>this.fs.get(this.toPath(s))).content;
451451
readonly resolvePath = (s: string) => s;
452452
readonly getExecutingFilePath = () => this.executingFilePath;
@@ -1520,15 +1520,15 @@ namespace ts {
15201520
const host = createServerHost([file1, tsconfig, packageJson]);
15211521
class TypingInstaller extends TestTypingsInstaller {
15221522
cachePath = "/a/data/";
1523-
constructor(host: server.ServerHost) {
1523+
constructor(host: server.ServerHost) {
15241524
super(host);
15251525
}
15261526
};
15271527
const installer = new TypingInstaller(host);
15281528
const projectService = new server.ProjectService(host, nullLogger, nullCancellationToken, /*useSingleInferredProject*/ true, installer);
15291529
projectService.openClientFile(file1.path);
15301530

1531-
checkNumberOfProjects(projectService, { configuredProjects: 1 })
1531+
checkNumberOfProjects(projectService, { configuredProjects: 1 });
15321532
const p = projectService.configuredProjects[0];
15331533
checkProjectActualFiles(p, [ file1.path ]);
15341534

@@ -1539,7 +1539,7 @@ namespace ts {
15391539
host.createFileOrFolder(jquery, /*createParentDirectory*/ true);
15401540
return ["jquery/jquery.d.ts"];
15411541
});
1542-
checkNumberOfProjects(projectService, { configuredProjects: 1 })
1542+
checkNumberOfProjects(projectService, { configuredProjects: 1 });
15431543
checkProjectActualFiles(p, [ file1.path, jquery.path ]);
15441544
});
15451545
});

src/server/server.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ namespace ts.server {
179179
attach(projectService: ProjectService) {
180180
this.projectService = projectService;
181181
if (this.logger.hasLevel(LogLevel.requestTime)) {
182-
this.logger.info("Binding...")
182+
this.logger.info("Binding...");
183183
}
184184

185185
this.installer = childProcess.fork(combinePaths(__dirname, "typingsInstaller.js"));
@@ -188,7 +188,7 @@ namespace ts.server {
188188

189189
enqueueInstallTypingsRequest(project: Project, typingOptions: TypingOptions): void {
190190
const request = createInstallTypingsRequest(
191-
project,
191+
project,
192192
typingOptions,
193193
/*safeListPath*/ <Path>(combinePaths(process.cwd(), "typingSafeList.json")), // TODO: fixme
194194
/*packageNameToTypingLocation*/ createMap<string>(), // TODO: fixme
@@ -202,7 +202,7 @@ namespace ts.server {
202202

203203
private handleMessage(response: InstallTypingsResponse) {
204204
if (this.logger.hasLevel(LogLevel.verbose)) {
205-
this.logger.info(`Received response: ${JSON.stringify(response)}`)
205+
this.logger.info(`Received response: ${JSON.stringify(response)}`);
206206
}
207207
this.projectService.updateTypingsForProject(response);
208208
}

0 commit comments

Comments
 (0)