File tree 2 files changed +15
-24
lines changed 2 files changed +15
-24
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ examples:
26
26
# - src/Distribution/Simple.hs
27
27
# - src/Distribution/Types/Module.hs
28
28
- src/Distribution/Simple/Configure.hs
29
+ - src/Distribution/Simple/BuildTarget.hs
29
30
extra-args : [] # extra HLS command line args
30
31
# Small-sized project with TH
31
32
- name : lsp-types
@@ -92,21 +93,21 @@ examples:
92
93
93
94
# The set of experiments to execute
94
95
experiments :
95
- # - "edit-header"
96
- # - "edit"
97
- # - "hover"
96
+ - " edit-header"
97
+ - " edit"
98
+ - " hover"
98
99
- " semanticTokens"
99
100
# - "hover after edit"
100
101
# - "hover after cradle edit"
101
- # - "getDefinition"
102
- # - "getDefinition after edit"
103
- # - "completions"
104
- # - "completions after edit"
105
- # - "code actions"
106
- # - "code actions after edit"
107
- # - "code actions after cradle edit"
108
- # - "documentSymbols after edit"
109
- # - "hole fit suggestions"
102
+ - " getDefinition"
103
+ - " getDefinition after edit"
104
+ - " completions"
105
+ - " completions after edit"
106
+ - " code actions"
107
+ - " code actions after edit"
108
+ - " code actions after cradle edit"
109
+ - " documentSymbols after edit"
110
+ - " hole fit suggestions"
110
111
111
112
# An ordered list of versions to analyze
112
113
versions :
Original file line number Diff line number Diff line change @@ -82,15 +82,6 @@ headerEdit =
82
82
.+ # rangeLength .== Nothing
83
83
.+ # text .== " -- header comment \n "
84
84
85
- tailEdit :: UInt -> Text -> TextDocumentContentChangeEvent
86
- tailEdit end i =
87
- TextDocumentContentChangeEvent $ InL $ # range .== Range (Position end 0 ) (Position end (fromIntegral $ T. length txt))
88
- .+ # rangeLength .== Nothing
89
- .+ # text .== (txt <> " \n " )
90
- where
91
- txt :: Text
92
- txt = " x" <> i <> " =" <> i
93
-
94
85
data DocumentPositions = DocumentPositions {
95
86
-- | A position that can be used to generate non null goto-def and completion responses
96
87
identifierP :: Maybe Position ,
@@ -114,10 +105,9 @@ experiments =
114
105
bench " semanticTokens" $ \ docs -> do
115
106
liftIO $ putStrLn " Starting semanticTokens"
116
107
r <- forM (zip [T. pack $ show i | i :: Int <- [0 .. ]] docs) $ \ (i, DocumentPositions {.. }) -> do
117
- bottom <- fromIntegral . length . T. lines <$> documentContents doc
118
- changeDoc doc [tailEdit bottom i]
119
- -- wait for a fresh build start
108
+ changeDoc doc [charEdit stringLiteralP]
120
109
waitForProgressStart
110
+ waitForProgressDone
121
111
tks <- getSemanticTokens doc
122
112
case tks ^? LSP. _L of
123
113
Just _ -> return True
You can’t perform that action at this time.
0 commit comments