Closed XIVN1987 closed 1 year ago
Yeah, the []
and ^
syntax isn't currently handled by our exclusion parser.
A related VS Code issue is https://github.com/Microsoft/vscode/issues/869.
I'd also like to see full support for glob syntax, particularly []
syntax. This is a problem when trying to exclude files from locations that are updated from a third party, where we know we will only care to see files with one particular pattern, but other files might be added as part of an update.
Yeah, the
[]
and^
syntax isn't currently handled by our exclusion parser.A related VS Code issue is microsoft/vscode#869.
didn't get why link is related? files.exclude has already supported [^..] as a group of symbols. While related issue connects to 'sequence' of symbols (and noone knows when it became supported). And what exclude syntax cpp parser supports for now at least for group? Why #9908 doesn't work?
@icegood That link might not be related, but our exclusion implementation in cpptools doesn't parse the [] and ^ symbols like the implementation does in VS Code for files.exclude. The current implementation handles, *
, ?
, {}
, ,
special characters. https://github.com/microsoft/vscode-cpptools/issues/9908 is a duplicate of this issue.
This is resolved in https://github.com/microsoft/vscode-cpptools/releases/tag/1.16.0.
Fix is now available in release version 1.16.2.
Bug type: Language Service
Describe the bug
Under directory hw/bsp, there is 63 sub-directory, i need only one of them (swm341). First, i write SWM341_USBD.code-workspace like this:
the files under these sub-directory will not show in vscode explore, and "go to definition" will navigate to files under swm341 as expected. all these work well.
But it's very troublesome to write out all sub-directory of hw/bsp. So I wrote it a different way.
This time, vscode explore works well like above setting. But "go to definition" will list all funtions, not only functions under sub-directory swm341.