File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -341,15 +341,14 @@ func (p *Project) GetLanguageServiceForRequest(ctx context.Context) (*ls.Languag
341
341
if program == nil {
342
342
panic ("must have gced by other request" )
343
343
}
344
- checkerPool := p .checkerPool
345
344
snapshot := & snapshot {
346
345
project : p ,
347
346
positionEncoding : p .host .PositionEncoding (),
348
347
program : program ,
349
348
}
350
349
languageService := ls .NewLanguageService (ctx , snapshot )
351
350
cleanup := func () {
352
- if checkerPool .isRequestCheckerInUse (core .GetRequestID (ctx )) {
351
+ if p . checkerPool != nil && p . checkerPool .isRequestCheckerInUse (core .GetRequestID (ctx )) {
353
352
panic (fmt .Errorf ("checker for request ID %s not returned to pool at end of request" , core .GetRequestID (ctx )))
354
353
}
355
354
}
You can’t perform that action at this time.
0 commit comments