Skip to content

Commit

Permalink
test per line data
Browse files Browse the repository at this point in the history
Summary:
the test case for the previous diff,

im separating it here as im struggling with setting the query correctly, can anyone help ?

Reviewed By: donsbot

Differential Revision: D69993249

fbshipit-source-id: 1b68c1374fe83767bf3057b8ff6c3f57ff4b35f2
  • Loading branch information
Kinga Bojarczuk authored and facebook-github-bot committed Feb 24, 2025
1 parent 854350d commit a13c7de
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,15 @@ mkTest cfgReplace get name qfile tempDir = TestLabel name $ TestCase $ do
then copyFile actual expected
else diff actual expected

attrs :: RequestOptions -> RequestOptions
attrs opts = opts { requestOptions_attribute_opts =
AttributeOptions { attributeOptions_fetch_per_line_data = True }
}

evalQuery :: Glass.Env -> FilePath -> Query -> FilePath -> IO ()
evalQuery glassEnv qFile Query{..} oFile = case action of
"documentSymbolListX" -> withObjectArgs qFile oFile args
(\req opts -> Glass.documentSymbolListX glassEnv req opts)
(\req opts -> Glass.documentSymbolListX glassEnv req (attrs opts))
"documentSymbolIndex" -> withObjectArgs qFile oFile args
(\req opts -> Glass.documentSymbolIndex glassEnv req opts)
"findReferenceRanges" -> withSymbolId oFile args
Expand Down

0 comments on commit a13c7de

Please sign in to comment.