Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit356bb90

Browse files
authored
Merge pull requestmicrosoft#2414 from Microsoft/master
Merge for 0.18.0
2 parents2b24520 +b0fc942 commit356bb90

21 files changed

+1380
-924
lines changed

‎Documentation/FAQs.md‎

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
##Table of Contents
44
* Setup:[Debugging Setup](#debugging-setup)
55
* Debugger:[Why is debugging not working?](#why-is-debugging-not-working)
6-
* Build:[How to enable debug symbols?](#how-to-enable-debug-symbols)
6+
* Build:[How to enable debug symbols](#how-to-enable-debug-symbols)
7+
* Logging:[How to enable logging](#how-to-enable-logging)
78

89
##Debugging Setup
910
The debugger needs to be configured to know which executable and debugger to use:
@@ -43,3 +44,39 @@ When in doubt, please check your compiler's documentation for the options necess
4344

4445
*####cl.exe
4546
Symbols are located in the`*.pdb` file.
47+
48+
##How to enable logging
49+
50+
Enabling logging will show communication information between VS Code and our extension and between our extension and the debugger.
51+
52+
###Logging for`MI` debuggers
53+
54+
The logging block with its defaults is as follows:
55+
56+
```
57+
"logging": {
58+
"trace": false,
59+
"traceResponse": false,
60+
"engineLogging": false
61+
}
62+
```
63+
64+
####VS Code and the CppTools extension
65+
66+
The logging here is called`trace` logging and can be enabled by setting`trace` and`traceResponse` to`true` in the logging block inside`launch.json`. This will help diagnose issues related to VS Code's communication to our extension and our responses.
67+
68+
####CppTools extension and the debugger
69+
70+
The logging between CppTools and the debugger is called`engineLogging`. When using an`MI` debugger such as`gdb` or`lldb`, this will show the request, response and events using the`mi` interpreter. This logging will help us determine whether the debugger is receiving the right commands and generating the correct responses.
71+
72+
###Logging for`Visual C++` debugger
73+
74+
The logging block with its defaults is as follows:
75+
76+
```
77+
"logging": {
78+
"engineLogging": false
79+
}
80+
```
81+
82+
The`Visual C++` debugger logging will show only the communication to and from VS Code as all communication to the debugger is done internally to the process and is not visible through logging.

‎Extension/.vscode/launch.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"runtimeExecutable":"${execPath}",
2525
"args": [
2626
"--extensionDevelopmentPath=${workspaceFolder}",
27-
"--extensionTestsPath=${workspaceFolder}/out/test"
27+
"--extensionTestsPath=${workspaceFolder}/out/test/unitTests"
2828
],
2929
"stopOnEntry":false,
3030
"sourceMaps":true,

‎Extension/CHANGELOG.md‎

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

3-
##Version 0.17.7: July 19, 2018
3+
##Version 0.18.0: August 16, 2018
4+
###New Features
5+
* Add the`C_Cpp.intelliSenseEngine` setting value of`Disabled` (for users who only use the debugger).[#785](https://github.com/Microsoft/vscode-cpptools/issues/785)
6+
* Add`C_Cpp.workspaceSymbols` setting with default`Just My Code` to filter out system header symbols.[#1119](https://github.com/Microsoft/vscode-cpptools/issues/1119),[#2320](https://github.com/Microsoft/vscode-cpptools/issues/2320)
7+
* Add`C_Cpp.inactiveRegionForegroundColor` and`C_Cpp.inactiveRegionBackgroundColor` settings.[#1620](https://github.com/Microsoft/vscode-cpptools/issues/1620),[#2212](https://github.com/Microsoft/vscode-cpptools/issues/2212)
8+
* John Patterson (@john-patterson)[PR 2308](https://github.com/Microsoft/vscode-cpptools/pull/2308)
9+
* Add`gcc-x64``intelliSenseMode` and send the correct clang or gcc version to our parser, fixing various IntelliSense errors.[#2112](https://github.com/Microsoft/vscode-cpptools/issues/2112),[#2175](https://github.com/Microsoft/vscode-cpptools/issues/2175),[#2260](https://github.com/Microsoft/vscode-cpptools/issues/2260),[#2299](https://github.com/Microsoft/vscode-cpptools/issues/2299),[#2317](https://github.com/Microsoft/vscode-cpptools/issues/2317)
10+
* Make`Go to Definition` on the definition go to the declaration instead.[#2298](https://github.com/Microsoft/vscode-cpptools/issues/2298)
11+
* Add multi-pass environment variable resolution allowing variables defined in terms of other variables.[#2057](https://github.com/Microsoft/vscode-cpptools/issues/2057)
12+
* John Patterson (@john-patterson)[PR 2322](https://github.com/Microsoft/vscode-cpptools/pull/2322)
13+
* Allow users to use`~` for`${userProfile}` on Windows.[PR 2333](https://github.com/Microsoft/vscode-cpptools/pull/2333)
14+
* Add support for compiler flags`-fms-extensions` and`-fno-ms-extensions` on Windows (the default for MinGW-based compilers).[#2363](https://github.com/Microsoft/vscode-cpptools/issues/2363)
15+
* Make completion "show more results" (i.e. inaccessible members) when invoked a 2nd time.[#2386](https://github.com/Microsoft/vscode-cpptools/issues/2386)
16+
17+
###Bug Fixes
18+
* Fix attach to process for systems without`bash` by using`sh` instead.[#569](https://github.com/Microsoft/vscode-cpptools/issues/569)
19+
* Andy Neff (@andyneff)[PR 2340](https://github.com/Microsoft/vscode-cpptools/pull/2340)
20+
* Fix IntelliSense crash after hover or completion with`_Complex` types.[#689](https://github.com/Microsoft/vscode-cpptools/issues/689),[#1112](https://github.com/Microsoft/vscode-cpptools/issues/1112)
21+
* Fix`files.exclude` not working to exclude non-workspace folders from symbol parsing.[#1066](https://github.com/Microsoft/vscode-cpptools/issues/1066)
22+
* Fix`Switch Header/Source` to give results that match the parent folder name before using just the file name.[#1085](https://github.com/Microsoft/vscode-cpptools/issues/1085)
23+
* Fix incorrect IntelliSense errors caused by namespace lookup failure when instantiation template arguments in clang mode.[#1395](https://github.com/Microsoft/vscode-cpptools/issues/1395),[#1559](https://github.com/Microsoft/vscode-cpptools/issues/1559),[#1753](https://github.com/Microsoft/vscode-cpptools/issues/1753),[#2272](https://github.com/Microsoft/vscode-cpptools/issues/2272)
24+
* Fix missing parameter help when using { for constructors.[#1667](https://github.com/Microsoft/vscode-cpptools/issues/1667)
25+
* Fix Mac framework dependencies not being discovered.[#1913](https://github.com/Microsoft/vscode-cpptools/issues/1913)
26+
* Fix`compilerPath` not working with`${workspaceFolder}`.[#1982](https://github.com/Microsoft/vscode-cpptools/issues/1982)
27+
* Fix red flame getting stuck after modifying`c_cpp_properties.json`.[#2077](https://github.com/Microsoft/vscode-cpptools/issues/2077)
28+
* Don't add empty`windowsSDKVersion` if none exists.[#2300](https://github.com/Microsoft/vscode-cpptools/issues/2300)
29+
* Fix IntelliSense crash when the gcc-8 type_traits header is used.[#2323](https://github.com/Microsoft/vscode-cpptools/issues/2323),[#2328](https://github.com/Microsoft/vscode-cpptools/issues/2328)
30+
* Limit configuration popups to one at a time.[#2324](https://github.com/Microsoft/vscode-cpptools/issues/2324)
31+
* Don't show`includePath` code actions if compile commands or custom configuration providers are used.[#2334](https://github.com/Microsoft/vscode-cpptools/issues/2334)
32+
* Fix`Cpp.clang_format_path` not accepting environment variables.[#2344](https://github.com/Microsoft/vscode-cpptools/issues/2344)
33+
* Fix IntelliSense not working with non-ASCII characters in the WSL install path.[#2351](https://github.com/Microsoft/vscode-cpptools/issues/2351)
34+
* Filter out buggy IntelliSense error`"= delete" can only appear on the first declaration of a function`.[#2352](https://github.com/Microsoft/vscode-cpptools/issues/2352)
35+
* Fix IntelliSense failing with WSL if gcc is installed bug g++ isn't.[#2360](https://github.com/Microsoft/vscode-cpptools/issues/2360)
36+
* Fix WSL paths starting with`/mnt/` failing to get symbols parsed.[#2361](https://github.com/Microsoft/vscode-cpptools/issues/2361)
37+
* Fix IntelliSense process crash when hovering over a designated initializer list with an anonymous struct.[#2370](https://github.com/Microsoft/vscode-cpptools/issues/2370)
38+
* Stop showing "File: " in completion details for internal compiler defines.[#2387](https://github.com/Microsoft/vscode-cpptools/issues/2387)
39+
* Invoke`Edit Configurations...` when the`Configuration Help` button is clicked.[#2408](https://github.com/Microsoft/vscode-cpptools/issues/2408)
40+
* Fix to allow SIGINT to be sent using the kill -2 command when using pipeTransport.
41+
42+
##Version 0.17.7: July 22, 2018
443
* Fix`Go to Definition` for code scoped with an aliased namespace.[#387](https://github.com/Microsoft/vscode-cpptools/issues/387)
544
* Fix incorrect IntelliSense errors with template template-arguments.[#1014](https://github.com/Microsoft/vscode-cpptools/issues/1014)
645
* Fix crash when using designated initializer lists.[#1440](https://github.com/Microsoft/vscode-cpptools/issues/1440)

‎Extension/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This preview release of the extension adds language support for C/C++ to Visual
1111
* Quick Info (Hover)
1212
* Error Squiggles
1313
* Debugging
14-
* Support for debugging Windows (PDB,Mingw/Cygwin), Linux andOS X applications
14+
* Support for debugging Windows (PDB,MinGW/Cygwin), Linux andmacOS applications
1515
* Line by line code stepping
1616
* Breakpoints (including conditional and function breakpoints)
1717
* Variable inspection

‎Extension/bin/msvc.64.darwin.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"defaults": [
3-
"--clang",
43
"--pack_alignment",
54
"8"
65
],

‎Extension/bin/msvc.64.intel.clang.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"defaults": [
3-
"--clang",
43
"--pack_alignment",
54
"8"
65
],

‎Extension/bin/msvc.64.linux.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"defaults": [
3-
"--clang",
43
"--pack_alignment",
54
"8"
65
],

‎Extension/c_cpp_properties.schema.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,11 @@
7171
}
7272
},
7373
"intelliSenseMode": {
74-
"description":"If set, it overrides the default mode used by the IntelliSense engine. Windows defaults to msvc-x64andLinux/Mac default to clang-x64.",
74+
"description":"If set, it overrides the default mode used by the IntelliSense engine. Windows defaults to msvc-x64, Linux defaults to gcc-x64,and Mac default to clang-x64.",
7575
"type":"string",
7676
"enum": [
7777
"msvc-x64",
78+
"gcc-x64",
7879
"clang-x64",
7980
"${default}"
8081
]

‎Extension/gulpfile.js‎

Lines changed: 17 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,43 +12,31 @@ const mocha = require('gulp-mocha');
1212
constfs=require('fs');
1313
constoptionsSchemaGenerator=require('./out/tools/GenerateOptionsSchema');
1414

15-
gulp.task('allTests',()=>{
16-
gulp.start('unitTests');
17-
gulp.start('integrationTests');
18-
});
19-
2015
gulp.task('unitTests',()=>{
21-
gulp.src('./out/test/unitTests',{read:false}).pipe(
22-
mocha({
23-
ui:"tdd"
24-
})
25-
).once('error',err=>{
26-
process.exit(1);
27-
})
28-
.once('end',()=>{
29-
process.exit();
30-
})
16+
env.set({
17+
CODE_TESTS_PATH:"./out/test/unitTests",
18+
});
19+
20+
gulp.src('./test/runVsCodeTestsWithAbsolutePaths.js',{read:false})
21+
.pipe(mocha({ui:"tdd"}))
22+
.once('error',err=>process.exit(1))
23+
.once('end',()=>process.exit())
3124
});
3225

3326
gulp.task('integrationTests',()=>{
3427
env.set({
3528
CODE_TESTS_PATH:"./out/test/integrationTests",
3629
CODE_TESTS_WORKSPACE:"./test/integrationTests/testAssets/SimpleCppProject"
37-
}
38-
);
39-
gulp.src('./test/runVsCodeTestsWithAbsolutePaths.js',{read:false}).pipe(
40-
mocha({
41-
ui:"tdd",
42-
delay:true
43-
})
44-
).once('error',err=>{
45-
process.exit(1);
46-
})
47-
.once('end',()=>{
48-
process.exit();
49-
})
30+
});
31+
32+
gulp.src('./test/runVsCodeTestsWithAbsolutePaths.js',{read:false})
33+
.pipe(mocha({ui:"tdd"}))
34+
.once('error',err=>process.exit(1))
35+
.once('end',()=>process.exit())
5036
});
5137

38+
gulp.task('allTests',['unitTests','integrationTests']);
39+
5240
/// Misc Tasks
5341
constallTypeScript=[
5442
'src/**/*.ts',
@@ -80,7 +68,7 @@ gulp.task('tslint', () => {
8068

8169
gulp.task('pr-check',()=>{
8270
constpackageJson=JSON.parse(fs.readFileSync('./package.json').toString());
83-
if(packageJson.activationEvents.length!==1&&packageJson.activationEvents[0]!=='*'){
71+
if(packageJson.activationEvents.length!==1&&packageJson.activationEvents[0]!=='*'){
8472
console.log('Please make sure to not check in package.json that has been rewritten by the extension activation. If you intended to have changes in package.json, please only check-in your changes. If you did not, please run `git checkout -- package.json`.');
8573
process.exit(1);
8674
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp