diff options
author | Joyce Er <joyce.er@microsoft.com> | 2022-07-27 20:03:53 +0300 |
---|---|---|
committer | Joyce Er <joyce.er@microsoft.com> | 2022-07-27 20:03:53 +0300 |
commit | 04dd05c0ed64e5d57075788b69e29a713a359516 (patch) | |
tree | 0b9fb1cf8bc050114ca3e69aa1c81124a615e073 /src/vs | |
parent | 8e49136c91044737516f2491c4e39f6d48e544d2 (diff) |
Hide Continue Edit Session when not in a folder
Diffstat (limited to 'src/vs')
-rw-r--r-- | src/vs/workbench/contrib/editSessions/browser/editSessions.contribution.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vs/workbench/contrib/editSessions/browser/editSessions.contribution.ts b/src/vs/workbench/contrib/editSessions/browser/editSessions.contribution.ts index 8ff2bb4f106..06a991fd12d 100644 --- a/src/vs/workbench/contrib/editSessions/browser/editSessions.contribution.ts +++ b/src/vs/workbench/contrib/editSessions/browser/editSessions.contribution.ts @@ -47,6 +47,7 @@ import { EditSessionsDataViews } from 'vs/workbench/contrib/editSessions/browser import { ITextModelService } from 'vs/editor/common/services/resolverService'; import { EditSessionsContentProvider } from 'vs/workbench/contrib/editSessions/browser/editSessionsContentProvider'; import { isNative } from 'vs/base/common/platform'; +import { WorkspaceFolderCountContext } from 'vs/workbench/common/contextkeys'; registerSingleton(IEditSessionsLogService, EditSessionsLogService); registerSingleton(IEditSessionsWorkbenchService, EditSessionsWorkbenchService); @@ -55,6 +56,7 @@ const continueEditSessionCommand: IAction2Options = { id: '_workbench.experimental.editSessions.actions.continueEditSession', title: { value: localize('continue edit session', "Continue Edit Session..."), original: 'Continue Edit Session...' }, category: EDIT_SESSION_SYNC_CATEGORY, + precondition: WorkspaceFolderCountContext.notEqualsTo('0'), f1: true }; const openLocalFolderCommand: IAction2Options = { |