Skip to content

Commit

Permalink
Fix path match on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
linux-china committed Apr 6, 2022
1 parent 097f96e commit 5457214
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ open class VitestBaseRunLineMarkerProvider : RunLineMarkerProvider() {
val resolvedElement = firstChild.resolve()
if (resolvedElement != null) {
val filePath = resolvedElement.containingFile.virtualFile.toString()
if (filePath.contains("/vitest/")) {
if (filePath.contains("/vitest/") || filePath.contains("\\vitest\\")) {
return true
} else {
val declareBlock = resolvedElement.parentOfType<JSDestructuringElement>()
Expand Down

0 comments on commit 5457214

Please sign in to comment.