-
Notifications
You must be signed in to change notification settings - Fork 82
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
Outline Formatting not working as expected #684
Comments
I don't understand your XML sample. In your screenshot you show process, rule, condition, where are those elements in your XML sample? |
I would expect the Outline to be populated with the names as this XPath test from FreeFormatter shows: https://www.freeformatter.com/xpath-tester.html#ad-output Here's the sample XML from the screenshot:
|
try with "xml.symbols.filters": [
{
"pattern": "**/*.{bpml,xml}",
"expressions": [
{
// Process Name
"xpath": "//@name",
"inlineAttribute": true,
"showAttributeName": false
}
]
}
] |
Thank you, this worked...Can you explain why the directory boundry option is necessary with the extra **/ change? |
Indeed it can be annoying, perhaps we could allow to write only |
@angelozerr I think an update to the documentation here: to explain the current behavior would be greatly helpful. I went by the example in that documentation where the pom.xml and bean*.xml are shown without the directory boundry configuration so I assumed *.bpml or *.xml would work that way as well. |
I totally agree with you. We need to update document. Is there any chance that you create a PR for that? I will study why only *.xml is not working |
I submitted a PR for just a "Note" added to Symbols.md for the time being since I am not sure how this will be handled (code changes, documentation clarification). Thank you for all the help! |
@nblyumberg I'm working again with pattern to support a new feature (validation filter which uses pattern), and after reading https://mincong.io/2019/04/16/glob-expression-understanding/#wildcard-expressions article I noticed that we can write just |
I am attempting to customize the outline view for XML files however, it does not appear to be working as expected. What I see after making my modifications...
I customized the settings.json and I reopen the file every time I update the settings.json
`{
"editor.fontSize": 14,
"editor.linkedEditing": true,
"workbench.colorTheme": "Default Dark+",
]
}`
Sample XML I am trying to use:
`
`
The text was updated successfully, but these errors were encountered: