author | michaelm |
Thu, 14 Nov 2019 10:40:08 +0000 | |
branch | unixdomainchannels |
changeset 59077 | 85df93a18fe0 |
parent 55166 | 2ae056696b15 |
permissions | -rw-r--r-- |
55166
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
1 |
// Configure cpptools IntelliSense |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
2 |
"C_Cpp.intelliSenseCachePath": "{{OUTPUTDIR}}/.vscode", |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
3 |
"C_Cpp.default.compileCommands": "{{OUTPUTDIR}}/compile_commands.json", |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
4 |
"C_Cpp.default.cppStandard": "c++03", |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
5 |
"C_Cpp.default.compilerPath": "{{COMPILER}}", |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
6 |
|
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
7 |
// Configure ccls |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
8 |
"ccls.misc.compilationDatabaseDirectory": "{{TOPDIR_RELATIVE}}", |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
9 |
"ccls.cache.hierarchicalPath": true, |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
10 |
"ccls.cache.directory": "{{OUTPUTDIR}}/.vscode/ccls", |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
11 |
|
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
12 |
// Avoid issues with precompiled headers |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
13 |
"ccls.clang.excludeArgs": [ |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
14 |
// Windows / MSVC |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
15 |
"-Fp{{OUTPUTDIR}}/hotspot/variant-server/libjvm/objs/BUILD_LIBJVM.pch", |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
16 |
"-Fp{{OUTPUTDIR}}/hotspot/variant-server/libjvm/gtest/objs/BUILD_GTEST_LIBJVM.pch", |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
17 |
"-Yuprecompiled.hpp", |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
18 |
// MacOS / clang |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
19 |
"{{OUTPUTDIR}}/hotspot/variant-server/libjvm/objs/precompiled/precompiled.hpp.pch", |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
20 |
"{{OUTPUTDIR}}/hotspot/variant-server/libjvm/gtest/objs/precompiled/precompiled.hpp.pch", |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
21 |
"-include-pch" |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
22 |
], |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
23 |
|
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
24 |
// Disable conflicting features from cpptools |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
25 |
"C_Cpp.autocomplete": "Disabled", |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
26 |
"C_Cpp.errorSquiggles": "Disabled", |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
27 |
"C_Cpp.formatting": "Disabled", |
2ae056696b15
8223678: Add Visual Studio Code workspace generation support (for native code)
rwestberg
parents:
diff
changeset
|
28 |
"C_Cpp.intelliSenseEngine": "Disabled", |