This commit is contained in:
isidor
2019-01-22 14:51:01 +01:00
parent 93b0145d37
commit 55951f06fa
2 changed files with 2 additions and 7 deletions
@@ -125,12 +125,7 @@
height: 22px;
}
.explorer-viewlet .explorer-item .monaco-inputbox > .wrapper > .input {
padding: 1px 2px;
}
.linux > .monaco-workbench .explorer-viewlet .explorer-item .monaco-inputbox > .wrapper > .input,
.mac > .monaco-workbench .explorer-viewlet .explorer-item .monaco-inputbox > .wrapper > .input {
.monaco-workbench .explorer-viewlet .explorer-item .monaco-inputbox > .wrapper > .input {
padding: 0;
height: 20px;
}
@@ -204,8 +204,8 @@ export class FilesRenderer implements ITreeRenderer<ExplorerItem, FuzzyScore, IF
const lastDot = value.lastIndexOf('.');
inputBox.value = value;
inputBox.select({ start: 0, end: lastDot > 0 && !stat.isDirectory ? lastDot : value.length });
inputBox.focus();
inputBox.select({ start: 0, end: lastDot > 0 && !stat.isDirectory ? lastDot : value.length });
const done = once(async (success: boolean, blur: boolean) => {
label.element.style.display = 'none';