Skip to content

Conversation

weswigham
Copy link
Member

@weswigham weswigham commented Nov 16, 2018

To allow the underlying file to drift out of date with the sourcemap without a crash. (This means declaration maps get more inaccurate the longer it's been since the sourcemap was updated)

As the TODO mentions, in an ideal world, I think we track edits to the sourcemapped file between when the sourcemap was generated and when we request positions in that file, and apply those edits to the linemap we generate for the mappings and the positions we generate from it; but I don't think we have much in place to do that efficiently right now (since it would require monitoring a file we otherwise wouldn't be looking at).

Fixes #25844

…he underlying file to drift out of date with the sourcemap without a crash
@weswigham weswigham merged commit cd08a22 into microsoft:master Nov 17, 2018
@weswigham weswigham deleted the project-references-position-out-of-range-crash branch November 17, 2018 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants