Show notification if there are projects that haven't been added to the workspace (#14046)

* add check for if there are projects that haven't been added to the workspace

* add check when workspace folders change

* add comment

* update wording

* filter for multiple file extensions at the same time

* add test

* addressing comments
This commit is contained in:
Kim Santiago
2021-01-27 16:06:33 -08:00
committed by GitHub
parent fa150fbe67
commit 8651db1e7e
7 changed files with 221 additions and 3 deletions

View File

@@ -17,6 +17,13 @@ export const WorkspaceRequiredMessage = localize('dataworkspace.workspaceRequire
export const OpenWorkspace = localize('dataworkspace.openWorkspace', "Open Workspace…");
export const CreateWorkspaceConfirmation = localize('dataworkspace.createWorkspaceConfirmation', "A new workspace will be created and opened in order to open project. The Extension Host will restart and if there is a folder currently open, it will be closed.");
export const EnterWorkspaceConfirmation = localize('dataworkspace.enterWorkspaceConfirmation', "To open this workspace, the Extension Host will restart and if there is a workspace or folder currently open, it will be closed.");
export const WorkspaceContainsNotAddedProjects = localize('dataworkspace.workspaceContainsNotAddedProjects', "The current workspace contains one or more projects that have not been added to the workspace. Use the 'Open existing' dialog to add projects to the projects pane.");
export const LaunchOpenExisitingDialog = localize('dataworkspace.launchOpenExistingDialog', "Launch Open existing dialog");
export const DoNotShowAgain = localize('dataworkspace.doNotShowAgain', "Do not show again");
// config settings
export const projectsConfigurationKey = 'projects';
export const showNotAddedProjectsMessageKey = 'showNotAddedProjectsInWorkspacePrompt';
// UI
export const OkButtonText = localize('dataworkspace.ok', "OK");