Skip to content

Fix organize imports crash with traceResolution#3289

Open
Andarist wants to merge 1 commit intomicrosoft:mainfrom
Andarist:fix/organize-imports-trace-resolution
Open

Fix organize imports crash with traceResolution#3289
Andarist wants to merge 1 commit intomicrosoft:mainfrom
Andarist:fix/organize-imports-trace-resolution

Conversation

@Andarist
Copy link
Copy Markdown
Contributor

fixes a crash found here #3281 (comment)

// Trace implements compiler.CompilerHost.
func (c *compilerHost) Trace(msg *diagnostics.Message, args ...any) {
panic("unimplemented")
if c == nil || msg == nil {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would c ever be nil?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants