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 65e080f commit 6662c02Copy full SHA for 6662c02
src/extension.ts
@@ -56,11 +56,7 @@ const generateGraph = (
56
// working in the current workspace
57
if (!item.uri.fsPath.startsWith(workspace.fsPath)) return true
58
const ig = ignore().add(fs.readFileSync(ignoreFile).toString())
59
- var str, itemPath
60
- str = `${workspace.fsPath}/`
61
- itemPath = item.uri.fsPath.replace(str, '')
62
- str = `${workspace.fsPath}\\` // dir format in windows
63
- itemPath = itemPath.replace(str, '')
+ const itemPath = item.uri.path.replace(`${workspace.path}/`, '')
64
const ignored = ig.test(itemPath).ignored
65
return ignored
66
})
0 commit comments