Skip to content

Commit cc85f3d

Browse files
committed
Merge, Also updated changelog and versions.
2 parents fbbe284 + 73c025d commit cc85f3d

File tree

16 files changed

+1390
-1408
lines changed

16 files changed

+1390
-1408
lines changed

.github/ISSUE_TEMPLATE/debugger.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Debugger
3+
about: Issues pertaining to debugging such as call stack, breakpoints, watch window,
4+
launching or attaching to a debuggee.
5+
6+
---
7+
8+
Type: Debugger
9+
**Input information below**
10+
11+
**Please review existing issues and our documentation at https://github.com/Microsoft/vscode-cpptools/tree/master/Documentation prior to filing an issue.**
12+
13+
**Describe the bug**
14+
- OS and Version:
15+
- VS Code Version:
16+
- C/C++ Extension Version:
17+
- Other extensions you installed (and if the issue persists after disabling them):
18+
- A clear and concise description of what the bug is.
19+
20+
**To Reproduce**
21+
*Please include a code sample and `launch.json` configuration.*
22+
Steps to reproduce the behavior:
23+
1. Go to '...'
24+
2. Click on '....'
25+
3. Scroll down to '....'
26+
4. See error
27+
28+
**Additional context**
29+
*If applicable, please include logging by adding "logging": { "engineLogging": true, "trace": true, "traceResponse": true } in your `launch.json`*
30+
Add any other context about the problem here including log or error messages in your Debug Console or Output windows.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: General Extension
3+
about: Issues pertaining to downloading, installing, or building the extension.
4+
5+
---
6+
7+
Type: General
8+
**Input information below**
9+
10+
**Please review existing issues and our documentation at https://github.com/Microsoft/vscode-cpptools/tree/master/Documentation prior to filing an issue.**
11+
12+
**Describe the bug**
13+
- OS and Version:
14+
- VS Code Version:
15+
- C/C++ Extension Version:
16+
- Other extensions you installed (and if the issue persists after disabling them):
17+
- A clear and concise description of what the bug is.
18+
19+
**To Reproduce**
20+
*Please include code sample and `task.json` files.*
21+
Steps to reproduce the behavior:
22+
1. Go to '...'
23+
2. Click on '....'
24+
3. Scroll down to '....'
25+
4. See error
26+
27+
**Expected behavior**
28+
A clear and concise description of what you expected to happen.
29+
30+
**Screenshots**
31+
If applicable, add screenshots to help explain your problem.
32+
33+
**Additional context**
34+
Add any other context about the problem here including log messages from the Output window.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Language Service
3+
about: 'Issues pertaining to IntelliSense, autocomplete, code editing, etc. '
4+
5+
---
6+
7+
Type: LanguageService
8+
**----- Input information below -----**
9+
10+
**Please review existing issues and our documentation at https://github.com/Microsoft/vscode-cpptools/tree/master/Documentation prior to filing an issue.**
11+
12+
**Describe the bug**
13+
- OS and Version:
14+
- VS Code Version:
15+
- C/C++ Extension Version:
16+
- Other extensions you installed (and if the issue persists after disabling them):
17+
- A clear and concise description of what the bug is.
18+
19+
**To Reproduce**
20+
Steps to reproduce the behavior:
21+
*Provide a code sample including configuration files such as c_cpp_properties.json*
22+
1. Go to '...'
23+
2. Click on '....'
24+
3. Scroll down to '....'
25+
4. See error
26+
27+
**Expected behavior**
28+
A clear and concise description of what you expected to happen.
29+
30+
**Screenshots**
31+
If applicable, add screenshots to help explain your problem.
32+
33+
**Additional context**
34+
*Call Stacks: For bugs like crashes, deadlocks, infinite loops, etc. that we are not able to repro and for which the call stack may be useful, please attach a debugger and/or create a dmp and provide the call stacks. Starting with 0.17.3, Windows binaries have symbols available in VS Code by setting your "symbolSearchPath" to "http://msdl.microsoft.com/download/symbols".*
35+
Add any other context about the problem here including log messages in your Output window ("C_Cpp.loggingLevel": "Debug" in settings.json).

Documentation/LanguageServer/Customizing Default Settings.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,21 @@ A new setting will be added that allows you specify the system include path sepa
7777
C_Cpp.default.systemIncludePath : string[]
7878
```
7979

80-
### Include Path Resolution Strategies
80+
### System Include Path/Defines Resolution Strategies
8181

82-
The extension determines the includePath to send to the IntelliSense engine in the following manner:
82+
The extension determines the system includePath and defines to send to the IntelliSense engine in the following manner:
8383

8484
1. If `compileCommands` has a valid value and the file open in the editor is in the database, use the compile command in the database entry to determine the include path and defines.
8585
* The system include path and defines are determined using the following logic (in order):
86-
1. If `systemIncludePath` has a value, use it (continue to the next step to seach for system defines).
86+
1. If `systemIncludePath` has a value, use it (continue to the next step to search for system defines).
8787
2. If `compilerPath` is valid, query it.
8888
3. Interpret the first argument in the command as the compiler and attempt to query it.
8989
4. If `compilerPath` is `""`, use an empty array for system include path and defines.
9090
5. If `compilerPath` is undefined, look for a compiler on the system and query it.
9191

9292
2. If `compileCommands` is invalid or the current file is not listed in the database, use the `includePath` and `defines` properties in the configuration for IntelliSense.
9393
* The system include path and defines are determined using the following logic (in order):
94-
1. If `systemIncludePath` has a value, use it (continue to the next step to seach for system defines).
94+
1. If `systemIncludePath` has a value, use it (continue to the next step to search for system defines).
9595
2. If `compilerPath` is valid, query it.
9696
3. If `compilerPath` is `""`, use an empty array for system include path and defines (they are assumed to be in the `includePath` and `defines` for the current config already).
9797
4. If `compilerPath` is undefined, look for a compiler on the system and query it.

Documentation/LanguageServer/IntelliSense engine.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ We recommend using the "Default" engine for the best IntelliSense experience. Ho
3939

4040
### See Also
4141

42-
[Configuring includePath for better IntelliSense results](https://github.com/Microsoft/vscode-cpptools/blob/master/Documentation/Getting%20started.md)
42+
[Configuring includePath for better IntelliSense results](https://github.com/Microsoft/vscode-cpptools/blob/master/Documentation/Getting%20started%20with%20IntelliSense%20configuration.md)
4343

4444
[**c_cpp_properties.json** reference guide](https://github.com/Microsoft/vscode-cpptools/blob/master/Documentation/LanguageServer/c_cpp_properties.json.md)

Documentation/LanguageServer/c_cpp_properties.json.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
```json
88
{
99
"env" : {
10-
"defaultIncludePath": [
10+
"myDefaultIncludePath": [
1111
"${workspaceFolder}",
1212
"${workspaceFolder}/include"
1313
],
1414
"myCompilerPath": "/usr/local/bin/gcc-7"
1515
},
1616
"configurations": [
1717
{
18-
"name": "Win32",
19-
"intelliSenseMode": "msvc-x64",
20-
"includePath": [ "${defaultIncludePath}", "/another/path" ],
18+
"name": "Mac",
19+
"intelliSenseMode": "clang-x64",
20+
"includePath": [ "${myDefaultIncludePath}", "/another/path" ],
2121
"macFrameworkPath": [ "/System/Library/Frameworks" ],
2222
"defines": [ "FOO", "BAR=100" ],
2323
"forcedInclude": [ "${workspaceFolder}/include/config.h" ],
@@ -42,7 +42,7 @@
4242
An array of user-defined variables that will be available for substitution in the configurations via the standard environment variable syntax: `${<var>}` or `${env:<var>}`. Strings and arrays of strings are accepted.
4343

4444
* #### `configurations`
45-
An array of configuration objects that provide the IntelliSense engine with information about your project and your preferences. By default, the extension creates 3 configurations for you, one each for Linux, Mac, and Windows, but it is not required to keep them all. You may also add additional configurations if necessary.
45+
An array of configuration objects that provide the IntelliSense engine with information about your project and your preferences. By default, the extension creates a configuration for you based on your operating system. You may also add additional configurations.
4646

4747
* #### `version`
4848
We recommend you don't edit this field. It tracks the current version of the **c_cpp_properties.json** file so that the extension knows what properties and settings should be present and how to upgrade this file to the latest version.
@@ -56,13 +56,13 @@
5656
If `"C_Cpp.intelliSenseEngine"` is set to "Default" in your settings file, this property determines which mode the IntelliSense engine will run in. `"msvc-x64"` maps to Visual Studio mode with 64-bit pointer sizes. `"clang-x64"` maps to GCC/CLang mode with 64-bit pointer sizes. Windows uses `"msvc-x64"` by default and Linux/Mac use `"clang-x64"` by default.
5757

5858
* #### `includePath`
59-
If `"C_Cpp.intelliSenseEngine"` is set to "Default" in your settings file, this list of paths will be used by IntelliSense to search for headers included by your source files. This is basically the same as the list of paths you pass to your compiler with the `-I` switch; the IntelliSense engine will not do a recursive search in these paths for includes. If a GCC/CLang compiler is specified in the `compilerPath` setting, it is not necessary to list the system include paths in this list.
59+
If `"C_Cpp.intelliSenseEngine"` is set to "Default" in your settings file, this list of paths will be used by IntelliSense to search for headers included by your source files. This is basically the same as the list of paths you pass to your compiler with the `-I` switch. If a path ends with `/**` the IntelliSense engine will do a recursive search for includes starting from that directory. If on Windows with Visual Studio installed, or if a compiler is specified in the `compilerPath` setting, it is not necessary to list the system include paths in this list.
6060

6161
* #### `macFrameworkPath`
6262
If `"C_Cpp.intelliSenseEngine"` is set to "Default" in your settings file, this list of paths will be used by IntelliSense to search for framework headers included by your source files. This is basically the same as the list of paths you pass to your compiler with the `-F` switch; the IntelliSense engine will not do a recursive search in these paths for includes.
6363

6464
* #### `defines`
65-
If `"C_Cpp.intelliSenseEngine"` is set to "Default" in your settings file, this list of preprocessor symbols will be used by IntelliSense during the compilation of your source files. This is basically the same as the list of symbols you pass to your compiler with the `-D` switch.
65+
If `"C_Cpp.intelliSenseEngine"` is set to "Default" in your settings file, this list of preprocessor symbols will be used by IntelliSense during the compilation of your source files. This is basically the same as the list of symbols you pass to your compiler with the `-D` switch. If on Windows with Visual Studio installed, or if a compiler is specified in the `compilerPath` setting, it is not necessary to list the system include paths in this list.
6666

6767
* #### `forcedInclude` (optional)
6868
A list of files that should be included before any other characters in the source file are processed. Files are included in the order listed.

Extension/CHANGELOG.md

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

3-
## Version 0.17.2: May 21, 2018
3+
## Version 0.17.5-insiders: June 7, 2018
4+
* Change inactive regions from gray to translucent. [#1907](https://github.com/Microsoft/vscode-cpptools/issues/1907)
5+
* Improve performance of recursive includes paths. [#2068](https://github.com/Microsoft/vscode-cpptools/issues/2068)
6+
* Fix #include completion with headers in the same directory. [#2031](https://github.com/Microsoft/vscode-cpptools/issues/2031)
7+
* Support asm clobber registers on Windows. [#2090](https://github.com/Microsoft/vscode-cpptools/issues/2090)
8+
* Fix some crashes. [#2080](https://github.com/Microsoft/vscode-cpptools/issues/2080)
9+
10+
## Version 0.17.4: May 31, 2018
11+
* Fix infinite loop (caused by deadlock) when using recursive includes. [#2043](https://github.com/Microsoft/vscode-cpptools/issues/2043)
12+
* Stop using recursive includes in the default configuration.
13+
* @Hyzeta [PR #2059](https://github.com/Microsoft/vscode-cpptools/pull/2059)
14+
* Fix various other potential deadlocks and crashes.
15+
* Fix Go to Definition on `#include` not filtering out results based on the path. [#1253](https://github.com/Microsoft/vscode-cpptools/issues/1253), [#2033](https://github.com/Microsoft/vscode-cpptools/issues/2033)
16+
* Fix database icon getting stuck. [#1917](https://github.com/Microsoft/vscode-cpptools/issues/1917)
17+
18+
## Version 0.17.3: May 22, 2018
19+
* Add support for `${workspaceFolder:folderName}`. [#1774](https://github.com/Microsoft/vscode-cpptools/issues/1774)
420
* Fix infinite loop during initialization on Windows. [#1960](https://github.com/Microsoft/vscode-cpptools/issues/1960)
521
* Fix main process IntelliSense-related crashes. [#2006](https://github.com/Microsoft/vscode-cpptools/issues/2006)
622
* Fix deadlock after formatting large files. [#2007](https://github.com/Microsoft/vscode-cpptools/issues/2007)

0 commit comments

Comments
 (0)