File tree 2 files changed +15
-2
lines changed
ghcide/src/Development/IDE
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,15 @@ jobs:
138
138
sed -i.bak -e 's/Paths_haskell_language_server/Paths_hls/g' \
139
139
src/**/*.hs exe/*.hs
140
140
141
+ # this is only safe if the test environment is isolated
142
+ - name : setup ide cache
143
+ run : |
144
+ export XDG_CACHE_HOME=$RUNNER_TEMP/cache
145
+ rm -rf ~/.cache/ghcide
146
+ rm -rf ~/.cache/hie-bios
147
+ rm -rf $XDG_CACHE_HOME/ghcide
148
+ rm -rf $XDG_CACHE_HOME/hie-bios
149
+
141
150
- if : ${{ needs.pre_job.outputs.should_skip != 'true' }}
142
151
name : Build
143
152
# Retry it three times to workaround compiler segfaults in windows
Original file line number Diff line number Diff line change @@ -86,7 +86,8 @@ import GHC.IO.Handle (hDuplicate)
86
86
import HIE.Bios.Cradle (findCradle )
87
87
import qualified HieDb.Run as HieDb
88
88
import Ide.Plugin.Config (CheckParents (NeverCheck ),
89
- Config ,
89
+ Config , checkParents ,
90
+ checkProject ,
90
91
getConfigFromNotification )
91
92
import Ide.Plugin.ConfigUtils (pluginsToDefaultConfig ,
92
93
pluginsToVSCodeExtensionSchema )
@@ -193,7 +194,10 @@ defaultArguments priority = Arguments
193
194
, argsGhcidePlugin = mempty
194
195
, argsHlsPlugins = pluginDescToIdePlugins Ghcide. descriptors
195
196
, argsSessionLoadingOptions = def
196
- , argsIdeOptions = const defaultIdeOptions
197
+ , argsIdeOptions = \ config ghcSession -> (defaultIdeOptions ghcSession)
198
+ { optCheckProject = pure $ checkProject config
199
+ , optCheckParents = pure $ checkParents config
200
+ }
197
201
, argsLspOptions = def {LSP. completionTriggerCharacters = Just " ." }
198
202
, argsDefaultHlsConfig = def
199
203
, argsGetHieDbLoc = getHieDbLoc
You can’t perform that action at this time.
0 commit comments