File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
plugins/hls-cabal-plugin/src/Ide/Plugin Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ import Ide.Plugin.Cabal.Completion.Types (ParseCabalCommonSe
40
40
ParseCabalFields (.. ),
41
41
ParseCabalFile (.. ))
42
42
import qualified Ide.Plugin.Cabal.Completion.Types as Types
43
- import Ide.Plugin.Cabal.Definition (gotoDefinition )
43
+ import Ide.Plugin.Cabal.Definition (gotoDefinitionAction )
44
44
import qualified Ide.Plugin.Cabal.Diagnostics as Diagnostics
45
45
import qualified Ide.Plugin.Cabal.FieldSuggest as FieldSuggest
46
46
import qualified Ide.Plugin.Cabal.LicenseSuggest as LicenseSuggest
@@ -98,7 +98,7 @@ descriptor recorder plId =
98
98
, mkPluginHandler LSP. SMethod_TextDocumentCompletion $ completion recorder
99
99
, mkPluginHandler LSP. SMethod_TextDocumentDocumentSymbol moduleOutline
100
100
, mkPluginHandler LSP. SMethod_TextDocumentCodeAction $ fieldSuggestCodeAction recorder
101
- , mkPluginHandler LSP. SMethod_TextDocumentDefinition gotoDefinition
101
+ , mkPluginHandler LSP. SMethod_TextDocumentDefinition gotoDefinitionAction
102
102
]
103
103
, pluginNotificationHandlers =
104
104
mconcat
Original file line number Diff line number Diff line change @@ -52,8 +52,8 @@ import System.FilePath (joinPath,
52
52
-- gathering all possible definitions by calling subfunctions.
53
53
54
54
-- TODO: Resolve more cases for go-to definition.
55
- gotoDefinition :: PluginMethodHandler IdeState LSP. Method_TextDocumentDefinition
56
- gotoDefinition ide _ msgParam = do
55
+ gotoDefinitionAction :: PluginMethodHandler IdeState LSP. Method_TextDocumentDefinition
56
+ gotoDefinitionAction ide _ msgParam = do
57
57
nfp <- getNormalizedFilePathE uri
58
58
cabalFields <- runActionE " cabal-plugin.commonSections" ide $ useE ParseCabalFields nfp
59
59
-- Trim the AST tree, so multiple passes in subfunctions won't hurt the performance.
You can’t perform that action at this time.
0 commit comments