File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/vs/workbench/services/dialogs/browser Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -862,6 +862,8 @@ export class SimpleFileDialog extends Disposable implements ISimpleFileDialog {
862
862
private async updateItems ( newFolder : URI , force : boolean = false , trailing ?: string ) : Promise < boolean > {
863
863
this . busy = true ;
864
864
this . autoCompletePathSegment = '' ;
865
+ const wasDotDot = trailing === '..' ;
866
+ trailing = wasDotDot ? undefined : trailing ;
865
867
const isSave = ! ! trailing ;
866
868
let result = false ;
867
869
@@ -892,7 +894,7 @@ export class SimpleFileDialog extends Disposable implements ISimpleFileDialog {
892
894
this . filePickBox . items = items ;
893
895
894
896
// the user might have continued typing while we were updating. Only update the input box if it doesn't match the directory.
895
- if ( ! equalsIgnoreCase ( this . filePickBox . value , newValue ) && force ) {
897
+ if ( ! equalsIgnoreCase ( this . filePickBox . value , newValue ) && ( force || wasDotDot ) ) {
896
898
this . filePickBox . valueSelection = [ 0 , this . filePickBox . value . length ] ;
897
899
this . insertText ( newValue , newValue ) ;
898
900
}
You can’t perform that action at this time.
0 commit comments