Skip to content

Commit

Permalink
- fixed issue #114 - rainbow csv has a new dynamic csv mode
Browse files Browse the repository at this point in the history
  • Loading branch information
janisdd committed Mar 5, 2023
1 parent 6dd297d commit 9b5186f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion out/util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function isCsvFile(document: vscode.TextDocument) {
let lang = document.languageId.toLowerCase()
let possible = ['csv', 'tsv', 'plaintext',
//rainbow csv extension types, see https://github.com/mechatroner/vscode_rainbow_csv
'csv (semicolon)', 'csv (pipe)', 'csv (whitespace)', 'csv (tilde)', 'csv (caret)', 'csv (colon)', 'csv (double quote)', 'csv (equals)', 'csv (dot)', 'csv (hyphen)'
'csv (semicolon)', 'csv (pipe)', 'csv (whitespace)', 'csv (tilde)', 'csv (caret)', 'csv (colon)', 'csv (double quote)', 'csv (equals)', 'csv (dot)', 'csv (hyphen)', 'dynamic csv'
]
const _isCsvFile = possible.find(p => p === lang) && document.uri.scheme !== 'csv-edit'
return _isCsvFile
Expand Down

0 comments on commit 9b5186f

Please sign in to comment.