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): do not warn about local file "redirects" from .js to .d.ts files #22670

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Mar 2, 2024

The diagnostic was incorrect when importing a .js file with a corresponding .d.ts file with sloppy imports because it would say to change the .js extension to .d.ts, which is incorrect. We might as well just hide this diagnostic.

@dsherret dsherret changed the title fix(lsp): do not warn about redirects to .d.ts files or to files in an npm pkg fix(lsp): do not warn about sloppy import redirects from .js to .d.ts files or to files in an npm pkg Mar 4, 2024
@dsherret dsherret changed the title fix(lsp): do not warn about sloppy import redirects from .js to .d.ts files or to files in an npm pkg fix(lsp): do not warn about sloppy import redirects from .js to .d.ts files Mar 4, 2024
@dsherret dsherret changed the title fix(lsp): do not warn about sloppy import redirects from .js to .d.ts files fix(lsp): do not warn about local file "redirects" from .js to .d.ts files Mar 4, 2024
@dsherret dsherret marked this pull request as ready for review March 4, 2024 16:42
@dsherret dsherret requested a review from nayeemrmn March 4, 2024 16:42
Copy link
Collaborator

@nayeemrmn nayeemrmn 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 4, 2024 16:47
@dsherret dsherret merged commit 902a113 into denoland:main Mar 4, 2024
17 of 20 checks passed
@dsherret dsherret deleted the fix_lsp_no_warning_declaration_file_or_npm_pkg_redirect branch March 4, 2024 17:34
littledivy pushed a commit that referenced this pull request Mar 8, 2024
…files (#22670)

The diagnostic was incorrect when importing a `.js` file with a
corresponding `.d.ts` file with sloppy imports because it would say to
change the `.js` extension to `.d.ts`, which is incorrect. We might as
well just hide this diagnostic.
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.

None yet

2 participants