Skip to content

Commit 3bbfed6

Browse files
authored
Merge pull request #1746 from Microsoft/master
Merge to release 0.16.0
2 parents d079892 + 638fd67 commit 3bbfed6

File tree

3 files changed

+19
-16
lines changed

3 files changed

+19
-16
lines changed

Extension/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# C/C++ for Visual Studio Code Change Log
22

3-
## Version 0.16.0: March 22, 2018
3+
## Version 0.16.0: March 28, 2018
44
* Enable autocomplete for local and global scopes. [#13](https://github.com/Microsoft/vscode-cpptools/issues/13)
55
* Add a setting to define multiline comment patterns: `C_Cpp.commentContinuationPatterns`. [#1100](https://github.com/Microsoft/vscode-cpptools/issues/1100), [#1539](https://github.com/Microsoft/vscode-cpptools/issues/1539)
66
* Add a setting to disable inactive region highlighting: `C_Cpp.dimInactiveRegions`. [#1592](https://github.com/Microsoft/vscode-cpptools/issues/1592)

Extension/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@
428428
"ignoreFailures": {
429429
"type": "boolean",
430430
"description": "If true, failures from the command should be ignored. Default value is false.",
431-
"default": "false"
431+
"default": false
432432
}
433433
}
434434
},
@@ -453,7 +453,7 @@
453453
"ignoreFailures": {
454454
"type": "boolean",
455455
"description": "If true, failures from the command should be ignored. Default value is false.",
456-
"default": ""
456+
"default": false
457457
}
458458
}
459459
},
@@ -476,7 +476,7 @@
476476
"showDisplayString": {
477477
"type": "boolean",
478478
"description": "When a visualizerFile is specified, showDisplayString will enable the display string. Turning this option on can cause slower performance during debugging.",
479-
"default": "true"
479+
"default": true
480480
},
481481
"environment": {
482482
"type": "array",
@@ -533,12 +533,12 @@
533533
"filterStdout": {
534534
"type": "boolean",
535535
"description": "Search stdout stream for server-started pattern and log stdout to debug output. Defaults to true.",
536-
"default": "true"
536+
"default": true
537537
},
538538
"filterStderr": {
539539
"type": "boolean",
540540
"description": "Search stderr stream for server-started pattern and log stderr to debug output. Defaults to false.",
541-
"default": "false"
541+
"default": false
542542
},
543543
"serverLaunchTimeout": {
544544
"type": "integer",
@@ -553,7 +553,7 @@
553553
"externalConsole": {
554554
"type": "boolean",
555555
"description": "If true, a console is launched for the debuggee. If false, no console is launched. Note this option is ignored in some cases for technical reasons.",
556-
"default": "false"
556+
"default": false
557557
},
558558
"sourceFileMap": {
559559
"type": "object",
@@ -673,7 +673,7 @@
673673
"showDisplayString": {
674674
"type": "boolean",
675675
"description": "When a visualizerFile is specified, showDisplayString will enable the display string. Turning this option on can cause slower performance during debugging.",
676-
"default": "true"
676+
"default": true
677677
},
678678
"additionalSOLibSearchPath": {
679679
"type": "string",
@@ -712,12 +712,12 @@
712712
"filterStdout": {
713713
"type": "boolean",
714714
"description": "Search stdout stream for server-started pattern and log stdout to debug output. Defaults to true.",
715-
"default": "true"
715+
"default": true
716716
},
717717
"filterStderr": {
718718
"type": "boolean",
719719
"description": "Search stderr stream for server-started pattern and log stderr to debug output. Defaults to false.",
720-
"default": "false"
720+
"default": false
721721
},
722722
"sourceFileMap": {
723723
"type": "object",
@@ -825,7 +825,7 @@
825825
"ignoreFailures": {
826826
"type": "boolean",
827827
"description": "If true, failures from the command should be ignored. Default value is false.",
828-
"default": "false"
828+
"default": false
829829
}
830830
}
831831
},
@@ -914,7 +914,7 @@
914914
"externalConsole": {
915915
"type": "boolean",
916916
"description": "If true, a console is launched for the debuggee. If false, no console is launched.",
917-
"default": "false"
917+
"default": false
918918
},
919919
"sourceFileMap": {
920920
"type": "object",

Extension/src/LanguageServer/configurations.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ export class CppProperties {
220220
if (process.platform === 'darwin') {
221221
this.configurationJson.configurations[this.CurrentConfiguration].macFrameworkPath = this.defaultFrameworks;
222222
}
223-
this.configurationJson.configurations[this.CurrentConfiguration].compilerPath = this.defaultCompilerPath;
223+
if (this.defaultCompilerPath) {
224+
this.configurationJson.configurations[this.CurrentConfiguration].compilerPath = this.defaultCompilerPath;
225+
}
224226
if (this.defaultCStandard) {
225227
this.configurationJson.configurations[this.CurrentConfiguration].cStandard = this.defaultCStandard;
226228
}
@@ -475,15 +477,16 @@ export class CppProperties {
475477

476478
// Update the compilerPath, cStandard, and cppStandard with the default if they're missing.
477479
let config: Configuration = this.configurationJson.configurations[this.CurrentConfiguration];
478-
if (config.compilerPath === undefined) {
480+
// Don't set the default if compileCommands exist, until it is fixed to have the correct value.
481+
if (config.compilerPath === undefined && this.defaultCompilerPath && !config.compileCommands) {
479482
config.compilerPath = this.defaultCompilerPath;
480483
dirty = true;
481484
}
482-
if (!config.cStandard) {
485+
if (!config.cStandard && this.defaultCStandard) {
483486
config.cStandard = this.defaultCStandard;
484487
dirty = true;
485488
}
486-
if (!config.cppStandard) {
489+
if (!config.cppStandard && this.defaultCppStandard) {
487490
config.cppStandard = this.defaultCppStandard;
488491
dirty = true;
489492
}

0 commit comments

Comments
 (0)