-
-
Notifications
You must be signed in to change notification settings - Fork 395
Add Goto Definition for cabal common sections #4375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
fendor
merged 4 commits into
haskell:master
from
ChristophHochrainer:feature/cabal/import-go-to-definition
Aug 18, 2024
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
93931fb
Add goto-definitions for cabal common sections
ChristophHochrainer c2d980c
Add default direct cradle hie.yaml file to testdata
ChristophHochrainer 26dcc40
incorporate changes requested in #4375
ChristophHochrainer d0d0f94
add tests for cabal goto-definition
ChristophHochrainer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
plugins/hls-cabal-plugin/test/testdata/goto-definition/simple-with-common.cabal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
cabal-version: 3.0 | ||
name: simple-cabal | ||
version: 0.1.0.0 | ||
license: MIT | ||
|
||
-- Range : (6, 0) - (7, 22) | ||
common warnings-0 | ||
ghc-options: -Wall | ||
|
||
-- Range : (10, 0) - (17, 40) | ||
common warnings-1 | ||
ghc-options: -Wall | ||
-Wredundant-constraints | ||
-Wunused-packages | ||
|
||
-Wno-name-shadowing | ||
|
||
-Wno-unticked-promoted-constructors | ||
|
||
-- Range : (20, 0) - (23, 34) | ||
common warnings-2 | ||
ghc-options: -Wall | ||
-Wredundant-constraints | ||
-Wunused-packages | ||
|
||
library | ||
|
||
import: warnings-0 | ||
-- ^ Position: (27, 16), middle of identifier | ||
|
||
import: warnings-1 | ||
-- ^ Position: (30, 12), left of identifier | ||
|
||
import: warnings-2 | ||
-- ^ Position: (33, 22), right of identifier | ||
|
||
import: warnings-0 | ||
-- ^ Position: (36, 20), left of '-' in identifier | ||
|
||
import: warnings-1 | ||
-- ^ Position: (39, 19), right of "-" in identifier | ||
|
||
import: warnings-2,warnings-1,warnings-0 | ||
-- ^ Position: (42, 16), identifier in identifier list | ||
|
||
import: warnings-2,warnings-1,warnings-0 | ||
-- ^ Position: (45, 33), left of ',' right of identifier | ||
|
||
import: warnings-2,warnings-1,warnings-0 | ||
-- ^ Position: (48, 34), right of ',' left of identifier | ||
|
||
import: warnings-2, warnings-1,warnings-0 | ||
-- ^ Position: (51, 37), right of ',' left of space | ||
|
||
import: warnings-0 | ||
-- ^ Position: (54, 11), right of ':' left of space | ||
|
||
import: warnings-0 | ||
-- ^ Position: (57, 8), not a definition | ||
|
||
-- EOL | ||
-- ^ Position: (59, 7), empty space |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
cradle: | ||
direct: | ||
arguments: [] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.