Skip to content

Handle getScriptVersion correctly to ensure program structure is checked correctly - #36808

Merged
Sheetal Nandi (sheetalkamat) merged 6 commits into
masterfrom
isUptoDate
Feb 26, 2020
Merged

Handle getScriptVersion correctly to ensure program structure is checked correctly#36808
Sheetal Nandi (sheetalkamat) merged 6 commits into
masterfrom
isUptoDate

Conversation

@sheetalkamat

Copy link
Copy Markdown
Member

Fixes#36748

This means earlier we were creating fresh program everytime we did LS operation
Now we reuse same program, so quick info depends on order of quickinfo demands
…valuated before finding references, it cant find all definitions from the merge

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.

I don't have enough context to understand this change. From the bug, it sounds like the fix applies to language service API users. Does it affect our usage of the language service too?

Comment threadsrc/server/editorServices.ts Outdated
Comment threadsrc/server/editorServices.ts
Comment threadsrc/server/project.ts Outdated
Comment threadsrc/server/scriptInfo.ts
Comment threadtests/cases/fourslash/findAllRefs_importType_js.ts
Comment threadtests/cases/fourslash/findAllRefs_importType_js.ts
Co-Authored-By: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
@sheetalkamat

Copy link
Copy Markdown
MemberAuthor

Nathan Shively-Sanders (@sandersn) have resolved all the comments.. Please take a look.. thanks

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

isProgramUpToDate reports false because it expects HostCache to include typescript/lib/*.d.ts files

3 participants

@sheetalkamat@sandersn@typescript-bot