Extension erroneously suggests certain QL keywords in QLDoc

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

还没有人认领这个 Issue。

评估

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

调研方向

通过编写 QLDoc 注释并在标记位置输入句点,在 Quick Query 中重现该问题。跟踪扩展对 QLDoc 的补全行为,然后验证此处不会建议 QL 关键字,并且按下 Enter 不会选中任何关键字。

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

描述

bug VSCode

Describe the bug
Possibly related to #391 and #556

The extension erroneously suggests certain QL keywords while writing QLDoc, these keywords seem to be affected: class, extends, from, import, select, where

Also a bit annoying is that these suggestsions pop up automatically when you write a period (.), and when you then press Enter to continue in the next line, you actually select that suggested keyword instead.

Screenshot showing the suggestsions pop-up

Version
Extension:

CodeQL extension version: 1.7.0 
CodeQL CLI version: 2.11.0 
Platform: win32 x64

VS Code:

Version: 1.71.2 (user setup)
Commit: 74b1f979648cc44d385a2286793c226e611f59e7
Date: 2022-09-14T21:03:37.738Z
Electron: 19.0.12
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 10.0.19043
Sandboxed: No

To reproduce

  1. Open the Quick Query
  2. Write any small query
  3. Write a QLDoc for the file, e.g.
    /**
     * test<HERE>
     */
    
  4. At the position marked with <HERE> write a period (.)
    ❌ Bug: The extension suggests QL keywords

Expected behavior
No QL keywords should be suggested in QLDoc.

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

贡献指南

打开贡献指南

从这里开始

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

github/vscode-codeql 的其他 Issue

查看 github/vscode-codeql 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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