Add Makefile location next to its name in files tree#867
Open
fan-tom wants to merge 4 commits intoJetBrains:masterfrom
Open
Add Makefile location next to its name in files tree#867fan-tom wants to merge 4 commits intoJetBrains:masterfrom
fan-tom wants to merge 4 commits intoJetBrains:masterfrom
Conversation
fan-tom
commented
May 23, 2022
|
|
||
| override fun renderName(renderer: ColoredTreeCellRenderer) { | ||
| super.renderName(renderer) | ||
| renderer.append(" ${psiFile.virtualFile.path}", SimpleTextAttributes.GRAYED_ITALIC_ATTRIBUTES, false) |
Author
There was a problem hiding this comment.
Is there any way to make this fragment right-aligned? I tried different values for padding of this and filename fragments together with alignment = RIGHT - no effect.
fan-tom
commented
May 23, 2022
makefile/src/com/jetbrains/lang/makefile/toolWindow/MakefileTreeNode.kt
Outdated
Show resolved
Hide resolved
Author
|
Seems this PR is superceeded by 2ebe18d |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds file path next to the Makefile file name in makefiles panel


Before:
After:
This is useful when there are multiple makefiles with the same name in the same project, possibly even with the same set of actions
This PR also adds gradle build script to be able to build, run and test this plugin without need to have IDEA sources and copying file there, as described here
To be able to run tests I modified
BASE_TEST_DATA_PATHconstant inMakefileTestUtils.ktto calculate it in similar way it is done inhandlebarsplugin