提交 b9d6f6f8 编写于 作者: E Eric Amodio

Removes now unneeded safety net check

上级 4a69d773
......@@ -568,9 +568,7 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
return;
}
// The `firstRun` flag check is a safety-net hack for Codespaces, until we can verify the first open fix
const firstOpen = (storageService.isNew(StorageScope.WORKSPACE) || (defaultLayout as { firstRun: boolean })?.firstRun);
if (!firstOpen) {
if (!storageService.isNew(StorageScope.WORKSPACE)) {
return;
}
......@@ -791,9 +789,7 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
private getInitialFilesToOpen(): { filesToOpenOrCreate?: IPath[], filesToDiff?: IPath[] } | undefined {
const defaultLayout = this.environmentService.options?.defaultLayout;
// The `firstRun` flag check is a safety-net hack for Codespaces, until we can verify the first open fix
if (defaultLayout?.editors?.length && (this.storageService.isNew(StorageScope.WORKSPACE) || (defaultLayout as { firstRun: boolean })?.firstRun)) {
if (defaultLayout?.editors?.length && this.storageService.isNew(StorageScope.WORKSPACE)) {
this._openedDefaultEditors = true;
return {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册