fix: stabilize TypeScript LSP startup

Seed new TypeScript LSP profiles with --stdio, validate that shared profiles keep the required flag, auto-add it for existing profiles in the sidecar runtime, and include recent stderr when a language server dies before completing a request. Add shared and sidecar regression coverage.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David Kaya
2026-03-23 23:16:48 +01:00
co-authored by Copilot
parent fe7155764c
commit cf699b2442
5 changed files with 110 additions and 4 deletions
+16
View File
@@ -135,7 +135,23 @@ describe('tooling settings helpers', () => {
validateLspProfileDefinition({
...profile,
command: 'typescript-language-server',
args: ['--stdio'],
}),
).toBe('LSP profile "TypeScript" needs at least one file extension.');
});
test('requires the stdio flag for the TypeScript language server profile', () => {
expect(
validateLspProfileDefinition({
id: 'lsp-ts',
name: 'Typescript LSP',
command: 'typescript-language-server',
args: [],
languageId: 'typescript',
fileExtensions: ['.ts', '.tsx'],
createdAt: TIMESTAMP,
updatedAt: TIMESTAMP,
}),
).toBe('LSP profile "Typescript LSP" needs the "--stdio" argument.');
});
});