We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2728f4 commit 3a522caCopy full SHA for 3a522ca
src/debugger/AttachDebuggerProvider.ts
@@ -20,7 +20,7 @@ export class AttachDebuggerProvider implements vscode.DebugConfigurationProvider
20
21
private getSourceRoots(): string[] {
22
var list = vscode.workspace.workspaceFolders!.map(f => { return f.uri.fsPath; });
23
- var config = <Array<string>> vscode.workspace.getConfiguration("emmylua").get("source.roots");
+ var config = <Array<string>> vscode.workspace.getConfiguration("emmylua").get("source.roots") || [];
24
return list.concat(config.map(item => { return normalize(item); }));
25
}
26
0 commit comments