microsoft / microsoft/vscode-mssql

[GitHub Copilot - Bug]: MSSQL extension is dependent upon blocked OpenAI.dll

Open
#22,818 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area - GitHub Copilot Bug
Dominant language
TypeScript
Stars
1.9k
Forks
610
Avg merge
2d 3h
Merged PRs (30d)
97

Description

### Description

The file `OpenAI.dll` was recently added to the extension, as a required component. In my workplace where executables and libraries must be allow-listed to be used, this has caused the extension to fail:

Server initialization failed. Message: Pending response rejected since connection got disposed Code: -32097
The SQLToolsService service has crashed. Details: The service process was unexpectedly closed.

Here is the output:

> 2026-08-25 13:54:23.236 [error] Server initialization failed.
> Message: Pending response rejected since connection got disposed
> Code: -32097
> 2026-08-25 13:54:23.236 [error] Connection to server got closed. Server will not be restarted.
> 2026-08-25 13:54:23.237 [error] SQLToolsService client: couldn't create connection to server.
> Message: Pending response rejected since connection got disposed
> Code: -32097
> 2026-08-25 13:54:23.257 [error] Server process exited with code 1.

Please make this file an optional part of the extension.

Here are the relevant fields from Airlock, which is blocking use of the DLL:

Action: "BLOCKED"
File Path: "C:\Users\\.vscode\extensions\ms-mssql.mssql-1.45.0\sqltoolsservice\6.0.20260810.1\Portable\"
File Name: "OpenAI.dll"
File Hash: "2a4b64063dc007ab51eb145bd3df4176df405169cacc902a1c4377976272787b"
Parent Process: "dotnet.exe"
Publisher: "OpenAISDK (.Net Foundation)"
File Description: "SDK Code Generation OpenAI"

### Steps to Reproduce

1. Start VS Code
2. When extension is loaded it will fail and produce the output above.

### Affected Area

- [ ] Agent mode
- [ ] Ask mode
- [ ] Slash commands
- [ ] Code generation
- [ ] Connection management
- [ ] Schema exploration and object management
- [ ] Query execution and performance advisor
- [x] Other (please describe below)

### If you selected "Other", please describe the affected area

The whole extension crashes.

### Environment Information (Optional)

Version: 1.134.0 (user setup)
Commit: 110a328ea54b42367b803ec53ee0bf52ef26b419
Date: 2026-08-18T18:24:44Z
Electron: 42.8.1
ElectronBuildId: 14906494
Chromium: 148.0.7778.280
Node.js: 24.18.1
V8: 14.8.178.38-electron.0
@github/copilot: 1.0.81-0
@github/copilot-sdk: 1.0.11
OS: 110a328ea54b42367b803ec53ee0bf52ef26b419

### Confirmation

- [x] I have searched existing issues and couldn’t find a match
- [ ] I want to work on this issue

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with extension loading and SQLToolsService startup, focusing on how the bundled OpenAI.dll is loaded from the sqltoolsservice Portable directory. Reproduce the blocked-DLL failure, then verify that the extension and SQLToolsService remain usable when OpenAI.dll is unavailable or blocked.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql, typescript, vscode
Domain
database, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.