Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions internal/ls/codeactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"slices"

"github.com/microsoft/typescript-go/internal/ast"
"github.com/microsoft/typescript-go/internal/checker"
"github.com/microsoft/typescript-go/internal/compiler"
"github.com/microsoft/typescript-go/internal/core"
"github.com/microsoft/typescript-go/internal/lsp/lsproto"
Expand All @@ -25,7 +24,6 @@ type CodeFixContext struct {
Span core.TextRange
ErrorCode int32
Program *compiler.Program
Checker *checker.Checker
LS *LanguageService
Diagnostic *lsproto.Diagnostic
Params *lsproto.CodeActionParams
Expand Down Expand Up @@ -53,12 +51,6 @@ var codeFixProviders = []*CodeFixProvider{
func (l *LanguageService) ProvideCodeActions(ctx context.Context, params *lsproto.CodeActionParams) (lsproto.CodeActionResponse, error) {
program, file := l.getProgramAndFile(params.TextDocument.Uri)

// Get the type checker
ch, done := program.GetTypeCheckerForFile(ctx, file)
if done != nil {
defer done()
}

var actions []lsproto.CommandOrCodeAction

// Process diagnostics in the context to generate quick fixes
Expand All @@ -84,7 +76,6 @@ func (l *LanguageService) ProvideCodeActions(ctx context.Context, params *lsprot
Span: core.NewTextRange(int(position), int(endPosition)),
ErrorCode: errorCode,
Program: program,
Checker: ch,
LS: l,
Diagnostic: diag,
Params: params,
Expand Down