Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lsp): better handling of data: urls #18527

Merged
merged 5 commits into from
Mar 31, 2023

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Mar 31, 2023

  1. Log instead of error when the referrer can't be found
  2. Fixes typescript to resolve data urls correctly. Properly documented here: https://github.com/denoland/TypeScript/pull/4/files#diff-180da7c288743d11d8590d30f0c07c48e5dcf291aa671bbea0dd520a9a1359d2

Closes #18524

@dsherret dsherret changed the title fix(lsp): log instead of error when the referrer can't be found fix(lsp): better handling of data: urls Mar 31, 2023
@@ -6712,6 +6712,9 @@ ${lanes.join("\n")}
}
return ~path.length;
}
if (path.startsWith("data:")) {
return ~path.length;
}
Copy link
Member Author

@dsherret dsherret Mar 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dsherret dsherret marked this pull request as ready for review March 31, 2023 16:07
Copy link
Contributor

@mmastrac mmastrac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dsherret dsherret enabled auto-merge (squash) March 31, 2023 16:44
@dsherret dsherret merged commit 87ccd4b into denoland:main Mar 31, 2023
@dsherret dsherret deleted the lsp_log_instead_error branch March 31, 2023 17:38
mmastrac pushed a commit that referenced this pull request Mar 31, 2023
1. Log instead of error when the referrer can't be found
2. Fixes typescript to resolve data urls correctly. Properly documented
here:
https://github.com/denoland/TypeScript/pull/4/files#diff-180da7c288743d11d8590d30f0c07c48e5dcf291aa671bbea0dd520a9a1359d2

Closes #18524
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.

LSP errors very agressively on files containing data: url imports
2 participants