Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Make sure ext .R is detected as an R file. #2425

Merged
merged 1 commit into from
Feb 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/cspell-lib/src/LanguageIds.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ describe('Validate LanguageIds', () => {
test.each`
filename | expected
${'code.ts'} | ${['typescript']}
${'base.r'} | ${['r']}
${'base.R'} | ${['r']}
${'doc.tex'} | ${['latex']}
${'image.jpg'} | ${['image']}
${'workspace.code-workspace'} | ${['jsonc']}
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-lib/src/LanguageIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const languageExtensionDefinitions: LanguageDefinitions = [
{ id: 'powershell', extensions: ['.ps1', '.psm1', '.psd1', '.pssc', '.psrc'] },
{ id: 'purescript', extensions: ['.purs'] },
{ id: 'python', extensions: ['.py', '.rpy', '.pyw', '.cpy', '.gyp', '.gypi'] },
{ id: 'r', extensions: ['.r', '.rhistory', '.rprofile', '.rt'] },
{ id: 'r', extensions: ['.r', '.R', '.rhistory', '.rprofile', '.rt'] },
{ id: 'razor', extensions: ['.cshtml'] },
{ id: 'ruby', extensions: ['.rb', '.rbx', '.rjs', '.gemspec', '.rake', '.ru'] },
{ id: 'ruby', extensions: [], filenames: ['Gemfile'] },
Expand Down