Skip to content

Commit c85022f

Browse files
committed
Write a korepath file to help out vscode
1 parent 3848c5a commit c85022f

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

kmake/src/main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,9 @@ async function exportKoremakeProject(from: string, to: string, platform: string,
673673
throw 'No exporter found for platform ' + platform + '.';
674674
}*/
675675

676+
if (Project.koreDir) {
677+
fs.writeFileSync(path.join(to, 'korepath'), path.relative(from, Project.koreDir), 'utf8');
678+
}
676679

677680
const hash = project.createHash(options.vscode, options.json, platform);
678681
let oldHash = null;
@@ -692,7 +695,7 @@ async function exportKoremakeProject(from: string, to: string, platform: string,
692695
else {
693696
log.info('Project did not change.');
694697
}
695-
698+
696699
/*if (langExporter !== null) {
697700
trees.forEach((tree, index) => {
698701
langExporter.exportWrapper(tree, from, to, options, project.IDLfiles[index]);

lib/kmake/main.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)