From 9b5186f9d11307d141a1290883e607e7c29760d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janis=20Daniel=20Da=CC=88hne?= Date: Sun, 5 Mar 2023 12:36:03 +0100 Subject: [PATCH] - fixed issue #114 - rainbow csv has a new dynamic csv mode --- out/util.js | 2 +- src/util.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/out/util.js b/out/util.js index 4140811..14d2c1d 100644 --- a/out/util.js +++ b/out/util.js @@ -48,7 +48,7 @@ function isCsvFile(document) { 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; diff --git a/src/util.ts b/src/util.ts index b4cde78..63f57f5 100644 --- a/src/util.ts +++ b/src/util.ts @@ -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