Skip to content

Commit 89a9034

Browse files
committed
Comments
1 parent 448829a commit 89a9034

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/project/project.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,12 +515,15 @@ func (p *Project) updateProgram() bool {
515515
var oldProgramReused bool
516516
if p.program == nil || p.dirtyFilePath == "" {
517517
if p.programConfig == nil {
518+
// Get from config file = config file root files + typings files
518519
if p.parsedCommandLine != nil {
520+
// There are no typing files so use the parsed command line as is
519521
if len(p.typingFiles) == 0 {
520522
p.programConfig = p.parsedCommandLine
521523
} else {
524+
// Update the fileNames
522525
parsedConfig := *p.parsedCommandLine.ParsedConfig
523-
parsedConfig.FileNames = p.GetRootFileNames()
526+
parsedConfig.FileNames = append(p.parsedCommandLine.FileNames(), p.typingFiles...)
524527
p.programConfig = &tsoptions.ParsedCommandLine{
525528
ParsedConfig: &parsedConfig,
526529
ConfigFile: p.parsedCommandLine.ConfigFile,

0 commit comments

Comments
 (0)