File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/vs/workbench/contrib/terminalContrib/suggest/browser Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -122,10 +122,16 @@ export class TerminalCompletionItem extends SimpleCompletionItem {
122
122
this . labelLowExcludeFileExt = this . labelLow ;
123
123
this . labelLowNormalizedPath = this . labelLow ;
124
124
125
- if ( isFile ( completion ) ) {
125
+ // HACK: Treat branch as a path separator, otherwise they get filtered out. Hard code the
126
+ // documentation for now, but this would be better to come in through a `kind`
127
+ // See https://github.com/microsoft/vscode/issues/255864
128
+ if ( isFile ( completion ) || completion . documentation === 'Branch' ) {
126
129
if ( isWindows ) {
127
130
this . labelLow = this . labelLow . replaceAll ( '/' , '\\' ) ;
128
131
}
132
+ }
133
+
134
+ if ( isFile ( completion ) ) {
129
135
// Don't include dotfiles as extensions when sorting
130
136
const extIndex = this . labelLow . lastIndexOf ( '.' ) ;
131
137
if ( extIndex > 0 ) {
You can’t perform that action at this time.
0 commit comments