Skip to content

Commit

Permalink
[ debug #4647 ] Why on earth is there no highlighting???
Browse files Browse the repository at this point in the history
These values helped me trace the missing highlighting introduced by the
load caused by top-level interaction commands to the agda mode, which
supplied "None" as highlighting level to these commands.
  • Loading branch information
andreasabel committed May 18, 2020
1 parent 82c0ed7 commit 1403d71
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/full/Agda/Interaction/Imports.hs
Expand Up @@ -851,6 +851,13 @@ createInterface file mname isMain msi =
options <- concreteOptionsToOptionPragmas pragmas
mapM_ setOptionsFromPragma options

verboseS "import.iface.create" 15 $ do
nestingLevel <- asksTC envModuleNestingLevel
highlightingLevel <- asksTC envHighlightingLevel
reportSLn "import.iface.create" 15 $ unlines
[ " nesting level: " ++ show nestingLevel
, " highlighting level: " ++ show highlightingLevel
]

-- Scope checking.
reportSLn "import.iface.create" 7 "Starting scope checking."
Expand Down

0 comments on commit 1403d71

Please sign in to comment.