fix projects notification showing when it shouldn't (#15890)

* fix projects notification showing when it shouldn't

* use path.resolve
This commit is contained in:
Kim Santiago
2021-06-24 12:24:57 -07:00
committed by GitHub
parent ae7e69381a
commit 8c6be27254
2 changed files with 12 additions and 6 deletions

View File

@@ -14,12 +14,12 @@ import { IWorkspaceService } from './common/interfaces';
import { IconPathHelper } from './common/iconHelper';
import { ProjectDashboard } from './dialogs/projectDashboard';
export function activate(context: vscode.ExtensionContext): Promise<IExtension> {
export async function activate(context: vscode.ExtensionContext): Promise<IExtension> {
const workspaceService = new WorkspaceService(context);
workspaceService.loadTempProjects();
workspaceService.checkForProjectsNotAddedToWorkspace();
context.subscriptions.push(vscode.workspace.onDidChangeWorkspaceFolders(() => {
workspaceService.checkForProjectsNotAddedToWorkspace();
await workspaceService.loadTempProjects();
await workspaceService.checkForProjectsNotAddedToWorkspace();
context.subscriptions.push(vscode.workspace.onDidChangeWorkspaceFolders(async () => {
await workspaceService.checkForProjectsNotAddedToWorkspace();
}));
const workspaceTreeDataProvider = new WorkspaceTreeDataProvider(workspaceService);