Skip to content

Commit 9badf0c

Browse files
filelist -> fileList
1 parent 287b316 commit 9badf0c

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/server/editorServices.ts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ namespace ts.server {
486486
// number becomes 0 for a watcher, then we should close it.
487487
directoryWatchersRefCount: ts.Map<number> = {};
488488
hostConfiguration: HostConfiguration;
489-
timerForDetectingProjectFilelistChanges: Map<NodeJS.Timer> = {};
489+
timerForDetectingProjectFileListChanges: Map<NodeJS.Timer> = {};
490490

491491
constructor(public host: ServerHost, public psLogger: Logger, public eventHandler?: ProjectServiceEventHandler) {
492492
// ts.disableIncrementalParsing = true;
@@ -541,20 +541,20 @@ namespace ts.server {
541541
}
542542

543543
this.log("Detected source file changes: " + fileName);
544-
this.startTimerForDetectingProjectFilelistChanges(project);
544+
this.startTimerForDetectingProjectFileListChanges(project);
545545
}
546546

547-
startTimerForDetectingProjectFilelistChanges(project: Project) {
548-
if (this.timerForDetectingProjectFilelistChanges[project.projectFilename]) {
549-
clearTimeout(this.timerForDetectingProjectFilelistChanges[project.projectFilename]);
547+
startTimerForDetectingProjectFileListChanges(project: Project) {
548+
if (this.timerForDetectingProjectFileListChanges[project.projectFilename]) {
549+
clearTimeout(this.timerForDetectingProjectFileListChanges[project.projectFilename]);
550550
}
551-
this.timerForDetectingProjectFilelistChanges[project.projectFilename] = setTimeout(
552-
() => this.handleProjectFilelistChanges(project),
551+
this.timerForDetectingProjectFileListChanges[project.projectFilename] = setTimeout(
552+
() => this.handleProjectFileListChanges(project),
553553
250
554554
);
555555
}
556556

557-
handleProjectFilelistChanges(project: Project) {
557+
handleProjectFileListChanges(project: Project) {
558558
const { projectOptions } = this.configFileToProjectOptions(project.projectFilename);
559559

560560
const newRootFiles = projectOptions.files.map((f => this.getCanonicalFileName(f)));
@@ -1083,7 +1083,6 @@ namespace ts.server {
10831083
* Close file whose contents is managed by the client
10841084
* @param filename is absolute pathname
10851085
*/
1086-
10871086
closeClientFile(filename: string) {
10881087
const info = ts.lookUp(this.filenameToScriptInfo, filename);
10891088
if (info) {
@@ -1739,9 +1738,9 @@ namespace ts.server {
17391738
}
17401739

17411740
getLineMapper() {
1742-
return ((line: number) => {
1741+
return (line: number) => {
17431742
return this.index.lineNumberToInfo(line).offset;
1744-
});
1743+
};
17451744
}
17461745

17471746
getTextChangeRangeSinceVersion(scriptVersion: number) {

0 commit comments

Comments
 (0)