Skip to content

Conversation

nayeemrmn
Copy link
Contributor

Fixes bug reported by @lucacasonato.

@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.

import { join as posixJoin } from "jsr:/@std/path@^0.220.1/posix/join";
Copy link
Member

Choose a reason for hiding this comment

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

Why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't check but I'm pretty sure this would bypass the faulty case, where tsc is using the form without the leading slash and that fails to match any import map key.

Copy link
Member

@nathanwhit nathanwhit left a comment

Choose a reason for hiding this comment

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

LGTM

@nayeemrmn nayeemrmn merged commit 4eff1e8 into denoland:main Aug 14, 2024
17 checks passed
@nayeemrmn nayeemrmn deleted the lsp-jsr-subpath-auto-import-completion-import-map branch August 14, 2024 21:38
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.

3 participants