mirror of
https://github.com/davidkaya/aryx.git
synced 2026-07-28 23:48:39 +02:00
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:
@@ -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.');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user