Skip to content

Commit 3a522ca

Browse files
committed
error fix
1 parent b2728f4 commit 3a522ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/debugger/AttachDebuggerProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class AttachDebuggerProvider implements vscode.DebugConfigurationProvider
2020

2121
private getSourceRoots(): string[] {
2222
var list = vscode.workspace.workspaceFolders!.map(f => { return f.uri.fsPath; });
23-
var config = <Array<string>> vscode.workspace.getConfiguration("emmylua").get("source.roots");
23+
var config = <Array<string>> vscode.workspace.getConfiguration("emmylua").get("source.roots") || [];
2424
return list.concat(config.map(item => { return normalize(item); }));
2525
}
2626

0 commit comments

Comments
 (0)