We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a2d161 commit 4c5a728Copy full SHA for 4c5a728
1 file changed
src/server/scriptInfo.ts
@@ -84,7 +84,10 @@ namespace ts.server {
84
}
85
86
getDefaultProject() {
87
- return this.containingProjects.length === 0 ? Errors.ThrowNoProject() : this.containingProjects[0];
+ if (this.containingProjects.length === 0) {
88
+ return Errors.ThrowNoProject();
89
+ }
90
+ return this.containingProjects[0];
91
92
93
setFormatOptions(formatSettings: FormatCodeSettings): void {
0 commit comments