From 5bbc678c028483a53d5c1a8f4316fa9e6bd6fd4b Mon Sep 17 00:00:00 2001 From: hverlin Date: Tue, 19 Nov 2024 18:46:21 -0500 Subject: [PATCH] fix: fix code lens in mise.*.toml files --- src/providers/miseTomlCodeLensProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/miseTomlCodeLensProvider.ts b/src/providers/miseTomlCodeLensProvider.ts index 16ac938..fd217f8 100644 --- a/src/providers/miseTomlCodeLensProvider.ts +++ b/src/providers/miseTomlCodeLensProvider.ts @@ -224,7 +224,7 @@ export class MiseTomlCodeLensProvider implements vscode.CodeLensProvider { } const isMiseTomlFile = - document.fileName.endsWith("mise.toml") || + /mise\.[^.]*\.?toml$/.test(document.fileName) || document.fileName.endsWith("config.toml"); if (isMiseTomlFile) {