Skip to content

Commit c55e801

Browse files
committed
Add example with multiple paths
1 parent b363f77 commit c55e801

2 files changed

Lines changed: 55 additions & 0 deletions

File tree

extensions/ql-vscode/test/pure-tests/remote-queries/markdown-generation/data/interpreted-results/path-problem/analyses-results.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,44 @@
618618
}
619619
}
620620
]
621+
},
622+
{
623+
"threadFlows": [
624+
{
625+
"fileLink": {
626+
"fileLinkPrefix": "https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec",
627+
"filePath": "npm-packages/meteor-installer/config.js"
628+
},
629+
"codeSnippet": {
630+
"startLine": 37,
631+
"endLine": 41,
632+
"text": "\nconst meteorLocalFolder = '.meteor';\nconst meteorPath = path.resolve(rootPath, meteorLocalFolder);\n\nmodule.exports = {\n"
633+
},
634+
"highlightedRegion": {
635+
"startLine": 39,
636+
"startColumn": 20,
637+
"endLine": 39,
638+
"endColumn": 61
639+
}
640+
},
641+
{
642+
"fileLink": {
643+
"fileLinkPrefix": "https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec",
644+
"filePath": "npm-packages/meteor-installer/install.js"
645+
},
646+
"codeSnippet": {
647+
"startLine": 257,
648+
"endLine": 261,
649+
"text": " if (isWindows()) {\n //set for the current session and beyond\n child_process.execSync(`setx path \"${meteorPath}/;%path%`);\n return;\n }\n"
650+
},
651+
"highlightedRegion": {
652+
"startLine": 259,
653+
"startColumn": 28,
654+
"endLine": 259,
655+
"endColumn": 62
656+
}
657+
}
658+
]
621659
}
622660
]
623661
}

extensions/ql-vscode/test/pure-tests/remote-queries/markdown-generation/data/interpreted-results/path-problem/results-repo2.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,23 @@
8383
}
8484
</code></pre>
8585

86+
#### Path with 2 steps
87+
1. [npm-packages/meteor-installer/config.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/config.js#L39-L39)
88+
<pre><code class="javascript">
89+
const meteorLocalFolder = '.meteor';
90+
const meteorPath = <strong>path.resolve(rootPath, meteorLocalFolder)</strong>;
91+
92+
module.exports = {
93+
</code></pre>
94+
95+
2. [npm-packages/meteor-installer/install.js](https://github.com/meteor/meteor/blob/73b538fe201cbfe89dd0c709689023f9b3eab1ec/npm-packages/meteor-installer/install.js#L259-L259)
96+
<pre><code class="javascript"> if (isWindows()) {
97+
//set for the current session and beyond
98+
child_process.execSync(<strong>`setx path "${meteorPath}/;%path%`</strong>);
99+
return;
100+
}
101+
</code></pre>
102+
86103

87104
</details>
88105

0 commit comments

Comments
 (0)