Commit 1557c863 authored by Eyal Dechter's avatar Eyal Dechter

Changed matchedText to be different for different completionTypes.

parent 1ccc9ffb
......@@ -219,7 +219,6 @@ completionTests = do
":! cd *" `shouldHaveCompletionsInDirectory` (map encodeString ["" </> "dir/"
, "" </> "file1.hs"
, "" </> "file1.lhs"])
evalTests = do
describe "Code Evaluation" $ do
it "evaluates expressions" $ do
......
......@@ -66,7 +66,11 @@ complete line pos = do
moduleNames = nub $ concatMap getNames db
let target = completionTarget line pos
matchedText = intercalate "." target
let matchedText = case completionType line pos target of
HsFilePath path -> path
FilePath path -> path
otherwise -> intercalate "." target
options <-
case completionType line pos target of
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment