Skip to content

Commit

Permalink
Don't include node_modules in markdown results
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbvz committed Apr 24, 2018
1 parent 4222253 commit b845ce9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class VSCodeWorkspaceMarkdownDocumentProvider implements WorkspaceMarkdownDocume
}

async getAllMarkdownDocuments() {
const resources = await vscode.workspace.findFiles('**/*.md');
const resources = await vscode.workspace.findFiles('**/*.md', '**/node_modules/**');
const documents = await Promise.all(
resources.map(resource => vscode.workspace.openTextDocument(resource).then(x => x, () => undefined)));
return documents.filter(doc => doc && isMarkdownFile(doc)) as vscode.TextDocument[];
Expand Down

0 comments on commit b845ce9

Please sign in to comment.