Skip to content

Commit 9b60d84

Browse files
authored
Merge pull request #554 from Microsoft/fixBUild
Fix the issue that inferred projects with non-file project name are treated as configed projects
2 parents 3216938 + 574ae67 commit 9b60d84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

typescript/commands/build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ def run(self):
1515
file_name = self.window.active_view().file_name()
1616
project_info = cli.service.project_info(file_name)
1717
if project_info["success"]:
18-
if "configFileName" in project_info["body"]:
18+
body = project_info["body"]
19+
if ("configFileName" in body) and body["configFileName"].endswith(".json"):
1920
tsconfig_dir = dirname(project_info["body"]["configFileName"])
2021
self.window.run_command("exec", {
2122
"cmd": [get_node_path(), get_tsc_path(), "-p", tsconfig_dir],

0 commit comments

Comments
 (0)