Description
MSSQL Extension Version: 1.42.2
VS Code Version: 1.119.0 (Universal)
OS: macOS Darwin arm64 25.4.0 (Apple M5 Pro)
Steps to reproduce:
- Open a new untitled SQL file
- Connect to any SQL Server instance
- Type any multi-line or table-referencing statement e.g.
SELECT * FROM TableName WHERE id = 1
- Place cursor anywhere in the statement
- Run
mssql.runCurrentStatement (MS SQL: Run Current Statement)
Expected: Statement at cursor executes and results appear
Actual: "Failed to start query. Internal Parser Error" is shown
Additional context:
SELECT 1 on a single line works fine
- Any multi-line statement or real table reference fails 100% of the time
- Highlighting the same statement and running executeQuery works fine
- MSSQL output log shows
[info] Started query execution followed immediately by [warning] Attempted to write message but webview is not set then silence
- Manually opening the results pane gives:
Cannot read properties of undefined (reading 'toString')
- Tested on multiple extension versions (1.32, 1.40, 1.42.2) — all affected
- Fresh reinstall of extension does not fix it
- Issue is specific to
runCurrentStatement — regular query execution works
Steps to Reproduce
- Open a new untitled SQL file
- Connect to any SQL Server instance
- Type any multi-line or table-referencing statement e.g. SELECT * FROM TableName WHERE id = 1
- Place cursor anywhere in the statement
- Run mssql.runCurrentStatement (MS SQL: Run Current Statement)
Affected Area
If you selected "Other", please describe the affected area
No response
Environment Information
MSSQL Extension Version: 1.42.2
VS Code Version: 1.119.0 (Universal)
OS: macOS Tahoe arm64 26.4.1
Confirmation
Description
MSSQL Extension Version: 1.42.2
VS Code Version: 1.119.0 (Universal)
OS: macOS Darwin arm64 25.4.0 (Apple M5 Pro)
Steps to reproduce:
SELECT * FROM TableName WHERE id = 1mssql.runCurrentStatement(MS SQL: Run Current Statement)Expected: Statement at cursor executes and results appear
Actual: "Failed to start query. Internal Parser Error" is shown
Additional context:
SELECT 1on a single line works fine[info] Started query executionfollowed immediately by[warning] Attempted to write message but webview is not setthen silenceCannot read properties of undefined (reading 'toString')runCurrentStatement— regular query execution worksSteps to Reproduce
Affected Area
If you selected "Other", please describe the affected area
No response
Environment Information
MSSQL Extension Version: 1.42.2
VS Code Version: 1.119.0 (Universal)
OS: macOS Tahoe arm64 26.4.1
Confirmation