Skip to content

Commit

Permalink
地图目录下没有 .luarc.json 的话就生成一份出来
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Nov 14, 2024
1 parent dd75ab5 commit 55fc861
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/globalScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ export async function enable() {
// 遍历所有地图,修改luarc文件
for (const map of y3.env.project!.maps) {
let rcUri = vscode.Uri.joinPath(map.uri, 'script/.luarc.json');
if (!await y3.fs.isExists(rcUri)) {
await y3.fs.copy(vscode.Uri.joinPath(globalY3Uri, '演示/项目配置/.luarc.json'), rcUri);
}
await rcAddGlobalPath(rcUri);
}
// 生成全局的luarc文件
Expand Down

0 comments on commit 55fc861

Please sign in to comment.