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:
parent
659e35edf8
commit
eba9fa9782
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user