Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
1557c863
Commit
1557c863
authored
Jan 07, 2014
by
Eyal Dechter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed matchedText to be different for different completionTypes.
parent
1ccc9ffb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Hspec.hs
src/Hspec.hs
+0
-1
Completion.hs
src/IHaskell/Eval/Completion.hs
+5
-1
No files found.
src/Hspec.hs
View file @
1557c863
...
...
@@ -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
...
...
src/IHaskell/Eval/Completion.hs
View file @
1557c863
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment