Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e3869bf

Browse files
authored
Fix django context initializer (#248)
* Fix microsoft/vscode#37627 (#1368)
1 parent 51c54b9 commit e3869bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/providers/execInTerminalProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ class DjangoContextInitializer implements vscode.Disposable {
233233
this.disposables.push(vscode.window.onDidChangeActiveTextEditor(() => this.ensureState()));
234234
}
235235
private getActiveWorkspace(): string | undefined {
236-
if (!Array.isArray(workspace.workspaceFolders || workspace.workspaceFolders.length === 0)) {
236+
if (!Array.isArray(workspace.workspaceFolders) || workspace.workspaceFolders.length === 0) {
237237
return undefined;
238238
}
239239
if (workspace.workspaceFolders.length === 1) {

0 commit comments

Comments
 (0)