Closed jotavemonte closed 8 months ago
According to the source code, it is necessary to add file configuration in the workspace configuration file ${workspace}/.callgraphignore
.
import * as pm from 'picomatch'
const graph = await callNodeFunction(entry[0], item => {
if (ignoreFile === null) return false
const patterns = fs
.readFileSync(ignoreFile)
.toString()
.split('\n')
.filter(str => str.length > 0)
.map(str => path.resolve(workspace.fsPath, str))
return pm(patterns)(item.uri.fsPath)
})
so, .callgraphignore
would like
**ignore/path**
.map(str => path.resolve(workspace.fsPath, str))
so just ignore in workspace ?
see #16
The
.callgraphignore
was added at #6 , but there's no mention of it or of how to use it in the readme file.