Skip to content

Commit 71dc6a1

Browse files
committed
Various bug fixes
1 parent f323903 commit 71dc6a1

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

packages/vscode/src/dialog.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
}
3333
.path-editor {
3434
display: block;
35-
height: 30px;
3635
flex-direction: row;
3736
font-size: 1.02em;
3837
border: 1px solid var(--border);

packages/vscode/src/dialog.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { FileKind } from "vs/platform/files/common/files";
1515
import { IThemeService } from "vs/platform/theme/common/themeService";
1616
import { workbench } from "./workbench";
1717
import "./dialog.scss";
18-
import { dialog } from 'electron';
1918

2019
/**
2120
* Describes the type of dialog to show.
@@ -160,14 +159,16 @@ class Dialog {
160159
if (e.key === "Enter") {
161160
navItems.classList.remove("hidden");
162161
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+
}
165166
} else if (e.key === "Escape") {
166167
navItems.classList.remove("hidden");
167168
pathBar.classList.add("hidden");
168169
}
169170
} catch (err) {
170-
throw new Error(`${err}`);
171+
this.errorEmitter.emit(new Error(`${err}`));
171172
}
172173
});
173174

@@ -376,7 +377,6 @@ class Dialog {
376377
}
377378

378379
private set path(directory: string) {
379-
console.log(directory);
380380
this.list(directory).then((value) => {
381381
this._path = directory;
382382
this.buildPath();

0 commit comments

Comments
 (0)