File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -515,12 +515,15 @@ func (p *Project) updateProgram() bool {
515
515
var oldProgramReused bool
516
516
if p .program == nil || p .dirtyFilePath == "" {
517
517
if p .programConfig == nil {
518
+ // Get from config file = config file root files + typings files
518
519
if p .parsedCommandLine != nil {
520
+ // There are no typing files so use the parsed command line as is
519
521
if len (p .typingFiles ) == 0 {
520
522
p .programConfig = p .parsedCommandLine
521
523
} else {
524
+ // Update the fileNames
522
525
parsedConfig := * p .parsedCommandLine .ParsedConfig
523
- parsedConfig .FileNames = p . GetRootFileNames ( )
526
+ parsedConfig .FileNames = append ( p . parsedCommandLine . FileNames (), p . typingFiles ... )
524
527
p .programConfig = & tsoptions.ParsedCommandLine {
525
528
ParsedConfig : & parsedConfig ,
526
529
ConfigFile : p .parsedCommandLine .ConfigFile ,
You can’t perform that action at this time.
0 commit comments