Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Extension does not find CodeQL databases using typical Windows paths

未关闭
#3,949 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
typescript, vscode
领域
desktop, devtools

调研方向

首先定位 CodeQL 扩展的“Choose Database from Folder”操作的 handler,以及其文本输入所使用的路径验证。使用包含反斜杠的有效路径在 Windows 上重现该问题,然后验证可以使用复制的 Windows 路径选择数据库,并且现有的正斜杠路径仍然有效。

由索引模型根据 Issue 内容生成。

描述

bug VSCode

Describe the bug
When selecting a CodeQL database to open from a local path, the GitHub.vscode-codeql extension asks the user (via text input pop-up) to provide a path to the local database to be imported, but this only works with forward slashes. Thus, if the user copies a path from their Windows terminal and pastes that path into the text input, the extension will tell the user that the path does not exist. For example C:\ does not exist, but C:/ does.

Version

CodeQL CLI version: 2.20.0

CodeQL Extension version: 1.17.1

Visual Studio Code:

Version: 1.97.2 (user setup)
Commit: e54c774e0add60467559eb0d1e229c6452cf8447
Date: 2025-02-12T23:20:35.343Z
Electron: 32.2.7
ElectronBuildId: 10982180
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.19045

To reproduce
Start by using Visual Studio Code on Windows. Within the CodeQL extension in Visual Studio Code, select the "Choose Database from Folder" icon from the context menu of the "DATABASES" view. Supply any valid file (or directory) path using backslash (i.e. \) characters and observe the message about the path not existing.

Expected behavior
Expected to be able to find the database path in a Windows terminal, copy that path to clipboard, and paste that path (with back-slashes) when choosing the database folder to open.

Additional context
None

主要语言
TypeScript
星标
539
派生
240
平均合并
2 天 18 小时
30 天内合并 PR
37

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/vscode-codeql 的其他 Issue

查看 github/vscode-codeql 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。