Skip to content

Commit c27198c

Browse files
committed
Tweak LSIF generation
1 parent e8dd591 commit c27198c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ Thumbs.db
44
*/node_modules/
55
*/out/
66
*/.vs/
7+
tsconfig.lsif.json
78
*.lsif
89
*.db

lsif.json .lsifrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"project": ".lsif/tsconfig.json",
2+
"project": "tsconfig.lsif.json",
33
"out": "vscode-extension-samples.lsif"
44
}

.scripts/update-lsif.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async function main() {
1111
try {
1212
const stat = await fs.stat(path.join(root, sample.path, 'tsconfig.json'));
1313
if (stat.isFile()) {
14-
references.push(`../${sample.path}/tsconfig.json`);
14+
references.push(`./${sample.path}/tsconfig.json`);
1515
}
1616
} catch (error) {
1717
// Ignore error of stat call.
@@ -24,7 +24,7 @@ async function main() {
2424
],
2525
references: references.map(reference => { return { path: reference }})
2626
}
27-
await fs.writeFile(path.join(root, '.lsif', 'tsconfig.json'), JSON.stringify(tsconfig, undefined, '\t'), { encoding: 'utf8' });
27+
await fs.writeFile(path.join(root, 'tsconfig.lsif.json'), JSON.stringify(tsconfig, undefined, '\t'), { encoding: 'utf8' });
2828
}
2929

3030
main().catch(console.error);

0 commit comments

Comments
 (0)