Skip to content

Commit 3b0a946

Browse files
committed
improve compile commands
1 parent 4b85be3 commit 3b0a946

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

assets/update_intellisense.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ function main(compileCommandsDirectory)
77

88
-- generate compile_commands.json
99
-- @note we can only load configuration because we watched onFileChanged(xmake.conf)
10+
os.setenv("XMAKE_IN_PROJECT_GENERATOR", "true")
1011
config.load()
1112
compile_commands.make(compileCommandsDirectory or ".vscode")
13+
os.setenv("XMAKE_IN_PROJECT_GENERATOR", nil)
1214
end

0 commit comments

Comments
 (0)