Load topics only when a workspace is open

- Update dependencyCheck in statusBarViewBase.ts.
- Add a condition to check if a workspace is open before loading topics.
This commit is contained in:
bobo.yang 2023-06-13 08:52:44 +08:00
parent 659e35edf8
commit eba9fa9782

View File

@ -53,7 +53,10 @@ export async function dependencyCheck(): Promise<[string, string]> {
if (bOk) {
devchatStatus = 'ready';
TopicManager.getInstance().loadTopics();
// check whether open a workspace
if (UiUtilWrapper.workspaceFoldersFirstPath()) {
TopicManager.getInstance().loadTopics();
}
} else {
if (devchatStatus === '') {
devchatStatus = 'not ready';