Skip to content

No Project on updateOpen in nhn/tui.editor #50868

Closed
@amcasey

Description

@amcasey

nhn/tui.editor Repro is open this, then close it, then open this. AFAICT, opening the first file loads the root tsconfig, which contains the second file. When the second file is opened, the scriptinfo already exists and the root tsconfig is the only containing project. However, it promptly discovers the nearest tsconfig and triggers a cleanup, retaining only that project. It does not seem to actually add the nearby project to the list of containing projects, though it might later, during graph update. One quick fix might be to just skip the telemetry call that's throwing if there are no containing projects (pending graph update).

Originally posted by @amcasey in #50835 (comment)

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputCrawler-DetectedDetected by a crawler running random TSServer operations on public code.Fix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions