projects
/
lsp-test.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
76341b7
)
use Text instead of String
author
Zubin Duggal
<zubin@cmi.ac.in>
Wed, 3 Feb 2021 17:16:54 +0000
(22:46 +0530)
committer
Zubin Duggal
<zubin@cmi.ac.in>
Wed, 3 Feb 2021 17:16:54 +0000
(22:46 +0530)
src/Language/LSP/Test.hs
patch
|
blob
|
history
diff --git
a/src/Language/LSP/Test.hs
b/src/Language/LSP/Test.hs
index 90000fd38936eb470e8a13448032466551d180e8..62b3267366a2caf8edd1f2386c6d91648ad206d8 100644
(file)
--- a/
src/Language/LSP/Test.hs
+++ b/
src/Language/LSP/Test.hs
@@
-398,7
+398,7
@@
createDoc file languageId contents = do
watchHits :: FileSystemWatcher -> Bool
watchHits (FileSystemWatcher pattern kind) =
-- If WatchKind is exlcuded, defaults to all true as per spec
watchHits :: FileSystemWatcher -> Bool
watchHits (FileSystemWatcher pattern kind) =
-- If WatchKind is exlcuded, defaults to all true as per spec
- fileMatches
pattern
&& createHits (fromMaybe (WatchKind True True True) kind)
+ fileMatches
(T.unpack pattern)
&& createHits (fromMaybe (WatchKind True True True) kind)
fileMatches pattern = Glob.match (Glob.compile pattern) relOrAbs
-- If the pattern is absolute then match against the absolute fp
fileMatches pattern = Glob.match (Glob.compile pattern) relOrAbs
-- If the pattern is absolute then match against the absolute fp