fix(core): update language detection to use LSP 3.18 identifiers (#21931)

This commit is contained in:
Yuna Seol
2026-03-11 12:05:52 -04:00
committed by GitHub
parent eaf6e8bbb1
commit 50384ab3c9
4 changed files with 147 additions and 94 deletions
@@ -18,14 +18,14 @@ describe('getProgrammingLanguage', () => {
{
name: 'file_path is present',
args: { file_path: 'src/test.ts' },
expected: 'TypeScript',
expected: 'typescript',
},
{
name: 'absolute_path is present',
args: { absolute_path: 'src/test.py' },
expected: 'Python',
expected: 'python',
},
{ name: 'path is present', args: { path: 'src/test.go' }, expected: 'Go' },
{ name: 'path is present', args: { path: 'src/test.go' }, expected: 'go' },
{
name: 'no file path is present',
args: {},