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

@@ -16,6 +16,11 @@ import { IconPathHelper } from './common/iconHelper';
export function activate(context: vscode.ExtensionContext): Promise<IExtension> {
const workspaceService = new WorkspaceService(context);
workspaceService.loadTempProjects();
workspaceService.checkForProjectsNotAddedToWorkspace();
context.subscriptions.push(vscode.workspace.onDidChangeWorkspaceFolders(() => {
workspaceService.checkForProjectsNotAddedToWorkspace();
}));
const workspaceTreeDataProvider = new WorkspaceTreeDataProvider(workspaceService);
const dataWorkspaceExtension = new DataWorkspaceExtension(workspaceService);
context.subscriptions.push(vscode.window.registerTreeDataProvider('dataworkspace.views.main', workspaceTreeDataProvider));