mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
no breadcrumbs for untitled files, #74924
This commit is contained in:
parent
13d0dad699
commit
8af1f7ebe8
|
@ -11,7 +11,6 @@ import { tail } from 'vs/base/common/arrays';
|
|||
import { timeout } from 'vs/base/common/async';
|
||||
import { KeyCode, KeyMod } from 'vs/base/common/keyCodes';
|
||||
import { combinedDisposable, dispose, IDisposable } from 'vs/base/common/lifecycle';
|
||||
import { Schemas } from 'vs/base/common/network';
|
||||
import { isEqual } from 'vs/base/common/resources';
|
||||
import { URI } from 'vs/base/common/uri';
|
||||
import 'vs/css!./media/breadcrumbscontrol';
|
||||
|
@ -224,7 +223,7 @@ export class BreadcrumbsControl {
|
|||
input = input.master;
|
||||
}
|
||||
|
||||
if (!input || !input.getResource() || (input.getResource()!.scheme !== Schemas.untitled && !this._fileService.canHandleResource(input.getResource()!))) {
|
||||
if (!input || !input.getResource() || !this._fileService.canHandleResource(input.getResource()!)) {
|
||||
// cleanup and return when there is no input or when
|
||||
// we cannot handle this input
|
||||
this._ckBreadcrumbsPossible.set(false);
|
||||
|
|
Loading…
Reference in a new issue