Microsoft/TypeScript

ctrl+click on an existing asset with a querystring

Open

#54,993 建立於 2023年7月12日

在 GitHub 查看
 (0 留言) (2 反應) (0 負責人)TypeScript (6,726 fork)batch import
Experience EnhancementHelp WantedSuggestion

倉庫指標

Star
 (48,455 star)
PR 合併指標
 (平均合併 6天 17小時) (30 天內合併 9 個 PR)

描述

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.80.0
  • OS Version: macOS latest

Steps to Reproduce:

  1. write import foo from './existing-file.js?some-query-string'
  2. ctrl+click on the file path

Expected

VSCode opens the file as if there was no querystring

Actual

Either:

  1. VSCode complains with: cannot find module './existing-file.js?some-query-string' or its corresponding type declarations
  2. if there's a .d.ts with declare module '*?some-query-string' {}, VSCode will navigate to this particular declaration block

貢獻者指南