Skip to main content

此版本的 GitHub Enterprise Server 将于以下日期停止服务 2026-04-09. 即使针对重大安全问题,也不会发布补丁。 为了获得更好的性能、更高的安全性和新功能,请升级到最新版本的 GitHub Enterprise。 如需升级帮助,请联系 GitHub Enterprise 支持

Managing the CodeQL CLI in the VS Code extension

The CodeQL for Visual Studio Code extension uses the CodeQL CLI to compile and run queries.

The CodeQL extension automatically installs a compatible version of the CodeQL CLI. This instance of the CodeQL CLI is not accessible from the terminal.

If you already have the CodeQL CLI installed and added to your PATH, the extension will use that version.

Installing version updates

The extension checks for updates to the CodeQL CLI automatically and prompts you to accept the updated version.

You can check for updates manually with the CodeQL: Check for CLI Updates command from the VS Code Command Palette.

Using a different CodeQL CLI installation

To override the default behavior and use a specific version of the CodeQL CLI, you can specify the CodeQL CLI Executable Path in the extension settings. See Customizing settings.

Troubleshooting

You can check the CodeQL Extension log for error messages or to see the location of the CodeQL CLI being used. See Accessing logs for CodeQL in Visual Studio Code.