File tree 2 files changed +5
-6
lines changed 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 32
32
}
33
33
.path-editor {
34
34
display : block ;
35
- height : 30px ;
36
35
flex-direction : row ;
37
36
font-size : 1.02em ;
38
37
border : 1px solid var (--border );
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import { FileKind } from "vs/platform/files/common/files";
15
15
import { IThemeService } from "vs/platform/theme/common/themeService" ;
16
16
import { workbench } from "./workbench" ;
17
17
import "./dialog.scss" ;
18
- import { dialog } from 'electron' ;
19
18
20
19
/**
21
20
* Describes the type of dialog to show.
@@ -160,14 +159,16 @@ class Dialog {
160
159
if ( e . key === "Enter" ) {
161
160
navItems . classList . remove ( "hidden" ) ;
162
161
pathBar . classList . add ( "hidden" ) ;
163
- this . path = pathBar . value ;
164
- await util . promisify ( fs . stat ) ( pathBar . value ) ;
162
+ if ( ! pathBar . value . includes ( "." ) ) {
163
+ this . path = pathBar . value ;
164
+ await util . promisify ( fs . stat ) ( pathBar . value ) ;
165
+ }
165
166
} else if ( e . key === "Escape" ) {
166
167
navItems . classList . remove ( "hidden" ) ;
167
168
pathBar . classList . add ( "hidden" ) ;
168
169
}
169
170
} catch ( err ) {
170
- throw new Error ( `${ err } ` ) ;
171
+ this . errorEmitter . emit ( new Error ( `${ err } ` ) ) ;
171
172
}
172
173
} ) ;
173
174
@@ -376,7 +377,6 @@ class Dialog {
376
377
}
377
378
378
379
private set path ( directory : string ) {
379
- console . log ( directory ) ;
380
380
this . list ( directory ) . then ( ( value ) => {
381
381
this . _path = directory ;
382
382
this . buildPath ( ) ;
You can’t perform that action at this time.
0 commit comments