Skip to content

Commit 2dfd1c5

Browse files
authored
Merge pull request lukel97/lsp-test#85 from wz1000/master
use Text instead of String
2 parents 98b279b + 73a99ad commit 2dfd1c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lsp-test/src/Language/LSP/Test.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ createDoc file languageId contents = do
398398
watchHits :: FileSystemWatcher -> Bool
399399
watchHits (FileSystemWatcher pattern kind) =
400400
-- If WatchKind is exlcuded, defaults to all true as per spec
401-
fileMatches pattern && createHits (fromMaybe (WatchKind True True True) kind)
401+
fileMatches (T.unpack pattern) && createHits (fromMaybe (WatchKind True True True) kind)
402402

403403
fileMatches pattern = Glob.match (Glob.compile pattern) relOrAbs
404404
-- If the pattern is absolute then match against the absolute fp

0 commit comments

Comments
 (0)