Skip to content

Commit

Permalink
Merge pull request #73852 from dibarbet/fix_tsx_lsp
Browse files Browse the repository at this point in the history
Add tsx/jsx as recognized extensions for TS
  • Loading branch information
dibarbet authored Jun 6, 2024
2 parents 88c2aad + 91d0bc7 commit dc480df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/LanguageServer/Protocol/LanguageInfoProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ internal class LanguageInfoProvider : ILanguageInfoProvider
{ ".razor", s_razorLanguageInformation },
{ ".xaml", s_xamlLanguageInformation },
{ ".ts", s_typeScriptLanguageInformation },
{ ".d.ts", s_typeScriptLanguageInformation },
{ ".tsx", s_typeScriptLanguageInformation },
{ ".js", s_typeScriptLanguageInformation },
{ ".jsx", s_typeScriptLanguageInformation },
{ ".cjs", s_typeScriptLanguageInformation },
{ ".mjs", s_typeScriptLanguageInformation },
{ ".cts", s_typeScriptLanguageInformation },
};

public LanguageInformation GetLanguageInformation(string documentPath, string? lspLanguageId)
Expand Down

0 comments on commit dc480df

Please sign in to comment.