From c27198c2b9a2c8196d2fc4d93f2fe2ecc6308c12 Mon Sep 17 00:00:00 2001 From: Dirk Baeumer Date: Wed, 7 Jul 2021 15:23:56 +0200 Subject: [PATCH] Tweak LSIF generation --- .gitignore | 1 + lsif.json => .lsifrc.json | 2 +- .scripts/update-lsif.js | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) rename lsif.json => .lsifrc.json (55%) diff --git a/.gitignore b/.gitignore index dc8f4df4..759bc6f6 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,6 @@ Thumbs.db */node_modules/ */out/ */.vs/ +tsconfig.lsif.json *.lsif *.db diff --git a/lsif.json b/.lsifrc.json similarity index 55% rename from lsif.json rename to .lsifrc.json index d8a5c60b..2d34e0bf 100644 --- a/lsif.json +++ b/.lsifrc.json @@ -1,4 +1,4 @@ { - "project": ".lsif/tsconfig.json", + "project": "tsconfig.lsif.json", "out": "vscode-extension-samples.lsif" } \ No newline at end of file diff --git a/.scripts/update-lsif.js b/.scripts/update-lsif.js index 4dcb3efb..90e9eaef 100644 --- a/.scripts/update-lsif.js +++ b/.scripts/update-lsif.js @@ -11,7 +11,7 @@ async function main() { try { const stat = await fs.stat(path.join(root, sample.path, 'tsconfig.json')); if (stat.isFile()) { - references.push(`../${sample.path}/tsconfig.json`); + references.push(`./${sample.path}/tsconfig.json`); } } catch (error) { // Ignore error of stat call. @@ -24,7 +24,7 @@ async function main() { ], references: references.map(reference => { return { path: reference }}) } - await fs.writeFile(path.join(root, '.lsif', 'tsconfig.json'), JSON.stringify(tsconfig, undefined, '\t'), { encoding: 'utf8' }); + await fs.writeFile(path.join(root, 'tsconfig.lsif.json'), JSON.stringify(tsconfig, undefined, '\t'), { encoding: 'utf8' }); } main().catch(console.error);