Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
6fc9f7b
Update yauzl version and changelog date. (#3069)
sean-mcmanus Jan 23, 2019
243f213
Updating debugAdapterExecutable to new API (#2921)
WardenGnaw Jan 23, 2019
af516b9
Seanmcm/0 22 0 changelog1 (#3101)
sean-mcmanus Jan 29, 2019
2713e70
#3102 - fix compilerPath/compileCommands policy
bobbrow Jan 29, 2019
f978719
Merge pull request #3113 from Microsoft/bobbrow/cc
bobbrow Jan 29, 2019
bf6b4aa
Fix regex to allow non-recursive includePath (#3122)
mill1000 Feb 1, 2019
13b78f2
Add Chinese support for commands
xisui-MSFT Feb 3, 2019
41a4e14
Merge pull request #3128 from xisui-MSFT/xisui/chinese_command_support
bobbrow Feb 4, 2019
7a20270
Seanmcm/suggest snippets setting (#3135)
sean-mcmanus Feb 5, 2019
373e9be
Update changelog for 0.22.0-insiders. (#3137)
sean-mcmanus Feb 6, 2019
f216e02
Update extend version. (#3146)
sean-mcmanus Feb 9, 2019
035d028
Grdowns/build tasks (#3118)
grdowns Feb 14, 2019
49aa552
Fix quoting for process picker (#3181)
WardenGnaw Feb 15, 2019
e2aaaba
Add settings for cached pre-compiled headers
michelleangela Dec 3, 2018
f860223
fix auto pch settings
michelleangela Dec 12, 2018
f1ca548
filter autoPCH cache for telemetry
michelleangela Jan 11, 2019
b28ab0a
add slash at end of default path
michelleangela Feb 16, 2019
10a06af
rename cachePath and cacheSize
michelleangela Feb 22, 2019
a0f6eb6
Update cachePath description
michelleangela Feb 22, 2019
cc81b4b
Set up CI with Azure Pipelines (#3191)
WardenGnaw Feb 22, 2019
50ddd67
Fix command not found and empty c_cpp_properties.json if activation i…
sean-mcmanus Feb 22, 2019
bda5bbf
Merge branch 'master' into mimatias/add_pch_settings
sean-mcmanus Feb 22, 2019
fdcbfee
update cache path
michelleangela Feb 22, 2019
d27e609
Merge branch 'mimatias/add_pch_settings' of https://github.com/Micros…
michelleangela Feb 22, 2019
28e8f1f
Seanmcm/cpp properties squiggles (#3196)
sean-mcmanus Feb 25, 2019
361ca45
Merge pull request #3184 from Microsoft/mimatias/add_pch_settings
bobbrow Feb 25, 2019
ece9071
fix typos (#3218)
bobbrow Feb 26, 2019
8d96465
Enable ${command:cpptools.activeConfigName} in tasks #1524 (#3219)
bobbrow Feb 27, 2019
98260f9
Remove Travis-CI (#3205)
WardenGnaw Feb 28, 2019
3d7937f
Grdowns/launch configs (#3215)
grdowns Mar 1, 2019
1d47bc4
Seanmcm/0 22 0 insiders2 changelog (#3226)
sean-mcmanus Mar 1, 2019
e928bfb
Fix tslint issues (#3234)
bobbrow Mar 1, 2019
c395790
Fix bugs with compilerPath squiggles and build tasks. (#3228)
sean-mcmanus Mar 1, 2019
0c77b9e
Fix "cl.exe" in the compilerPath squiggle. (#3237)
sean-mcmanus Mar 1, 2019
15ac01d
Update date. (#3238)
sean-mcmanus Mar 1, 2019
bb2d23c
Change AutoPch to AutoPCH. (#3239)
sean-mcmanus Mar 1, 2019
5512035
Remove trailing "/" from intelliSenseCachePath setting. (#3240)
sean-mcmanus Mar 1, 2019
95dd538
Reduce VS Code requirement. (#3241)
sean-mcmanus Mar 2, 2019
5445eff
Update vsdbg for 0.23.0 (#3242)
WardenGnaw Mar 2, 2019
670a105
Update changelog. (#3243)
sean-mcmanus Mar 2, 2019
3db3c8d
Suggest user switching to insiders channel (#3221)
lh123 Mar 5, 2019
1a8e84b
Seanmcm/debug fixes (#3244)
sean-mcmanus Mar 6, 2019
01d0137
Fix install vsix. (#3251)
sean-mcmanus Mar 6, 2019
868799a
Disable AutoPCH for older Macs. (#3261)
sean-mcmanus Mar 7, 2019
6f5c9e3
Fix unwanted compilerPath squiggle with cl.exe. (#3263)
sean-mcmanus Mar 7, 2019
2426a66
Seanmcm/change mac mi debugger path default (#3262)
sean-mcmanus Mar 7, 2019
260124b
Updating vsdbg (#3267)
WardenGnaw Mar 11, 2019
24b69c7
Seanmcm/add cl debug support (#3264)
sean-mcmanus Mar 12, 2019
79f8262
show squiggles when invalid properties are added to the c_cpp_propert…
bobbrow Mar 12, 2019
cd0dde9
Update release notes (#3291)
bobbrow Mar 14, 2019
342de46
Disable the IntelliSense cache on Mac. (#3293)
sean-mcmanus Mar 14, 2019
270a4f7
Update changelog for 0.22.0-insiders3. (#3294)
sean-mcmanus Mar 15, 2019
e020801
readme feedback #3300 (#3307)
bobbrow Mar 18, 2019
0c61ee9
Fix variable resolving not working with ${default}. (#3310)
sean-mcmanus Mar 18, 2019
8aadd40
Fix squiggles with WSL compilerPath with args. (#3313)
sean-mcmanus Mar 19, 2019
4ca9ad8
Update changelog. (#3312)
sean-mcmanus Mar 19, 2019
51cd214
Merge branch 'release' into 0_22_0_release
sean-mcmanus Mar 19, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/language-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ about: 'Issues pertaining to IntelliSense, autocomplete, code editing, etc. '

**Additional context**
<!--
*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".*
Add any other context about the problem here including log messages in your Output window ("C_Cpp.loggingLevel": "Debug" in settings.json).
* 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. Windows binaries have symbols available in VS Code by setting your "symbolSearchPath" to "https://msdl.microsoft.com/download/symbols".
* Add any other context about the problem here including log messages in your Output window ("C_Cpp.loggingLevel": "Debug" in settings.json).
-->
43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

38 changes: 37 additions & 1 deletion Extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,42 @@
# C/C++ for Visual Studio Code Change Log

## Version 0.21.0 January 23, 2019
## Version 0.22.0: March 19, 2019
### Major Changes
* Add warning squiggles for invalid properties and paths in `c_cpp_properties.json`. [#2799](https://github.com/Microsoft/vscode-cpptools/issues/2799), [PR #3283](https://github.com/Microsoft/vscode-cpptools/pull/3283)
* Add C/C++ compiler build tasks for compiling the active source file, with support for `F5` debugging and the `Build and Debug Active File` context menu command. [PR #3118](https://github.com/Microsoft/vscode-cpptools/pull/3118), [PR #3244](https://github.com/Microsoft/vscode-cpptools/pull/3244)
* Add AutoPCH support to reduce IntelliSense parsing time, with `C_Cpp.intelliSenseCachePath` and `C_Cpp.intelliSenseCacheSize` settings. It isn't enabled for Mac yet. [PR #3184](https://github.com/Microsoft/vscode-cpptools/pull/3184)

### Minor Changes
* Fix IntelliSense not working on Windows when the username has a space in it and file `C:\Users\<firstname>` exists. [#1377](https://github.com/Microsoft/vscode-cpptools/issues/1377), [#2114](https://github.com/Microsoft/vscode-cpptools/issues/2114), [#2176](https://github.com/Microsoft/vscode-cpptools/issues/2176), [#3052](https://github.com/Microsoft/vscode-cpptools/issues/3052), [#3139](https://github.com/Microsoft/vscode-cpptools/issues/3139)
* Enable `${command:cpptools.activeConfigName}` in tasks. [#1524](https://github.com/Microsoft/vscode-cpptools/issues/1524)
* Fix bugs with squiggles and IntelliSense updating after edits. [#1779](https://github.com/Microsoft/vscode-cpptools/issues/1779), [#3124](https://github.com/Microsoft/vscode-cpptools/issues/3124), [#3260](https://github.com/Microsoft/vscode-cpptools/issues/3260)
* Fix formatting (and other non-IntelliSense operations) being blocked by IntelliSense processing. [#1928](https://github.com/Microsoft/vscode-cpptools/issues/1928)
* Fix completion when the start of an identifier matches a keyword. [#1986](https://github.com/Microsoft/vscode-cpptools/issues/1986)
* Fix auto-removal of compiler-provided paths in `includePath`. [#2177](https://github.com/Microsoft/vscode-cpptools/issues/2177)
* Fix crash on Windows when 8.3 filenames are used. [#2453](https://github.com/Microsoft/vscode-cpptools/issues/2453), [#3104](https://github.com/Microsoft/vscode-cpptools/issues/3104)
* Add support for `Scope::Member` scoped symbol searches. [#2484](https://github.com/Microsoft/vscode-cpptools/issues/2484)
* Fix signature help active parameter selection when parameter names are missing or subsets of each other. [#2952](https://github.com/Microsoft/vscode-cpptools/issues/2952)
* Fix `--enable-pretty-printing` with `gdb` when complex objects are used as keys in maps. [#3024](https://github.com/Microsoft/vscode-cpptools/issues/3024)
* Fix IntelliSense-based `Go to Definition` for `noexcept` methods. [#3060](https://github.com/Microsoft/vscode-cpptools/issues/3060)
* Render macro hover expansions as C/C++. [#3075](https://github.com/Microsoft/vscode-cpptools/issues/3075)
* Enable completion after `struct` when manually invoked. [#3080](https://github.com/Microsoft/vscode-cpptools/issues/3080)
* Add `C_Cpp.suggestSnippets` setting to disable language server snippets. [#3083](https://github.com/Microsoft/vscode-cpptools/issues/3083)
* Show a prompt for changing `C_Cpp.updateChannel` to `Insiders`. [#3089](https://github.com/Microsoft/vscode-cpptools/issues/3089)
* lh123 (@lh123) [PR #3221](https://github.com/Microsoft/vscode-cpptools/pull/3221)
* Fix `compilerPath` not getting priority over the `compile_commands.json` compiler. [#3102](https://github.com/Microsoft/vscode-cpptools/issues/3102)
* Fix Linux `compile_commands.json` compiler querying with relative paths. [#3112](https://github.com/Microsoft/vscode-cpptools/issues/3112)
* Allow `*` in `includePath` to apply to `browse.path` when `browse.path` is not specified. [#3121](https://github.com/Microsoft/vscode-cpptools/issues/3121)
* Tucker Kern (@mill1000) [PR #3122](https://github.com/Microsoft/vscode-cpptools/pull/3122)
* Disable `(` and `<` completion commit characters. [#3127](https://github.com/Microsoft/vscode-cpptools/issues/3127)
* Add Chinese translations for command titles. [PR #3128](https://github.com/Microsoft/vscode-cpptools/pull/3128)
* Fix remote process picker bug. [#2585](https://github.com/Microsoft/vscode-cpptools/issues/2585), [#3150](https://github.com/Microsoft/vscode-cpptools/issues/3150)
* Fix command not found and empty `c_cpp_properties.json` if activation is too slow. [#3160](https://github.com/Microsoft/vscode-cpptools/issues/3160), [#3176](https://github.com/Microsoft/vscode-cpptools/issues/3176)
* Fix `cppvsdbg` debugger showing `"An unspecified error has occurred."` for structured binding variables. [#3197](https://github.com/Microsoft/vscode-cpptools/issues/3197)
* Fix bugs with the Insider reload prompt appearing when it shouldn't. [#3206](https://github.com/Microsoft/vscode-cpptools/issues/3206)
* Fix variable expansion (e.g. `${env.HOME}`) not working when `${default}` is used in `c_cpp_properties.json`. [#3309](https://github.com/Microsoft/vscode-cpptools/issues/3309)
* Fix other unreported IntelliSense engine bugs.

## Version 0.21.0: January 23, 2019
### New Features
* Add documentation comments for hover, completion, and signature help. [#399](https://github.com/Microsoft/vscode-cpptools/issues/399)
* Add completion committing for methods after `(`. [#1184](https://github.com/Microsoft/vscode-cpptools/issues/1184)
Expand Down
9 changes: 8 additions & 1 deletion Extension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,12 @@ This preview release of the extension adds language support for C/C++ to Visual

You can find more detailed information about C/C++ support for Visual Studio Code at our [GitHub page](https://github.com/Microsoft/vscode-cpptools/tree/master/Documentation) and our [VS Code documentation page](https://code.visualstudio.com/docs/languages/cpp).

## Installation
The extension has OS-specific binary dependencies, so installation via the Marketplace requires an Internet connection so that these additional dependencies can be downloaded. If you are working on a computer that does not have access to the Internet or is behind a strict firewall, you may need to use our OS-specific packages and install them by invoking VS Code's `"Install from VSIX..."` command. These "offline' packages are available at: https://github.com/Microsoft/vscode-cpptools/releases.
* `cpptools-linux.vsix` - for 64-bit Linux
* `cpptools-linux32.vsix` - for 32-bit Linux
* `cpptools-osx.vsix` - for macOS
* `cpptools-win32.vsix` - for 64-bit & 32-bit Windows

## Contact Us
If you run into any issues or have suggestions for us, please file [issues and suggestions on GitHub](https://github.com/Microsoft/vscode-cpptools/issues). If you haven’t already provided us feedback, please take this [quick survey](https://www.research.net/r/VBVV6C6) to help shape this extension for your needs.
If you run into any issues or have suggestions for us, please file [issues and suggestions on GitHub](https://github.com/Microsoft/vscode-cpptools/issues). If you haven’t already provided us feedback, please take this [quick survey](https://www.research.net/r/VBVV6C6) and let us know what you think!
26 changes: 20 additions & 6 deletions Extension/ReleaseNotes.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,23 @@ <h1>Microsoft C/C++ Extension for VS Code</h1>
<tr>
<td>
<div>
<h2 class="caption">January 2019 Update</h2>
<div>Thank you for installing the C/C++ extension. In the January update, we added documentation comments for hover, completion, and signature help.<br/>
<h2 class="caption">March 2019 Update</h2>
<div>Thank you for installing the C/C++ extension! We're excited to announce the following features in the March update:<br/>
<h3 style="font-weight: 600">IntelliSense caching</h3>
On Windows and Linux, the extension will now cache header information to improve IntelliSense speed for your code files. Support for macOS will be available in a future release.<br/>
<br/>
<em style="font-weight: 600">Please Note:</em> The extension writes the cache to disk in order to achieve this performance improvement. By default the cache files will be stored in your workspace
folder's ".vscode" folder, but you can change this location by using the <code>"C_Cpp.intelliSenseCachePath"</code> setting. You can also control how much disk space can be
used for the cache with the <code>"C_Cpp.intelliSenseCacheSize"</code> setting. The default is 5120 MB as the caches for individual translation units can be large,
depending on the size and number of included headers.<br/>
<h3 style="font-weight: 600">Build and debug the active source file</h3>
We added a command to help you generate build and debug tasks for single code files. Since this feature writes out tasks.json and launch.json files, it currently requires
that a workspace folder be opened in VS Code first. After that, you can press F5 or select the command from the context menu to configure the tasks or kick off a build and debug
session.<br/>
<h3 style="font-weight: 600">Configuration squiggles</h3>
We added additional validation to the <code>c_cpp_properties.json</code> file to assist in diagnosing potential configuration mistakes. They will show up as problems in the
problems window.<br/>
<br/>
<br/>
Additional features and bug fixes are detailed in the <a href="https://github.com/Microsoft/vscode-cpptools/releases">full release notes</a>.</div>
</div>
Expand All @@ -231,10 +246,9 @@ <h3 class="caption">Getting Started</h3>
<td>
<div>
<h3 class="caption">Blog Posts</h3>
<div><a href="https://blogs.msdn.microsoft.com/vcblog/2018/12/05/visual-studio-code-cpp-extension-october-2018-update-and-a-simplified-insiders-program/">October 2018 Update</a></div>
<div><a href="https://blogs.msdn.microsoft.com/vcblog/2018/08/23/visual-studio-code-c-c-extension-august-2018-update/">August 2018 Update</a></div>
<div><a href="https://blogs.msdn.microsoft.com/vcblog/2018/07/25/visual-studio-code-cc-extension-july-2018-update-and-intellisense-auto-configuration-for-cmake/">July 2018 Update</a></div>
<div><a href="https://blogs.msdn.microsoft.com/vcblog/2016/03/31/cc-extension-for-visual-studio-code/">C/C++ Extension anouncement</a></div>
<div><a href="https://devblogs.microsoft.com/cppblog/vs-code-cpp-extension-january-2019-update/">January 2019 Update</a></div>
<div><a href="https://devblogs.microsoft.com/cppblog/visual-studio-code-cpp-extension-october-2018-update-and-a-simplified-insiders-program/">October 2018 Update</a></div>
<div><a href="https://devblogs.microsoft.com/cppblog/visual-studio-code-c-c-extension-august-2018-update/">August 2018 Update</a></div>
</div>
</td>
</tr>
Expand Down
9 changes: 6 additions & 3 deletions Extension/c_cpp_properties.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,11 @@
"type": "string"
}
}
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
},
"env": {
Expand Down Expand Up @@ -156,5 +158,6 @@
"required": [
"configurations",
"version"
]
],
"additionalProperties": false
}
58 changes: 58 additions & 0 deletions Extension/jobs/build.windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
parameters:
name: ''
pool: ''

jobs:
- job: Windows
pool:
vmImage: 'vs2017-win2016'

steps:
- task: NodeTool@0
displayName: 'Use Node 8.x'
inputs:
versionSpec: 8.x

- script: npm install
displayName: "Install Dependencies"
workingDirectory: '$(Build.SourcesDirectory)\Extension'

- script: npm run compile
displayName: "Compile Sources"
workingDirectory: '$(Build.SourcesDirectory)\Extension'

- script: npm run pr-check
displayName: 'Validate Extension/package.json'
workingDirectory: '$(Build.SourcesDirectory)\Extension'

- script: npm run tslint
displayName: 'Run Linter'
workingDirectory: '$(Build.SourcesDirectory)\Extension'

- script: 'npm run unitTests'
displayName: 'Run unit tests'
workingDirectory: '$(Build.SourcesDirectory)\Extension'
continueOnError: true

- script: 'copy "$(Build.SourcesDirectory)\Extension\out\test\integrationTests\MockDebugger\debugAdapterDescriptorFactory.js" "$(Build.SourcesDirectory)\Extension\out\src\Debugger\debugAdapterDescriptorFactory.js" /Y'
displayName: Replace Debug Adapter Descriptor Factory

- script: 'node node_modules/vscode/bin/test'
displayName: 'Run debug integration tests'
workingDirectory: '$(Build.SourcesDirectory)\Extension'
continueOnError: true
env:
CODE_TESTS_PATH: '$(Build.SourcesDirectory)\Extension\out\test\integrationTests\debug'
CODE_EXTENSIONS_PATH: '$(Build.SourcesDirectory)\Extension'
CODE_TESTS_WORKSPACE: '$(Build.SourcesDirectory)\Extension\test\integrationTests\testAssets\SimpleCppProject'
CODE_DISABLE_EXTENSIONS: 1

- script: 'node node_modules/vscode/bin/test'
displayName: 'Run languageServer integration tests'
workingDirectory: '$(Build.SourcesDirectory)\Extension'
continueOnError: true
env:
CODE_TESTS_PATH: '$(Build.SourcesDirectory)\Extension\out\test\integrationTests\languageServer'
CODE_EXTENSIONS_PATH: '$(Build.SourcesDirectory)\Extension'
CODE_TESTS_WORKSPACE: '$(Build.SourcesDirectory)\Extension\test\integrationTests\testAssets\SimpleCppProject'
CODE_DISABLE_EXTENSIONS: 1
67 changes: 67 additions & 0 deletions Extension/jobs/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
parameters:
name: ''
pool: ''

jobs:
- job: ${{ parameters.name }}
pool: ${{ parameters.pool }}

steps:
- task: NodeTool@0
displayName: 'Use Node 8.x'
inputs:
versionSpec: 8.x

- script: npm install
displayName: "Install Dependencies"
workingDirectory: '$(Build.SourcesDirectory)/Extension'

- script: npm run compile
displayName: "Compile Sources"
workingDirectory: '$(Build.SourcesDirectory)/Extension'

- script: npm run pr-check
displayName: 'Validate Extension/package.json'
workingDirectory: '$(Build.SourcesDirectory)/Extension'

- script: npm run tslint
displayName: 'Run Linter'
workingDirectory: '$(Build.SourcesDirectory)/Extension'

- script: 'npm run unitTests'
displayName: 'Run unit tests'
workingDirectory: '$(Build.SourcesDirectory)/Extension'
continueOnError: true

- script: |
set -e
/usr/bin/Xvfb :10 -ac >> /tmp/Xvfb.out 2>&1 &
disown -ar
displayName: 'Start xvfb'

- script: |
cp $(Build.SourcesDirectory)/Extension/out/test/integrationTests/MockDebugger/debugAdapterDescriptorFactory.js $(Build.SourcesDirectory)/Extension/out/src/Debugger/debugAdapterDescriptorFactory.js
displayName: Replace Debug Adapter Descriptor Factory

- script: 'node node_modules/vscode/bin/test'
displayName: 'Run debug integration tests'
workingDirectory: '$(Build.SourcesDirectory)/Extension'
continueOnError: true
env:
MOCK_DEBUG: 1
DISPLAY: :10
CODE_TESTS_PATH: '$(Build.SourcesDirectory)/Extension/out/test/integrationTests/debug'
CODE_EXTENSIONS_PATH: '$(Build.SourcesDirectory)/Extension'
CODE_TESTS_WORKSPACE: '$(Build.SourcesDirectory)/Extension/test/integrationTests/testAssets/SimpleCppProject'
CODE_DISABLE_EXTENSIONS: 1

- script: 'node node_modules/vscode/bin/test'
displayName: 'Run languageServer integration tests'
workingDirectory: '$(Build.SourcesDirectory)/Extension'
continueOnError: true
env:
DISPLAY: :10
CODE_TESTS_PATH: '$(Build.SourcesDirectory)/Extension/out/test/integrationTests/languageServer'
CODE_EXTENSIONS_PATH: '$(Build.SourcesDirectory)/Extension'
CODE_TESTS_WORKSPACE: '$(Build.SourcesDirectory)/Extension/test/integrationTests/testAssets/SimpleCppProject'
CODE_DISABLE_EXTENSIONS: 1
Loading