Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit ed886ad

Browse files
committed
Merge branch 'develop' into pre-release-v0.4.0
2 parents 6ecfc55 + 9ca2400 commit ed886ad

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/arduino/intellisense.ts

+9
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,16 @@ export function makeCompilerParserContext(dc: DeviceContext): ICoCoPaContext {
9393
ccp.CCppPropertiesCStandard.C11,
9494
ccp.CCppPropertiesCppStandard.Cpp11,
9595
forcedIncludes);
96+
97+
// The following 4 lines are added to prevent null.d from being created in the workspace
98+
// directory on MacOS and Linux. This is may be a bug in intelliSense
99+
const mmdIndex = runner.result.options.findIndex((element) => element === "-MMD");
100+
if (mmdIndex) {
101+
runner.result.options.splice(mmdIndex);
102+
}
103+
96104
try {
105+
97106
const cmd = os.platform() === "darwin" ? "Cmd" : "Ctrl";
98107
const help = `To manually rebuild your IntelliSense configuration run "${cmd}+Alt+I"`;
99108
const pPath = path.join(ArduinoWorkspace.rootPath, constants.CPP_CONFIG_FILE);

0 commit comments

Comments
 (0)