File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
ghcide/src/Development/IDE Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,16 @@ jobs:
142
142
sed -i.bak -e 's/Paths_haskell_language_server/Paths_hls/g' \
143
143
src/**/*.hs exe/*.hs
144
144
145
+ - if : needs.pre_job.outputs.should_skip != 'true' && needs.pre_job.outputs.should_skip_pr != 'true'
146
+ # this is only safe if the test environment is isolated
147
+ - name : setup ide cache
148
+ run : |
149
+ export XDG_CACHE_HOME=$RUNNER_TEMP/cache
150
+ rm -rf ~/.cache/ghcide
151
+ rm -rf ~/.cache/hie-bios
152
+ rm -rf $XDG_CACHE_HOME/ghcide
153
+ rm -rf $XDG_CACHE_HOME/hie-bios
154
+
145
155
- if : needs.pre_job.outputs.should_skip != 'true' && needs.pre_job.outputs.should_skip_pr != 'true'
146
156
name : Build
147
157
# 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