Compare commits

...
3136 Commits
Author SHA1 Message Date
Sean McManus 37950ffb2d Merge pull request #12930 from microsoft/seanmcm/1_22_11_release
Cherry-pick and version and changelog update for 1.22.11
2024-11-05 15:05:32 -08:00
Sean McManus 23b0672837 Cherry-pick and update version and changelog for 1.22.11. 2024-11-05 14:44:40 -08:00
Colen Garoutte-Carson 7bafd64cfe Fix processing of bools and numbers in editorConfig files (#12923) 2024-11-05 14:35:27 -08:00
Sean McManus dead10ac8a Merge pull request #12870 from microsoft/seanmcm/1_22_10_release
Cherry-picks for 1.22.10
2024-10-21 14:00:18 -07:00
Colen Garoutte-Carson ce20613f24 Update changelog for 1.22.10 (#12852) 2024-10-21 12:51:56 -07:00
Ben McMorran 86c6c10f18 React to lmTools API breaking changes (#12866) 2024-10-21 12:50:06 -07:00
Sean McManus db6e0cb5cf Merge pull request #12839 from microsoft/seanmcm/1_22_9_update
Last minute updates for 1.22.9
2024-10-14 12:09:27 -07:00
Sean McManus f9e067f5d1 Last minute updates for 1.22.9. 2024-10-14 12:05:29 -07:00
Ben McMorran b137df0bcd React to breaking changes in lmTools API (#12838) 2024-10-14 12:04:56 -07:00
Sean McManus 827db55084 Merge pull request #12827 from microsoft/seanmcm/1_22_9_release
Merge for 1.22.9
2024-10-10 11:46:03 -07:00
Sean McManus 8a2324daaa Merge branch 'main' into seanmcm/1_22_9_release 2024-10-09 14:34:08 -07:00
Sean McManus c1de7373e6 Update changelog for 1.22.9. (#12823)
* Update changelog for 1.22.9.
2024-10-09 14:31:01 -07:00
Colen Garoutte-Carson 292d84f55a Update changelog for 1.22.8 (insiders) (#12816) 2024-10-07 17:59:23 -07:00
Bob Brown c2badddf6f clang-format/tidy version comparisons fail for some builds (#12813) 2024-10-07 13:54:49 -07:00
Sean McManus bdd3541f28 Merge branch 'main' into seanmcm/1_22_8_release 2024-10-04 15:07:46 -07:00
Sean McManus 3324ea8c86 Update changelog for 1.22.8. (#12802)
* Update changelog for 1.22.8.
2024-10-04 14:10:16 -07:00
Luca 34f0dd673c filter out C++ headers outside the current opened folder. (#12803) 2024-10-04 09:53:37 -08:00
Ben McMorran 23c9fb5a9f Fix break in lmTools API (#12801) 2024-10-03 11:10:17 -07:00
Ben McMorran 4b2dac32aa React to breaking changes in Copilot API (#12797) 2024-10-02 18:52:43 -07:00
Colen Garoutte-Carson 0364ab04ce Fix issue with Rename UI lingering after cancellation (#12796) 2024-10-01 17:24:27 -07:00
Sean McManus 911c04b96c Update changelog for 1.22.7. (#12790)
* Update changelog for 1.22.7.
2024-09-30 16:07:05 -07:00
Sean McManus 4c0a9ea3be Update TPN. (#12789) 2024-09-30 16:03:36 -07:00
Ben McMorranandSean McManus a5a748166b Add cancellation token to react to Copilot API changes (#12773)
* Add cancellation token to react to Copilot API changes

* Check for known LSP error code

---------

Co-authored-by: Sean McManus <[email protected]>
2024-09-30 14:56:20 -07:00
Bob Brown 1ec1c9bb94 Use the Microsoft CFS registry instead of npm's registry directly (#12787) 2024-09-30 12:46:12 -07:00
Sean McManus b70f1562c1 Adding vsix signing. (#12758) 2024-09-26 17:14:01 -07:00
Colen Garoutte-Carson c65b11bfb5 Fix an issue preventing use of a full command line in compilerPath (#12774) 2024-09-26 16:40:07 -07:00
Colen Garoutte-Carson 24314254db Update changelog for 1.22.6 (#12769) 2024-09-25 15:39:41 -07:00
Ben McMorran 5c588fba0c Remove parametersSchema for #cpp (#12768) 2024-09-25 15:04:48 -07:00
Sean McManus 1e89750b0b 1.22.5 changelog (#12762)
* Update changelog for 1.22.5.
2024-09-24 16:45:58 -07:00
Sean McManus 4079b1e516 Fix Cg build. (#12759)
* Fix Cg build.
2024-09-23 19:49:52 -07:00
Sean McManus cc653f8685 Fix .js signing (#12757)
* Fix .js signing.
2024-09-23 18:55:38 -07:00
Ben McMorran b92dbb40c1 Update lmTools API (#12755) 2024-09-23 11:35:08 -07:00
Sean McManus 1f83dd7715 Add signing for .js files (#12749)
* Sign .js files.
2024-09-20 17:05:37 -07:00
Ben McMorran 8d7668ea88 Check related files API flag when IntelliSense is disabled (#12743) 2024-09-19 20:58:36 -07:00
Colen Garoutte-Carson 478765f1fc Update changelog for 1.22.4 (again) (#12741) 2024-09-19 16:08:15 -07:00
Colen Garoutte-Carson 1f263c50b7 Work around issue with clang 18 and size_t (#12739) 2024-09-19 15:29:14 -07:00
Colen Garoutte-Carson 0efda4b1c2 Update changelog for 1.22.4 (again) (#12737) 2024-09-19 14:53:51 -07:00
Ben McMorran ca12b97c37 Migrate to Copilot related files API (#12735) 2024-09-19 14:49:03 -07:00
Colen Garoutte-Carson e4ae0b7fdf Update version and changelog for 1.22.4 (#12733) 2024-09-18 13:50:29 -07:00
Colen Garoutte-Carson 458ef304e8 Rework custom config requests (#12727) 2024-09-18 11:35:00 -07:00
Sean McManus 970f95bfea Update IntelliSense loc strings. (#12726) 2024-09-18 03:18:14 -07:00
Sean McManus cd4ef2329f Update changelog. (#12710) 2024-09-13 11:38:42 -07:00
Sean McManus ccc07f5adb Enable log diagnostics without a C/C++ file active. (#12701) 2024-09-13 11:33:44 -07:00
Sean McManus 50e0f8685a Show the reload window message when caseSensitiveFileSupport is changed. (#12700)
* Show the reload window message when caseSensitiveFileSupport is changed.
2024-09-13 11:22:51 -07:00
Colen Garoutte-Carson fc5a084781 Update changelog and version for 1.22.3 (#12703) 2024-09-12 11:50:17 -07:00
Ben McMorran 44671aa6b7 Update checkDTS() to be aware of lmTools (#12696) 2024-09-09 13:34:54 -07:00
Luca 731cccd8e3 Add C++ configuration as a language model tool (luca) (#12685) 2024-09-06 14:53:26 -07:00
Sean McManus 8718b9686b Fix extract to function formatting. (#12679) 2024-09-05 18:20:46 -07:00
Bob Brown 8111083f6a remove old loc files for TS files that don't exist anymore (#12686) 2024-09-05 12:21:57 -07:00
Bob Brown 7006e18ea4 The compiler path selection control is not in sync with the textbox (#12678) 2024-09-04 13:06:23 -07:00
Bob Brown f077665994 delete configuration properties when empty (#12670) 2024-09-04 10:34:48 -07:00
Bob Brown 93a20bc2de Update link to glob info (#12671) 2024-08-30 17:03:51 -07:00
Sean McManus 86b698b503 Update changelog and version for 1.22.2. (#12657) 2024-08-29 19:04:49 -07:00
browntarik b7f76c507c Remove intellisenseEngineFallback description (#12655)
* Remove intellisenseEngineFallback description.
* Remove references to includeFallback.
2024-08-29 18:46:25 -07:00
browntarik fcdccd4dff Remove usage of intellisenseEngineFallback setting. (#12600) 2024-08-29 13:54:15 -07:00
Sean McManus f222a97849 Update changelog for 1.22.1 (#12646)
* Update changelog for 1.22.1
2024-08-29 13:32:47 -07:00
Bob Brown 1f426edd13 Address a component governance report on webpack (#12649) 2024-08-28 10:53:10 -07:00
Bob Brown 994e7b9201 Log the values of editor settings that we track (#12635) 2024-08-27 17:04:01 -07:00
Sean McManus 3dc7067c30 Update changelog (2nd time) (#12631) 2024-08-26 13:39:38 -07:00
Stanislav 49d987d747 Fix show a list local processes, if remote connection failed (useExtendedRemote) (#12623)
* Fix show a list local processes, if remote connection failed (useExtendedRemote)
2024-08-26 12:22:24 -07:00
dependabot[bot] c81120e7c4 Bump micromatch from 4.0.7 to 4.0.8 in /Extension (#12630)
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.7 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/4.0.8/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.7...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-26 12:14:52 -07:00
Bob Brown e5ce40bfe1 Log the modified extension settings as part of Log Diagnostics (#12621) 2024-08-26 12:02:03 -07:00
Sean McManus d3cd4fcfd7 Fix vcFormat not working and other case comparison bugs. (#12620) 2024-08-23 11:15:42 -07:00
Colen Garoutte-Carson d8a6a98f4b Switch from LSP hover to HoverProvider (#12612) 2024-08-22 19:26:37 -07:00
Colen Garoutte-Carson 326f7d93b9 Spread out schedules of github actions to avoid 'rate limit' errors (#12616) 2024-08-22 18:10:15 -07:00
Colen Garoutte-Carson fbfddd2158 Prevent AddComment action from adding redundant comments (#12611) 2024-08-21 14:32:58 -07:00
Sean McManus d7bfae6ed1 Update changelog/version for 1.22.0 (#12602)
* Update changelog and version for 1.22.0.
2024-08-21 13:24:07 -07:00
Sean McManus 66b934c6df Update TPN for 1.22.0. (#12601) 2024-08-21 11:44:04 -07:00
Colen Garoutte-Carson 7dcd5a48c0 Remove use of editorconfig module to avoid dependency on one-ini wasm file. (#12579) 2024-08-20 14:38:19 -07:00
Colen Garoutte-Carson a0f863c560 Fix LSP cancellation (#12592) 2024-08-20 14:25:37 -07:00
Garrett SerackandColen Garoutte-Carson 818f7c6899 Update scripts use of spawnSync to work with newer versions of nodejs (#12503)
Co-authored-by: Colen Garoutte-Carson <[email protected]>
2024-08-20 14:10:48 -07:00
Colen Garoutte-Carson cb50bb1b34 Fix addComment action (#12599) 2024-08-20 14:05:45 -07:00
Colen Garoutte-Carson 632454923c Add AddComment GitHub action, and workflows for tagging new debugger issues (#12496) 2024-08-20 13:25:14 -07:00
Bob Brown 06ed83878c Release pipelines for themes and extension pack (#12589) 2024-08-19 16:38:58 -07:00
Sean McManus 4a7fe28adc Update msvc versions for 17.11 (#12583)
* Update msvc versions for 17.11
2024-08-18 06:40:30 -07:00
Sean McManus 0ffdc003fa Fix "Replacement of a substring with itself" warning. (#12546) 2024-08-15 19:18:41 -07:00
browntarik d2bd3e035c Refactor compilerPath logic to reflect settings validation changes (#12556)
* Remove unnesseacary null check and set compilerPathIsExplicit when defaultCompilerPath is null

* Remove unneccessary else statement.

* Refactor changes

* Propogate null usage to reflect null typing for compilerPath.

* Remove normalization of null to undefined.

* Fix linting

* Add null to resolvedCompilerPath

* Update cpp_properties schema
2024-08-15 12:29:06 -07:00
Colen Garoutte-Carson d4c46c725d Update OneLocBuild pipeline (#12573) 2024-08-15 11:59:28 -07:00
Sean McManus 631c522737 Remove debug and ms from TPN (not actually distributed). (#12566) 2024-08-14 18:23:31 -07:00
Sean McManus 571f2d57ef Update axios to 1.7.4. (#12564) 2024-08-13 14:04:56 -07:00
Sean McManus 5cec9b93b8 Fix 5 high severity vulnerabilities in .github/actions. (#12562) 2024-08-13 12:17:20 -07:00
Sean McManus da2fcbc88c Fix vsce with cg.yml (#12561)
* Fix vsce via upgrading to node.js 18.
2024-08-12 14:20:27 -07:00
browntarik 3cf9a99864 Add Validation for VS Code Settings (#12454) 2024-08-09 12:18:44 -07:00
Sean McManus 99af8d886e Update changelog and version for 1.21.6 (#12539) 2024-08-05 10:38:27 -07:00
Sean McManus 3cc2650dfa Merge pull request #12538 from microsoft/seanmcm/1_21_6_release
Update changelog and version for 1.21.6
2024-08-05 09:27:22 -07:00
Sean McManus fdf9b5bfe0 Update changelog and version for 1.21.6 2024-08-02 18:31:39 -07:00
Sean McManus fdd71bc963 Merge pull request #12531 from microsoft/seanmcm/1_21_5_release
Update for 1.21.5.
2024-07-30 22:09:55 -07:00
Sean McManus b768a5440a Update for 1.21.5. (#12530) 2024-07-30 22:09:47 -07:00
Sean McManus 1d266a9c0e Update for 1.21.5. 2024-07-30 20:09:13 -07:00
Sean McManus 570862bf64 Update TPN for 1.21.4 (#12518) 2024-07-25 15:17:27 -07:00
Sean McManus f818529a08 Merge pull request #12517 from microsoft/seanmcm/1_21_4_release
Merge for 1.21.4
2024-07-25 15:13:50 -07:00
Sean McManus 41a05a90c8 Update TPN for 1.21.4 2024-07-25 15:09:54 -07:00
Sean McManus e59c6ca759 Go back to supporting VS Code 1.67.0 instead of 1.82.0. 2024-07-25 14:53:37 -07:00
Sean McManus 4e09135edc Go back to supporting VS Code 1.67.0 instead of 1.82.0. (#12515) 2024-07-25 14:37:18 -07:00
Sean McManus 287ee3961b Merge pull request #12500 from microsoft/seanmcm/1_21_3_release
Update changelog and version for 1.21.3. (#12499)
2024-07-23 19:33:36 -07:00
Sean McManus 8a8fd883ac Update changelog and version for 1.21.3. (#12499) 2024-07-23 19:32:29 -07:00
Sean McManus 15c6bdd613 Update changelog and version for 1.21.3. (#12499) 2024-07-23 19:30:20 -07:00
Bob Brown 7078f4b0bd Enable codeQL for TypeScript (#12490) 2024-07-19 11:30:20 -07:00
Sean McManus 626bb6e388 Change cpp editor.stickyScroll.defaultModel. (#12486) 2024-07-18 18:05:31 -07:00
Sean McManus 01829f8b81 Update 1.21.2 changelog in main. (#12485)
* Update 1.21.2 changelog in main.
* Update version
2024-07-18 21:46:31 +00:00
Colen Garoutte-Carson 9f2e50b2ef Update edge strings for FI (#12487) 2024-07-17 18:25:57 -07:00
Sean McManus 4fe56500a9 Merge pull request #12474 from microsoft/seanmcm/1_21_2_release
Merge for 1.21.2
2024-07-17 18:13:02 -07:00
Sean McManus 03911153f9 Update date. 2024-07-17 15:42:14 -07:00
Sean McManus acea31e572 Minor update. 2024-07-12 15:58:18 -07:00
Sean McManus bf21e01764 Update 2024-07-12 12:25:35 -07:00
Sean McManus 30f1361d23 Merge branch 'main' into seanmcm/1_21_2_release 2024-07-12 12:01:21 -07:00
Bob Brown 6fc05290e6 Strip quotes from debug configurations and fix an issue with quotes in paths (#12471) 2024-07-12 11:46:08 -07:00
Ben McMorran c976dba2dd Don't show warning notification when C_Cpp.getIncludes is disabled (#12470) 2024-07-12 10:53:28 -07:00
Sean McManus d5077a2575 Update changelog and version for 1.21.1. (#12449)
* Update changelog and version for 1.21.1.
2024-07-11 18:50:25 -07:00
[email protected] 3d01238ef9 [Auto] Localization - Translated Strings (#12279) 2024-07-11 17:56:25 -07:00
Sean McManus 0f7faae67f Fix multiple cpptools processes running with a multiroot workspace. (#12461) 2024-07-11 15:14:02 -07:00
Sean McManus 36dd0b874b Check extensions.ignoreRecommendations before doing insiders prompting. (#12447) 2024-07-09 17:27:30 -07:00
Colen Garoutte-Carson 14bd2e7f8e Update VCPkgHeadersDatabase.zip (#12430) 2024-07-02 18:32:09 -07:00
Colen Garoutte-Carson 9d321ce412 Fix an issue with missing custom configurations (#12427) 2024-07-01 14:34:21 -07:00
Colen Garoutte-Carson 7a1785d783 Update edge strings for FI (#12395) 2024-06-28 10:58:16 -07:00
browntarik b5057a1d02 Strip '\r' and '\n' from the end of each line if they exist when parsing the vcpkg database (#12416)
* Strip '\r' and '\n' from the end of each line if they exist when parsing the vcpkg database.

* remove debugging log

* Fix lint issue

* Revert regex

* Refactor line trimming

* Fix lint issues

* Remove old comment
2024-06-26 17:18:00 -07:00
browntarik 2d22b1493c Add @see and @sa Doxygen Tags with the "See Also:" label. (#12415)
* Add sa and see doxygen tags with the "See Also" label.

* remove redundant label

* Fix "See also" label
2024-06-26 15:08:02 -07:00
Sean McManus 3933174c29 Fix the tag parser busy indicator while initializing. (#12404) 2024-06-24 10:19:58 -07:00
Sean McManus 0061da69af Fix crash from loc message mismatch. (#12388) 2024-06-17 14:29:25 -07:00
Sean McManus fced3fbd17 Update changelog date. (#12385) 2024-06-17 11:00:01 -07:00
Sean McManus 15c96e28da Updates for 1.21.0 (#12370)
* Updates for 1.21.0
2024-06-13 14:43:27 -07:00
Bob Brown 2327499cdb one-ini-bg.wasm is missing from the webpacked extension (#12369) 2024-06-13 12:10:48 -07:00
Bob Brown 9061b79f2b Update to the latest telemetry API (#12367) 2024-06-12 16:43:27 -07:00
Sean McManus cf35bbcd0e Revert back to glob 7 due to test failures (and update .github/actions dependencies) (#12365)
* Revert back to glob 7 due to test failures.
* Fix npm audit issues with .github/actions
2024-06-12 10:20:04 -07:00
Bob Brown a096f06683 Update top level documents for compliance (#12343) 2024-06-11 09:12:51 -07:00
Sean McManus 1cfd34ca23 Update dependencies, glob, and IntelliSense loc strings (#12317)
* Update dependencies
* Update TPN.
* Update glob.
* Update EDG loc strings.
2024-06-07 17:41:19 -07:00
Luca 923ecfa1cd make debugging easier to inspect local var value (#12358) 2024-06-07 15:28:22 -07:00
Sean McManus db61a690be Fixes/improvements to crash call stacks. (#12355)
* Fixes/improvements to crash call stacks.
2024-06-06 14:57:57 -07:00
Sean McManus 9a5f24fafb Update dependencies. (#12351) 2024-06-05 18:51:29 -07:00
Sean McManus 03933b0a74 Merge pull request #12277 from microsoft/seanmcm/1_20_5_release
Merge for 1.20.5
2024-05-07 20:26:45 -07:00
[email protected] fc8eb8632f [Auto] Localization - Translated Strings (#12236) 2024-05-03 16:06:02 -07:00
[email protected] cf2ea08800 [Auto] Localization - Translated Strings (#12236) 2024-05-03 15:33:13 -07:00
Sean McManus f6722bc8ff Update version and changelog for 1.20.5 (#12264)
* Update version and changelog for 1.20.5
2024-05-03 15:30:48 -07:00
Sean McManus 894db52405 Fix macOS version check. (#12276) 2024-05-03 15:29:46 -07:00
Sean McManus abf384619d Merge branch 'insiders' into seanmcm/1_20_5_release 2024-05-03 15:29:34 -07:00
Sean McManus 3182eed2ac Update version and changelog for 1.20.5 (#12264)
* Update version and changelog for 1.20.5
2024-05-03 14:44:48 -07:00
Sean McManus 054e826e2c Fix macOS version check. (#12276) 2024-05-03 13:13:46 -07:00
Sean McManus fd482d2169 Merge pull request #12274 from microsoft/seanmcm/1_20_4_cherrypick
Updates for 1.20.4 (#12273)
2024-05-02 11:16:42 -07:00
Sean McManus 2fafd831e5 Updates for 1.20.4 (#12273)
* Don't use the crash handler on macOS < 19.
* Update version and changelog.
2024-05-02 10:14:49 -07:00
Sean McManus b3af47fd03 Updates for 1.20.4 (#12273)
* Don't use the crash handler on macOS < 19.
* Update version and changelog.
2024-05-02 10:12:01 -07:00
Bob Brown fbea8eb211 Update CHANGELOG.md (#12271) 2024-05-01 14:16:34 -07:00
Sean McManus 1ceae9d4ed Merge pull request #12266 from microsoft/seanmcm/1_20_3_cherryPicks
Cherry-picks for 1.20.3
2024-04-30 16:18:52 -07:00
Sean McManus d4d5d4551f Update version and changelog for 1.20.3 (#12245)
* Update version and changelog for 1.20.3
2024-04-30 13:11:53 -07:00
Sean McManus 0ef77b5616 Improvements to crash call stack logging. (#12247)
* Updates to crash call stack logging.
* Move crash logging to its own channel.
2024-04-30 13:11:10 -07:00
Sean McManus 79c4412287 Update version and changelog for 1.20.3 (#12245)
* Update version and changelog for 1.20.3
2024-04-30 13:08:27 -07:00
Bob Brown 7c24091cc8 enable TSA and policheck (#12258) 2024-04-26 11:13:17 -07:00
Sean McManus efa93d8b59 Improvements to crash call stack logging. (#12247)
* Updates to crash call stack logging.
* Move crash logging to its own channel.
2024-04-25 16:38:21 -07:00
Sean McManus efdc8e90f6 Merge pull request #12235 from microsoft/seanmcm/1_20_2_cherryPicks2
Cherry-picks for 1.20.2
2024-04-19 17:17:01 -07:00
Sean McManus 9f020e9258 Update changelog for 1.20.2 (2nd time) (#12228)
* Update changelog
2024-04-19 16:57:13 -07:00
Bob Brown c058568767 rename the property again (#12233)
* rename the property again

* fail
2024-04-19 16:57:00 -07:00
browntarik 8809e69e91 Remove redundant variable resolution in handleSquiggles and fix error messaging for env and delimited paths under include paths in c_cpp_properties.json (#12188)
* remove redundant variable resolution

* fix lint

* remove resolveVariable redundancies

* change when resolve and split happens

* fix lint

* Resolve error checking for environment vars and delimited paths

* remove "path" from error messaging

* Adjust error messaging

* remove stray comment

* refactor error messaging + minor fix

* resolve lint

* Fix multi path squiggle regression

* Remove resolvedPath redundancies

* Refactor error messaging and squiggling

* Revert and improve error squiggling behavior

* fix linting

* properly proccess glob patterns + minor fixes

* fix comment positions

* Refactor error message + minor fix

* Fix telemetry metric + minor fix
2024-04-19 16:56:46 -07:00
Sean McManus 7af5c40dd0 Handle multiple cpptools-srv crashes. (#12225) 2024-04-19 16:56:33 -07:00
Sean McManus a1baeac6f7 Update changelog for 1.20.2 (2nd time) (#12228)
* Update changelog
2024-04-19 16:54:05 -07:00
Bob Brown 3b68eab6ca rename the property again (#12233)
* rename the property again

* fail
2024-04-19 14:55:19 -07:00
browntarik 997a042ebf Remove redundant variable resolution in handleSquiggles and fix error messaging for env and delimited paths under include paths in c_cpp_properties.json (#12188)
* remove redundant variable resolution

* fix lint

* remove resolveVariable redundancies

* change when resolve and split happens

* fix lint

* Resolve error checking for environment vars and delimited paths

* remove "path" from error messaging

* Adjust error messaging

* remove stray comment

* refactor error messaging + minor fix

* resolve lint

* Fix multi path squiggle regression

* Remove resolvedPath redundancies

* Refactor error messaging and squiggling

* Revert and improve error squiggling behavior

* fix linting

* properly proccess glob patterns + minor fixes

* fix comment positions

* Refactor error message + minor fix

* Fix telemetry metric + minor fix
2024-04-19 14:11:41 -07:00
Colen Garoutte-Carson aacc06ed27 Fix issue with not yet localized edge strings (#12232) 2024-04-19 13:50:22 -07:00
[email protected] 1ae5303cf0 [Auto] Localization - Translated Strings (#11999) 2024-04-19 13:48:48 -07:00
Sean McManus 7baeb52329 Handle multiple cpptools-srv crashes. (#12225) 2024-04-18 18:28:00 -07:00
Colen Garoutte-Carson 0e5ee3a4d4 Update edge loc strings for FI (#12217) 2024-04-18 15:53:11 -07:00
Sean McManus 1d2bd10691 Merge pull request #12223 from microsoft/main
Fix SettingsTracking treating numerical loggingLevel as invalid. (#12…
2024-04-18 15:11:30 -07:00
Sean McManus 21ef2e36d6 Fix SettingsTracking treating numerical loggingLevel as invalid. (#12216)
* Fix SettingsTracking treating numerical loggingLevel as invalid.
* Fix numeric loggingLevels.
* Return -1 numerical value on invalid levels.
2024-04-18 12:44:22 -07:00
Sean McManus dac96fe852 Merge pull request #12209 from microsoft/main
Merge for 1.20.2
2024-04-16 18:43:48 -07:00
Sean McManus b955eeb013 Update version and changelog for 1.20.2 (#12208) 2024-04-16 17:31:16 -07:00
Sean McManus 3e6b99925b Crash handler update (#12190)
* Minor update to watchForCrashes.
* Add preinitialize message.
2024-04-16 15:36:28 -07:00
Bob Brown f06f689488 rename telemetry property (#12202) 2024-04-15 17:05:48 -07:00
Bob Brown fec0d8854e Log more info with the configuration provider telemetry (#12193) 2024-04-13 09:01:53 -07:00
Sean McManus a1487e5e79 Merge pull request #12185 from microsoft/main
Merge for 1.20.1
2024-04-09 17:07:29 -07:00
Bob Brown 4650cfeeb9 Update CHANGELOG.md (#12186) 2024-04-09 14:43:42 -07:00
Sean McManus 35cda7ebb0 Update changelog for 1.20.1 (#12182)
* Update changelog for 1.20.1
2024-04-09 13:09:25 -07:00
Sean McManus 92a0494796 Update for libexecinfo crash handler change. (#12158)
* Update for libexecinfo crash handler change.
* Update ThirdPartyNotices.txt
2024-04-08 16:13:36 -07:00
Bob Brown d2bd18acf1 don't strip underscores when demangling (#12159) 2024-04-01 14:04:46 -07:00
Bob Brown f3cbf1237d clean up the pipeline runs (#12151) 2024-03-27 17:32:41 -07:00
Bob Brown 76509d6a0c Component Governance pipeline for vscode-cpptools (#12148) 2024-03-27 14:07:28 -07:00
Sean McManus 6f19496172 Merge pull request #12138 from microsoft/main
Merge for 1.20.0
2024-03-26 14:12:18 -07:00
Sean McManus 32ead756bb Update changelog and version for 1.20.0. 2024-03-25 16:17:37 -07:00
Colen Garoutte-Carson 976a1ba8e8 Update to clang-tidy 18.1.2 (#12135) 2024-03-22 18:14:30 -07:00
Garrett Serack 1c4292d8f5 remove unnecessary null (#12133) 2024-03-22 11:22:26 -07:00
Garrett Serack 1ab766bc5c Add setting to support max search results (#12131) 2024-03-21 11:17:24 -07:00
Colen Garoutte-Carson ad5d6de4ea Merge pull request #12123 from microsoft/coleng/cherry_pick_1.19.9.x2 2024-03-19 16:40:47 -07:00
Colen Garoutte-Carson 153e232f2d Update changelog for 1.19.9 again (#12122) 2024-03-19 16:16:21 -07:00
Colen Garoutte-Carson 127588ba57 Update changelog for 1.19.9 again (#12122) 2024-03-19 16:15:31 -07:00
Colen Garoutte-Carson bcd4a7f025 Merge pull request #12118 from microsoft/coleng/cherry_pick_1.19.9 2024-03-18 15:00:41 -07:00
Colen Garoutte-Carson 3c3d463a81 Update changelog 1.19.9 (#12117) 2024-03-18 13:22:40 -07:00
Colen Garoutte-Carson ccd80fedb1 Update changelog 1.19.9 (#12117) 2024-03-18 13:21:27 -07:00
dependabot[bot]andSean McManus 1fc8731c2b Bump follow-redirects from 1.15.5 to 1.15.6 in /Extension (#12112)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.5 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.5...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sean McManus <[email protected]>
2024-03-18 12:31:43 -07:00
dependabot[bot]andSean McManus b6deaf9fa0 Bump follow-redirects from 1.15.4 to 1.15.6 in /.github/actions (#12111)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sean McManus <[email protected]>
2024-03-18 12:24:09 -07:00
browntarik a6eff82854 Add internal formatting support for Copy Declaration/Definition (#12055)
* Add text formatting for CopyDD

* fix lint issues

* Plumb up editor settings msg

* add vcFormat param

* Add formatParams to CDD + rollback changes

* fix lint issue

* update defaults

* Reafctor formatParams correctly for vcFormat and .editor_config

* populate editorConfigSettings

* minor fix

* minor fix
2024-03-18 11:08:11 -07:00
Luca 751fd74113 Add a command to fetch the includes graph for a TU (#12085) 2024-03-14 16:54:37 -07:00
Colen Garoutte-Carson 3dfa607685 Revert "Address multiple-init scenario"
This reverts commit b2c06a57c9.
2024-03-14 12:55:19 -07:00
Colen Garoutte-Carson b2c06a57c9 Address multiple-init scenario 2024-03-14 12:54:14 -07:00
Colen Garoutte-Carson 92691929ed Merge pull request #12100 from microsoft/coleng/merge_release_1.19.8.try2 2024-03-13 17:16:25 -07:00
Colen Garoutte-Carson 86a41c9021 Update changelog for 1.19.8 again (#12099) 2024-03-13 17:12:21 -07:00
Colen Garoutte-Carson a97a334eb0 Update changelog for 1.19.8 again (#12099) 2024-03-13 17:11:41 -07:00
browntarik 3d8180141f Eliminate squiggle from all glob configurations (#12072)
* Fix glob coverage

* resolve and split paths before validation

* expand glob patterns and do not expand incorrect paths

* Do not squiggle paths that need to be expanded

* revert change

* squiggle paths that end with *

* Do not squiggle paths that end with *

* properly squiggle glob paths with recursive includes

* correctly report squiggles with glob paths

* move check for asterisk to outer check

* fix lint issues
2024-03-13 17:13:31 +00:00
Colen Garoutte-Carson a71c90c140 Merge pull request #12093 from microsoft/coleng/cherry_pick_1.19.8 2024-03-12 19:16:35 -07:00
Colen Garoutte-Carson 1d28851ef7 Update changelog for 1.19.8 (#12092) 2024-03-12 19:11:20 -07:00
Colen Garoutte-Carson 74ab0e7ba5 Update changelog for 1.19.8 (#12092) 2024-03-12 19:10:13 -07:00
Sean McManus 8dfeccd935 Fix Add Configuration with snippets disabled. (#12080) 2024-03-11 16:45:35 -07:00
Colen Garoutte-Carson 1aced54699 Merge pull request #12090 from microsoft/coleng/cherry_pick_3_11_2024 2024-03-11 14:17:04 -07:00
Bob Brown a8cf39c8b4 Prevent the status bar from updating too quickly (#12088) 2024-03-11 13:32:50 -07:00
Bob Brown c144fe2408 Prevent the status bar from updating too quickly (#12088) 2024-03-11 13:29:52 -07:00
Colen Garoutte-Carson e037b95926 Merge pull request #12087 from microsoft/coleng/cherry_pick_to_release_again 2024-03-08 15:09:53 -08:00
Colen Garoutte-Carson af7f6ce52e Update changelog again for 1.19.7 (#12086) 2024-03-08 15:01:37 -08:00
Colen Garoutte-Carson 3bbc6716ad Update changelog again for 1.19.7 (#12086) 2024-03-08 15:00:40 -08:00
Colen Garoutte-Carson 9a18982440 Merge pull request #12083 from microsoft/coleng/cherry_pick_release_1.19.7 2024-03-08 11:09:55 -08:00
Colen Garoutte-Carson 35bf4c8b0f Update changelog for 1.19.7 (#12081) 2024-03-08 10:32:50 -08:00
Colen Garoutte-Carson 75ed1b5ec3 Update changelog for 1.19.7 (#12081) 2024-03-08 10:29:55 -08:00
browntarik 699b3d52c5 Resolve userHome variable in c_cpp_properties.json (#12071)
* Add userHome envrionment variable

* Resolve userHome to os.homedir

* revert change

* fix lint issues

* Rework resolving variables + minor change

* Minor fixes
2024-03-07 10:59:30 -08:00
Colen Garoutte-Carson ae8c4aca58 Update edge json files for FI (#12074) 2024-03-06 19:47:10 -08:00
Colen Garoutte-Carson 79d0c06951 Update edge loc strings (#12073) 2024-03-06 18:58:33 -08:00
Colen Garoutte-Carson a877c6f1ae Fix forced include resolution (#12035) 2024-03-06 14:15:22 -08:00
Colen Garoutte-Carson 23446558cf Merge pull request #12065 from microsoft/main 2024-03-05 18:22:19 -08:00
Colen Garoutte-Carson 6ccc588d69 Merge branch 'release' into main 2024-03-05 17:13:14 -08:00
Colen Garoutte-Carson 81071ba4f5 Update changelog for 1.19.6 (#12064) 2024-03-05 17:12:32 -08:00
Sean McManus e12c7c28d1 Merge pull request #12054 from microsoft/main
Update changelog (again) (#12053)
2024-03-04 12:57:53 -08:00
Sean McManus 724b47922e Update changelog (again) (#12053) 2024-03-04 12:56:08 -08:00
Sean McManus b3911bf88a Merge pull request #12046 from microsoft/main
Update date (#12045)
2024-03-01 18:41:51 -08:00
Sean McManus 802f94560d Update date (#12045)
* Update date.
2024-03-01 13:50:12 -08:00
Sean McManus 5573667b95 Merge pull request #12038 from microsoft/main
Update changelog. (#12037)
2024-02-29 17:14:10 -08:00
Sean McManus dd5d161991 Update changelog. (#12037) 2024-02-29 17:12:48 -08:00
Colen Garoutte-Carson a005307a60 Merge pull request #12034 from microsoft/main 2024-02-28 13:38:45 -08:00
Colen Garoutte-Carson dcb4b8501d Merge branch 'release' into main 2024-02-28 12:53:08 -08:00
Colen Garoutte-Carson 1e65cbf65d Update changelog for 1.19.5 (#12033) 2024-02-28 12:52:03 -08:00
Sean McManus cdc9dd8584 Fix inlay hint tests. And reapply inlay hint settings if they're changed (#12014)
* Fix inlay hint tests. And reapply inlay hint settings if they're changed.
* Make updating work without scrolling.
2024-02-27 14:45:19 -08:00
Sean McManus 93f4337576 Fix error handling when HostName is not available (#12022)
* Fix error handling when the HostName isn't available.
2024-02-27 14:26:19 -08:00
Colen Garoutte-Carson 69338b814b Update cppbuild task behavior for args and command fields to match VS Code's shell task type (#12026) 2024-02-27 13:07:40 -08:00
dependabot[bot] af6287f1ca Bump es5-ext from 0.10.62 to 0.10.64 in /Extension (#12028)
Bumps [es5-ext](https://github.com/medikoo/es5-ext) from 0.10.62 to 0.10.64.
- [Release notes](https://github.com/medikoo/es5-ext/releases)
- [Changelog](https://github.com/medikoo/es5-ext/blob/main/CHANGELOG.md)
- [Commits](https://github.com/medikoo/es5-ext/compare/v0.10.62...v0.10.64)

---
updated-dependencies:
- dependency-name: es5-ext
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-27 10:37:23 -08:00
Colen Garoutte-Carson 1868f99cad Merge pull request #11996 from microsoft/main 2024-02-21 12:32:11 -08:00
Colen Garoutte-Carson ef3472d8f5 Merge branch 'release' into main 2024-02-21 12:08:28 -08:00
Sean McManus 347a1fac67 Update changelog for 1.19.4 (#11976)
* Update changelog for 1.19.4
2024-02-21 19:47:55 +00:00
[email protected] 239d6a036b [Auto] Localization - Translated Strings (#11948) 2024-02-21 11:47:00 -08:00
dependabot[bot] d1da368537 Bump ip from 2.0.0 to 2.0.1 in /.github/actions (#11990)
Bumps [ip](https://github.com/indutny/node-ip) from 2.0.0 to 2.0.1.
- [Commits](https://github.com/indutny/node-ip/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: ip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-20 19:36:49 -08:00
browntarik 38c16a5888 Update shell quote E2E test (#11977)
* resolve e2e test
2024-02-20 16:04:46 -08:00
Trond Einar Snekvik 8b9960c603 Silence console.logs (#11973)
Removes the console.log messages that show up during normal execution.
Leaves console.logs in exception handlers the way they are.

Signed-off-by: Trond Einar Snekvik <[email protected]>
2024-02-16 18:05:33 -08:00
jogo- 0c937511c7 Fix typo in CHANGELOG.md (#11968) 2024-02-15 13:42:23 -08:00
browntarik 36ea516731 Fix E2E Shell Quoting Test (#11975)
* resolve e2e test

* Resolve prompt regression and tests

* Fix lint issue

* resolve e2e test

* add double quotes

* only escape baskslash

* resolve e2e test

* Add backslash
2024-02-15 11:40:42 -08:00
browntarik 54314feab5 Fix shell quoting e2e test (#11969)
* resolve e2e test

* Resolve prompt regression and tests

* Fix lint issue

* resolve e2e test

* add double quotes

* only escape baskslash
2024-02-14 15:27:10 -08:00
browntarik 286a5c590a Resolve prompt regression + fix e2e tests (#11964)
* resolve e2e test

* Resolve prompt regression and tests

* Fix lint issue
2024-02-13 15:01:59 -08:00
browntarik ce202f3549 resolve e2e test (#11961) 2024-02-13 12:08:42 -08:00
Colen Garoutte-Carson 76ccb791ff Merge pull request #11947 from microsoft/main 2024-02-09 17:16:17 -08:00
Colen Garoutte-Carson c7882e941c Update changelog for 1.19.3, to mention C_Cpp.experimentalFeatures (#11946) 2024-02-09 15:43:18 -08:00
[email protected] c5da16771a [Auto] Localization - Translated Strings (#11635) 2024-02-09 15:38:30 -08:00
browntarik 98c6222154 change ping interval to 14 days and close interval to 30 (#11943) 2024-02-09 09:17:53 -08:00
Colen Garoutte-Carson a5a5735089 Merge pull request #11942 from microsoft/main 2024-02-08 17:07:45 -08:00
Colen Garoutte-Carson 33dce288dd Update changelog and version for 1.19.3 (#11941) 2024-02-08 16:50:48 -08:00
Sean McManus 406f1d62df Update TPN. (#11940) 2024-02-08 15:48:18 -08:00
Garrett SerackandSean McManus 674148fb07 Perf-boost - fast query symbols (#11785)
* Perf-boost - fast query symbols

* Rebased, updated (moved to node 18.15.0+)

* quick cleanup

* remove unused linter directive

* Delete Extension/cpp.hint

That wasn't supposed to be here.

* restore file

---------

Co-authored-by: Sean McManus <[email protected]>
2024-02-08 14:37:29 -08:00
browntarik aa5601041c Remove whitespace if the includePath exists + minor fix (#11911)
* Remove whitespace if the includePath exists + minor fix

* fix lint issues

* Move includePath validation to config.ts

* fix lint issues

* small fixes

* fix lint issues
2024-02-05 16:15:01 -08:00
Colen Garoutte-Carson 62d167aeb3 Change default intelliSenseUpdateDelay to 1s (#11932) 2024-02-05 15:44:59 -08:00
browntarik b742a191ee Validate Compiler Paths Against PATH Environment Variable in Configuration UI (#11913)
* resolve compiler against envrionment variables

* fix lint issue
2024-02-01 13:36:09 -08:00
Sean McManus 9229952cd9 Update TPN for musl (#11912) 2024-01-31 18:01:57 -08:00
Sean McManus 389cfdd583 Improve crash logging (#11899)
* Improve crash logging.
2024-01-26 13:01:06 -08:00
Sean McManus 5077edf585 Merge pull request #11886 from microsoft/main
Merge for 1.19.2 (2nd time)
2024-01-19 18:08:55 -08:00
Sean McManus 3f1e851152 Log cpptools crash call stacks. (#11858)
* Log cpptools crash call stacks.
2024-01-19 17:51:01 -08:00
Colen Garoutte-Carson 6b1fe63294 Update changelog for 1.19.2 (#11885) 2024-01-19 15:30:00 -08:00
browntarik 821fbb3566 update changelog (#11878) 2024-01-19 15:03:15 -08:00
Sean McManus 3670564712 Fix broken edtior.wordBasedSuggestions setting. (#11773) 2024-01-18 10:29:43 -08:00
Colen Garoutte-Carson f38926f8b1 Merge pull request #11874 from microsoft/main 2024-01-16 17:41:23 -08:00
Sean McManus ced402ad5d Update ThirdPartyNotices.txt (#11873) 2024-01-16 17:29:06 -08:00
Colen Garoutte-Carson 5f8d072b86 Update CHANGELOG for 1.19.2 (#11871) 2024-01-16 17:22:55 -08:00
Sean McManus f84f285db3 Fix EACCES error when using include wildcards. (#11870) 2024-01-16 16:41:16 -08:00
Tobias Obermayer 44194c000d fix german translation for RunCodeAnalysis (#11845) 2024-01-16 15:49:38 -08:00
dependabot[bot]andSean McManus c61bd07bb5 Bump follow-redirects from 1.15.1 to 1.15.4 in /.github/actions (#11849)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.1 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.1...v1.15.4)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sean McManus <[email protected]>
2024-01-09 10:36:24 -08:00
dependabot[bot] 3df0a0f796 Bump follow-redirects from 1.15.3 to 1.15.4 in /Extension (#11850)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.3 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.3...v1.15.4)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-09 10:30:20 -08:00
Colen Garoutte-Carson f16dfc92b2 Add permissions field to bot actions (#11847) 2024-01-08 16:40:51 -08:00
Bob Brown 96faf18d96 Address issues reported by compliance tooling (#11841) 2024-01-08 16:14:54 -08:00
browntarik 6393210a31 update shell quote baseline (#11827) 2024-01-03 10:48:29 -08:00
Sean McManus 7151847d1f Fix C_Cpp.autocomplete description. (#11816) 2023-12-29 14:33:57 -08:00
Sean McManus d5ffbd86f3 Fix extract to function formatting. (#11804)
* Fix extract to function formatting.
2023-12-27 15:04:04 -08:00
Sean McManus ab8b90b187 Stop clearing code analysis problems in updateCustomConfigurations. (#11798) 2023-12-21 17:35:51 -08:00
Sean McManus 8d42c49b77 Fix configuration provider handling with intelliSenseEngine "disabled". (#11797) 2023-12-21 12:27:41 -08:00
Colen Garoutte-Carson 0e24296f67 Enable progressive IntelliSense updates (#11735) 2023-12-19 18:24:05 -08:00
browntarik 7f87dc49f8 Fix shell quoting for command line arguments (#11734)
* Add shell quoting for command line arguments

* add shell escape logic from native

* resolve lint issues

* Refactor quoteArgument and getTask

* Add os specific shell quoting

* Correctly apply shell-quotes on Unix

* Fix lint

* fix lint

* Refactor quoteArgument logic
2023-11-30 10:01:19 -08:00
Sean McManus 30de9bcc27 Merge pull request #11725 from microsoft/main
Update for 1.19.1 (#11724)
2023-11-21 17:12:17 -08:00
Sean McManus cc4177b096 Update for 1.19.1 (#11724) 2023-11-21 14:58:42 -08:00
Sean McManus 100e2e0828 Merge pull request #11699 from microsoft/main
Merge for 1.19.0
2023-11-16 18:39:02 -08:00
Sean McManus a25b309ac7 Update for 1.19.0 (#11688)
* Update for 1.19.0
2023-11-16 17:01:15 -08:00
Sean McManus e7cb0a7c6a Merge pull request #11698 from microsoft/main
Merge for 1.18.5
2023-11-16 16:55:09 -08:00
Sean McManus b6f48cd1fe Update changelog and version for 1.18.5 (#11697) 2023-11-16 16:39:31 -08:00
Sean McManus ea391a3a17 Fix default Linux cache path. (#11696) 2023-11-16 15:46:03 -08:00
Sean McManus 4ba260c486 Merge pull request #11687 from microsoft/main
Merge for 1.18.4
2023-11-14 17:25:29 -08:00
Sean McManus 7cb9f88f6c Switch to a static import. Add telemetry. (#11686)
* Switch to a static import. Add telemetry.
2023-11-14 16:39:18 -08:00
Sean McManus 203823a6af Fix 'Extract to function' header selection state. (#11677)
* Fix 'Extract to function' header selection state.
* Update changelog.
2023-11-14 14:58:42 -08:00
Sean McManus 10564f909a Update changelog. 2023-11-14 14:41:00 -08:00
Sean McManus 383579dba3 Fix fetch call for VS Code before 1.82.0. (#11683) 2023-11-14 14:29:52 -08:00
Sean McManus e896231d88 Merge pull request #11671 from microsoft/main
Merge for 1.18.3 (4th time)
2023-11-13 15:15:12 -08:00
Sean McManus 5325b379c5 Open the modified header for 'Extract to function'. (#11670)
* Open the modified header for 'Extract to function'.
2023-11-13 15:13:09 -08:00
Sean McManus 1af06e1dd5 Update GitHub actions dependencies. (#11667) 2023-11-13 11:36:48 -08:00
Sean McManus 23fcef6dd8 Merge pull request #11661 from microsoft/main
Merger for 1.18.3 (3rd time)
2023-11-13 11:36:36 -08:00
Sean McManus c68caae1e7 Update TPN. (#11660) 2023-11-10 17:46:22 -08:00
Sean McManus 3dc4b8f626 Update vscode-tas-client. (#11658) 2023-11-10 16:12:44 -08:00
Sean McManus df5c16bddf Merge pull request #11654 from microsoft/seanmcm/1_18_3_release
Merge for 1.18.3
2023-11-10 11:06:38 -08:00
dependabot[bot] b008f1a1cc Bump axios from 0.27.2 to 1.6.0 in /.github/actions (#11651)
Bumps [axios](https://github.com/axios/axios) from 0.27.2 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.27.2...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 01:45:18 -08:00
Sean McManus 3a3a31b9b8 Merge branch 'main' into seanmcm/1_18_3_release 2023-11-09 18:03:16 -08:00
Sean McManus 5504bdf63d Update changelog for 1.18.3 (#11648)
* Update changelog for 1.18.3
2023-11-09 17:55:43 -08:00
Sean McManus e3b41771c6 Merge pull request #11639 from microsoft/main
Merge for 1.18.2 (2nd time)
2023-11-08 12:34:50 -08:00
Sean McManus 7d051394e6 Remove the 'Extract to function' experimentalFeatures requirement. (#11638) 2023-11-08 12:29:01 -08:00
Sean McManus 3f7f3090f6 Merge pull request #11633 from microsoft/main
Merge for 1.18.2
2023-11-07 15:59:34 -08:00
Sean McManus 468149a9ad Update changelog/version for 1.18.2 (#11628)
* Update changelog.
* Update version.
2023-11-07 15:46:27 -08:00
[email protected] 6ec1d81ef0 [Auto] Localization - Translated Strings (#11290) 2023-11-07 08:55:54 -08:00
Sean McManus 6b5d3ee985 Fix 'Extract to function' formatting/selection bugs. (#11621)
* Fix 'Extract to function' formatting/selection bugs.
2023-11-06 14:45:18 -08:00
Spencer Bloom 5b3c4c70b5 Add error catching on await calls and a persistent bool tracking if the user is on the pre-release channel (or has been while there's been a pre-release available) (#11613) 2023-11-03 12:07:03 -07:00
Sean McManus 6d5e4c4114 Fix 'Extract to function' switching to the header. (#11616)
* Fix 'Extract to function' switching to the header.
2023-11-03 10:10:32 -07:00
Sean McManus 4149493f2c Merge pull request #11607 from microsoft/main
Merge for 1.18.1
2023-11-01 17:55:01 -07:00
Sean McManus c26054a1a6 Update version (#11606) 2023-11-01 16:46:13 -07:00
Sean McManus a20a3f2781 Update changelog for 1.18.1 (#11604) 2023-11-01 16:34:18 -07:00
Sean McManus e7f5d1731d Fix formatting bug with multiple changes. (#11599) 2023-11-01 14:07:29 -07:00
Sean McManus 16f6cf91c7 Change Extract to Function to name earlier. (#11568)
* Change Extract to Function to name earlier.
2023-10-31 11:56:52 -07:00
browntarik 45addfddb3 Add Missing Include Code Action (#11488)
* Add loc string and Add Missing Include handler

* Add AddMissingInclude Command and resolve lint

* Refactor codeActionProvider

* resolve formatting and append newline to includes

* Only apply new line to Add Missing Include

* Resolve lint issue

* Add new line specific to OS

* Resolve newline
2023-10-27 10:58:45 -07:00
Spencer Bloom 6f80226e88 Update walkthrough text for the customize debugging step. (#11580) 2023-10-25 14:56:11 -07:00
Spencer Bloom 8fbc56a688 Notify users if there's a pre-release version available. (#11569)
* Notify users if there's a pre-release version available
2023-10-24 16:10:21 -07:00
Bob Brown fecfc08451 update changelog (#11532) 2023-10-16 11:30:46 -07:00
Sean McManus 43aad3f65c Merge pull request #11528 from microsoft/main
Update changelog (2nd time) (#11527)
2023-10-12 17:21:18 -07:00
Sean McManus 62a03c2b21 Update changelog (2nd time) (#11527)
* Update changelog (2nd time).
2023-10-12 17:12:41 -07:00
Sean McManus bedcacb0a1 Merge pull request #11526 from microsoft/main
Merge for 1.18.0
2023-10-12 14:58:49 -07:00
Sean McManus 7273d6112b Update changelog for 1.18.0 (#11521) 2023-10-12 14:37:41 -07:00
Michelle Matias 74bddb82e5 Reuse workflow for CI builds (#11503) 2023-10-11 18:40:01 -07:00
Sean McManus 4af6ca9db0 Extract to function (#11467)
* Extract to function.
2023-10-11 17:27:36 -07:00
Michelle Matias 7e4ee25c48 remove CreateDeclDefnCommandArguments (#11517) 2023-10-10 12:31:23 -07:00
Sean McManus 6da9a49652 Updates for clang-tidy 17.0.1 (#11491) 2023-10-10 12:09:32 -07:00
Michelle Matias 51d88dbb24 Increase timeout for E2E tests (#11516) 2023-10-09 16:12:47 -07:00
Michelle Matias cd8ecf9060 Handle undefined environment variable (#11480) 2023-10-06 11:50:26 -07:00
Sean McManus 847ea0b73c Fix prepublish. (#11469) 2023-09-29 17:41:31 -07:00
Michelle Matias 68c7be9d9e Fix loading UI (#11486) 2023-09-29 13:06:38 -07:00
Michelle Matias 1bde544458 Add Include Header setting for refactoring actions (#11449) 2023-09-27 10:51:53 -07:00
Sean McManus f62cad6a2f Fix Initializing in the status bar instead of Indexing. (#11471) 2023-09-26 16:37:57 -07:00
Garrett Serack eec372a186 force module to node16 for ts-node (#11468) 2023-09-26 11:40:51 -07:00
Michelle Matias b98bb40a89 Update language server loc strings (#11445) 2023-09-25 17:29:54 -07:00
Colen Garoutte-Carson 4d1a2a0e90 Change how logging level is passed to native process (#11438) 2023-09-18 13:57:25 -07:00
Michelle Matias dec50598bc Remove obsolete experimental configuration code (#11427) 2023-09-14 17:12:03 -07:00
browntarik c5c64ad831 Update localized intellisense crash string (#11356)
* update localized intellisense crash string

* resolve string

* update hint

* resolve loc string

* resolve string locs

* resolve spelling error
2023-09-13 14:45:35 -07:00
Bob Brown 27153190e2 Compiler acquisition (#11286) 2023-09-13 11:54:29 -07:00
Sean McManus 2cc55ea6eb Add keyboard support for Inline Macro. (#11261)
* Add keyboard support for Inline Macro.
* Enable inline macro without hover.
* Standardize localize string naming.
* Fix spelling errors involving strings types.
2023-09-11 09:56:16 -07:00
Garrett Serack 121a657acb make translations export work correctly in CI (#11415) 2023-09-08 07:53:49 -07:00
dependabot[bot] 6a54986b3f Bump mongodb from 4.8.1 to 4.17.0 in /.github/actions (#11413)
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 4.8.1 to 4.17.0.
- [Release notes](https://github.com/mongodb/node-mongodb-native/releases)
- [Changelog](https://github.com/mongodb/node-mongodb-native/blob/v4.17.0/HISTORY.md)
- [Commits](https://github.com/mongodb/node-mongodb-native/compare/v4.8.1...v4.17.0)

---
updated-dependencies:
- dependency-name: mongodb
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-07 09:52:11 -07:00
Garrett Serack b4a70dfc0a Make yarn tasks imply yarn install where appropriate (#11394)
* made sure that yarn install gets called before compile

* Add some nice messages

* better detection

* cleaned up more

* more tweaks

* remove old checks

* let unit tests run without binaries

* turn off scenario tests until binaries can be installed

* add another rule
2023-09-06 07:47:36 -07:00
browntarik efa5c2244b Rework Database Storage Path Logic (#11309)
* Fix typo (#11275)

* rework database logic

* resolve PR

* fix lint issues

* resolve PR

* resolve PR

* resolve PR

* resolve PR

* update names

* resolve PR

* resolve PR

* fix lint error

* resolve PR

* resolve PR
2023-09-05 13:35:11 -07:00
Sean McManus 4199155228 Update TPN. (#11393) 2023-08-31 12:56:15 -07:00
Garrett Serack d949d93924 Apply strict eslint rule (#11389) 2023-08-31 09:26:55 -07:00
Marcin Strzyz 44e2a0ec4c added enforcement of no array constructor. (#11385) 2023-08-30 13:12:41 -07:00
Marcin Strzyz 0cd369c603 Incremental. (#11383) 2023-08-30 13:04:01 -07:00
Marcin Strzyz 76fce67276 Added typing guards. (#11382) 2023-08-29 18:05:33 -07:00
Marcin Strzyz f3e0f0bb05 Added enforcement. (#11381) 2023-08-29 16:54:14 -07:00
Garrett Serack 628301be37 Test restructuring and cleanup (#11262)
* updated files

* queue and ready are now separate

* checkpoint

* found it! fixed missing call

* cleaned up and refactored a bit

* cleanup

* whoops. make sure linter runs!

* Make the queue itself static

* addressed formatting issues, added more rules to eslint

* more formatting, made ready Promise/void

* checkpoint

* checkpoint

* checkpoint

* checkpoint (linting)

* checkpoint

* checkpoint

* checkpoint

* checkpoint

* renamed path to filepath.

* checkpoint

* checkpoint

* so close...

* checkpoint again

* before making doc

* checkpoint

* checkpoint

* Checkpoint

* renamed awaiters

* eslint

* fix format on generated native strings

* add dummy pretest task back in for the moment

* change unit test runing

* posix calc test failure

* make signal dispose better

* add 	est regen script

* missed file

* checkpoint

* Improve scripts a bit

* remove hooks for now

* remove unused script

* remove unused script

* filter out files

* ensure that eslint works for scripts too

* fix build oses to specific version

* cleanups and tweaking

* adjusted for cosmetic feedback

* more

* add eslint rule to fix space before/after semicolon

* remove tba/tbd

* cleanup

* Added space-infix-ops rule

* cleanup

* resolve comments

* resolve comments

* add simple debug task

* spelling fixes

* cleanup more

* More changes. yay

* remove the extra whitespace from before comments

* add eslint rule to ensure that there are never extra spaces

* adding another eslint rule to ensure that there isn't spacing around unary operators, which we all know is dangerous. Or weird. I forget which

* added a space between vs and code because a space is the desired format

* removed all mentions of transpiler which was removed

* removed an extra comma

* removed a trailing slash

* removed useless lines

* missed as file

* reconfigure no-extra-parens rule

* added note about yarn install

* whatever

* more fun

* FIx it so that it webpacks correctly

* remove refernces to attic

* restore line to correct check

* fix whitespace

* added blank yarn install

* removed
2023-08-29 16:08:07 -07:00
browntarik 6efaafef60 place markdownInComments setting under code doc (#11380) 2023-08-29 14:53:18 -07:00
Michelle Matias f387815749 Fix tag parse language status item UI (#11354) 2023-08-25 15:50:03 -07:00
Michelle Matias ef04f022d2 Merge pull request #11366 from microsoft/dev/mimatias/r-17-5
1.17.5 merge
2023-08-25 13:53:11 -07:00
Michelle Matias 1efac2736a 1.17.5 changelog (#11363) 2023-08-25 13:50:58 -07:00
Michelle Matias c873aa18bd 1.17.5 changelog (#11363) 2023-08-25 13:50:14 -07:00
Colen Garoutte-Carson 9299e8df95 Disable AutoPCH early on platforms that don't support it (#11362) 2023-08-25 12:53:37 -07:00
Michelle Matias 97363a3e57 Reset FAR UI if no results returned (#11359) 2023-08-25 12:53:33 -07:00
Colen Garoutte-Carson 78a8ff3bb3 Disable AutoPCH early on platforms that don't support it (#11362) 2023-08-24 18:29:52 -07:00
Michelle Matias 3033657a19 Reset FAR UI if no results returned (#11359) 2023-08-23 18:03:44 -07:00
Sean McManus ac118f453b Fix formatting for IntelliSense loc strings. (#11348)
* Fix formatting for loc strings.
2023-08-22 15:04:23 -07:00
Sean McManus 28d5715dd5 Merge pull request #11347 from microsoft/seanmcm/1_17_4_release
Three cherry-picks for 1.17.4
2023-08-21 11:29:08 -07:00
Sean McManus 8466888bc8 Update changelog and version for 1.17.4 (#11340)
* Update changelog and version for 1.17.4
* Add a missed entry.
2023-08-21 11:11:07 -07:00
Sean McManus 741e1ed78a Fix crash called by missing IntelliSense loc strings. (#11339) 2023-08-21 11:10:55 -07:00
Garrett Serack e02b0a33a6 Enqueue the call to sendDidOpen (#11337)
* enqueue the call to sendDidOpen
2023-08-21 11:10:42 -07:00
Sean McManus 9e10a71ffb Update changelog and version for 1.17.4 (#11340)
* Update changelog and version for 1.17.4
* Add a missed entry.
2023-08-21 11:08:15 -07:00
Sean McManus 4525bd0ed5 Fix crash called by missing IntelliSense loc strings. (#11339) 2023-08-21 10:40:35 -07:00
Garrett Serack 89d0a7a01f Enqueue the call to sendDidOpen (#11337)
* enqueue the call to sendDidOpen
2023-08-21 10:32:47 -07:00
Colen Garoutte-Carson 27cd52a1b9 Replace use of yauzl with node-stream-zip (#11304) 2023-08-17 18:42:56 -07:00
Colen Garoutte-Carson 47785c4f98 Merge pull request #11331 from microsoft/main 2023-08-16 18:16:18 -07:00
Colen Garoutte-Carson e020a75bb7 Merge branch 'release' into main 2023-08-16 17:55:19 -07:00
Colen Garoutte-Carson c8a7776222 Update version and changelog for 1.17.3 (#11330) 2023-08-16 17:50:39 -07:00
Bob Brown 3934ef89ea Fix bug introduced by #11175 (#11329) 2023-08-16 16:46:17 -07:00
Michelle Matias d60499f793 Merge pull request #11319 from microsoft/mimatias/r-17
1.17.2 release merge
2023-08-14 12:54:16 -07:00
Michelle Matias 9b359ff73b Merge branch 'main' into mimatias/r-17 2023-08-14 12:45:28 -07:00
Michelle Matias fc9c45c34f 1.17.2 changelog (#11317) 2023-08-14 12:23:09 -07:00
Bob Brown 212fff2828 log machine id mappings for VS to VS Code (#11308)
* log machine id mappings for VS to VS Code

* update comment

* in case execChildProcess throws
2023-08-11 16:13:33 -07:00
Sean McManus a5f8f84b43 Merge pull request #11303 from microsoft/main
Merge for 1.17.1
2023-08-08 17:51:04 -07:00
browntarik 44e3bbe773 Update Changelog (#11302) 2023-08-08 17:35:02 -07:00
Bob Brown 90f922d651 default to c++14 on mac for build and run active file (#11300) 2023-08-08 14:52:42 -07:00
Colen Garoutte-Carson 408051429d Fix issue with currently selected compiler being listed last in task list (#11299) 2023-08-07 16:28:58 -07:00
Bob Brown ae904ec330 Fix the build getting stuck when /link /out: is used to specify the program name (#11281)
* Also make sure the mkdir command works
2023-08-03 13:13:03 -07:00
[email protected] 3bde088a06 [Auto] Localization - Translated Strings (#11118) 2023-08-03 12:08:50 -07:00
browntarik 9d28ba1e06 Prevent vcpkg code action from appearing in all unrelated code action menus (#11280)
* prevent vcpkg code action from appearing

* resolve PR

* resolve PR
2023-08-02 14:11:42 -07:00
melody 514e60863d Fix typo (#11275) 2023-08-01 15:05:50 -07:00
Michelle Matias 98af6a4888 Show relative path for call hierarchy item if available (#11265) 2023-07-31 18:00:59 -07:00
Michelle Matias b740f603ec Use selectionRange for call hierarchy request input (#11264) 2023-07-31 17:12:19 -07:00
Sean McManus 6b2099471d Clean up the command palette. (#11259)
* Clean up the command palette.
2023-07-28 14:45:31 -07:00
Sean McManus c76105e28e Add vscode.d.ts to .eslintignore. (#11258)
* Add vscode.d.ts to .eslintignore.
2023-07-28 09:03:18 -07:00
Michelle Matias 70ff2a296a Update compilerPath if c_cpp_properties.json exists (#11257) 2023-07-27 12:51:31 -07:00
Michelle Matias c3e3bd306f "Select IntelliSense Configuration" updates compilerPath in c_cpp_properties.json (#11255) 2023-07-27 11:40:04 -07:00
Sean McManus e53b190380 Merge pull request #11253 from microsoft/main
Merge (again) for 1.17.0
2023-07-26 16:56:43 -07:00
Sean McManus 4f805c4263 Update changelog (again) for 1.17.0 (#11251)
* Update changelog.
2023-07-26 16:26:40 -07:00
Michał Mąka a7870fc1b2 Added support for Toybox to remote process picker (#11175)
* Added separate remote process command for ToyBox
2023-07-26 16:08:07 -07:00
Michelle Matias 1846fd4001 Merge pull request #11250 from microsoft/main 2023-07-26 14:15:17 -07:00
Michelle Matias d48fd4343b fix merge (#11249) 2023-07-26 14:11:18 -07:00
Colen Garoutte-Carson 62e09945e3 Merge pull request #11241 from microsoft/main 2023-07-24 17:32:28 -07:00
Michelle Matias 9ce7b5a87c update change log (#11240) 2023-07-24 16:35:29 -07:00
Michelle Matias 460aee5971 'Create Declaration / Definition' command via 'Quick Fix...' hover (#11239) 2023-07-24 15:49:19 -07:00
Sean McManus 0e309a7e7f Fix config provider ordering. (#11237) 2023-07-24 11:48:18 -07:00
Sean McManus 27f9fafc73 Fix console logging. (#11233) 2023-07-24 10:38:26 -07:00
Michelle Matias c9b0db02fd Merge pull request #11230 from microsoft/main
Merge 1.17.0
2023-07-21 14:08:21 -07:00
Sean McManus 72ea4d5eb9 Update ThirdPartyNotices.txt. (#11232) 2023-07-21 13:52:52 -07:00
Michelle Matias 3c63457e38 changelog 17 (#11227) 2023-07-21 13:19:32 -07:00
Garrett Serack 477eb06f2b Fix out-of-order message handling (#11212) 2023-07-21 12:44:14 -07:00
dependabot[bot] 62b27eadce Bump word-wrap from 1.2.3 to 1.2.4 in /.github/actions (#11213) 2023-07-18 15:25:09 -07:00
browntarik 668499169e Add Setting to Enable Markdown Comment Formatting (#11177)
* resolve PR

* resolve PR

* resolve PR

* resolve PR

* resolve PR

* resolve PR
2023-07-18 14:34:25 -07:00
Bob Brown 2133b871be Remove walkthrough experiment and update the Help links to point to it (#11191) 2023-07-18 15:46:52 +00:00
Bob Brown d6370f3dcf compliance: update dependencies to remove usage of fsevents 1.2.7 (#11206) 2023-07-17 12:54:43 -07:00
Sean McManus 4589c6a731 Update IntelliSense loc strings. (#11193) 2023-07-14 15:50:57 -07:00
Sean McManus c4ea718dd5 Update ThirdPartyNotices.txt again. (#11184) 2023-07-11 17:58:15 -07:00
dependabot[bot] f26308c09f Bump semver from 5.7.1 to 5.7.2 in /.github/actions (#11183) 2023-07-11 16:44:36 -07:00
Sean McManus 420b479896 Update package.json/yarn.lock (#11181)
* Update yarn.lock.
* Clean up old/unneeded resolutions.
2023-07-11 16:34:49 -07:00
Colen Garoutte-Carson 2dfbeb16b2 Add license for SoftFloat to ThirdPartyNotices.txt (#11168) 2023-07-07 11:24:36 -07:00
Sean McManus f293e59478 Update IntelliSense loc strings. (#11166) 2023-07-06 18:55:15 -07:00
browntarik b747b98cde resolve paths with /, /*, /** and \\** (#11136)
* resolve paths with '/', '/*', '/**' and '\\**'

* resolve multiple path parsing

* create generalized approach for wildcard support

* Add windows conditional for backslashes

* resolve PR

* resolve PR

* resolve PR

* resolve PR

* resolve PR

* resolve variables for globs

* resolve PR

* resolve PR

* resolve PR

* resolve PR

* resolve PR

* resolve PR

* resolve PR

* resolve PR

* resolve PR
2023-07-06 16:25:22 -07:00
Sean McManus 094596961a Update ThirdPartyNotices.txt (#11144) 2023-06-30 11:38:36 -07:00
Garrett Serack 503f95b085 Modernize packages, code patterns (#11085)
Modernize packages, code patterns
2023-06-29 13:18:48 -07:00
3612c02d07 Add wildcard support for includeDir (#10388)
For example, using the following tree:

  rootUri
  - sources
    - main
      - main.c
    - vendor
      - khash.h
  - headers
    - C001
      - a.h
    - C002
      - b.h

The following directory paths works:

- `sources/**`  for plain old recursive path
- `headers/C*/` dynamic path
- `missing/`    reported as "not found"
- `missing/*`   expanded as empty result (silent fail)

Note: bakslash paths need to be slash-converted to avoid be considered as "Dynamic"

Co-authored-by: Sean McManus <[email protected]>
Co-authored-by: browntarik <[email protected]>
2023-06-27 09:53:35 -07:00
Michelle Matias 93cc277311 Merge pull request #11126 from microsoft/mimatias/patch
1.16.3 changelog (#11125)
2023-06-23 17:07:38 -07:00
Michelle Matias 9d84cad54b 1.16.3 changelog (#11125) 2023-06-23 17:03:09 -07:00
Michelle Matias ddbc92a990 1.16.3 changelog (#11125) 2023-06-23 16:55:56 -07:00
Colen Garoutte-Carson ce587c6f06 Fix possible race condition that could lead to multiple didOpen's (#11120) 2023-06-22 19:26:13 -07:00
Michelle Matias 82671ea293 Merge pull request #11114 from microsoft/mimatias/1_16 2023-06-21 15:21:22 -07:00
Michelle Matias 605015c8af Merge branch 'main' into mimatias/1_16 2023-06-21 15:07:50 -07:00
Michelle Matias baa93534f0 update log (#11115) 2023-06-21 15:05:31 -07:00
Michelle Matias e5f74bc638 Merge branch 'main' into mimatias/1_16 2023-06-21 13:31:08 -07:00
[email protected] 68777f9873 [Auto] Localization - Translated Strings (#10992) 2023-06-21 13:28:59 -07:00
browntarik 4037db9783 remove extra adjustments to textEdit for CDD (#11110)
* remove extra adjustments to textEdit

* combine conditionals
2023-06-21 12:23:02 -07:00
Michelle Matias 67565fe0a7 Merge branch 'main' into mimatias/1_16 2023-06-21 11:02:35 -07:00
Michelle Matias a67c6610a7 1.16.2 changelog (#11111) 2023-06-21 10:57:55 -07:00
browntarik 4f5ec73173 Add configuration telemetry (#11093) 2023-06-19 16:44:44 -07:00
Bob Brown 79f4e8ded0 Update LICENSE.md (#11102) 2023-06-16 12:05:56 -07:00
Michelle Matias 51da619eec Merge pull request #11099 from microsoft/main
1.16.1 pre-release
2023-06-15 21:19:13 -07:00
Michelle Matias 7544de0b47 1.16.1 changelog (#11094) 2023-06-15 17:34:45 -07:00
Michelle Matias 491456e8de Fix references cancellation and preview (#11056) 2023-06-15 17:02:46 -07:00
Caio Hamamura 5b51db1999 configurationProvider.ts: default cppvsdbg integratedTerminal (#11035) 2023-06-15 16:41:32 -07:00
Chang-Yen Tseng 46eaddc411 include miDebuggerArgs in attach option (#11066) 2023-06-15 16:35:31 -07:00
Michelle Matias 71c6cb6c6c add file path to call hierarchy details (#11095) 2023-06-15 15:04:44 -07:00
Colen Garoutte-Carson 0452f0aad9 Remove line preventing Don't Show Again (#11076) 2023-06-12 14:54:29 -07:00
Sean McManus 478ccb6abd Update vscode/dts (#11047)
* Update vscode/dts
2023-06-05 15:40:29 -07:00
browntarik 7504532e58 Removed LanguageStatus experiment code and merged ui.ts and ui_new.ts (#11030)
* merge ui and ui_new, finsih status experiment

* resolve PR

* resolve PR

* resolve PR

* resolve PR

* resolve PR
2023-06-02 05:56:18 -07:00
Sean McManus 9621430533 Make sure empty non-enum string settings are equivalent to undefined. (#11031)
* Make sure empty non-enum string settings are equivalent to undefined.
* Check for null. Remove null default for "string" setting.
2023-05-31 17:42:33 -07:00
Sean McManus 3ef10f294e Stop using vcFormat for non-formatting editorconfig settings. (#11015) 2023-05-31 13:57:31 -07:00
Sean McManus e394edb630 Fix Other References not getting cleared for Call Hierarchy. (#10989) 2023-05-22 17:53:00 -07:00
Michelle Matias 3eb50568e9 Merge pull request #10986 from microsoft/main
[Auto] Localization - Translated Strings (#10889)
2023-05-22 13:53:52 -07:00
Alex Hsu e65e602bab [Auto] Localization - Translated Strings (#10889) 2023-05-22 12:59:30 -07:00
Michelle Matias 866b145645 Merge pull request #10975 from microsoft/main
1.16.0 pre-release
2023-05-19 15:52:02 -07:00
Michelle Matias 65ec5abb72 Changelog 1.16.0 (#10973) 2023-05-19 15:25:36 -07:00
Sean McManus fc909f88ba Fix incorrect workspace parsing status. (#10974) 2023-05-19 15:03:01 -07:00
Sean McManus c22d13af30 Fix addTrustedCompiler. (#10961)
* Fix addTrustedCompiler.
* Fix build tasks not updating after a compilerPath change.
2023-05-19 11:46:54 -07:00
Michelle Matias 290a53e934 call hierarchy telemetry (#10971) 2023-05-19 09:40:05 -07:00
Colen Garoutte-Carson 4b20f32c39 Support server-side cancellation/error in CDD (#10966) 2023-05-18 12:43:12 -07:00
Michelle Matias 5ce976f322 Call hierarchy incoming calls fix return (#10962) 2023-05-17 12:40:54 -07:00
Sean McManus 352e0bf2ff Update IntelliSense strings loc (#10950)
* Update IntelliSense loc strings.
* Update msvc versions.
2023-05-15 14:24:53 -07:00
browntarik 684404f29c Add copy to clipboard support for CDD (#10835)
* Add copy to clipboard support for CDD

* Fix lint issues

* latest changes

* refactor PR

* add localization

* rename variables

* remove copy CDD from package.json

* resolve PR

* resolve PR

* resolve PR

* resolve json

* resolve PR

* resolve PR

* refactor error handling

* resolve PR

* resolve PR

* resolve PR

* remove awaits

* remove more awaits

* resolve PR
2023-05-12 14:42:53 -07:00
Michelle Matias 478fb3c245 Call Hierarchy Callers Of - add progress and cancellation (#10936) 2023-05-12 14:27:34 -07:00
Colen Garoutte-Carson c3cfd55762 Add server-originated notification to cancel reference (#10929) 2023-05-09 14:27:31 -07:00
Colen Garoutte-Carson b2d989f85f Always add workspaceFolder to browse.path if unset (#10916)
* Fix skipped tag parse with empty compiler path
* Always add workspaceFolder to browse path if unset
2023-05-04 15:46:49 -07:00
Sean McManus bb3d290d6b Fix C/C++ Configurations loc. (#10908) 2023-05-04 13:57:46 -07:00
Sean McManus 33bdb7f425 Fix code analysis command strings. (#10906) 2023-05-01 14:35:38 -07:00
Sean McManus 0c9d89787c Remove a fix. (#10903) 2023-04-28 18:20:34 -07:00
Sean McManus 94c12812e0 Fix some spelling errors and formatting. (#10901)
* Fix some spelling errors and formatting.
* Fix loc comments.
2023-04-28 14:07:52 -07:00
Michelle Matias 3144d82fb4 Call hierarchy feature (#10697) 2023-04-27 19:34:54 -07:00
Sean McManus dc7651af75 Merge pull request #10898 from microsoft/seanmcm/1_15_4_release
Merge for 1.15.4
2023-04-27 15:27:40 -07:00
Sean McManus 9215fbe9b0 Merge branch 'main' into seanmcm/1_15_4_release 2023-04-27 14:29:27 -07:00
Sean McManus 5a56dfc749 Update changelog for 1.15.4. (#10896)
* Update changelog for 1.15.4.
2023-04-27 14:25:07 -07:00
Sean McManus bddb1ba342 Fix the configurationselection telemetry for the prompt sender. (#10895)
* Fix the configurationselection telemetry for the prompt sender.
2023-04-27 11:45:59 -07:00
Sean McManus cafce7c050 Prevent the status bar from flickering when switching docs. (#10888)
* Prevent the status bar from flickering when switching docs.
2023-04-26 09:48:40 -07:00
Sean McManus 324cd1bd59 Fix status bar UI for user settings.json. (#10887) 2023-04-25 17:46:04 -07:00
Sean McManus ad5fe867c5 Fix custom browse config not getting cleared. (#10886) 2023-04-25 17:24:37 -07:00
Sean McManus cc862b039e Fix status UI state after pause/cancel of code analysis. (#10885) 2023-04-25 14:22:39 -07:00
Michelle Matias 446eb16e7a Fix localization IDs (#10873) 2023-04-25 14:04:02 -07:00
Alex Hsu e09702e5dc [Auto] Localization - Translated Strings (#10767) 2023-04-25 13:38:34 -07:00
Sean McManus 48000bdbda Fix status bar buttons missing for settings.json in C++ projects (#10876)
* Fix status bar for C++ settings.json.
2023-04-25 11:57:13 -07:00
Sean McManus f8b8e094f9 Fix initial code analysis status loc. (#10883) 2023-04-25 11:35:36 -07:00
Sean McManus 9762fe5397 Merge pull request #10862 from microsoft/main
Merge for 1.15.3 (2nd time)
2023-04-21 19:00:16 -07:00
Sean McManus 5780e18487 Fix a couple Configure IntelliSense bugs with config providers (#10861)
* Fix a couple more Configure IntelliSense bugs.
2023-04-21 18:58:10 -07:00
Michelle Matias 3c6f603aea remove old loc (#10857) 2023-04-21 17:15:33 -07:00
Sean McManus 35ab3eb26d Add Configure IntelliSense tooltip (#10858)
* Add Configure IntelliSense tooltip.
2023-04-21 16:51:00 -07:00
Sean McManus 302f4226cf Fix configuration status not appearing. (#10852)
* Fix configuration status not appearing.
* Update changelog date.
2023-04-21 14:13:44 -07:00
Sean McManus 377896c30a Merge pull request #10846 from microsoft/main
Merge for 1.15.3
2023-04-20 18:55:05 -07:00
Sean McManus 13893fbfb2 Update the package.json version. (#10845) 2023-04-20 18:31:47 -07:00
Sean McManus d603786a13 Set user scope compiler path if no trusted compiler is set. (#10844)
* Set user scope compiler path if no trusted compiler is set.
* Fix missing await.
* Add "@typescript-eslint/no-misused-promises" linter rule.
2023-04-20 18:29:20 -07:00
Sean McManus 407342f482 Add collapsing to an icon. Fix a major bug. (#10838)
* Add collapsing to an icon. Fix a major bug.
2023-04-18 19:02:21 -07:00
Sean McManus 5c8b812075 Various fixes related to my previous PRs. (#10836)
* Various fixes related to my previous PRs.
2023-04-18 14:33:18 -07:00
Sean McManus 2a2d928075 Fix configure IntelliSense UI bugs with non-C/C++ files (and other small fixes) (#10829)
* Fix configure IntelliSense UI bugs with non-C/C++ files.
* Fix "Configure IntelliSense" not going away until reload window.
* Move location to the left of the config.
* Refactor isCpp
2023-04-17 17:28:18 -07:00
Sean McManus e160229500 Fix bug with Configure IntelliSense appearing when it shouldn't. (#10826) 2023-04-14 16:53:16 -07:00
Sean McManus 60cfb9998d Fix undefined reference of trustedCompilerFound. (#10824) 2023-04-13 17:15:40 -07:00
Sean McManus 6ec8c14a98 Revert previous incorrect changes. Remove pevents. (#10823) 2023-04-13 13:44:51 -07:00
Sean McManus a395b8492a Merge pull request #10821 from microsoft/seanmcm/1_15_3_preliminary
Preliminary merge for 1.15.3
2023-04-13 11:21:55 -07:00
Sean McManus 17e337c874 Merge branch 'main' into seanmcm/1_15_3_preliminary 2023-04-13 10:35:11 -07:00
Michelle Matias 98f13a6f11 Merge pull request #10815 from microsoft/main
Don't put the compiler selection in the global settings if using the …
2023-04-12 17:57:26 -07:00
Bob Brown 7b3ac0a22e Don't put the compiler selection in the global settings if using the configure IntelliSense command (#10814) 2023-04-12 17:29:42 -07:00
Michelle Matias 0d85aea687 Merge pull request #10813 from microsoft/main
Revert walkthrough doc links until walkthrough is published (#10812)
2023-04-12 15:51:05 -07:00
Colen Garoutte-Carson 04b0be0452 Revert walkthrough doc links until walkthrough is published (#10812) 2023-04-12 15:26:50 -07:00
Sean McManus 25d2b76514 Merge pull request #10811 from microsoft/main
Merge for 1.15.2
2023-04-12 11:03:43 -07:00
Bob Brown (DEVDIV) b0e7500bcb Update third party notices 2023-04-12 10:36:10 -07:00
Sean McManus 296bee8000 Switch to Select IntelliSense Configuration (#10771)
* Switch to Select IntelliSense Configuration
* Update version and changelog for 1.15.2
2023-04-12 03:24:27 -07:00
Colen Garoutte-Carson ec4977971e Add sender to walkthrough commands (#10809) 2023-04-11 17:39:13 -07:00
Colen Garoutte-Carsonandbrowntarik 71684e0f90 Update github actions to use nodejs 16 (#10443)
* Update github actions to use nodejs 16

* Upgrade GabrielBB/xvfb-action from 1.4 to 1.6

---------

Co-authored-by: browntarik <[email protected]>
2023-04-11 15:30:27 -07:00
Colen Garoutte-Carson 7a99678e6f Disable Walkthrough when clause by default (#10802) 2023-04-11 15:19:54 -07:00
Colen Garoutte-Carson 8bf5d6e9aa Address some issues where spread operator was used but deep copy needed (#10803) 2023-04-11 15:12:42 -07:00
Sean McManus 6fbf4df21d Fix xml2js (#10806) 2023-04-11 15:06:05 -07:00
dependabot[bot]andSean McManus 5cc9930813 Bump xml2js, applicationinsights and @azure/storage-blob (#10805)
Bumps [xml2js](https://github.com/Leonidas-from-XIV/node-xml2js) to 0.5.0 and updates ancestor dependencies [xml2js](https://github.com/Leonidas-from-XIV/node-xml2js), [applicationinsights](https://github.com/microsoft/ApplicationInsights-node.js) and [@azure/storage-blob](https://github.com/Azure/azure-sdk-for-js). These dependencies need to be updated together.


Updates `xml2js` from 0.4.23 to 0.5.0
- [Release notes](https://github.com/Leonidas-from-XIV/node-xml2js/releases)
- [Commits](https://github.com/Leonidas-from-XIV/node-xml2js/commits/0.5.0)

Updates `applicationinsights` from 2.3.1 to 2.5.1
- [Release notes](https://github.com/microsoft/ApplicationInsights-node.js/releases)
- [Commits](https://github.com/microsoft/ApplicationInsights-node.js/compare/2.3.1...2.5.1)

Updates `@azure/storage-blob` from 12.11.0 to 12.13.0
- [Release notes](https://github.com/Azure/azure-sdk-for-js/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/Changelog-for-next-generation.md)
- [Commits](https://github.com/Azure/azure-sdk-for-js/compare/@azure/storage-blob_12.11.0...@azure/storage-blob_12.13.0)

---
updated-dependencies:
- dependency-name: xml2js
  dependency-type: indirect
- dependency-name: applicationinsights
  dependency-type: direct:production
- dependency-name: "@azure/storage-blob"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sean McManus <[email protected]>
2023-04-11 14:38:56 -07:00
Sean McManus 5aa8b56cb7 Fix change "eg." to "e.g.". (#10804) 2023-04-11 14:22:48 -07:00
Colen Garoutte-Carson 4dfb2a39a6 Fixes to walkthrough MD files (#10799) 2023-04-10 16:52:21 -07:00
dependabot[bot] cc11b68e20 Bump xml2js from 0.4.23 to 0.5.0 in /Extension (#10798)
Bumps [xml2js](https://github.com/Leonidas-from-XIV/node-xml2js) from 0.4.23 to 0.5.0.
- [Release notes](https://github.com/Leonidas-from-XIV/node-xml2js/releases)
- [Commits](https://github.com/Leonidas-from-XIV/node-xml2js/commits/0.5.0)

---
updated-dependencies:
- dependency-name: xml2js
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-10 15:17:07 -07:00
Colen Garoutte-Carson 5e327771ef Fix regression that resulted in compilerPath shown in settings UI (#10797) 2023-04-10 14:50:49 -07:00
Bob Brown 0ec40d9000 Update walkthrough (#10707) 2023-04-07 17:35:09 -07:00
browntarik dbfa0c5ed5 Add call to resolveVariables (#10787) 2023-04-07 17:07:56 -07:00
Colen Garoutte-Carson 9b20549cef Prefix all cpptools-specific context vars (#10780) 2023-04-07 13:17:31 -07:00
Colen Garoutte-Carson ce2fcf0c62 Ensure configs are reprocessed after every call to parsePropertiesFile (#10774) 2023-04-05 16:36:57 -07:00
Colen Garoutte-Carson 605c8032f8 Fix auto provider detection (#10772) 2023-04-05 16:02:14 -07:00
Sean McManus bfdcba4449 Fix ui undefined reference. (#10770) 2023-04-05 11:43:44 -07:00
browntarik fc9209f55a Revert to StatusBarItem for select configuration (#10769) 2023-04-04 18:14:03 -07:00
browntarik 5a337901a6 Remove compiler status when configProver/compile_commands is updated (#10753)
* change description for natvisDiagnostics

* add timer to allow for configprovider to configure

* resolve PR

* add sender logic again

* readd logic

* resolve PR

* resolve PR

* hide compiler status

* resolve PR

* resolve PR

* remove timer, check configProvider

* resolve PR
2023-04-04 15:29:32 -07:00
Luca Boccassi 6cabb390fd remote attach: use absolute /bin/sh path on Linux (#10765)
When using machinectl as a transport to connect the debugger to
a nspawn container, we need to pass full paths when running commands,
as that's what machinectl expects. Use /bin/sh when running on Linux.
This allows connecting VSCode to nspawn containers.

https://www.freedesktop.org/software/systemd/man/machinectl.html
https://www.freedesktop.org/software/systemd/man/systemd-nspawn.html
2023-04-04 10:33:49 -07:00
Alex Hsu 4efc47f955 [Auto] Localization - Translated Strings (#10521) 2023-03-31 16:16:20 -07:00
Bob Brown 8334b15f4e Further consolidate experiment logic (#10758) 2023-03-29 12:32:26 -07:00
Sean McManus 84343d04d3 Set a default cwd for cppbuild tasks. (#10747) 2023-03-28 18:58:11 -07:00
Sean McManus e2c0f014dd Prevent launching lots of IntelliSense processes from find/replace. (#10748)
* Prevent launching lots of IntelliSense processes from find/replace.
2023-03-28 18:57:42 -07:00
Sean McManus e2bddc1901 Update for clang-tidy 16. (#10737) 2023-03-24 15:15:01 -07:00
browntarik c417da6ed4 Add "Configure Intellisense" Status Bar Item (#10690)
* change description for natvisDiagnostics

* Add "Configure Intellisense" Status Bar Item

* resolve PR
2023-03-23 17:22:36 -07:00
Colen Garoutte-Carson 2ad0a95bd4 Fix issue with cached browse config not being removed (#10735) 2023-03-23 15:44:14 -07:00
Sean McManus e5b80da312 Fix IntelliSense casing. (#10730) 2023-03-22 11:43:35 -07:00
Sean McManus 42dfef3f6b Merge pull request #10728 from microsoft/main
Merge for 1.15.1
2023-03-22 11:43:15 -07:00
Sean McManus 10125dfb08 Update changelog for 1.15.1, 2nd time. (#10726) 2023-03-22 08:06:48 -07:00
Michelle Matias 6f4403cf05 1.14.5 patch (#10724) 2023-03-22 02:51:27 -07:00
Sean McManus 3b7755a4d2 Updates for the multirootDeadlock test. (#10723)
* Updates for the multirootDeadlock test.
2023-03-21 18:48:33 -07:00
Bob Brown f0bef8dca6 Refactor experiment variable (#10717)
* Refactor experiment variable

* address feedback.

* fix lint
2023-03-21 18:35:46 -07:00
Sean McManus 1ce1e9cd71 Merge pull request #10716 from microsoft/main
Update changelog for 1.15.1. (#10708)
2023-03-21 09:53:45 -07:00
Sean McManus fec8a4e07f Update changelog for 1.15.1. (#10708) 2023-03-21 09:30:29 -07:00
Sean McManus 65163966d5 Merge pull request #10679 from microsoft/main
Merge for 1.15.0
2023-03-15 17:17:35 -07:00
dependabot[bot] e201d7905e Bump webpack from 5.75.0 to 5.76.0 in /Extension (#10683)
Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-15 10:10:19 -07:00
Sean McManus 32b9947b57 Don't show the 'select a compiler' code action if the default compiler is already set (and other quick fixes) (#10670)
* Stop showing the code action if the default compiler is already set.
* Multiple other fixes.
* Fix clang-tidy 'clang-analyzer-' documentation links not working.
2023-03-14 18:07:33 -07:00
browntarik 7b03e025a7 update descrition for clangtidy.runAutomatically (#10676)
* change description for natvisDiagnostics

* update description for clangtidy.runAutomatically

* resolve description
2023-03-14 14:59:09 -07:00
Sean McManus a81c4645c0 Fix a couple clang-tidy checks. (#10668)
* Fix a couple clang-tidy checks.
* Update changelog.
2023-03-13 18:57:13 -07:00
Sean McManus 675720d466 Fix random failures when adding or removing workspace folders (#10665)
* Fix random failures when adding/removing workspace folders.
* Update changelog.
2023-03-13 15:44:12 -07:00
Sean McManus 646d9cfd6a Fix bugs with the "You do not have IntelliSense configured" prompt. (#10660)
* Fix bugs with the "You do not have IntelliSense configured" prompt.
* Update changelog.
2023-03-13 11:57:07 -07:00
Sean McManus d1e7326f4d Fix Select Default Compiler command. (#10657) 2023-03-10 16:13:00 -08:00
Sean McManus 0fd0adad84 1.15.0 changelog (#10652)
* Update changelog for 1.15.0.
2023-03-10 13:12:37 -08:00
gc46 aef2fa974e Support multiple natvis files in visualizerFile (#10487)
* Support multiple Natvis files for Cppdbg Launch
2023-03-09 16:37:59 -08:00
browntarik 001b3a5721 Add an additional message to the #include error and also add a code action (fixit) for the squiggle to run the "Select Default Compiler" command. (#10574)
* change description for natvisDiagnostics

* add telemetry for compiler notification and #

* update event name

* telemetry if user browsed to configure compiler

* resolve PR

* refactor to add try/catch logic

* resolve PR

* resolve PR

* change wording

* resolve PR

* add localized strings

* resolve casing

* fix german translation

* resolve loc

* resolve PR
2023-03-06 12:51:15 -08:00
Colen Garoutte-Carson 350c1c3890 Fix an uncaught exception (#10629) 2023-03-03 15:15:17 -08:00
Sean McManus 64c1327716 Fix possible undefined ui, wrong experimentalFeatures scope access, and duplicate DiagnosticCollection name (#10620)
* Fix possible undefined ui and wrong experimentalFeatures scope access.
* Fix DiagnosticCollection warning
2023-03-02 10:34:28 -08:00
Sean McManus ec47886d72 Merge pull request #10609 from microsoft/main
Merge for 1.14.4 (2nd time)
2023-02-27 17:51:11 -08:00
Sean McManus 40fe35c8e2 Merge branch 'release' into main 2023-02-27 17:18:48 -08:00
Sean McManus 532eee96fe Update changelog for 1.14.4 (2nd time). (#10606)
* Update changelog for 1.14.4 (2nd time).
2023-02-27 17:15:43 -08:00
Colen Garoutte-Carson febcf11215 Dispose of cached browse config on dispose if no longer registered. (#10608) 2023-02-27 16:50:21 -08:00
Colen Garoutte-Carson 7a76ee1ec5 Auto-configure a default custom configuration provider even if default.compilerPath is set (#10607) 2023-02-27 16:44:39 -08:00
Sean McManus 81a026435d Fix aiKey and changelog in the release branch. (#10604) 2023-02-27 14:21:17 -08:00
Sean McManus 9f2d17d40c Merge pull request #10603 from microsoft/seanmcm/1_14_4_release
Merge for 1.14.4
2023-02-27 14:03:21 -08:00
Sean McManus 2e66dc794b Merge branch 'main' into seanmcm/1_14_4_release 2023-02-27 13:22:18 -08:00
Sean McManus 3644b94ee9 Update version. (#10601) 2023-02-27 13:21:41 -08:00
Sean McManus cf2a1112f4 Merge branch 'main' into seanmcm/1_14_4_release 2023-02-27 13:06:11 -08:00
Sean McManus bcc7d61266 1.14.4 changelog (#10590) 2023-02-27 13:02:56 -08:00
Bob Brown 3c5e7e260e Report the origin of the CreateDeclaration/Definition commands (#10582) 2023-02-24 16:30:44 -08:00
Bob Brown b137b7c3ed Report the origin of commands for the UI experiment telemetry (#10581) 2023-02-23 15:29:19 -08:00
Bernardin-MSandColen Garoutte-Carson 67118593b8 Accepting c2x compilers (#10456)
* Add c2x compilers as acceptable arguments

* Update config UI with new c stds

* Remove c20

* Remove gnu20

* Fix typo

* Remove c20

* Remove gnu20

---------

Co-authored-by: Colen Garoutte-Carson <[email protected]>
2023-02-23 10:49:25 -05:00
Colen Garoutte-Carson 85514f21bc Try forcing pipeline to use node 16 (#10572) 2023-02-22 14:33:30 -08:00
Sean McManus fa774544ea Merge pull request #10517 from microsoft/seanmcm/1_14_3_release
Merge for 1.14.3
2023-02-14 04:58:54 -08:00
Sean McManus a45c8f8670 Update changelog for 1.14.3 2023-02-13 18:22:45 -08:00
Sean McManus a014fe80bd Update changelog for 1.14.3 2023-02-13 16:39:06 -08:00
Alex Hsu b9bd78e64e [Auto] Localization - Translated Strings (#10204) 2023-02-13 15:00:09 -08:00
browntarik 21bc17ac6e Add telemetry for compiler notification and # in default compiler selection (#10513)
* change description for natvisDiagnostics

* add telemetry for compiler notification and #

* update event name

* telemetry if user browsed to configure compiler

* resolve PR

* refactor to add try/catch logic

* resolve PR

* resolve PR

* change wording

* resolve PR
2023-02-13 13:04:12 -08:00
Sean McManus d03f2d48fa Remove unnecessary activation events. (#10512) 2023-02-13 11:28:24 -08:00
Sean McManus edf8e0a155 Merge pull request #10504 from microsoft/main
Merge for 1.14.2 (2nd time)
2023-02-09 16:30:37 -08:00
Sean McManus 82b8f261a8 Fix 2nd compiler prompt when the command is used. (#10503)
* Fix 2nd compiler prompt when the command is used.
* Fix 2nd prompt not appearing after the 1st time.
2023-02-09 16:21:44 -08:00
browntarik 1e779a5a3c add basic compiler selection telemetry (#10502)
* change description for natvisDiagnostics

* add telemtry

* resolve telemtry
2023-02-09 15:42:25 -08:00
Sean McManus 4083075476 Merge pull request #10501 from microsoft/main
Merge for 1.14.2
2023-02-09 14:26:59 -08:00
Sean McManus e4696c5dec Update changelog for 1.14.2. (#10499)
* Update changelog for 1.14.2.
2023-02-09 14:10:50 -08:00
browntarik 9bf1c1d5a5 Add reload prompt when changing hover setting (#10498)
* change description for natvisDiagnostics

* add reload prompt when hover setting is changed
2023-02-09 13:47:03 -08:00
Sean McManus 34745e0b10 Fix blank status after a cpptools pause. (#10493) 2023-02-09 10:25:50 -08:00
Anthony Leonardo Gracio 5e96765467 Add Ada to the list of supported languages (#10475) (#10476)
To allow debugging Ada projects with GDB.
2023-02-08 17:41:03 -08:00
Sean McManus 9b49182355 Fix Indexing state not showing as busy. (#10492) 2023-02-08 15:34:42 -08:00
browntarik 88f419fc11 Remove the full path for the cl.exe compilerPath generated for c_cpp_properties.json (#10485)
* change description for natvisDiagnostics

* update natvisDiagnostics

* update compiler logic to only set "cl.exe"

* fix lint errors

* resolve PR

* resolve PR

* resolve PR

* resolve PR

* resolve PR

* resolve PR
2023-02-08 11:26:55 -08:00
Bernardin-MS fc4fc00803 Follow up issues for Language Status Bar (#10437)
* Fix file parsing ending not being displayed during pause

* Fix logic

* Remove redundant line

* Condense unpaused parser text

* Introduced parser indexing phase to UI

* Use lookupString() for parse status logic

* Update UI check logic

* Remove log

* Fix logic

* Seperate initializing from indexing in UI

* Change parser initalized text

* Remove extra new line

* Remove missed code

* Add uiOverride parameter to telemetry
2023-02-08 11:22:02 -05:00
browntarik 4b9ca430ba change description for natvisDiagnostics (#10483) 2023-02-07 14:15:31 -08:00
Colen Garoutte-Carson 885b4c0a61 Update webpack for node 18 compatibility (#10447) 2023-02-06 15:25:58 -08:00
Michelle Matias 79a78ba994 Fix localized strings (#10472) 2023-02-06 13:38:27 -08:00
Sean McManus 982c4fb9cf Add path back to cl.exe compiler selection. (#10471) 2023-02-06 10:31:04 -08:00
Michelle Matias 9b7f7deb4d Error messages for create declaration definition (#10393) 2023-02-03 17:44:47 -08:00
Colen Garoutte-Carson a6f535fd54 Support use of file paths in uri field of custom configuration (#10470) 2023-02-03 16:44:38 -08:00
Colen Garoutte-Carson edb810aa3d Pass multiple URI's to provideConfigurations (#10469) 2023-02-03 16:27:19 -08:00
Colen Garoutte-Carson 42b3c28ab1 Fix issue with settings changes not handled properly in multiroot (#10458) 2023-02-03 11:38:12 -08:00
Michelle Matias b745ebc218 Merge pull request #10453 from microsoft/main
1.14.1 pre-release merge
2023-02-01 14:29:00 -08:00
Michelle Matias 6b6c16e378 changelog 1.14.1 (#10452) 2023-02-01 14:06:01 -08:00
browntarik 8f55a2e8d2 add second prompt for when a compiler needs config (#10419)
* add second prompt for when a compiler needs config
* fix other bugs
Co-authored-by: Sean McManus <[email protected]>
2023-02-01 12:11:59 -08:00
Colen Garoutte-Carson 5f68e6a868 Fix issues with didOpen synchronization (#10442) 2023-01-31 13:18:29 -08:00
Sean McManus 93dc3737fb Fix an unstrusted compilerPath being used without a c_cpp_properties.json. (#10440) 2023-01-30 15:55:57 -08:00
Sean McManus 6f2714bfbb Fix empty intelliSenseMode being generated. (#10441) 2023-01-30 15:48:13 -08:00
Colen Garoutte-Carson fafca55335 Fix loc issue with handling of ReportTagParseStatus (#10438) 2023-01-30 15:00:48 -08:00
Colen Garoutte-Carson 2605cac2a9 Address issues with request cancelation (#10296) 2023-01-27 15:01:12 -08:00
browntarik 98a9b0cabe add ChangeCppPropertiesRequest and remove Notification. (#10420) 2023-01-26 17:51:28 -08:00
browntarik dc0a7af0aa resolve compiler undefined message (#10418) 2023-01-25 17:30:41 -08:00
Michelle Matias 3adcec81a4 edge strings (#10416) 2023-01-25 12:53:44 -08:00
browntarik b96737a919 Add support for selecting a default compiler (#10165) 2023-01-24 21:02:47 -08:00
Colen Garoutte-Carson c4d68fd859 Disable auto-kill of extension when debugging (#10415) 2023-01-24 16:44:44 -08:00
Bernardin-MS 2d3cac0dea Move status bar icons into the Language Status (#10126) 2023-01-20 13:25:50 -08:00
xisui-MSFT 0fcc415231 Improve info os processes match (#10398) 2023-01-19 13:24:15 -08:00
Colen Garoutte-Carson 8431b37201 Await in protocol filter (#10306) 2023-01-19 12:30:42 -08:00
Colen Garoutte-Carson 23f3b47e6f Fix a crash in extractArgs (#10394) 2023-01-18 12:52:54 -08:00
jogo- 7d73a3124d Fix typo in CHANGELOG.md (#10384) 2023-01-18 11:16:41 -08:00
Michelle Matias b69d17a0f5 Merge pull request #10378 from microsoft/seanmcm/1_14_0_insiders
Merge for 1.14.0
2023-01-11 20:00:38 -08:00
Sean McManus be8b6fb693 Merge branch 'main' into seanmcm/1_14_0_insiders 2023-01-11 19:07:54 -08:00
Sean McManus 2041315910 Update changelog for 1.14.0. (#10376)
* Update changelog for 1.14.0.
2023-01-11 19:00:42 -08:00
Sean McManus 04f822ab92 IntelliSense string update. (#10352) 2023-01-11 18:27:41 -08:00
xisui-MSFT 5a486fc8cd SSH output improvements (#10292) 2023-01-04 17:04:54 -08:00
Michelle Matias 62fb757bb3 Update json5 to 1.0.2 and minimist to 1.2.7 (#10356) 2023-01-04 16:03:02 -08:00
Sean McManus b79a965613 Update compilerArgs description. (#10339) 2023-01-04 15:54:33 -08:00
Sean McManus 148a709e0e Fix recursive includes regression. (#10337) 2023-01-04 15:37:31 -08:00
Sean McManus 4916b2f361 Prevent looping between C and C++. (#10309)
* Prevent looping between C and C++.
2023-01-04 14:21:01 -08:00
Sean McManus f7c2cc869a Merge pull request #10355 from microsoft/seanmcm/1_13_9_cherrypick
Update changelog for 1.13.9 (#10324)
2023-01-04 13:39:59 -08:00
Sean McManus 79c8d1d64a Update changelog for 1.13.9 (#10324)
* Update changelog for 1.13.9
* Add a couple 1.13.6 debugger fixes.
2023-01-04 12:39:58 -08:00
Sean McManus 54c73eaade Update changelog for 1.13.9 (#10324)
* Update changelog for 1.13.9
* Add a couple 1.13.6 debugger fixes.
2023-01-04 12:37:33 -08:00
Sean McManus a397a4731a Merge pull request #10287 from microsoft/seanmcm/1_13_8_release
Update changelog and version for 1.13.8. (#10286)
2022-12-15 16:33:40 -08:00
Michelle Matias 4dfea3b68c revert rename config.yml (#10288) 2022-12-15 16:22:47 -08:00
Michelle Matias 384b33386b update issue templates (#10285) 2022-12-15 16:05:59 -08:00
Sean McManus 1a3afd10fc Update changelog and version for 1.13.8. (#10286) 2022-12-15 15:53:09 -08:00
Sean McManus a2a0297ae9 Update changelog and version for 1.13.8. (#10286) 2022-12-15 15:50:35 -08:00
Bob Brown 8cf332baba Fix the message for restarting the language client. (#10259) 2022-12-13 08:07:28 -08:00
Sean McManus 77af87e92e Update IntelliSense loc strings. (#10248) 2022-12-08 17:52:12 -08:00
Sean McManus 01a747ad35 Merge pull request #10255 from microsoft/seanmcm/1_13_7_release
Cherry-pick for 1.13.7.
2022-12-08 12:16:50 -08:00
Sean McManus c8cbf6c0ba Update changelog for 1.13.7. 2022-12-08 12:14:15 -08:00
Sean McManus edaf6dce78 Update changelog for 1.13.7. (#10246) 2022-12-08 09:33:36 -08:00
Bernardin-MS 58e184fdc0 Fixes include "header" issue with multi-root workspaces (#10138)
* Resolve includePath before sending config notification

* Ensure all configuration paths are absolute

* Optimize implentation of resolution of arrays

* Move the resolving of config paths

* Reuse win32 check for all resolvePath's

* add explict type to isWin32
2022-12-08 09:24:22 -05:00
Sean McManus 07efeb4c6c Merge pull request #10233 from microsoft/seanmcm/1_13_6_release_2
Cherry-picks for 1.13.6
2022-12-06 11:15:25 -08:00
Sean McManus 3555e2f1ab Update changelog for 1.13.6 (again). (#10228) 2022-12-06 07:17:01 -08:00
Sean McManus cf2ebd75fe Update decode-uri-component. (#10226) 2022-12-06 07:16:55 -08:00
Colen Garoutte-Carson ac74b5b6a3 Fix document corruption due to delayed evaluation in protocolFilter (#10227) 2022-12-06 07:16:38 -08:00
Michelle Matias c22c28d0c6 Create declaration/definition - handle #include edits (#10219) 2022-12-06 07:16:30 -08:00
Sean McManus 399daf9b27 Update changelog for 1.13.6 (again). (#10228) 2022-12-06 06:58:30 -08:00
Sean McManus b3a337aad0 Update decode-uri-component. (#10226) 2022-12-05 18:10:35 -08:00
Colen Garoutte-Carson ed1a1ca57e Fix document corruption due to delayed evaluation in protocolFilter (#10227) 2022-12-05 17:50:07 -08:00
Michelle Matias cae6c42928 Create declaration/definition - handle #include edits (#10219) 2022-12-02 11:28:47 -08:00
Sean McManus 4abec441f9 Merge pull request #10211 from microsoft/seanmcm/1_13_6_release
Merge and cherry-pick for 1.13.6
2022-11-30 16:53:37 -08:00
Sean McManus 8e23df99d8 Check for the file version before formatting after CDD. (#10210)
* Check for the file version before formatting after CDD.
2022-11-30 16:32:13 -08:00
Sean McManus abe65b5879 Merge branch 'insiders' into seanmcm/1_13_6_release 2022-11-30 16:29:32 -08:00
Sean McManus 20e220354d Update changelog for 1.13.6. (#10200)
* Update changelog for 1.13.6.
2022-11-30 16:25:11 -08:00
Sean McManus bc6bfac71a Check for the file version before formatting after CDD. (#10210)
* Check for the file version before formatting after CDD.
2022-11-30 16:14:38 -08:00
Michelle Matias f40e9bc569 remove reformat after cdd (#10208) 2022-11-30 15:03:12 -08:00
Sean McManus fa3e927011 Add quotes to CDD strings. (#10202) 2022-11-30 10:34:53 -08:00
Alex Hsu 9f9bfddd47 [Auto] Localization - Translated Strings (#10043) 2022-11-29 15:40:16 -08:00
Sean McManus 7fec8ba15f Merge pull request #10196 from microsoft/seanmcm/cherrypick_1_13_5
Cherry-picks for 1.13.5
2022-11-28 13:21:00 -08:00
Andrew Wang 24f5fdd122 Change engine logging and add natvis diagnostics (#10171)
* Change engine logging and add natvis diagnostics

This PR adds logging categories to engineLogging and adds
in the option for natvisDiagnostics with different categories.

* change nls nativisDiagnostics to category
2022-11-28 13:18:22 -08:00
Sean McManus 6a063be33f Update changelog for 1.13.5. (#10187)
* Update changelog for 1.13.5.
2022-11-28 13:18:10 -08:00
Sean McManus 150c7aaf84 Fix selection and formatting for CDD (and extra newlines with clang-format) (#10177)
* Fix selection and formatting for CDD.
* Fix multiple edit at the same spot case.
2022-11-28 13:17:50 -08:00
Andrew Wang bbf2832356 Change engine logging and add natvis diagnostics (#10171)
* Change engine logging and add natvis diagnostics

This PR adds logging categories to engineLogging and adds
in the option for natvisDiagnostics with different categories.

* change nls nativisDiagnostics to category
2022-11-28 13:14:15 -08:00
Sean McManus e2e6662bae Update changelog for 1.13.5. (#10187)
* Update changelog for 1.13.5.
2022-11-28 13:03:56 -08:00
Sean McManus da3a4382dd Fix selection and formatting for CDD (and extra newlines with clang-format) (#10177)
* Fix selection and formatting for CDD.
* Fix multiple edit at the same spot case.
2022-11-28 12:55:54 -08:00
Colen Garoutte-Carson eca31aa8a1 Send initialization after lsp init (#10182) 2022-11-23 17:04:03 -08:00
Sean McManus 186ace28e0 Update IntelliSense localized strings and msvc versions. (#10145)
* Update IntelliSense localized strings.
* Also update msvc versions.
2022-11-17 10:58:58 -08:00
Sean McManus c549c07fa6 Merge pull request #10153 from microsoft/main
Merge for 1.13.4 (again)
2022-11-16 18:11:45 -08:00
Sean McManus 340c00dc92 Update date. (#10152) 2022-11-16 17:52:33 -08:00
Sean McManus 53b6bb29ec Update loader-utils. (#10150) 2022-11-16 11:25:41 -08:00
Michelle Matias ed51a08388 Merge pull request #10148 from microsoft/main
update version 1.13.4 (#10147)
2022-11-14 15:25:57 -08:00
Michelle Matias 140eb83f73 update version 1.13.4 (#10147) 2022-11-14 15:23:55 -08:00
Sean McManus f1d9211b92 Merge pull request #10146 from microsoft/main
Merge for 1.13.4
2022-11-14 14:14:02 -08:00
Michelle Matias 64b429c9a0 1.13.4 change log (#10144) 2022-11-14 13:12:25 -08:00
Michelle Matias 8a81837bd4 Create declaration or definition feature (#10123) 2022-11-14 10:18:33 -08:00
Bernardin-MS 716979e1e3 Prepending workspace path to relative paths from CppProperties (#10045)
* Relative paths of compileCommands to workspacePath

* Address issue

* Fix lint

* Change rootUri for undefined

* Minor fix
2022-11-11 13:28:37 -05:00
Sean McManus 117ec80611 Update loader-utils. (#10122) 2022-11-08 16:12:37 -08:00
Andrew Wang 6379d6e799 Fix buffer size exceeded with NativeAttach (#10119)
* Fix BufferOverflow with NativeAttach

This PR migrates the nativeAttach child_process calls to use 'spawn'
instead of 'exec'. This allows the extension to deal with large process
listing output via input/output streams instead of using a single
hardcoded buffer.

Added support for canceling and timeout if the spawned process does not
exit within 30 seconds.
2022-11-08 10:26:01 -08:00
Michael 373e7face5 Added IAR problem matcher (#10054) (#10085) 2022-11-01 14:18:38 -07:00
Michael 50eb6f94dd Added ARMCC problem matcher (#10054) (#10101) 2022-11-01 14:16:56 -07:00
Sean McManus 801c8dd5d4 Fix doxygen generation with a selection. (#10079) 2022-10-31 10:10:57 -07:00
Bernardin-MS 27abc63d1c Adding subheaders to Extension settings (#9985) 2022-10-28 11:34:58 -07:00
Colen Garoutte-Carson 0a23125ae5 Remove direct WSL support in favor of the WSL extension (#10066) 2022-10-27 13:55:51 -07:00
Colen Garoutte-Carson e8a33ff410 Fix issue with call to cpptools-wordexp with invalid arguments (#10070) 2022-10-26 15:10:12 -07:00
Sean McManus 25162597e1 Merge pull request #10067 from microsoft/main
Merge for 1.13.3
2022-10-25 22:40:38 -07:00
Sean McManus 6502f27963 Update changelog. (#10048)
* Update changelog.
2022-10-25 19:14:04 -07:00
browntarik 13e0bd2cff add setting to disable hover from cpp extension (#10057) 2022-10-25 17:10:26 -07:00
browntarik 591242ab5f Update handleconfiguration() calls to only update cpp_properties.json when a document is saved not just edited (#10026)
* update handleconfiguration() calls

* fix indent

* add active editor logic

* fix yarn error

* fix lint

* resolve PR

* fix paren

* resolve PR

* resolve PR

* resolve PR

* fix build issue

* resolve PR

* resolve PR

* fix build issue
2022-10-25 09:57:06 -07:00
Colen Garoutte-Carson 93e633490a Merge pull request #10056 from microsoft/coleng/fix_theme_image_paths 2022-10-24 14:38:19 -07:00
Colen Garoutte-Carson 250b5ca064 Fix theme image paths 2022-10-24 12:50:31 -07:00
Sean McManus f0ae9b3a12 Update minimatch. (#10041) 2022-10-21 15:07:16 -07:00
Sean McManus edb0af19c4 Fix exception doxygen tag. (#10042) 2022-10-21 12:30:38 -07:00
Colen Garoutte-Carson 6329ba4091 Merge pull request #9789 from microsoft/localization 2022-10-20 20:42:54 -07:00
Colen Garoutte-Carson ef48323a9b Merge branch 'main' of https://github.com/microsoft/vscode-cpptools into localization 2022-10-20 20:37:19 -07:00
Colen Garoutte-Carson 87a1e507ac More loc fixes 2022-10-20 20:37:14 -07:00
Colen Garoutte-Carson 0e3114a252 Loc fixes 2022-10-20 20:12:04 -07:00
Sean McManus 21f6ea640f Merge pull request #10040 from microsoft/main
Merge for 1.13.3
2022-10-20 13:15:11 -07:00
Sean McManus 03ebaf8783 Update changelog for 1.13.3 (#10038)
* Update changelog.
2022-10-20 12:34:34 -07:00
Sean McManus d575335ade Resolve variables on headerFilter. (#10004) 2022-10-20 06:03:06 -07:00
csigs 31abc1847f Localization - Translated Strings 2022-10-20 07:11:04 +00:00
Sean McManus 0b08fc9bac Fix string. (#10033) 2022-10-19 14:51:41 -07:00
Sean McManus 2bb1462f10 Fix autocompleteAddParentheses CHS translation. (#10015) 2022-10-17 08:50:54 -07:00
Sean McManus 0ab9f770ea Fix showDisable translation for CHS. (#10014)
* Fix showDisable translation for CHS.
* Also fix formatFixes
2022-10-14 15:08:44 -07:00
Sean McManus 4416479d1c Add .gitignore (#10005) 2022-10-14 15:02:56 -07:00
Sean McManus 6231202374 Fix Korean translations. (#10003) 2022-10-14 14:55:43 -07:00
Sean McManus 6542b63660 Disable Generate Doxygen Comment from context menu if intelliSenseEngine is "disabled" (#10007)
* Switch to just disabling Generate Doxygen Comment.
2022-10-14 14:01:41 -07:00
BlueStag fcab84cf6a Visual Studio 2019 Themes (#9730)
* Visual Studio 2019 Themes
2022-10-14 09:27:48 -07:00
Sean McManus e2e350883e Resolve variables for clangTidy.args (#10000)
* Resolve variables for clangTidy.args
2022-10-14 06:22:10 -07:00
Ben McMorranandAndrew Wang 47353932a1 Add unknownBreakpointHandling to launch schema (#9990)
Co-authored-by: Andrew Wang <[email protected]>
2022-10-13 14:29:29 -07:00
Sean McManus 850c61dc76 Fix codeFolding setting access. (#9999)
* Fix codeFolding setting access.
2022-10-13 12:24:13 -07:00
Sean McManus 84bacd7edc Remove stopOnEntry. (#9997) 2022-10-13 12:04:50 -07:00
Sean McManus 773e60e31e Update for clang-tidy 15. (#9979) 2022-10-13 07:23:50 -07:00
browntarik 9bce9d7a5d Add a setting to select which Doxygen sections appear in the hover tooltip (#9955)
* plumb up doxygentags

* merge Colen's changes

* merge all

* update tag setting

* add hint for exceptions

* resolve PR

* resolve PR
2022-10-10 14:04:51 -07:00
Bernardin-MS f1457ecffc Retrieve value of editor.parameterHints.enabled (#9961) 2022-10-07 11:11:07 -07:00
Sean McManus 8c284037c9 Add error code to intellisense_spawn_failed (#9960)
* Add error code to intellisense_spawn_failed
2022-10-07 05:43:17 -07:00
Sean McManus f2311d7dba Make array settings give a warning for duplicates. (#9959) 2022-10-06 07:51:13 -07:00
Colen Garoutte-Carson 3b4092f1ac Merge pull request #9935 from microsoft/coleng/update_actions_close_state
Update github actions to use 'not_planned' close state
2022-10-04 16:36:42 -07:00
Colen Garoutte-Carson 2608f1a47c Merge branch 'coleng/update_actions_close_state' of https://github.com/microsoft/vscode-cpptools into coleng/update_actions_close_state 2022-10-04 16:31:05 -07:00
Colen Garoutte-Carson 656018a440 Merge branch 'main' of https://github.com/microsoft/vscode-cpptools into coleng/update_actions_close_state 2022-10-04 16:30:57 -07:00
Colen Garoutte-Carson 70637aeb69 Some cleanup. Fix wrong ID for Reopener. 2022-10-04 16:30:44 -07:00
Colen Garoutte-Carson 543aa5e3bb Merge branch 'main' into coleng/update_actions_close_state 2022-10-04 16:20:49 -07:00
Colen Garoutte-Carson 119a06f807 Merge pull request #9949 from microsoft/main 2022-10-03 18:58:48 -07:00
Colen Garoutte-Carson cb5b588711 Fix issue with Generate Doxygen Comment context menu (#9950) 2022-10-03 18:02:22 -07:00
Sean McManus adb9a4112c Update changelog for 1.13.2. (#9948) 2022-10-03 16:24:31 -07:00
xisui-MSFT 48653c0854 Don't throw when parsing SSH config (#9933) 2022-10-03 15:56:22 -07:00
Sean McManus 49e5dfdc24 Update IntelliSense strings for 1.13.2. (#9946) 2022-10-03 14:46:45 -07:00
Colen Garoutte-Carson 35ebdb302a Merge branch 'main' into coleng/update_actions_close_state 2022-10-03 12:10:49 -07:00
Sean McManus 58f15d95d4 Update ThirdPartyNotices.txt. (#9944) 2022-10-03 11:38:34 -07:00
Colen Garoutte-Carson 17db1d5970 Ensure workspaceFolderUri contains a uri and not a file path (#9934) 2022-09-30 10:56:31 -07:00
Colen Garoutte-Carson 0b97bea982 Update github actions to use 'not_planned' close state 2022-09-29 19:27:12 -07:00
Colen Garoutte-Carson f054ffe9c8 Update settings JSON objects, and various related bug fixes (#9897) 2022-09-29 13:54:53 -07:00
Sean McManus 2855600b5b Merge pull request #9924 from microsoft/main
Fix vcFormat. (#9923)
2022-09-27 10:43:44 -07:00
Sean McManus ebb24763bd Fix vcFormat. (#9923) 2022-09-27 09:16:17 -07:00
Sean McManus 0c0f78d915 Merge pull request #9922 from microsoft/main
Merge for 1.13.1
2022-09-26 23:06:31 -07:00
Sean McManus b0182fdd9a Update 1.13.1 changelog. (#9921) 2022-09-26 22:04:28 -07:00
xisui-MSFT 378e37adc9 Add an SSH logging channel (#9901)
* Add an SSH logging channel
2022-09-26 11:17:52 -07:00
xisui-MSFT 3612c22adf SSH terminal for targets (#9895)
* SSH terminal for targets
2022-09-23 12:00:03 -07:00
browntarik 230bce9864 Merge pull request #9862 from microsoft/browntarik/changePascalCase
change to camelCase for Default, Enabled, Disabled
2022-09-20 14:13:32 -07:00
Tarik Brown f611df293f change intellisense engine values 2022-09-20 10:46:59 -07:00
Tarik Brown 46944da663 Merge branch 'browntarik/changePascalCase' of https://github.com/Microsoft/vscode-cpptools into browntarik/changePascalCase 2022-09-20 10:39:58 -07:00
Tarik Brown 518ea5bc31 support experimentalFeatures 2022-09-20 10:39:54 -07:00
Bob Brown (DEVDIV) 3ee264015a missed one 2022-09-19 17:09:22 -07:00
Tarik Brown 65fcb15c09 change intellisense engine to lowercase not bool 2022-09-19 16:19:56 -07:00
Tarik Brown 304a336b57 Merge branch 'browntarik/changePascalCase' of https://github.com/Microsoft/vscode-cpptools into browntarik/changePascalCase 2022-09-19 16:02:01 -07:00
Tarik Brown 28762c4be2 resolve PR 2022-09-19 16:01:57 -07:00
browntarik c2ca699e39 Merge branch 'main' into browntarik/changePascalCase 2022-09-16 14:50:49 -07:00
Tarik Brown a8694b59a0 fix build errors 2022-09-16 12:33:23 -07:00
Tarik Brown f0ecdd4862 refactor enabled/disabled to booleans and casing 2022-09-16 12:27:26 -07:00
Tarik Brown 98bfb54efc resolve PR 2022-09-16 09:45:56 -07:00
xisui-MSFT 3a8e920a0d Show SSH Targets View Conditionally (#9856)
* Show SSH Targets View conditionally
2022-09-15 17:42:45 -07:00
Sean McManus ba0cc65530 Update IntelliSense strings. (#9874) 2022-09-13 23:16:43 -07:00
Tarik Brown 320d355e5d resolve PR 2022-09-13 14:47:41 -07:00
Tarik Brown feae362cc3 address all comparison issues and refs to Default 2022-09-08 11:32:13 -07:00
Tarik Brown 66b0dbb945 address all comparison issues and refs to Default 2022-09-08 11:30:59 -07:00
Tarik Brown 14f2cc2bf4 change to camelCase for Default, Enabled, Disabled 2022-09-08 09:36:39 -07:00
Sean McManus c2fdf75c8c Merge pull request #9860 from microsoft/main
Merge for 1.13.0
2022-09-07 15:31:00 -07:00
Sean McManus 281d04feaf Update changelog for 1.13.0. (#9859) 2022-09-07 11:43:16 -07:00
Elaheh Rashedi 3526f5092c check if the compiler path and debugger path exist. (#9813) 2022-09-07 09:38:08 -07:00
browntarik 2be467ed68 add caseSensitiveFileSupport (#9809)
* add caseSensitiveFileSupport
2022-09-06 17:03:38 -07:00
Sean McManus 38ed24f6a0 Fix format fixes markdown (#9839)
* Fix formatFixes mardown description.
2022-09-02 15:13:39 -07:00
Jamie MageeandSean McManus b56711ff6c Add $schema to cgmanifest.json (#9832)
Co-authored-by: Sean McManus <[email protected]>
2022-09-01 19:11:22 -07:00
Sean McManus 379d1c8472 Fix ,, in the generated gdb attach lauch.json. (#9819) 2022-09-01 18:17:55 -07:00
xisui-MSFT 03b3995e19 SSH Target Selector (#9760)
* SSH Target Selector
2022-09-01 16:53:18 -07:00
xisui-MSFT 466fb3b6bc rsync support in deploySteps (#9808) 2022-09-01 16:19:14 -07:00
Colen Garoutte-Carson 08fd6214c9 Remove HttpsProxyAgent (#9833) 2022-09-01 15:58:19 -07:00
browntarik feb70a3680 update extension pack (#9830) 2022-09-01 12:56:55 -07:00
Michelle Matias 093757d182 Merge pull request #9824 from microsoft/mimatias/12-4changes 2022-08-31 15:11:13 -07:00
Michelle Matias a51209e051 Update version to 1.12.4 2022-08-31 14:55:23 -07:00
Michelle Matias 4f86df6fa2 changelog 1.12.4 (#9823) 2022-08-31 14:49:57 -07:00
Bob Brown 479368da95 Revert "Switch to new key format since AIF is retired (#9769)" (#9822) 2022-08-31 14:49:44 -07:00
Michelle Matias 9e9430e9b4 changelog 1.12.4 (#9823) 2022-08-31 14:48:08 -07:00
Bob Brown b38e9ef00a Revert "Switch to new key format since AIF is retired (#9769)" (#9822) 2022-08-31 14:42:38 -07:00
Sean McManus 58cce1a996 Update clang_format_style description. (#9788)
* Update clang_format_style scope and description.
2022-08-30 18:45:38 -07:00
Sean McManus ddc3857e36 Merge pull request #9812 from microsoft/main
Update date. (#9811)
2022-08-29 18:12:16 -07:00
Sean McManus 0806b5774c Merge branch 'release' into main 2022-08-29 18:11:57 -07:00
Sean McManus 3ff67ac89a Update date. (#9811) 2022-08-29 18:11:05 -07:00
Sean McManus 5d358dc8de Merge pull request #9797 from microsoft/main
Merge for 1.12.3
2022-08-26 15:17:45 -07:00
Sean McManus 2832e546e0 Update changelog for 1.12.3. (#9794)
* Update changelog for 1.12.3.
2022-08-26 13:58:23 -07:00
Alex Hsu 5669aeb26a [Auto] Localization - Translated Strings (#9572) 2022-08-25 19:20:28 -07:00
Sean McManus c846e8106d Merge pull request #9779 from microsoft/main
Merge for 1.12.2
2022-08-23 20:40:34 -07:00
Sean McManus 35c55c2555 Change changelog date. (#9781) 2022-08-23 18:49:04 -07:00
Sean McManus 065454194a Update changelog and version for 1.12.2 (#9754)
* Update changelog and version for 1.12.2
2022-08-23 15:08:55 -07:00
Sean McManus 9e5237fa99 Fix debug with IntelliSense engine disabled when there's no existing launch.json. (#9771) 2022-08-23 14:56:24 -07:00
Logan Ramos 7d7ff29911 Switch to new key format since AIF is retired (#9769) 2022-08-22 18:52:00 -07:00
dependabot[bot] 5e019a77da Bump @actions/core from 1.2.6 to 1.9.1 in /.github/actions (#9752)
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.6 to 1.9.1.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-18 17:02:32 -07:00
Colen Garoutte-Carson 68c9cb9236 Merge pull request #9731 from microsoft/main 2022-08-12 16:47:26 -07:00
Colen Garoutte-Carson 36f04f0fce Change doxygen style default from /** to ///, due to lack of auto-close support. (#9733) 2022-08-12 16:30:15 -07:00
Colen Garoutte-Carson 168eba4e28 Rename doxygen settings (#9734) 2022-08-12 16:21:21 -07:00
Colen Garoutte-Carson 39366406c5 Merge pull request #9729 from microsoft/coleng/add_to_changelog 2022-08-12 13:27:59 -07:00
Colen Garoutte-Carson 9b1bf3b238 Remove blank line 2022-08-12 11:25:19 -07:00
Colen Garoutte-Carson 8eb5e9cd0e update 2022-08-12 11:24:50 -07:00
Colen Garoutte-Carson effd140a87 Update changelog for 1.12.1 2022-08-12 11:24:19 -07:00
Colen Garoutte-Carson 2afbce5b28 Merge pull request #9724 from microsoft/main 2022-08-11 18:53:15 -07:00
Colen Garoutte-Carson 0c2b40b22f Merge pull request #9723 from microsoft/coleng/fix_changelog2 2022-08-11 18:23:12 -07:00
Colen Garoutte-Carson b590e097dc Add changelog entry for additional bug fix 2022-08-11 17:49:01 -07:00
Colen Garoutte-Carson 2f3f444b17 Address PR feedback 2022-08-11 17:41:20 -07:00
Colen Garoutte-Carson d04085e017 Address PR feedback 2022-08-11 17:39:23 -07:00
Colen Garoutte-Carson 3eff13967a Fix duplicate lines 2022-08-11 17:32:09 -07:00
Colen Garoutte-Carson cba220883b Fix order 2022-08-11 16:59:43 -07:00
Colen Garoutte-Carson 423f838ce8 Update changelog for 1.12.1 2022-08-11 16:58:37 -07:00
Michelle Matias 20f9990784 Add pre-requisites to readme (#9722) 2022-08-11 15:56:31 -07:00
Colen Garoutte-Carson d6574c6d3f Merge pull request #9714 from microsoft/main 2022-08-10 16:37:41 -07:00
Colen Garoutte-Carson f5d711bd0b Minor fixes to changelog (#9715) 2022-08-10 16:12:02 -07:00
Colen Garoutte-Carson bd3102ad91 Add changelog content for 1.11.5 (#9713) 2022-08-10 15:54:55 -07:00
Colen Garoutte-Carson 9005aca568 Update version and changelog for 1.12.1 (#9712) 2022-08-10 15:25:35 -07:00
Jiefang Li 54c6227d89 Adding doxygen comment generation (#9656) 2022-08-10 12:33:37 -07:00
xisui-MSFT 41303ed8cc Adding PID to the extended remote process picker (#9673) 2022-08-04 17:19:18 -07:00
xisui-MSFT b885e2c39a Cache and reuse SSH passwords in the current session (#9654)
* Cache and reuse SSH passwords in the current session
2022-08-04 17:03:47 -07:00
Sean McManus 853a4f3582 Code analysis fix formatting. (#9661)
* Code analysis fix formatting.
2022-08-02 20:44:00 -07:00
Sean McManus 6ee27f5716 Update IntelliSense translations. (#9671) 2022-08-02 18:37:02 -07:00
Colen Garoutte-Carson d8c3426058 Enable colorized output in tasks for clang (#9655) 2022-07-28 12:45:24 -07:00
Sean McManus 886d3c58e9 Merge pull request #9642 from microsoft/main
Merge for 1.12.0
2022-07-26 22:52:45 -07:00
Sean McManus ae17dab804 Fix hover E2E test on Windows. (#9648) 2022-07-26 19:38:33 -07:00
Colen Garoutte-Carson 9fd2438d4c Fix bug introduced by use of new language-client (#9649) 2022-07-26 18:33:40 -07:00
Michelle Matias 1ac61ed3b6 Revert ignoring failures in E2E tests (#9647) 2022-07-26 16:13:25 -07:00
Sean McManus 6bd2bb5fdb Update changelog and version. (#9639)
* Update changelog and version.
2022-07-25 22:36:27 -07:00
Colen Garoutte-Carson ac1e3274ec Display warning for commands when IntelliSenseEngine is Disabled (#9640) 2022-07-25 18:56:03 -07:00
Colen Garoutte-Carson 14be9092a1 Update to latest vscode-languageclient (#9524) 2022-07-25 16:28:49 -07:00
Michelle Matias 5dfb14f86e fix spelling (#9638) 2022-07-25 15:41:42 -07:00
kouhe3 b42091e660 fix inlay hints chinese translate bug. (#9624) 2022-07-25 12:05:45 -07:00
Sean McManus 646f40b8b5 Add .vs exclusion. (#9629) 2022-07-25 11:47:50 -07:00
Michelle Matias c357584ec0 Add inlay hint tests, fix setting update of autoDeclarationTypes.showOnLeft (#9622) 2022-07-22 15:22:32 -07:00
Sean McManus 5d736cc6c8 Merge pull request #9621 from microsoft/main
Merge for 1.11.4
2022-07-21 15:36:54 -07:00
Sean McManus 304858c0cb Merge branch 'release' into main 2022-07-21 15:18:40 -07:00
Sean McManus fa32357231 Update changelog. (#9620) 2022-07-21 15:14:44 -07:00
Sean McManus 8879e4e399 Fix empty inlay hint error. (#9617)
* Fix empty inlay hint error.
2022-07-21 14:40:00 -07:00
Sean McManus f1712ca20b Update terser dependency. (#9608) 2022-07-21 10:00:32 -07:00
Sean McManus 0445fc4207 Merge pull request #9603 from microsoft/main
Merge for 1.11.3
2022-07-19 14:14:52 -07:00
Sean McManus 34c3835151 Merge branch 'insiders' into main 2022-07-19 13:51:11 -07:00
xisui-MSFT f38f551cda Extended remote support (#9569)
* Extended remote support
2022-07-19 13:49:30 -07:00
Sean McManus 93fcc05944 Changelog for 1.11.3. (#9591)
* Changelog for 1.11.3.
2022-07-19 13:39:40 -07:00
ChaseKnowlden 12dbf2cd68 Convert Language Service issue template to github issue forms template (#9578) 2022-07-13 16:05:00 -07:00
Alex Hsu 6a97dd8c93 [Auto] Localization - Translated Strings (#9420) 2022-07-11 21:32:37 -07:00
Sean McManus 16b4710f8c Merge pull request #9561 from microsoft/seanmcm/revert2DeploySteps
Revert deploy steps
2022-07-08 12:54:25 -07:00
Sean McManus 3d58b640f0 Fix changelog version. 2022-07-08 11:45:23 -07:00
Sean McManus a5b573dbcd Update changelog for 1.11.2 2022-07-08 11:43:49 -07:00
Sean McManus 9360987d31 Revert "Revert "Add deploySteps and variables to cppdbg (#9418)""
This reverts commit 8914e28c26.
2022-07-08 11:42:09 -07:00
Sean McManus 08776b77f7 Merge pull request #9557 from microsoft/seanmcm/revertDeplaySteps
revert deploy steps
2022-07-07 18:55:50 -07:00
Sean McManus b34766054b Remove changelog entry. 2022-07-07 18:48:05 -07:00
Sean McManus 8914e28c26 Revert "Add deploySteps and variables to cppdbg (#9418)"
This reverts commit b55a98c697.
2022-07-07 18:46:31 -07:00
Sean McManus 2a39dc402a Merge pull request #9550 from microsoft/main
Merge for 1.11.1
2022-07-07 15:55:09 -07:00
xisui-MSFT b55a98c697 Add deploySteps and variables to cppdbg (#9418)
* Add deploySteps and variables to cppdbg
2022-07-06 19:55:39 -07:00
Sean McManus fe9cfe318a Merge pull request #9518 from microsoft/seanmcm/1_10_8_release
1.10.8 release
2022-07-06 18:07:58 -07:00
Sean McManus 08b9c995bd Update changelog for 1.11.1 (#9549) 2022-07-06 17:56:43 -07:00
Colen Garoutte-Carson 6da34e4236 Display a log message when intelliSenseMode is Disabled (#9543) 2022-07-06 17:50:34 -07:00
Colen Garoutte-Carson 2080e28813 Fix issue in which duplicate compiler args might be used in compiler query (#9532) 2022-07-06 17:19:16 -07:00
Sean McManus 79e846844f Update changelog. 2022-07-06 17:19:06 -07:00
Sean McManus e172440607 Fix cl.exe being excluded for .c files and c/cpp caching. (#9544)
* Fix cl.exe being excluded for .c files and c/cpp caching.
2022-07-06 15:23:30 -07:00
Colen Garoutte-Carson 996453b3a8 Fix issue in which duplicate compiler args might be used in compiler query (#9532) 2022-07-01 11:44:44 -07:00
Colen Garoutte-Carson 0eb68d22a0 Update changelog to reflect reverted change (#9523) 2022-06-29 12:39:40 -07:00
Colen Garoutte-Carson a2a8d77445 Revert "Reduce default C++ inlay hint font size 12 to match VS and potentially reduce confusion (#9480)" (#9522)
This reverts commit a2683630e0.
2022-06-29 12:35:05 -07:00
Sean McManus 032d9a288e Update changelog for 1.11.1 (#9517) 2022-06-28 21:19:40 -07:00
Sean McManus 3a74d10317 Update changelog for 1.10.8 2022-06-28 21:15:10 -07:00
Sean McManus ef637af801 Change C_Cpp.debugShortcut to resource scope (#9514)
Make C_Cpp.debugShortcut resource scope.
2022-06-28 21:12:12 -07:00
Sean McManus 833795da79 Update ThirdPartyNotices.txt (#9516)
* Update ThirdPartyNotices.txt
2022-06-28 21:11:50 -07:00
Chuck Ries 68bc9642f4 Contribute breakpoints for the "rust" language (#9484)
* Contribute breakpoints for the "rust" language

Since rust code can be debugged with this extension, contribute breakpoints for the "rust" language such that the workaround of "allow breakpoints in all files" is no longer required.
2022-06-28 21:11:03 -07:00
Sean McManus a8bae9e3a6 Update yarn.lock. (#9513) 2022-06-28 21:10:32 -07:00
Andrew Wang fe2c5ef04b Update VSCode Telemetry Package to v0.6.2 (#9512)
* Update VSCode Telemetry Package to v0.6.2
2022-06-28 21:10:10 -07:00
Elaheh Rashedi 83521bc682 rename "success" to "succeeded" in telemetry (#9509) 2022-06-28 21:09:32 -07:00
Sean McManus 59ea146b6e Change C_Cpp.debugShortcut to resource scope (#9514)
Make C_Cpp.debugShortcut resource scope.
2022-06-28 20:57:31 -07:00
Sean McManus 09a1ce1e8a Update ThirdPartyNotices.txt (#9516)
* Update ThirdPartyNotices.txt
2022-06-28 19:18:23 -07:00
Colen Garoutte-Carson 58a9ec846f Fix issue preventing building with the latest nodejs (#9515) 2022-06-28 16:49:19 -07:00
Sean McManus 6f3ae65833 Add setting to hide leading underscores for inlay hints. (#9500)
* Add setting to hide leading underscores for inlay hints.
2022-06-28 16:25:03 -07:00
Sean McManus a8e6695b55 Add setting to show inlay hints on the left. (#9506) 2022-06-28 14:48:06 -07:00
Chuck Ries c7edc9981f Contribute breakpoints for the "rust" language (#9484)
* Contribute breakpoints for the "rust" language

Since rust code can be debugged with this extension, contribute breakpoints for the "rust" language such that the workaround of "allow breakpoints in all files" is no longer required.
2022-06-28 14:12:20 -07:00
Sean McManus 4d0912eb9d Update yarn.lock. (#9513) 2022-06-28 12:15:52 -07:00
Andrew Wang 7747ac6226 Update VSCode Telemetry Package to v0.6.2 (#9512)
* Update VSCode Telemetry Package to v0.6.2
2022-06-28 11:34:09 -07:00
Elaheh Rashedi 13155149ea rename "success" to "succeeded" in telemetry (#9509) 2022-06-28 10:56:55 -07:00
Sean McManus d3fffbad7b Add setting for & space in inlay hints. (#9502)
* Add setting for & space in inlay hints.
2022-06-24 12:06:36 -07:00
Sean McManus 6fe98d2f54 Add left padding to "auto" inlay hints with no spaces on the left (#9499)
* Add left padding to inlay hint.
2022-06-24 11:13:33 -07:00
Sean McManus a2683630e0 Reduce default C++ inlay hint font size 12 to match VS and potentially reduce confusion (#9480)
* Reduce default inlay hint font size to 12 match VS and reduce confusion.
2022-06-23 17:33:37 -07:00
Sean McManus 590923ca99 Fix remove diagnostics for the disable case. (#9495) 2022-06-23 13:42:44 -07:00
Sean McManus 2a5198ed9d Merge pull request #9477 from microsoft/main
Change inlayHint defaults settings. (#9476)
2022-06-20 11:42:18 -07:00
Sean McManus 4a85594360 Change inlayHint defaults settings. (#9476) 2022-06-20 11:18:16 -07:00
Sean McManus 3d7f5ea0ca Merge pull request #9470 from microsoft/main
Show or hide commands based on C_Cpp.intelliSenseEngine value (#9469)
2022-06-17 16:46:44 -07:00
Michelle Matias 982314db80 Show or hide commands based on C_Cpp.intelliSenseEngine value (#9469) 2022-06-17 16:18:57 -07:00
Sean McManus 3abe8a564b Merge pull request #9468 from microsoft/main
Merge for 1.11.0
2022-06-17 14:03:31 -07:00
Sean McManus 2dc0a86605 Update changelog for 1.11.0. (#9462)
* Update changelog for 1.11.0.
2022-06-17 13:26:40 -07:00
Sean McManus 84f5f6505d Update extension pack readme. (#9456) 2022-06-17 13:17:37 -07:00
Sean McManus cc685c8d7f Fix translations (#9467) 2022-06-17 12:41:52 -07:00
Michelle Matias 9b07d494c6 Add settings for inlay hints feature (#9460) 2022-06-17 11:52:04 -07:00
Sean McManus 3263fab54f Merge pull request #9455 from microsoft/seanmcm/1_10_7_cherrypick
Update version and changelog for 1.10.7. (#9454)
2022-06-15 14:10:00 -07:00
Sean McManus 145a1aa470 Update IntelliSense loc strings. (#9450) 2022-06-15 14:05:41 -07:00
Sean McManus 3254d7db33 Update version and changelog for 1.10.7. (#9454) 2022-06-15 13:52:15 -07:00
Sean McManus 5d4867e0ab Update version and changelog for 1.10.7. (#9454) 2022-06-15 13:46:29 -07:00
Michelle Matias a665cb1329 Add InlayHintsProvider and Display hints (#9392) 2022-06-14 23:12:29 -07:00
Sean McManus 77bdf4b028 Merge pull request #9449 from microsoft/seanmcm/1_10_6_cherryPick2
1.10.6 another cherry-pick
2022-06-14 16:40:59 -07:00
Elaheh Rashedi ca16d85890 resolve tasks when IntelliSense is disabled (#9448) 2022-06-14 16:38:11 -07:00
Elaheh Rashedi b29d5e8d33 resolve tasks when IntelliSense is disabled (#9448) 2022-06-14 16:33:48 -07:00
Sean McManus 74f12d8071 Merge pull request #9447 from microsoft/seanmcm/1_10_6_cherryPick
Merge for 1.10.6
2022-06-14 14:30:26 -07:00
Sean McManus dc6b33eda2 Update version and changelog. (#9440)
* Update version and changelog.
2022-06-14 14:09:36 -07:00
Sean McManus bde931bc3a Remove legacyCompilerArgsBehavior deprecation. (#9439) 2022-06-14 14:09:07 -07:00
Sean McManus 81827f6536 Update version and changelog. (#9440)
* Update version and changelog.
2022-06-14 14:07:35 -07:00
Sean McManus 8e5f3af858 Remove legacyCompilerArgsBehavior deprecation. (#9439) 2022-06-14 13:49:54 -07:00
Sean McManus 9397ddb725 Code analysis refactor (#9402)
* Refactor code analysis code.
2022-06-08 15:47:39 -07:00
Sean McManus 872c86ad20 Fix error that occurred when resolving a merge conflict. (#9424) 2022-06-08 10:47:07 -07:00
Sean McManus 6736b6771f Merge pull request #9421 from microsoft/seanmcm/1_10_5_release
Merge for 1.10.5
2022-06-08 10:07:33 -07:00
Sean McManus 4b4ea51138 Merge branch 'release' into seanmcm/1_10_5_release 2022-06-07 21:48:48 -07:00
Sean McManus a5de3a5c11 Update changelog for 1.10.5. (#9417) 2022-06-07 21:43:04 -07:00
Colen Garoutte-Carson 14e31e0d1d Corrected localized strings (#9419) 2022-06-07 21:25:50 -07:00
Sean McManus 8bff10f1cb Fix resolve variable with non-string. (#9403)
* Fix resolve variable with non-string.
* Fix spelling errors.
2022-06-07 10:40:36 -07:00
Bob Brown baf58c847e Add telemetry for configuration provider usage (#9412) 2022-06-06 12:20:40 -07:00
Colen Garoutte-Carson 4fc18a7eb4 Merge pull request #9400 from microsoft/main 2022-06-03 14:48:59 -07:00
Colen Garoutte-Carson 40821ed32c Remove stray .DS_Store file (#9401) 2022-06-03 14:27:49 -07:00
Colen Garoutte-Carson 3aa99e6cc8 Update changelog for 1.10.4 (#9399) 2022-06-03 14:14:14 -07:00
Elaheh Rashedi d6469bfd33 Add telemetry for playButton (#9398) 2022-06-03 14:08:17 -07:00
Elaheh Rashedi 83c08306f9 resolve "user" and "workspace" debug configs (#9373) 2022-06-01 15:34:16 -07:00
Colen Garoutte-Carson 6735b644c2 Always report Dyld error message with crash stack info (#9383) 2022-06-01 10:56:14 -07:00
Sean McManus b16d0f9f42 Fix bug with Mac crash telemetry. (#9357) 2022-05-24 14:47:09 -07:00
Sean McManus c3dd4405a6 Merge pull request #9344 from microsoft/main
Merge for 1.10.3
2022-05-20 17:07:19 -07:00
Sean McManus 617261dc52 Add a missed change. (#9343) 2022-05-20 16:24:18 -07:00
Sean McManus 1120cb7280 Update changelog. (#9342) 2022-05-20 16:14:54 -07:00
Sean McManus 969f2c1db2 Update IntelliSense loc strings. (#9334)
* Update IntelliSense loc strings.
2022-05-20 16:03:09 -07:00
Colen Garoutte-Carson 2238e7347f Prevent language service activation for macOS older than 10.12 (#9328) 2022-05-20 11:47:00 -07:00
Elaheh Rashedi feb8a6421a Make Play Button available to all users (#9311) 2022-05-19 13:45:15 -07:00
Sean McManus bf2674fd0c Add code analysis code action fixes (#9202)
* Add code analysis code action fixes
2022-05-18 16:10:20 -07:00
microsoft-github-policy-service[bot] 9cc30c2ccd Microsoft mandatory file (#9326)
Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
2022-05-18 15:31:15 -07:00
Sean McManus b294eb7a9c Remove [Log] editor.wordWrap "off" default. (#9313) 2022-05-18 10:59:19 -07:00
Sean McManus b25fb3fd0e Update Mac crash telemetry for cpptools-wordexp. (#9308)
* Update Mac crash telemetry for cpptools-wordexp.
2022-05-16 17:56:51 -07:00
Sean McManus 32ba555dee Merge pull request #9304 from microsoft/main
Update changelog and version. (#9303)
2022-05-12 17:08:36 -07:00
Sean McManus f3b60f296d Update changelog and version. (#9303) 2022-05-12 16:22:31 -07:00
Michelle Matias f31caa30f4 Merge pull request #9290 from microsoft/main
1.10.1 insiders
2022-05-09 17:52:14 -07:00
Michelle Matias 04eeb03292 1.10.1 changelog (#9289) 2022-05-09 16:38:34 -07:00
Elaheh Rashedi 7b7effbe81 add compiler path to debug configs details (#9264) 2022-05-09 15:48:00 -07:00
Sean McManus 0d0b9ee120 Fix spelling. (#9270)
* Fix spelling.
2022-05-05 11:01:27 -07:00
Elaheh Rashedi 62ac866bbc fail the tasks, if there is a fatal link error (#9211) 2022-05-03 13:11:59 -07:00
Elaheh Rashedi fc69d50751 use /Fe<file> for older cl.exe version (#9252) 2022-05-03 09:43:43 -07:00
Elaheh Rashedi 7f21a55337 remove quote from folder path (#9249) 2022-05-03 09:43:11 -07:00
Michelle Matias 85c9b30c05 Update messages of issue closers (#9251) 2022-04-29 23:40:05 -07:00
Elaheh Rashedi 91380b3f58 add "add configuration" feature (ready) (#9226) 2022-04-29 13:51:05 -07:00
Colen Garoutte-Carson fab35332eb Merge pull request #9213 from microsoft/main 2022-04-20 16:52:16 -07:00
Colen Garoutte-Carson f0d43ce102 Update changelog and version for 1.10.0 insiders (#9212) 2022-04-20 16:29:15 -07:00
Elaheh Rashedi 08ab287ff7 check for failed tasks (#9205) 2022-04-20 11:42:48 -07:00
Colen Garoutte-Carson 380dcbbb58 Fix changelog release date for 1.9.8 (#9210) 2022-04-20 11:26:20 -07:00
Colen Garoutte-Carson 3c98246141 Fix changelog release date for 1.9.8 (#9210) 2022-04-20 11:25:47 -07:00
Colen Garoutte-Carson 0a002db1e5 Merge pull request #9206 from microsoft/coleng/1.9.8-cherry-picks 2022-04-19 17:12:24 -07:00
Colen Garoutte-Carson b5b1c2b9df Update changelog for 1.9.8 (#9207) 2022-04-19 17:10:46 -07:00
Colen Garoutte-Carson 0428ebddb0 Update changelog for 1.9.8 (#9207) 2022-04-19 16:58:59 -07:00
Colen Garoutte-Carson dd8f358076 Fix exception when IntelliSenseEngine is Diabled (#9178) 2022-04-19 16:34:07 -07:00
Andrew Wang 34cd49174e Add back 'aiKey' in package.json (#9183)
* Add back 'aiKey' in package.json

* Add _aiKeyComment
2022-04-19 16:33:47 -07:00
Elaheh Rashedi 7810d7cb34 resolve Debug configuration (#9179) 2022-04-19 16:33:46 -07:00
Colen Garoutte-Carson 3243e39c4f Fix an edge string (#9193) 2022-04-15 11:36:25 -07:00
Colen Garoutte-Carson e60ae9290c Updated edge strings for VS FI (#9190) 2022-04-14 17:46:25 -07:00
Colen Garoutte-Carson 00274d5090 Address shell escaping issues (#8970) 2022-04-14 13:31:41 -07:00
Colen Garoutte-Carson 56c1a6314f Fix exception when IntelliSenseEngine is Diabled (#9178) 2022-04-13 15:32:19 -07:00
Andrew Wang 23038f4477 Add back 'aiKey' in package.json (#9183)
* Add back 'aiKey' in package.json

* Add _aiKeyComment
2022-04-13 13:56:20 -07:00
Michelle Matias 9f7d7fd997 Convert debugger issue form to yaml (#9180) 2022-04-13 12:37:39 -07:00
Michelle Matias 982255d45c Convert "general extension" and "feature request" templates from markdown to yaml (#9158) 2022-04-12 20:50:52 -07:00
Colen Garoutte-Carson a28a456aee Add support for c++23 language standard arg (#9177) 2022-04-12 15:56:33 -07:00
Sean McManus 6d53961493 Update minimist dependencies. (#9169) 2022-04-11 15:26:40 -07:00
Elaheh Rashedi b93b58cb49 making debugger platform specific (#9157) 2022-04-08 11:01:20 -07:00
Elaheh Rashedi 3cb4a9078c get the default build task for F5 (#9145) 2022-04-06 13:32:07 -07:00
Sean McManus 504800336c Replace substr with substring. (#9129)
* Replace substr with substring.
2022-04-04 19:42:19 -07:00
dependabot[bot] dda36530cd Bump plist from 3.0.4 to 3.0.5 in /Extension (#9125)
Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-31 17:18:26 -07:00
Sean McManus ffd59ee3c8 Add clangTidy.useBuildPath setting (#9104)
* Add useBuildPath setting.
2022-03-31 16:25:29 -07:00
Elaheh Rashedi e3365bbfe4 Run and Debug button updates (#9110) 2022-03-29 16:50:08 -07:00
Michelle Matias 71e9d239e3 add string for old default std version (#9090) 2022-03-25 15:28:20 -07:00
Sean McManus 2874fd2600 Merge pull request #9070 from microsoft/main
Merge for 1.9.7
2022-03-22 18:52:16 -07:00
Sean McManus 56db55a3dc Update minimist. (#9071) 2022-03-22 18:35:26 -07:00
Sean McManus 8b9e009fc9 Merge branch 'release' into main 2022-03-22 14:48:13 -07:00
Sean McManus 23720f5fd8 1.9.7 changelog (#9069)
* Update changelog.
* Update version.
2022-03-22 14:44:35 -07:00
Sean McManus 8bea1ecb35 Merge pull request #9061 from microsoft/main
Merge for 1.9.6
2022-03-21 11:48:55 -07:00
Michelle Matias dd3938c934 Fix periods to descriptions and title (#9052) 2022-03-21 10:34:36 -07:00
Sean McManus cf9b2565d0 Update changelog. (#9047)
* Update changelog.
2022-03-18 20:21:31 -07:00
Sean McManus caecbf9532 Merge pull request #9045 from microsoft/main
Merge for 1.9.5
2022-03-17 12:42:42 -07:00
Sean McManus a250a53361 Fix typo in changelog. (#9044) 2022-03-17 12:09:47 -07:00
Sean McManus 375d62c335 Update changelog. (#9042) 2022-03-17 11:26:31 -07:00
Sean McManus c3312d3fba Merge pull request #9030 from microsoft/main
Merge for 1.9.4
2022-03-15 21:46:09 -07:00
Sean McManus df9469ca4e Update changelog. (#9029) 2022-03-15 18:08:12 -07:00
Sean McManus a07c8fd6c0 Undo detached. (#9026)
* Undo detached.
* Update changelog.
2022-03-14 17:11:44 -07:00
Colen Garoutte-Carson e41ead271e Update a loc strings for tag_parsing_error (#9027) 2022-03-14 17:02:19 -07:00
Sean McManus c1e3843bcf Update changelog. (#9016)
* Update changelog.
2022-03-11 17:29:16 -08:00
Sean McManus 7886ac0e98 Merge pull request #9002 from microsoft/main
Merge for 1.9.3
2022-03-09 13:49:43 -08:00
Sean McManus af38a6c7c8 Update version. 2022-03-09 13:24:33 -08:00
Sean McManus 9fb4ce53a5 Update changelog for 1.9.3 (#8999)
* Update changelog.
2022-03-09 13:17:02 -08:00
Michelle Matias 1f7204baac Remove debugger M1 workaround (#9001) 2022-03-09 12:39:36 -08:00
Andrew Wang f3932b797b Update lldb-mi.yml to support building ARM64 (#8997)
* Update lldb-mi build

Hardcode llvm/lldb-mi commits to match the ones in cgmanifest.
Added parameters to support building for different arch and on
different machines.

* Refactor
2022-03-09 12:18:49 -08:00
Bob Brown 24d7926bc7 update extension pack to be hidden from web environment (#8991) 2022-03-08 23:55:22 -08:00
Sean McManus f4db8e996a Change to run detached. (#8969) 2022-03-08 23:46:05 -08:00
Sean McManus fa91e7d113 change tag parse string (#8909)
* Update tag parse string.
2022-03-08 23:35:13 -08:00
Colen Garoutte-Carson 5889017c02 Revert "Localization - Translated Strings (#8994)"
This reverts commit ad8278a3ae.
2022-03-08 19:38:17 -08:00
csigs ad8278a3ae Localization - Translated Strings (#8994) 2022-03-08 17:54:10 -08:00
csigs 79c2319c16 [Auto] Localization - Translated Strings (#8688) 2022-03-08 17:09:50 -08:00
Colen Garoutte-Carson e36cb639f2 Fix issue with updateCustomConfigurations failing to refresh config of active file (#8984) 2022-03-08 14:44:18 -08:00
Sean McManus 23823e650a Fix problemMatcher relative path. (#8993) 2022-03-08 14:28:11 -08:00
Sean McManus 7fdddf23fe Fix bugs with code analysis status icons with multi-root (#8967)
* Fix incorrect "Running clang-tidy" status with multi-root.
2022-03-03 10:07:14 -08:00
Sean McManus 8eea7fb23e Merge pull request #8957 from microsoft/main
Merge for 1.9.2
2022-03-01 14:02:57 -08:00
Sean McManus 03c9918b58 Update changelog for 1.9.2. (#8950)
* Update changelog for 1.9.2.
2022-03-01 13:47:53 -08:00
Elaheh Rashedi 2cbe7d6313 add launch config (#8949) 2022-03-01 13:06:07 -08:00
Bob Brown ffb1b832f6 Update extension pack (#8954)
* Remove the remote extensions from the pack as remote is considered "advanced"
* Mark the pack to not be compatible with "web" so that it is not offered as a recommendation.
2022-03-01 10:55:50 -08:00
Colen Garoutte-Carson d56135ea82 Add localized MD/HTML file for guidance when incompatible VSIX (#8920) 2022-02-28 15:48:08 -08:00
Sean McManus 7216af8981 Update IntelliSense strings. (#8936) 2022-02-28 14:50:56 -08:00
Sean McManus b8eb77a61a Revert "add launch.json configs" (#8948) 2022-02-28 14:42:58 -08:00
elrashed ed1fd8077c Merge branch 'main' of https://github.com/microsoft/vscode-cpptools into main 2022-02-28 13:53:40 -08:00
elrashed 94e02c78a1 add launch.json configs 2022-02-28 13:53:33 -08:00
Colen Garoutte-Carson e6558706b8 Minor code cleanup in useVcFormat (#8933) 2022-02-25 17:35:27 -08:00
elrashed ec511b941d Merge branch 'main' into insiders 2022-02-24 11:50:54 -08:00
Elaheh Rashedi accd0fb4af single mode file f5 (#8927) 2022-02-24 11:45:36 -08:00
Colen Garoutte-Carson 17140a9fde Merge pull request #8923 from microsoft/main 2022-02-23 19:23:56 -08:00
Colen Garoutte-Carson d0d269b61f Update changelog for 1.9.1 (#8921) 2022-02-23 19:02:12 -08:00
Colen Garoutte-Carson f7adfc83e8 Fix a formatting bug (#8922) 2022-02-23 17:50:03 -08:00
Colen Garoutte-Carson 125b6576a4 Add compatibility check of VSIX TargetPlatform (#8910) 2022-02-23 14:45:57 -08:00
Colen Garoutte-Carson 67669b497e Fix loc string key casing (#8911) 2022-02-23 12:12:37 -08:00
Elaheh Rashedi f809a81829 Dynamic debug config + Telemetry (#8876) 2022-02-23 10:06:01 -08:00
InLAnn 9ea7328ab4 Fix bug: !err && stats && stats.isFile will always return true. Fix typos (#8897) 2022-02-23 09:53:08 -08:00
Colen Garoutte-Carson ef5926422a Update initialization order in activate (#8906) 2022-02-22 14:46:36 -08:00
Joel Smith 111a6534e1 Make SwitchHeaderSource use workbench.editor.revealIfOpen setting (#8857)
Make SwitchHeaderSource use workbench.editor.revealIfOpen setting
2022-02-18 14:04:57 -08:00
Hamir Mahal fcd74cb13c clarify how to get binaries if F5 results in error (#8788)
* clarify how to get binaries if F5 results in error
2022-02-18 13:30:17 -08:00
Sean McManus 49720023bd Ignore failing error code from VS Code (#8872) 2022-02-16 10:30:42 -08:00
Sean McManus 96a12da3a3 Switch loc pipeline. (#8870) 2022-02-15 12:07:50 -08:00
Matheus Castello 67eea35d8f Add dotconfig property for c_cpp_properties.json (#7845)
* Add dotConfig property for c_cpp_properties.json
2022-02-15 10:15:38 -08:00
Sean McManus 9d6ea035a9 Update dependencies. (#8862) 2022-02-14 12:51:13 -08:00
dependabot[bot] fcd8f25e8b Bump follow-redirects from 1.14.7 to 1.14.8 in /.github/actions (#8856)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-14 12:01:12 -08:00
Colen Garoutte-Carson 5f888eef30 Fix issue with cpptools restarting when it should not (#8850) 2022-02-11 16:58:21 -08:00
jogo- c02440cfe1 Update CHANGELOG.md (#8844)
Fix trailing '.' after links
2022-02-11 10:49:39 -08:00
Colen Garoutte-Carson e5abfbca71 Prevent error from being logged due to custom configuration processing prior to the provider being ready (#8841) 2022-02-10 18:06:43 -08:00
Michelle Matias b30c098dc1 Merge pull request #8839 from microsoft/main
Insiders 1.9.0 #3
2022-02-10 15:59:16 -08:00
Colen Garoutte-Carson b4625c7c30 Fix casing in changlog (#8838) 2022-02-10 15:49:52 -08:00
Colen Garoutte-Carson b960aecb76 Add comment to changelog referring to rename/remove of Build and Debug Active File feature (#8837) 2022-02-10 15:43:42 -08:00
Elaheh Rashedi 2ebc31b273 fix warning if cl.exe is not available (#8835) 2022-02-10 15:05:11 -08:00
Michelle Matias e135b011bc Merge pull request #8833 from microsoft/mimatias/insiders1-9
Insiders 1.9.0 #2
2022-02-10 13:38:38 -08:00
Michelle Matias 2913721755 Merge branch 'main' into mimatias/insiders1-9 2022-02-10 13:30:18 -08:00
Michelle Matias 7a83d8d76a Merge pull request #8831 from microsoft/mimatias/insiders1_9
Insiders 1.9.0
2022-02-10 13:20:21 -08:00
Michelle Matias db67ca332c remove extra === 2022-02-10 13:17:26 -08:00
Michelle Matias 69cf11512a Merge branch 'main' into mimatias/insiders1_9 2022-02-10 13:11:50 -08:00
Elaheh Rashedi 4ea422f34e resolve task (#8826) 2022-02-10 13:08:29 -08:00
Colen Garoutte-Carson 5c44eec26e Fix issue with recovery from cpptools crash when using multiroot (#8810) 2022-02-10 13:02:43 -08:00
Michelle Matias 99ac776dbb changelog for 1.9 (#8822) 2022-02-10 11:11:09 -08:00
Michelle Matias 41f2cd70ed Build and debug as x86_64 on Apple Silicon (macOS ARM64) by default (#8820) 2022-02-09 19:12:53 -08:00
Colen Garoutte-Carson 485dbdeb33 Fix issue with invoking commands before cpptools is activated (#8821) 2022-02-09 18:23:56 -08:00
Elaheh Rashedi 1772769c6d add telemetry for debug and Run button (#8819) 2022-02-09 16:28:23 -08:00
Sean McManus 7393ba3b6b Add scope to debugShortcut. (#8806) 2022-02-09 08:07:49 -08:00
Sean McManus af71bc0cd1 Remove duplicate "in" in comment. (#8795) 2022-02-07 12:44:20 -08:00
Colen Garoutte-Carson a3b79dc06d Add loc for 3 strings (#8784) 2022-02-07 11:26:14 -08:00
Colen Garoutte-Carson 011b5c12a9 Merge pull request #8783 from microsoft/coleng/merge_insiders_1_8_4 2022-02-04 17:14:12 -08:00
Colen Garoutte-Carson d4df455dc0 Merge pull request #8782 from microsoft/coleng/merge_release_1_8_4 2022-02-04 17:14:09 -08:00
Colen Garoutte-Carson 025ab76ca6 Update changelog for 1.8.4 (#8778) 2022-02-04 16:39:38 -08:00
Sean McManus 1613298710 Remove offline installation from ReadMes. (#8769) 2022-02-04 16:39:34 -08:00
Colen Garoutte-Carson bcd6c9ef50 Suppress incorrect warnings on Mac M1 (#8757) 2022-02-04 16:39:29 -08:00
Sean McManus 6f62c61bb4 Update changelog. (#8754)
* Update changelog.
2022-02-04 16:39:25 -08:00
Colen Garoutte-Carson b5c13664a6 Update changelog for 1.8.4 (#8778) 2022-02-04 16:37:54 -08:00
Sean McManus f95b1cebf7 Remove offline installation from ReadMes. (#8769) 2022-02-04 16:37:50 -08:00
Colen Garoutte-Carson 4813194480 Suppress incorrect warnings on Mac M1 (#8757) 2022-02-04 16:37:45 -08:00
Sean McManus 97fd5b6bb9 Update changelog. (#8754)
* Update changelog.
2022-02-04 16:37:38 -08:00
Colen Garoutte-Carson 2cbc5f4b7b Update changelog for 1.8.4 (#8778) 2022-02-04 16:28:57 -08:00
Elaheh Rashedi 0ba3df9253 Add Debug and Run button (#8651) 2022-02-03 14:24:42 -08:00
Sean McManus f33afd0379 Remove offline installation from ReadMes. (#8769) 2022-02-03 12:00:07 -08:00
Sean McManus f15c635167 Update changelog. (#8754)
* Update changelog.
2022-02-02 09:45:14 -08:00
Colen Garoutte-Carson ec5044da85 Suppress incorrect warnings on Mac M1 (#8757) 2022-02-01 16:58:31 -08:00
Colen Garoutte-Carson 5818e888f1 Rework how cancelation is processed for semantic tokens and folding operations (#8739) 2022-02-01 13:07:03 -08:00
Sean McManus 3b4c8e71e7 Merge pull request #8746 from microsoft/main
Merge for 1.8.2
2022-01-31 14:09:54 -08:00
Sean McManus 75d131d3ea Merge pull request #8747 from microsoft/main
Merge for 1.8.3 (insiders)
2022-01-31 12:28:29 -08:00
Sean McManus 6ad565886b Changelog for 1.8.2. (#8737)
* Changelog for 1.8.2.
2022-01-31 11:24:52 -08:00
Sean McManus abc3c11cab Merge pull request #8731 from microsoft/main
Merge for 1.8.1
2022-01-27 13:46:46 -08:00
Sean McManus 30991405b1 Update changelog for 1.8.1. (#8719)
* Update changelog for 1.8.1.
2022-01-27 13:22:23 -08:00
dependabot[bot]andSean McManus 6e325b1eb1 Bump node-fetch from 2.6.1 to 2.6.7 in /.github/actions (#8730)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sean McManus <[email protected]>
2022-01-27 13:04:17 -08:00
Sean McManus f2834da643 Fix Error: selectionRange must be contained in fullRange (#8727) 2022-01-27 12:53:55 -08:00
Sean McManus 13345e3f85 Update nanoid and @octokit/rest (#8718) 2022-01-27 12:14:35 -08:00
Colen Garoutte-Carson 4092a12895 Remove Offline Installation section from README.md (#8714) 2022-01-24 14:33:15 -08:00
Colen Garoutte-Carson c694184fea Mitigate issue with migrating Insiders to Prerelease (#8705) 2022-01-20 15:17:08 -08:00
Sean McManus 2d1f8e09ac Fix regression with environment variable defines. (#8700)
* Fix regression with environment variable defines.
2022-01-20 12:52:23 -08:00
Colen Garoutte-Carson 32e2c38fc4 Add targetPopulation field to telemetry (#8703) 2022-01-20 12:09:17 -08:00
csigs d0ffef78f1 [Auto] Localization - Translated Strings (#8506) 2022-01-18 19:35:52 -08:00
Colen Garoutte-Carson 88f0bbebb9 Merge pull request #8669 from microsoft/main 2022-01-13 13:39:55 -08:00
Colen Garoutte-Carson 75fc2a842c Move existing insiders to new mechanism without prompting (#8665) 2022-01-13 13:25:50 -08:00
Sean McManus c0ff0efbed Update follow-redirects. (#8668)
* Update follow-redirects.
2022-01-13 13:19:22 -08:00
Sean McManus 01290a44fb Update dependencies. (#8627)
* Update dependencies.
2022-01-13 12:56:59 -08:00
Colen Garoutte-Carson 7b175d4ab4 Merge pull request #8663 from microsoft/main 2022-01-12 13:48:16 -08:00
Colen Garoutte-Carson 4f2b7e2d68 Merge pull request #8662 from microsoft/coleng/prerelease_version_dependency 2022-01-12 13:28:21 -08:00
Colen Garoutte-Carson 01c3b227a2 Update minimum version of VS Code 2022-01-12 13:20:28 -08:00
Sean McManus 144845c0b4 Stop splitting ; or : in defines and compilerArgs. (#8661) 2022-01-12 12:45:37 -08:00
Colen Garoutte-Carson 29e8ff6f3b Merge pull request #8658 from microsoft/main 2022-01-11 18:10:18 -08:00
Colen Garoutte-Carson 2b44312fe4 Update changelog for 1.8.0 insiders3 (#8657) 2022-01-11 17:52:45 -08:00
Colen Garoutte-Carson d0985f5c82 Merge main into insiders branch (#8656) 2022-01-11 16:28:17 -08:00
Colen Garoutte-Carson ff4cdc8d31 Fix to display updateChannel deprecation messages when using VS Code Insiders (#8655) 2022-01-11 11:54:14 -08:00
Elaheh Rashedi b4c1b9dced add cl.exe error (#8630) 2022-01-11 08:48:48 -08:00
Colen Garoutte-Carson 8d097048e8 Remove support for 'online' binary downloads (#8505) 2022-01-10 18:37:51 -08:00
Andrew Wang 14592c4b37 .vscodeignore cgmanifest.json (#8641) 2022-01-06 13:54:47 -08:00
Sean McManus a333ee19e3 Add NOLINTBEGIN/END. (#8591) 2022-01-05 19:32:51 -08:00
Andrew Wang 49fcfad692 Add cgmanifest for debugger components (#8637)
This PR adds in a cgmanifest.json file to comply with Component
Governance Compliance.

This adds two registrations to llvm-project and lldb-mi as components as
they are packaged and published with the macOS version of the VS Code
C/C++ Extension.
2022-01-05 13:29:54 -08:00
Yash Singh 62f052a36c Add repository info to extension pack (#8598) 2022-01-05 08:22:14 -08:00
Sean McManus 1bd76ebd2d Fix "Command '' not found" error. (#8609)
* Fix "Command '' not found" error.
* Remove unneeded initialization.
2021-12-27 14:13:11 -08:00
Bob Brown 6d99657dc0 Don't block running a task if it doesn't use the active file (#8608) 2021-12-27 12:41:40 -08:00
Sean McManus e6003fe683 Fix 3 settings not getting variables resolved on settings update. (#8538) 2021-12-14 12:18:09 -08:00
Colen Garoutte-Carson 58e1a78191 More misc loc fixes (#8537) 2021-12-14 11:46:24 -08:00
Colen Garoutte-Carson cfd43015c6 Set code page to UTF8 when processing build task output (#8519) 2021-12-13 17:24:52 -08:00
Colen Garoutte-Carson aa4c8647ba Remove redundant cl.exe instances from build list (#8517) 2021-12-13 14:00:41 -08:00
Colen Garoutte-Carson 6f39f3b2cf A few more loc string fixes (#8513) 2021-12-09 18:08:11 -08:00
csigs af6a56ff5a [Auto] Localization - Translated Strings (#8466) 2021-12-08 15:53:35 -08:00
Sean McManus 7f996068d4 Merge pull request #8503 from microsoft/main
Merge for 1.8.0-insiders2
2021-12-07 13:40:33 -08:00
Sean McManus 6a60262bd6 Update changelog. (#8495)
* Update changelog.
2021-12-07 13:23:09 -08:00
Sean McManus 50e3a2f40d Proactively handle exclude settings. (#8492) 2021-12-07 13:00:37 -08:00
Sean McManus ed98521ba6 Merge pull request #8494 from microsoft/seanmcm/updateIntelliSenseStringsDec6
Update/fix IntelliSense strings.
2021-12-07 11:27:12 -08:00
Sean McManus a3be300f42 Update/fix IntelliSense strings. 2021-12-06 12:36:30 -08:00
Bob Brown 1ebb6aaef3 Update description for references.maxCachedProcesses (#8468) 2021-12-02 08:49:12 -08:00
Michelle Matias 8815aa5d83 Add periods to end of sentences. (#8472) 2021-12-01 13:37:06 -08:00
Colen Garoutte-Carson 14b197149b Make semantic token setting hover text localizable (#8464) 2021-11-29 17:22:58 -08:00
Sean McManus 27d1ac3897 Merge pull request #8463 from microsoft/main
Merge for 1.8.0-insiders
2021-11-29 17:06:40 -08:00
csigs 74030963f4 [Auto] Localization - Translated Strings (#8385) 2021-11-29 14:11:44 -08:00
Sean McManus 83df072462 Update changelog for 1.8.0-insiders. (#8439)
* Update changelog for 1.8.0-insiders.
2021-11-29 13:35:03 -08:00
Colen Garoutte-Carson cdfe77f798 Revert XLoc tools to working version (#8462) 2021-11-29 11:19:29 -08:00
Sean McManus bf25e3ddb7 Fix F5 debug configuration JSON parse error. (#8437) 2021-11-23 15:01:28 -08:00
Sean McManus c5d64e06c8 Update headerFilter description. (#8435)
* Update headerFilter description.
2021-11-23 12:54:43 -08:00
Sean McManus e4e40ef38e Fix references.maxConcurrentThreads not working. (#8422) 2021-11-19 13:18:54 -08:00
Sean McManus ed60b9c77b Update codeAnalysis.maxConcurrentThreads description. (#8418) 2021-11-19 10:32:26 -08:00
Sean McManus 2bdbdebd29 Update a couple clang-tidy descriptions (#8410)
* Update header filter description.

* Update codeAnalysis.exclude description.
2021-11-16 22:08:51 -08:00
Colen Garoutte-Carson 6c4049fe6a Update edge strings for FI (#8406) 2021-11-16 17:43:55 -08:00
Sean McManus 4b85228811 Add clang-tidy support (#7816) 2021-11-16 13:28:09 -08:00
Bob Brown 25eb322aba Update version for extension pack (#8403) 2021-11-16 08:39:32 -08:00
Andrew Wang aa53c7181b Include setupCommand to set intel flavor (#8368)
This PR adds an additional setupCommand for launch.json to set the
default disassembly flavor to intel since it is preferred over
att.
2021-11-15 11:50:33 -08:00
Julia Reid 91ce65c312 Removing non-C++ specific extensions (#8395) 2021-11-15 10:42:04 -08:00
Colen Garoutte-Carson 400ef22046 Update to latest XLoc package version for OneLocBuild (#8394) 2021-11-12 14:28:37 -08:00
Colen Garoutte-Carson c735a48f37 A couple loc string fixes (#8393) 2021-11-12 14:16:48 -08:00
Colen Garoutte-Carson 081bf843d5 Merge pull request #8388 from microsoft/coleng/fix_deactivate_race 2021-11-11 15:08:13 -08:00
Colen Garoutte-Carson 33e16e8ff8 Fix test failure 2021-11-11 14:47:10 -08:00
Colen Garoutte-Carson f6d1bd8dc5 Fix issue with deactivation when not real-activated 2021-11-11 14:13:04 -08:00
Colen Garoutte-Carson 80161f19a0 Merge pull request #8268 from microsoft/localization 2021-11-10 14:32:32 -08:00
Colen Garoutte-Carson 4c48a2b997 Add a missed file 2021-11-10 14:20:44 -08:00
Colen Garoutte-Carson b57e66d238 Fix loc issues 2021-11-10 14:15:00 -08:00
csigs 36e3707eee Localization - Translated Strings 2021-11-10 20:11:22 +00:00
Colen Garoutte-Carson b2f2a4c088 Merge pull request #8383 from microsoft/coleng/fix_onelocbuild
Add OneLocBuild to .gitignore
2021-11-10 12:04:20 -08:00
Colen Garoutte-Carson f379a7e4d2 Add OneLocBuild to .gitignore 2021-11-10 11:53:57 -08:00
Colen Garoutte-Carson 61de515ba9 Merge pull request #8374 from microsoft/coleng/add_config_warning 2021-11-05 15:03:17 -07:00
Colen Garoutte-Carson d66e3b1d1d Add a configuration warning string 2021-11-05 11:17:17 -07:00
Sean McManus 64aed44a59 update packages (#8357)
* Update packages.
2021-11-03 10:42:46 -07:00
Garrett Campbell 25b73da64a Add svdPath field to OptionsSchema (#8316) 2021-10-28 09:02:21 -07:00
Zuo Zongyuan 4016be17d0 Deprecate WMIC in favor of Get-CimInstance (#8329)
* use `Get-CimInstance` to retrieve processes

* Add unit test

* Fix bugs

* Parse JSON output
2021-10-27 10:59:52 -07:00
Colen Garoutte-Carson a18b91b864 Merge pull request #8303 from microsoft/main 2021-10-19 14:56:40 -07:00
Colen Garoutte-Carson 6b003436e3 Merge pull request #8301 from microsoft/coleng/changelog_171 2021-10-19 14:52:15 -07:00
Colen Garoutte-Carson 2b4a82d17e Remove a space 2021-10-19 14:51:52 -07:00
Colen Garoutte-Carson cd8aa4750c Address PR feedback 2021-10-19 14:30:21 -07:00
Colen Garoutte-Carson b69581ce7a Empty commit to trigger checks 2021-10-19 13:59:08 -07:00
Colen Garoutte-Carson 8b7ad9ecad Update changelog and version for 1.7.1 2021-10-19 13:46:06 -07:00
Colen Garoutte-Carson ee7b2f1efa Merge pull request #8298 from microsoft/coleng/fix_auto_config_provider 2021-10-19 13:15:44 -07:00
Colen Garoutte-Carson 48b120cf0b Fix issue with default configs 2021-10-18 13:02:50 -07:00
Colen Garoutte-Carson b0a82a8bdc Merge pull request #8281 from microsoft/coleng/fix_no_folder_multiroot_install_failure 2021-10-15 13:21:29 -07:00
Colen Garoutte-Carson a10a6d28ad Fix a couple more cases 2021-10-15 13:08:03 -07:00
Colen Garoutte-Carson 2cbba0be71 Fix another instance of the same issue 2021-10-15 11:56:00 -07:00
Colen Garoutte-Carson 4f03cfdcbe Fix an issue causing install failures 2021-10-14 18:15:25 -07:00
AlexanderandAlexander Sergeev 0b94fdefe9 Remove trailing whitespaces (#8254)
Co-authored-by: Alexander Sergeev <[email protected]>
2021-10-14 10:47:28 -07:00
Bob Brown e68b898a14 Fix code elements (#8271) 2021-10-13 16:48:28 -07:00
Colen Garoutte-Carson a06d8e601b Merge pull request #8267 from microsoft/main 2021-10-12 17:53:30 -07:00
Colen Garoutte-Carson b54dbce505 Merge pull request #8266 from microsoft/coleng/Update_links_hashes 2021-10-12 17:52:54 -07:00
Colen Garoutte-Carson 6216e3f87b Update links and hashes for 1.7.0 2021-10-12 17:52:08 -07:00
Colen Garoutte-Carson e792d23cbc Merge pull request #8265 from microsoft/main
Merge main into release again for 1.7.0
2021-10-12 17:35:17 -07:00
Colen Garoutte-Carson b388523e2e Merge pull request #8155 from microsoft/localization 2021-10-12 17:34:31 -07:00
Colen Garoutte-Carson 242d69ad55 Merge branch 'localization' of https://github.com/microsoft/vscode-cpptools into localization 2021-10-12 17:33:52 -07:00
Colen Garoutte-Carson 23b370ba7b More string fixes 2021-10-12 17:33:45 -07:00
Bob Brown (DEVDIV) 1fb046518a Merge branch 'localization' of https://github.com/microsoft/vscode-cpptools into localization 2021-10-12 17:07:32 -07:00
Bob Brown (DEVDIV) 6a8b0ede01 last changes 2021-10-12 17:07:21 -07:00
Bob Brown (DEVDIV) 2fa28a4645 Last languages 2021-10-12 17:07:05 -07:00
Colen Garoutte-Carson 23c07aa017 Fix more strings 2021-10-12 17:06:28 -07:00
Colen Garoutte-Carson adca369b9f Merge branch 'main' into localization 2021-10-12 16:58:44 -07:00
Bob Brown (DEVDIV) f086e5cd5b Merge branch 'localization' of https://github.com/microsoft/vscode-cpptools into localization 2021-10-12 16:57:38 -07:00
Colen Garoutte-Carson 9b398b11d7 Merge pull request #8243 from microsoft/jureid-patch-2 2021-10-12 16:57:27 -07:00
Bob Brown (DEVDIV) 740b98b660 Spanish and German 2021-10-12 16:57:09 -07:00
Colen Garoutte-Carson ef339a4322 Merge branch 'main' into jureid-patch-2 2021-10-12 16:56:18 -07:00
Colen Garoutte-Carson 75289ad75f Merge pull request #8264 from microsoft/coleng/fix_schema_loc 2021-10-12 16:53:18 -07:00
Colen Garoutte-Carson 75f6870919 Merge branch 'localization' of https://github.com/microsoft/vscode-cpptools into localization 2021-10-12 16:51:56 -07:00
Colen Garoutte-Carson 309a6d899e Some loc fixed related to env:variable 2021-10-12 16:50:54 -07:00
Bob Brown (DEVDIV) b785c76714 Italian, Korean, Japanese 2021-10-12 16:46:59 -07:00
Colen Garoutte-Carson 89d3daeb53 Merge branch 'main' into localization 2021-10-12 16:44:44 -07:00
Colen Garoutte-Carson f74049089b Merge branch 'localization' of https://github.com/microsoft/vscode-cpptools into localization 2021-10-12 16:43:12 -07:00
Colen Garoutte-Carson b8b26bb7bf Work in progress 2021-10-12 16:38:23 -07:00
Colen Garoutte-Carson 640df0fe06 Fix issue with markdownDescription not getting localized properly in schema files 2021-10-12 16:31:03 -07:00
Bob Brown (DEVDIV) 2015521a64 Fix some incorrect markdown changes 2021-10-12 16:29:58 -07:00
Colen Garoutte-Carson e24c264f89 Merge pull request #8263 from microsoft/main 2021-10-12 14:42:11 -07:00
Colen Garoutte-Carson c0b216c888 Merge branch 'release' into main 2021-10-12 14:37:28 -07:00
Colen Garoutte-Carson 212ba53ec6 Merge pull request #8262 from microsoft/coleng/update_version_170 2021-10-12 14:36:06 -07:00
Colen Garoutte-Carson ee0052f953 Update version in package.json to 1.7.0 2021-10-12 14:28:34 -07:00
Colen Garoutte-Carson 937026ccad Merge pull request #8261 from microsoft/main 2021-10-12 14:21:01 -07:00
Colen Garoutte-Carson f1f339ee10 Merge pull request #8260 from microsoft/coleng/update_changelog_1.7.0 2021-10-12 14:15:20 -07:00
Colen Garoutte-Carson d5e77d82aa Fix spacing 2021-10-12 14:07:46 -07:00
Colen Garoutte-Carson 9f7d45363f Update changelog for 1.7.0 release 2021-10-12 14:06:25 -07:00
csigs bc0557718c Localization - Translated Strings 2021-10-12 07:04:28 +00:00
Julia Reid 91aa923203 Update telemetry.ts
checking for undefined suffix, not just empty string
2021-10-08 14:48:48 -07:00
Julia Reid 791832845d Update telemetry.ts
it looks like in [package.json line 5](https://github.com/microsoft/vscode-cpptools/blob/a62acdb5a52438540c266b409a0ee7f8e64f7a9b/Extension/package.json#L5), we add a suffix, "main", to the version. When we assign customers to target populations for experiments, we were trying to assign customers without any suffix to Public, which resulted in no one being included. Instead, I think we should be checking if the suffix is "main" and assign those customers to Public.
2021-10-08 13:18:08 -07:00
Thomas Willson a62acdb5a5 Allow merge of C_Cpp_Properties & configuration provider. (#8174)
* Allow merge of C_Cpp_Properties & configuration provider.
2021-10-04 17:28:41 -07:00
jogo- cd949b9ced Various fixes to CHANGELOG.md (#8211) 2021-10-01 22:08:06 -07:00
Colen Garoutte-Carson 7a9d0aae08 Merge pull request #8215 from microsoft/coleng/fix_inactive_regions
Fix issue with inactive regions disappearing when switching files
2021-10-01 15:31:06 -07:00
Colen Garoutte-Carson a5f4a5a734 Fix issue with inactive regions disappearing when switching files 2021-10-01 14:54:39 -07:00
Colen Garoutte-Carson 999f28bf83 Merge pull request #8205 from microsoft/main 2021-09-29 16:28:41 -07:00
Colen Garoutte-Carson dfdb047546 Merge pull request #8204 from microsoft/coleng/update_changelog_for_1.7.0-insiders 2021-09-29 16:22:21 -07:00
Colen Garoutte-Carson e58ea779db Update changelog 2021-09-29 16:06:40 -07:00
Colen Garoutte-Carson f7d0b1bf22 Merge pull request #8187 from microsoft/main 2021-09-24 14:13:41 -07:00
Colen Garoutte-Carson 979d86f8b9 Merge pull request #8185 from microsoft/coleng/update_changelog_for_1.7.0-insiders 2021-09-24 13:11:48 -07:00
Colen Garoutte-Carson f052b4e2d5 Update changelog 2021-09-24 10:47:20 -07:00
Colen Garoutte-Carson 2ec6d5a1f6 Update changelog for 1.7.0-insiders 2021-09-23 19:14:44 -07:00
Elaheh Rashedi 32ac8ae30d Restart Language Server for active file (#8128) 2021-09-23 12:37:57 -07:00
Colen Garoutte-Carson 2f78e86da4 Merge pull request #7933 from microsoft/bobbrow/telemetryUpdate 2021-09-23 12:26:04 -07:00
Colen Garoutte-Carson f814414502 Merge branch 'main' into bobbrow/telemetryUpdate 2021-09-23 12:19:52 -07:00
Colen Garoutte-Carson 0e3dd7a275 Merge pull request #8165 from microsoft/coleng/add_gcc_colors 2021-09-16 17:02:56 -07:00
Colen Garoutte-Carson ecaf985ae6 Add to gcc compiler args for generated build tasks, to display colors in gcc output 2021-09-16 16:37:50 -07:00
Colen Garoutte-Carson 4f137fe9de Merge pull request #8159 from microsoft/coleng/add_error_string 2021-09-15 15:56:58 -07:00
Colen Garoutte-Carson 1b323b6b58 Merge branch 'main' into coleng/add_error_string 2021-09-15 15:56:22 -07:00
Andrew Wang 8efa45e649 Update Debugger Packages (#8138) 2021-09-15 15:22:26 -07:00
Colen Garoutte-Carson 5ae826c117 Add error string 2021-09-15 14:55:49 -07:00
Sean McManus 26dff27224 Localization (#8154)
* Various loc fixes.
2021-09-14 19:15:34 -07:00
Sean McManus 05b0934e79 Update loc hints. Modify one string. (#8153)
* Update loc hints. Other string fixes.
2021-09-14 18:43:51 -07:00
Colen Garoutte-Carson 89251c7796 Merge pull request #8013 from microsoft/localization 2021-09-14 18:04:29 -07:00
Colen Garoutte-Carson 9e0c520ded More fixes 2021-09-14 17:18:07 -07:00
Colen Garoutte-Carson 391acc849a Merge branch 'localization' of https://github.com/microsoft/vscode-cpptools into localization 2021-09-14 17:17:58 -07:00
Colen Garoutte-Carson 3c260b59e4 Most misc fixes 2021-09-14 17:16:21 -07:00
Sean McManus e0898fa949 Merge branch 'localization' of https://github.com/Microsoft/vscode-cpptools into localization 2021-09-14 17:09:02 -07:00
Sean McManus bc84cdb538 One fix. 2021-09-14 17:08:33 -07:00
Colen Garoutte-Carson a0912abebd Fixes 2021-09-14 17:06:22 -07:00
Colen Garoutte-Carson 1826ebc362 Loc fixes 2021-09-14 16:55:11 -07:00
Sean McManus 61d288db52 Merge branch 'main' into localization 2021-09-14 16:19:15 -07:00
Sean McManus dd3479425b Upgrade set-value dependency. (#8147) 2021-09-14 13:14:03 -07:00
csigs 5b361fa8e5 Localization - Translated Strings 2021-09-14 07:05:11 +00:00
Sean McManus 8bac39c35f Fix TypeScript 4.4.3 errors. (#8146)
* Fix TypeScript 4.4.3 errors.
Co-authored-by: Bob Brown (DEVDIV) <[email protected]>
2021-09-13 15:46:37 -07:00
Bob Brown d31eff278b Merge branch 'main' into bobbrow/telemetryUpdate 2021-09-13 12:17:37 -07:00
Sean McManus f28b78931d Fix string. (#8145) 2021-09-13 11:03:41 -07:00
Sean McManus 88040d5d35 String/settings fixes (#8129)
* Fix strings, settings, etc.
* Add hints. Fix settings bug.
* Fix typos.
* Fix failure with GenerateOptionsSchema.
2021-09-10 15:55:51 -07:00
Michelle Matias 4e216cf144 Fix hover test for normal comment (#8136) 2021-09-10 10:48:48 -07:00
Elaheh Rashedi 7516eefb4f parse arguments in tasks.json (#7895) 2021-09-09 13:37:05 -07:00
Sean McManus 1db3e20d72 Update dependency (#8119)
* Update axios.
2021-09-08 18:38:04 -07:00
Sean McManus 3f81cc0838 Move the scope of document symbols to the details. (#8111) 2021-09-08 15:37:38 -07:00
Elaheh Rashedi f26f88b8e1 detect c/c++ source files when running a build a task (#8095) 2021-09-07 09:57:11 -07:00
Elaheh Rashedi 6f4ce8fe3d skip relative paths in forceInclude (#8081) 2021-09-07 09:50:09 -07:00
Sean McManus db9ef1fa46 Update plist. (#8089) 2021-09-02 13:24:08 -07:00
Alan Leung 26022ba2b0 Add postRemoteConnectCommands to schema (#8088) 2021-09-01 17:45:57 -07:00
Elaheh Rashedi e86fd97d71 add ${execpath} and ${pathSeparator} (#8077) 2021-08-31 12:22:01 -07:00
Bob Brown 1aa22b8124 Merge branch 'main' into bobbrow/telemetryUpdate 2021-08-25 08:52:24 -07:00
Michelle Matias 19b55199d4 Remove executable check for OpenDebugAD7 (#8046) (#8047) 2021-08-24 14:47:44 -07:00
Michelle Matias 5dcb3081e5 Remove executable check for OpenDebugAD7 (#8046) 2021-08-24 14:36:29 -07:00
Colen Garoutte-Carson 60aa015a2b Merge pull request #8038 from microsoft/main 2021-08-23 17:15:41 -07:00
Colen Garoutte-Carson 353d03a152 Merge branch 'release' into main 2021-08-23 17:14:20 -07:00
Colen Garoutte-Carson 6ce2b28b80 Update links and hashes for 1.6.0 (#8037) 2021-08-23 16:43:57 -07:00
Colen Garoutte-Carson ae7fa0d500 Update changelog and version for 1.6.0 (#8035) 2021-08-23 15:10:23 -07:00
Sean McManus f5d1567440 Fix old cached updateChannel default being used after package.json modification. (#8032)
* Fix old cached extension being used after package.json modification.
* Limit it to when updateChannel is changed.
2021-08-23 13:22:04 -07:00
Andrew Wang ccfc40a47c Update Debugger Packages (#8021) 2021-08-23 12:59:37 -07:00
Sean McManus 5436cbbb6d Some translation fixes. (#8019) 2021-08-23 12:35:30 -07:00
Colen Garoutte-Carson 6610004132 Add support for localization hints in schema files (#8016) 2021-08-23 12:25:03 -07:00
Sean McManus 5623d1ecf5 Fix "env" translations. (#8018) 2021-08-20 11:15:57 -07:00
Colen Garoutte-Carson 49d4b82330 A couple more translation fixes (#8015) 2021-08-19 18:38:51 -07:00
Sean McManus 3e1266e3de Some translation fixes. (#8014) 2021-08-19 17:49:22 -07:00
Colen Garoutte-Carson 35964e0756 Merges rewrite of package.json so it's only done once (#8012) 2021-08-19 15:05:26 -07:00
csigsandColen Garoutte-Carson d6b9003f6f [Auto] Localization - Translated Strings (#8010)
* Localization - Translated Strings

* Fix loc issues

* More corrections

Co-authored-by: Colen Garoutte-Carson <[email protected]>
2021-08-19 12:25:50 -07:00
Colen Garoutte-Carson eede66558e Merge pull request #8007 from microsoft/main 2021-08-18 16:00:20 -07:00
Colen Garoutte-Carson f7ab54c951 Update changelog for 1.6.0-insiders3 (#8006) 2021-08-18 15:56:47 -07:00
Julia Reid 62acfc8d90 Update install-compiler-windows.md (#7998) 2021-08-18 15:56:12 -07:00
Colen Garoutte-Carson f02661a472 Fix rewrite of updateChannel for remote VS Code insiders (#8003) 2021-08-18 14:14:13 -07:00
Colen Garoutte-Carson 1ed96026ae Revert scopes for updateChannel and intelliSenseUpdateDelay back to "application" (#8004) 2021-08-18 13:45:03 -07:00
csigsandSean McManus 4cb51b72e1 [Auto] Localization - Translated Strings (#7935)
* Localization - Translated Strings

* Fix regressions.

Co-authored-by: Sean McManus <[email protected]>
2021-08-18 11:19:21 -07:00
Charles Milette 928a5d4b03 Update Theme extension image previews to work in the store (#7977) 2021-08-17 14:54:10 -07:00
Colen Garoutte-Carson a9890f62ae Merge pull request #7988 from microsoft/main 2021-08-16 18:26:31 -07:00
Colen Garoutte-Carson 93b14d5744 Merge pull request #7989 from microsoft/coleng/fix_changelong_160i2 2021-08-16 18:20:10 -07:00
Colen Garoutte-Carson 4ea5a278c0 Fix a couple typos in changelog 2021-08-16 18:13:47 -07:00
Colen Garoutte-Carson 86f1a0977d Merge pull request #7987 from microsoft/coleng/update_changelog_1.6.0-insiders2 2021-08-16 17:05:04 -07:00
Colen Garoutte-Carson d726367408 Fix typo 2021-08-16 16:54:31 -07:00
Colen Garoutte-Carson a213d227a5 Update text 2021-08-16 16:41:46 -07:00
Colen Garoutte-Carson e921604cea Add debugger issue 2021-08-16 16:38:43 -07:00
Colen Garoutte-Carson 7034b4b5a4 Remove blank line 2021-08-16 15:20:57 -07:00
Colen Garoutte-Carson 1a2c37a2db Update changelog for 1.6.0-insiders2 2021-08-16 15:20:05 -07:00
Andrew Wang 1d10e0446e Update Links (#7984) 2021-08-16 13:28:28 -07:00
Bob Brown b7a8a07a39 Merge branch 'main' into bobbrow/telemetryUpdate 2021-08-16 12:06:05 -07:00
Sean McManus 45e5d6caa7 Fix some setting scopes. (#7973) 2021-08-13 18:17:22 -07:00
Colen Garoutte-Carson c98303bd2c Merge pull request #7967 from microsoft/main 2021-08-12 13:20:55 -07:00
Colen Garoutte-Carson c7945e8509 Merge pull request #7966 from microsoft/coleng/update_changelog_08122021 2021-08-12 13:14:35 -07:00
Colen Garoutte-Carson df6bd14d70 Update changelog 2021-08-12 13:02:45 -07:00
Bob Brown c788dd02c0 Merge branch 'main' into bobbrow/telemetryUpdate 2021-08-12 08:32:32 -07:00
Colen Garoutte-Carson c658673abb Merge pull request #7963 from microsoft/main
Merge main to insiders branch
2021-08-11 18:52:59 -07:00
Andrew Wang 3917fc4f08 Update Debugger Packages (#7964) 2021-08-11 18:39:05 -07:00
Colen Garoutte-Carson c916e8d930 Fix code folding bug (#7962) 2021-08-11 14:54:43 -07:00
Colen Garoutte-Carson 7230cf3954 Fix placement in changelog (#7956) 2021-08-11 11:14:01 -07:00
Colen Garoutte-Carson 4c3b402925 Update changelog for 1.6.0-insiders (#7952) 2021-08-10 18:38:15 -07:00
Sean McManus 36dd2d2458 Fix dependency issue. 2021-08-10 18:22:51 -07:00
Colen Garoutte-Carson a4c1e6a5be Add conditional use of vcFormat when formatting is set to Default (#7941) 2021-08-10 18:13:35 -07:00
Colen Garoutte-Carson ed64b7cbf2 Add support for most standard .editorconfig settings (#7927) 2021-08-06 19:57:27 -07:00
Bob Brown (DEVDIV) a0b665b9c7 Telemetry tweaks 2021-08-06 15:47:01 -07:00
Sean McManus 4d76f74f59 Fix architecture not supported check. (#7924) 2021-08-06 10:55:56 -07:00
Sean McManus 377c126a4a Merge pull request #7915 from microsoft/localization
[Auto] Localization - Translated Strings
2021-08-06 10:39:25 -07:00
Sean McManus 3bcc88e4a5 Fix another case. 2021-08-06 10:33:49 -07:00
Sean McManus 9c62fce293 Fix space in settings. 2021-08-06 10:24:36 -07:00
csigs 9f25573e73 Localization - Translated Strings 2021-08-06 07:04:06 +00:00
csigs d562206309 Localization - Translated Strings (#7896) 2021-08-03 18:02:33 -07:00
Colen Garoutte-Carson 590dd677e3 Use new modal w/ detail dialog for compiler list in Walkthrough (#7887) 2021-07-29 15:06:59 -07:00
Colen Garoutte-Carson bdbbfd3786 Enable localization of walkthrough MD files (provided they are actually HTML) (#7894) 2021-07-29 15:02:04 -07:00
Sean McManus d3a38d9f28 Fix It translation crash. (#7893) 2021-07-28 14:23:34 -07:00
csigs c5a7a01889 Localization - Translated Strings (#7885) 2021-07-28 00:16:42 -07:00
Sean McManus 604a2b7d87 Update IntelliSense string translations. (#7884)
* Update IntelliSense string translations.
2021-07-27 23:19:11 -07:00
Elaheh Rashedi d1372f928b change C_Cpp.default.compilerPath scope (#7873) 2021-07-27 14:09:36 -07:00
Sean McManus c7e99415e0 Reduce retry delay. (#7883) 2021-07-27 13:49:15 -07:00
Sean McManus bc4457c957 Retry more. (#7880) 2021-07-26 19:34:26 -07:00
Sean McManus ecdb08ec8c Fix clang-format used for multi-root. (#7871) 2021-07-26 17:15:52 -07:00
Sean McManus 3afa6206ff Remove .darwin from clang-format. (#7866) 2021-07-26 16:56:36 -07:00
csigs f2d4dec5a6 Localization - Translated Strings (#7852) 2021-07-26 11:10:48 -07:00
Andrew Wang 62fff2b37b Update Debugger Packages (#7858)
Debugger now ships using .NET 5 Runtime to run OpenDebugAD7.

Supports:
- win7-x86
- win-x64
- win10-arm64
- linux-x64
- linux-musl-x64
- linux-arm
- linux-arm64
- osx-x64

Cleaned up unused setup files.
Updated packageManager to download alpine dependencies.
Removed 'removeUnnecessaryFile' step since that removed windows
configurations for OpenDebugAD7.
2021-07-22 11:47:14 -07:00
Sean McManus fe2064d5b9 String fixes. (#7855)
* String fixes.
2021-07-21 16:28:09 -07:00
csigs c2419ad58d [Auto] Localization - Translated Strings (#7819)
* Localization - Translated Strings
2021-07-20 16:33:41 -07:00
Sean McManus 6b99f44475 Enable code analysis status with pause/cancel, add open file parsing status (#7831)
* Enable clang-tidy status to appear (with pause/resume commands), part of https://github.com/microsoft/vscode-cpptools/issues/2908.
* Enable file parsing status to appear, addressing some issues of https://github.com/microsoft/vscode-cpptools/issues/4117
* Enable status icons to be enabled/disabled: https://github.com/microsoft/vscode-cpptools/issues/7700 .
2021-07-20 16:21:02 -07:00
ChenLei eee5aa3060 chore: replace deprecated vscode-test with @vscode/test-electron (#7844) 2021-07-20 16:07:50 -07:00
Sean McManus 948bc0e138 Fix search not finding results in package.nls.json. (#7850) 2021-07-20 15:55:05 -07:00
Colen Garoutte-Carson deb7a7da46 Fix issue with compilerPathIsExplicit not being set properly (#7839) 2021-07-19 10:07:31 -07:00
Colen Garoutte-Carson 90fb9919f4 Provide separate semantic token fallback scopes for each supported language (#7829) 2021-07-14 17:53:28 -07:00
Colen Garoutte-Carson 11ed061136 Add logging of loggingLevel (#7807) 2021-07-14 11:58:27 -07:00
Sean McManus c98d437c0d Fix code folding bug. (#7818)
* Fix code folding bug.
2021-07-13 12:00:55 -07:00
kiron1andSean McManus 9c53c7090e Rename jason.files.missing to json.files.missing (#7820)
Co-authored-by: Sean McManus <[email protected]>
2021-07-13 10:09:30 -07:00
csigs a86d713e8a [Auto] Localization - Translated Strings (#7760)
* Localization - Translated Strings
Co-authored-by: Sean McManus <[email protected]>
2021-07-12 17:50:27 -07:00
Sean McManus 92384bf0c6 Merge pull request #7812 from microsoft/main
Merge for 1.5.1
2021-07-09 01:55:08 -07:00
Andrew Wang bbe5c42e64 Update Windows Debugger Packages (#7811)
* Fix vsdbg crash on windows x64

Addresses #7808

* Update package version and add CHANGELOG
2021-07-09 01:52:36 -07:00
Sean McManus 9791061ca2 Add localization hint. (#7799) 2021-07-08 21:46:24 -07:00
Colen Garoutte-Carson f87d7a735e Fix issue causing a squiggle in package.json (#7806) 2021-07-08 18:11:11 -07:00
Sean McManus 14055547fa Merge pull request #7805 from microsoft/main
Update package hashes for new packages (#7804)
2021-07-08 14:43:46 -07:00
Andrew Wang 9843f739db Update package hashes for new packages (#7804) 2021-07-08 14:39:36 -07:00
Sean McManus 3a3a3453e7 Merge pull request #7801 from microsoft/main
Merge for 1.5.0
2021-07-07 19:33:29 -07:00
Sean McManus 0228b9725e Merge branch 'release' into main 2021-07-07 19:22:36 -07:00
Sean McManus 385a267208 Update changelog for 1.5.0. (#7797)
* Update changelog for 1.5.0.
* Update fwlinks.
2021-07-07 19:20:03 -07:00
Austen OttandAndrew Wang bbf217f090 Add Windows ARM64 Debugger Packages (#7798)
* Add arm64 vsdbg package and update to newer versions.

* Remove arm64 block.

Co-authored-by: Andrew Wang <[email protected]>
2021-07-07 16:44:53 -07:00
Sean McManus f474c284f4 Fix code foldering with nested ifs. (#7793) 2021-07-07 15:30:52 -07:00
Sean McManus 7ad30dae85 Merge pull request #7766 from microsoft/main
Merge for 1.5.0-insiders3 (2nd time)
2021-07-01 14:25:47 -07:00
Elaheh Rashedi 3967429440 fix debugger for clang compilers (#7765) 2021-07-01 13:31:51 -07:00
Sean McManus 29b0b0611a Fix debug configuration selection cancellation. (#7763) 2021-07-01 12:05:23 -07:00
Sean McManus 2ab63a451a Merge pull request #7758 from microsoft/main
Merge for 1.5.0-insiders3
2021-06-30 17:46:54 -07:00
Sean McManus 2a9afe8046 Update changelog. (#7757) 2021-06-30 17:39:50 -07:00
csigsandSean McManus 51b983509d [Auto] Localization - Translated Strings (#7754)
* Localization - Translated Strings
* Add space before ":".

Co-authored-by: Sean McManus <[email protected]>
2021-06-30 10:53:47 -07:00
Elaheh Rashedi 36939092fb don't squiggle for "cl.exe" or "cl" path (#7752) 2021-06-28 17:57:59 -07:00
csigs 598ac0aff3 [Auto] Localization - Translated Strings (#7724)
* Localization - Translated Strings
Co-authored-by: Sean McManus <[email protected]>
2021-06-28 12:11:14 -07:00
Colen Garoutte-Carson ae14e4bb3d Use setTextDocumentLanguage to temporarily set language ID for CUDA sources, and headers (#7745) 2021-06-25 14:20:14 -07:00
Sean McManus 857bce91ee Merge pull request #7734 from microsoft/main
Merge for 1.5.0-insiders2
2021-06-21 15:49:31 -07:00
Sean McManus ef52c25aa6 1.5.0-insiders2 changelog (#7733)
* Update changelog.
2021-06-21 15:42:14 -07:00
jogo- 18d59c29ae CUDA/CPP extension (#7726)
* Missing dot: "cu" -> ".cu"
* Useless uppercase ".C" before needed lowercase ".c"
* Add same CPP extensions as here:
https://github.com/microsoft/vscode-cpptools/blob/f82b1beaa0899b67685441325592690a9b664be9/Extension/src/LanguageServer/cppBuildTaskProvider.ts#L83
2021-06-21 14:48:14 -07:00
jogo- f26ee1fb67 Fix typo in "unable.to.provide.configuraiton" (#7725)
* Fix typo in "unable.to.provide.configuraiton"

* Fix typo in "configuraiton" (chs)

* Fix typo in "configuraiton" (cht)

* Fix typo in "configuraiton" (csy)

* Fix typo in "configuraiton" (deu)

* Fix typo in "configuraiton" (esn)

* Fix typo in "configuraiton" (fra)

* Fix typo in "configuraiton" (ita)

* Fix typo in "configuraiton" (jpn)

* Fix typo in "configuraiton" (kor)

* Fix typo in "configuraiton" (plk)

* Fix typo in "configuraiton" (ptb)

* Fix typo in "configuraiton" (rus)

* Fix typo in "configuraiton" (trk)
2021-06-21 14:32:14 -07:00
Sean McManus f82b1beaa0 Fix c_cpp_properties.json squiggle on recursively found forcedInclde. (#7722) 2021-06-18 14:55:56 -07:00
Sean McManus e0c90207de Fix overlapping folding ranges. (#7716) 2021-06-18 14:05:59 -07:00
Sean McManus e2d49e7c7a Inline macro code action (#7715)
* TypeScript changes for "Inline macro".
2021-06-18 13:56:36 -07:00
csigs 87b4652f92 [Auto] Localization - Translated Strings (#7661) 2021-06-18 13:19:22 -07:00
Sean McManus 812ab5e250 Fix code action warning. (#7714) 2021-06-17 14:04:59 -07:00
Colen Garoutte-Carson 767c538bbf Integrate experimentation platform. Remove ABTesting. (#7659) 2021-06-16 17:58:34 -07:00
Sean McManus 49b8160a58 Merge pull request #7695 from microsoft/main
Fix settings UI. (#7694)
2021-06-14 15:21:58 -07:00
Sean McManus 6dba4f60ff Fix settings UI. (#7694) 2021-06-14 15:21:22 -07:00
Sean McManus 4d80ef39cb Merge pull request #7691 from microsoft/main
Minor changes. (#7690)
2021-06-14 11:31:53 -07:00
Sean McManus 8e0074e580 Minor changes. (#7690) 2021-06-14 11:30:51 -07:00
Sean McManus 8ea76a7d8b Merge pull request #7683 from microsoft/1_5_0_insiders
1 5 0 insiders
2021-06-11 19:36:17 -07:00
Sean McManus 046821112b Merge branch 'main' into 1_5_0_insiders 2021-06-11 17:47:43 -07:00
Sean McManus 399f19752d 1.5.0-insiders changelog (#7681)
* Update changelog.
2021-06-11 17:46:10 -07:00
Andrew Wang 883972a466 Add SymbolOptions for CppVsDbg (#7680)
* Add SymbolOptions for CppVsDbg

* Address PR issues
2021-06-11 12:00:49 -07:00
Colen Garoutte-Carson 5a48ce22c7 Switch to returning undefined when cancelling a folder ranges request (#7672) 2021-06-09 16:30:52 -07:00
Colen Garoutte-Carson 2278b396a8 Fix an issue causing editorConfig not to be used (#7666) 2021-06-08 16:22:36 -07:00
Sean McManus 54bf446cbc Merge pull request #7658 from microsoft/1_4_1
1.4.1
2021-06-07 18:02:47 -07:00
Sean McManus ecfe50be26 Update changelog for 1.4.1. (#7657)
* Update changelog for 1.4.1.
2021-06-07 17:43:28 -07:00
dependabot[bot] 7ecc049fd4 Bump glob-parent from 5.1.1 to 5.1.2 in /.github/actions (#7660) 2021-06-07 17:42:11 -07:00
Sean McManus 7e4fa575f8 Update changelog for 1.4.1. (#7657)
* Update changelog for 1.4.1.
2021-06-07 17:32:43 -07:00
csigs 1994fa1a7e [Auto] Localization - Translated Strings (#7651)
* Localization - Translated Strings
* Fixes
Co-authored-by: Sean McManus <[email protected]>
2021-06-07 16:27:22 -07:00
Sean McManus 623029cc62 Better fix for settings UI not getting updated. (#7656)
* Better fix for settings UI not getting updated.
2021-06-07 16:23:16 -07:00
Sean McManus 4076edd843 Workaround for webViewPanel.postMessage getting dropped. (#7647)
* Workaround for webViewPanel.postMessage getting dropped.
2021-06-07 16:23:10 -07:00
Sean McManus a6c015adc3 Better fix for settings UI not getting updated. (#7656)
* Better fix for settings UI not getting updated.
2021-06-07 16:02:55 -07:00
Sean McManus 20954f7f75 Resolve ${workspaceFolder} in compilerPath for config squiggles. (#7650) 2021-06-04 16:38:21 -07:00
Sean McManus 315f3086f3 Workaround for webViewPanel.postMessage getting dropped. (#7647)
* Workaround for webViewPanel.postMessage getting dropped.
2021-06-04 14:49:30 -07:00
Sean McManus 783e4bc227 Update IntelliSense strings. (#7622)
* Update IntelliSense strings.
* Fix pt-br translation issues.
2021-06-01 15:04:37 -07:00
Tyler Davis 26fdb44186 Change instances of OSX to macOS (#7636)
* Change instances of OSX to macOS
Add x86_64 descriptor
Whitespace stripping

* Style consistency
Add x86_64 descriptor to ClangFormat
2021-06-01 14:55:06 -07:00
jogo- 39f50a85c4 Fix typos in messages.json (fr) (#7625) 2021-06-01 11:10:41 -07:00
Colen Garoutte-Carson f973792142 Switch to new vscode-nls-dev, with support for hints in package.nls.json (#7620) 2021-05-28 13:22:52 -07:00
Sean McManus 1ad52f98b1 Merge pull request #7612 from microsoft/main
Fix Walkthrough property (#7611)
2021-05-27 15:08:21 -07:00
Colen Garoutte-Carson 934a8563df Fix Walkthrough property (#7611) 2021-05-27 15:06:09 -07:00
Sean McManus 034390f36c Merge pull request #7608 from microsoft/seanmcm/1_4_0_release
1.4.0-release
2021-05-27 13:09:10 -07:00
Sean McManus 6d85f9cdf9 Merge branch 'main' into seanmcm/1_4_0_release 2021-05-27 13:03:49 -07:00
Sean McManus 58d3a5285a Update fwlinks. (#7607) 2021-05-27 13:03:00 -07:00
Colen Garoutte-Carson 989ca62269 Switch to new properties for walkthrough in package.json (#7606) 2021-05-27 12:33:55 -07:00
Colen Garoutte-Carson 13968a9723 Run loc pipeline always (#7605) 2021-05-27 12:23:16 -07:00
Sean McManus 1d0a886ec6 Merge branch 'main' into seanmcm/1_4_0_release 2021-05-27 11:57:43 -07:00
Sean McManus 5798b073a1 Update changelog for 1.4.0. (#7601) 2021-05-27 11:56:14 -07:00
Julia Reid 976c901875 added two settings to the walkthrough in package.json to hide walkthrough unless enabled by an experiment (#7598) 2021-05-26 23:46:11 -07:00
csigs b8fe2ac52e Localization - Translated Strings (#7575) 2021-05-26 10:19:46 -07:00
Sean McManus 18ac98a353 Merge pull request #7591 from microsoft/seanmcm/1_4_0_insiders3_2
1.4.0-insiders3 2nd time
2021-05-25 15:27:47 -07:00
Sean McManus fad828ed78 Merge branch 'main' into seanmcm/1_4_0_insiders3_2 2021-05-25 14:37:44 -07:00
Sean McManus 4b1be560bb Update browserslist dependency. (#7589) 2021-05-25 14:35:27 -07:00
Sean McManus ee36eab4b6 Delay Insiders prompt until more activations occur. (#7587)
* Delay Insiders prompt until 10 activations occur.
2021-05-25 13:48:32 -07:00
Sean McManus c2a1a88257 Fix the walkthrough for remote targets. (#7582)
* Fix the walkthrough for remote targets.
2021-05-25 13:41:03 -07:00
Sean McManus 3150de06ca Fix package.nls.json issues. (#7581)
* Fix package.nls.json issues.
* Update changelog.
2021-05-25 13:31:08 -07:00
Sean McManus 61ef05afc8 Fix typos. (#7573)
* Fix typos.
2021-05-21 13:45:37 -07:00
csigs 357cc3fdc1 Localization - Translated Strings (#7567) 2021-05-21 11:32:08 -07:00
jogo- fa0fe29791 Fix typo in package.nls.json (#7568) 2021-05-21 10:22:36 -07:00
Sean McManus f675d7ece3 Merge pull request #7566 from microsoft/seanmcm/1_4_0_insiders3
1.4.0-insiders3
2021-05-20 18:44:01 -07:00
Sean McManus 213799975c Merge branch 'main' into seanmcm/1_4_0_insiders3 2021-05-20 18:39:44 -07:00
Sean McManus a1044f2f30 Update changelog for 1.4.0-insiders3. (#7565)
* Update changelog for 1.4.0-insiders3.
2021-05-20 18:38:28 -07:00
Julia Reid df670f8e13 Jureid/walkthrough clean (#7554)
* removed walkthrough task for Build your C++ file and simplified instructions for Run and debug your C++ file
* Addressing PR feedback - removed unused files and added step for selecting compiler in markdown file for Run and debug your C++ file
2021-05-20 18:25:04 -07:00
Sean McManus a64b60670f Update mac clang-format hashes. (#7564) 2021-05-20 18:13:35 -07:00
Sean McManus 473ce33fec Add missing localization. (#7563) 2021-05-20 18:05:23 -07:00
Colen Garoutte-Carson 63193e123b Use provider ID associated with cached browse config to auto-detect provider (#7562) 2021-05-20 17:02:24 -07:00
Sean McManus 1e47af5b6f Add symbol scopes. (#7556)
* Add symbol scopes.
2021-05-20 16:38:07 -07:00
Colen Garoutte-Carson 11f7300035 Cleanup IsExplicit flags. (#7555) 2021-05-20 12:47:36 -07:00
csigs c67590a505 [Auto] Localization - Translated Strings (#7544) 2021-05-18 12:52:15 -07:00
Colen Garoutte-Carson 9e592073dd Send package version to native process (#7539) 2021-05-17 17:10:46 -07:00
Sean McManus 3512a088d6 Merge pull request #7537 from microsoft/seanmmc/1_4_0_insiders2
1.4.0-insiders2
2021-05-17 14:09:30 -07:00
Sean McManus 8ec3dfa3fd Merge branch 'main' into seanmmc/1_4_0_insiders2 2021-05-17 12:58:47 -07:00
Sean McManus e5cdfac6b7 1.4.0-insiders2 changelog (#7536)
* Update changelog.
2021-05-17 12:50:52 -07:00
Colen Garoutte-Carson f7543e3aaa Add Getting Started Walkthrough (#7512) 2021-05-17 12:14:54 -07:00
Sean McManus 7a2de290cf Delay settings UI update so it's not blank. (#7524)
* Delay settings UI update so it's not blank.
2021-05-14 14:14:36 -07:00
csigs 8c49ac2a8d Localization - Translated Strings (#7521) 2021-05-14 11:13:27 -07:00
Sean McManus 557ced4b75 Add capabilities. (#7486) 2021-05-13 19:14:27 -07:00
Sean McManus 106bde2dc6 Merge pull request #7464 from microsoft/seanmcm/updateIntelliSenseStrings2
Update IntelliSense error strings.
2021-05-10 13:23:44 -07:00
Sean McManus a509b332b5 Merge branch 'main' into seanmcm/updateIntelliSenseStrings2 2021-05-10 13:13:06 -07:00
Sean McManus 905f8dc216 Merge pull request #7504 from microsoft/seanmcm/1_4_0_insidersMerge2
1.4.0-insiders merge2
2021-05-10 11:55:49 -07:00
Sean McManus 6464f55fcf Merge branch 'main' into seanmcm/1_4_0_insidersMerge2 2021-05-10 09:54:57 -07:00
Elaheh Rashedi 6ae687faa3 check if the directory exists (#7487) 2021-05-10 08:12:48 -07:00
Colen Garoutte-Carson 2e00bb9a31 Minor spelling fix (#7490) 2021-05-07 18:18:14 -07:00
csigs 10090a03a6 Localization - Translated Strings (#7485) 2021-05-07 12:39:15 -07:00
Colen Garoutte-Carson 1f278e75c3 Consolidate localization import and export into same YML. Use LCL hosted by the Loc team. (#7479) 2021-05-07 11:42:17 -07:00
Sean McManus dba4a28d88 Merge pull request #7480 from microsoft/seanmcm/1_4_0_insiders
1.4.0-insiders
2021-05-06 19:39:23 -07:00
Sean McManus bcc256ec16 Update version. (#7481) 2021-05-06 19:00:14 -07:00
Sean McManus 53a3864fdc Update version. 2021-05-06 18:46:06 -07:00
Sean McManus 0ea25159d4 Merge branch 'main' into seanmcm/1_4_0_insiders 2021-05-06 18:41:47 -07:00
Sean McManus 42fe8076e6 Update changelog for 1.4.0-insiders (#7476)
* Update changelog.
2021-05-06 18:35:25 -07:00
Colen Garoutte-Carson 5297166d4f Use CancellationError to avoid logging of cancels as errors (#7477) 2021-05-06 16:31:24 -07:00
dependabot[bot] b89e45a4b6 Bump lodash from 4.17.20 to 4.17.21 in /.github/actions (#7475)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-06 15:05:44 -07:00
Sean McManus 060c14117c Update hosted-git-info. (#7474) 2021-05-06 14:50:39 -07:00
csigs b00df8d64d Localization - Translated Strings (#7469) 2021-05-06 10:02:38 -07:00
Elaheh Rashedi 4e7b679889 refactoring async/await 2021-05-05 15:26:49 -07:00
Gregg Miskelly 30950f0aaa Update cppvsdbg debug adapter (#7467)
Changes:
* Adds support for loading Concord extensions to the cppvsdbg debug adapter (see [documentation](https://github.com/microsoft/ConcordExtensibilitySamples/wiki/Support-for-VS-Code-cppvsdbg-Scenarios) for more information)
* Adds support for exception conditions to cppvsdbg (see documentation file in this PR for more information)
2021-05-05 14:29:17 -07:00
Sean McManus 385c336ba7 Update ESLint. (#7466) 2021-05-05 12:04:06 -07:00
Sean McManus b8fae51686 Update IntelliSense error strings. 2021-05-04 17:59:45 -07:00
csigs c750359475 Localization - Translated Strings (#7460) 2021-05-03 16:18:39 -07:00
Elaheh Rashedi 618c9c7d0c refactoring async/await (#7277)
refactor with <async/await>
2021-05-03 15:33:01 -07:00
Colen Garoutte-Carson 8b36869283 Switch to new localization pipeline (#7441) 2021-05-03 13:41:03 -07:00
Sean McManus 64c9e5f67a Fix policheck issues. (#7458)
* Fix policheck issues.
2021-05-03 11:10:05 -07:00
Sean McManus 5dae210933 Fix squiggle on empty compilerPath. (#7457) 2021-05-03 10:53:32 -07:00
Alan LeungandAndrew Wang 85312ed31d Add embedded debugging support options (#7449)
* Add stopAtConnect and hardwareBreakpoints options

* Run yarn generateOptionsSchema

Co-authored-by: Andrew Wang <[email protected]>
2021-04-30 17:07:03 -07:00
Philip Craig 19db7fe4b5 Fix typo "apline" to "alpine" (#7438) 2021-04-30 16:53:51 -07:00
Sean McManus 38e90ce750 Update fwlinks for clang-format 12 (#7447)
* Update fwlinks for clang-format.
* Update hashes.
2021-04-30 16:35:47 -07:00
Sean McManus 76f22333e6 Update environement description. (#7417) 2021-04-23 14:48:30 -07:00
Sean McManus 740c141887 Update common.json. (#7416) 2021-04-23 14:22:42 -07:00
Colen Garoutte-Carson b00eaa2670 Some cleanup of use of zipfile (#7410) 2021-04-23 13:42:20 -07:00
Sean McManus 3a839384bb Merge pull request #7363 from HackintoshwithUbuntu/main
Changing default launch.json from "${workspaceFolder}" to "${fileDirname}"
2021-04-21 14:43:26 -07:00
Sean McManus 5f307788e2 Merge branch 'main' into main 2021-04-21 14:34:53 -07:00
Colen Garoutte-Carson ce9ab28489 Remove VSIX binary compat warning on some platform/arch combos (#7397) 2021-04-21 12:22:49 -07:00
Colen Garoutte-Carson 3ca675fd58 Add action workflows for 'enhancement' label (#7398) 2021-04-21 12:12:55 -07:00
Sean McManus 09519ae210 Merge branch 'main' into main 2021-04-21 10:11:09 -07:00
Elaheh Rashedi a370b3d064 separate handling compiler squiggles from other paths (#7343)
* separate compiler squiggles
2021-04-20 13:10:31 -07:00
Sean McManus 1246f5a62c Merge pull request #7392 from microsoft/main
Merge for 1.3.1
2021-04-19 15:07:20 -07:00
Sean McManus 164a2962b6 Update changelog for 1.3.1. (#7391)
* Update changelog for 1.3.1.
* Update version.
2021-04-19 14:53:42 -07:00
Sean McManus 5f14aab942 Merge branch 'main' into main 2021-04-16 15:56:57 -07:00
Syed Ahmad 1502b87e47 update ${workspaceFolder} to ${fileDirname} #7362 2021-04-16 10:12:48 +10:00
Sean McManus 88768b9c28 Attempt to fix random yarn timeout on Mac. (#7371)
* Attempt to fix random yarn timeout on Mac.
2021-04-15 13:04:42 -07:00
Sean McManus 94ab7f9087 Fix 32-bit Windows. (#7373) 2021-04-15 12:45:22 -07:00
csigsandDevDiv Build Lab - Dev14 e5abb36d32 Localization - Translated Strings (#7366)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-04-15 09:58:45 -07:00
Syed Ahmad 91393ad80e update ${workspaceFolder} to ${fileDirname} #7362 2021-04-15 16:29:10 +10:00
Syed Ahmad ad6fd53398 update ${workspaceFolder} to ${fileDirname} #7362 2021-04-15 16:27:47 +10:00
Yonggang Luo d85e30e746 Logging invalid provided cpp configuration (#7350) 2021-04-14 10:02:46 -07:00
csigsandDevDiv Build Lab - Dev14 1935d85357 Localization - Translated Strings (#7361)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-04-14 09:55:21 -07:00
Sean McManus 18f29bffa8 Fix activation. (#7345) 2021-04-13 17:56:49 -07:00
csigsandDevDiv Build Lab - Dev14 f0a8c1aa16 Localization - Translated Strings (#7357)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-04-13 16:34:28 -07:00
csigsandDevDiv Build Lab - Dev14 f3c8c5f389 Localization - Translated Strings (#7353)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-04-13 10:05:13 -07:00
Michelle Matias 52f7999233 Merge pull request #7352 from microsoft/mimatias/r1-3-0
1.3.0 release
2021-04-12 22:45:17 -07:00
Michelle Matias 173f79ca4e Merge branch 'main' into mimatias/r1-3-0 2021-04-12 22:38:09 -07:00
Michelle Matias 7ed461992e update fwlinks and change log (#7348) 2021-04-12 22:29:29 -07:00
Elaheh Rashedi 57f9e1e5c9 Merge pull request #7315 from microsoft/ella/taskScope
Modify "Configure Task" behavior for multiroot
2021-04-12 14:32:52 -07:00
Elaheh Rashedi 0bb6c89282 Merge branch 'main' into ella/taskScope 2021-04-12 13:19:20 -07:00
Andrew Wang bfab754869 Update CODE_OF_CONDUCT.md (#7340)
Update page to match
https://github.com/microsoft/repo-templates/blob/main/shared/CODE_OF_CONDUCT.md
2021-04-12 11:16:17 -07:00
csigsandDevDiv Build Lab - Dev14 957b812f78 Localization - Translated Strings (#7338)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-04-12 10:15:08 -07:00
Michelle Matias 288978b251 Add feature request template, update other issues templates (#7330) 2021-04-09 14:29:00 -07:00
csigsandDevDiv Build Lab - Dev14 9a37e6882c Localization - Translated Strings (#7328)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-04-09 10:25:13 -07:00
Colen Garoutte-Carson 143207aadb Merge to insiders (#7320) 2021-04-08 15:22:46 -07:00
Sean McManus b2c9167eec 1_3_0_insiders5 changelog (#7319)
* Update changelog for 1.3.0-insiders5.
2021-04-08 14:21:47 -07:00
Colen Garoutte-Carson 8b7dc8ba3a Update a string. Also, correct use of "MacOS" to the preferred "macOS" (#7318) 2021-04-08 12:59:42 -07:00
Elaheh Rashedi 7ea76ed031 Merge branch 'main' into ella/taskScope 2021-04-08 10:39:55 -07:00
Elaheh Rashedi f092c8fadf linter error fix 2021-04-08 10:39:29 -07:00
csigsandDevDiv Build Lab - Dev14 1001afecc8 Localization - Translated Strings (#7317)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-04-08 09:52:32 -07:00
Elaheh Rashedi add968510d change task scope to Workspace 2021-04-07 16:42:51 -07:00
Colen Garoutte-Carson 68c891e713 Fix an issue with validating browse configs (#7313) 2021-04-07 15:35:58 -07:00
Colen Garoutte-Carson 2ad3a4006e Add catch of JSON.parse() when reading install.lock. Update message. (#7312) 2021-04-07 13:03:16 -07:00
csigsandDevDiv Build Lab - Dev14 cc1eb1a977 Localization - Translated Strings (#7308)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-04-07 10:19:17 -07:00
Michelle Matias 0edf6c3ea7 Merge pull request #7304 from microsoft/mimatias/insiders4-2
1.3.0-insiders4 (#2)
2021-04-06 16:39:09 -07:00
Colen Garoutte-Carson bdd881b4e7 Add check and message for x64 VSIX on M1 Mac (#7303) 2021-04-06 16:26:56 -07:00
Andreea Isac 0b4f51b32e CMake retention telemetry (#7296)
* CMake retention telemetry
2021-04-06 15:35:11 -07:00
Michelle Matias 4e22b6577f Merge pull request #7302 from microsoft/mimatias/insiders4
1.3.0-insiders4
2021-04-06 11:48:40 -07:00
Michelle Matias 1ab60bc247 Merge branch 'insiders' into mimatias/insiders4 2021-04-06 11:45:09 -07:00
Michelle Matias 25d98de880 Changelog for 1.3.0-insiders4 (#7301) 2021-04-06 11:20:44 -07:00
Michelle Matias 7fa6d48ce4 return false when no hash is specified (#7300) 2021-04-06 10:53:30 -07:00
csigsandDevDiv Build Lab - Dev14 a07827e079 Localization - Translated Strings (#7297)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-04-06 10:46:06 -07:00
Sean McManus 7290c0ce6a Add C_Cpp.files.exclude. (#7285)
* Add C_Cpp.files.exclude.
2021-04-05 14:51:07 -07:00
Colen Garoutte-Carson cc13a92a06 Relax field requirements for custom configs (#7295) 2021-04-05 14:05:31 -07:00
csigsandDevDiv Build Lab - Dev14 0c1df4edb1 Localization - Translated Strings (#7294)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-04-05 11:54:27 -07:00
Sean McManus e1cf5abc32 Fix multiroot GoToNextDirectiveInGroup. (#7284) 2021-04-05 10:01:04 -07:00
Michelle Matias d9551d2dcc Support macOS ARM64 vsix (#7278) 2021-04-02 14:59:20 -07:00
csigsandDevDiv Build Lab - Dev14 35d12432e7 Localization - Translated Strings (#7280)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-04-02 11:18:57 -07:00
Colen Garoutte-Carson 8bf86bedcf Strip IsExplicit flags if seen in c_cpp_properties.json (#7272) 2021-04-01 16:51:27 -07:00
Colen Garoutte-Carson 33eb2f6abe Add some files missed when merging to Insiders branch (#7271) 2021-04-01 12:15:23 -07:00
Colen Garoutte-Carson 11262438e3 Merge main into insiders (#7266) 2021-03-31 19:16:40 -07:00
Colen Garoutte-Carson 53d99cddc4 Update changelog for 1.3.0-insiders3 (#7263) 2021-03-31 19:09:13 -07:00
Colen Garoutte-Carson 8aa5f40dfa Add CUDA support (#7255) 2021-03-31 15:49:49 -07:00
Colen Garoutte-Carson 7133b63c95 Add commands for navigating between the next/prev preprocessor conditionals in a chain (#7256) 2021-03-31 13:07:05 -07:00
Sean McManus 885881294d Update dependencies. (#7239)
* Update webpack dependencies.
* Update node.
* Update copy-props.
* Update ts-loader to fix warning messages.
* Update mocha.
2021-03-31 11:00:46 -07:00
Sean McManus aecb7d541b Fix activation event (#7253)
* Minor activation event fix.
2021-03-31 10:39:40 -07:00
Sean McManus db7c9c78b9 Fix comment continuation. (#7238)
* Fix comment continuation.
2021-03-31 10:27:20 -07:00
Aleksa Pavlovic 0d2e793df7 Fix compileCommands path resolution (#7242) 2021-03-31 10:01:26 -07:00
Bob Brown 0317f3439d Update README.md 2021-03-31 08:57:28 -07:00
Colen Garoutte-Carson 673a68d4cc Merge to insiders (#7236) 2021-03-25 14:05:32 -07:00
Colen Garoutte-Carson ae2faa7b2d Update changelog for 1.3.0-insiders2 (#7235) 2021-03-25 14:05:15 -07:00
Sean McManus fd63b2674a Update changelog. (#7224)
* Update changelog.
* Change date.
2021-03-24 12:42:04 -07:00
Sean McManus 437d9b333a Merge pull request #7223 from microsoft/1_3_0_insiders2
1.3.0-insiders2 merge
2021-03-24 12:10:49 -07:00
Sean McManus 0139274856 Change date. 2021-03-24 12:09:28 -07:00
Sean McManus 87cfa702bc Update changelog. 2021-03-24 06:04:49 -07:00
Sean McManus 47b502b965 Update changelog. 2021-03-24 05:57:45 -07:00
Sean McManus 013bff267e Merge branch 'insiders' into 1_3_0_insiders2 2021-03-24 05:53:35 -07:00
Sean McManus 56ac2218d5 Change default for autocompleteAddParentheses (#7210) 2021-03-23 06:36:00 -07:00
Elaheh Rashedi ac0801f75e Merge pull request #7211 from microsoft/ella/asterisk
Modifying the multi-line comment rules
2021-03-22 17:03:51 -04:00
Elaheh Rashedi 0924f5c0e9 fix multiline math formulas 2021-03-22 13:12:46 -07:00
Elaheh Rashedi 0e4389c96f Merge branch 'ella/asterisk' of https://github.com/Microsoft/vscode-cpptools into ella/asterisk 2021-03-22 12:52:44 -07:00
Elaheh Rashedi 61e33bda63 Merge branch 'main' into ella/asterisk 2021-03-22 15:43:01 -04:00
Elaheh Rashedi 80b4c418ad clean code 2021-03-22 12:41:39 -07:00
Elaheh Rashedi 483f9823c8 final testing 2021-03-22 12:36:16 -07:00
Elaheh Rashedi 607bc7af62 test passing 2021-03-22 11:19:39 -07:00
Elaheh Rashedi 905fc0fe9b test failiing 2021-03-22 09:04:39 -07:00
Elaheh Rashedi e79dbfb671 some ranames to avoid confusion 2021-03-21 16:55:02 -07:00
Elaheh Rashedi 217760ea68 save comments 2021-03-21 15:08:40 -07:00
csigsandDevDiv Build Lab - Dev14 71d78e310b Localization - Translated Strings (#7196)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-03-19 10:37:16 -07:00
Elaheh Rashedi b641611b86 update minimumVSCodeVersion 2021-03-18 15:41:56 -07:00
Elaheh Rashedi 50a8c7b1df Merge branch 'main' into ella/asterisk 2021-03-18 14:20:13 -07:00
Elaheh Rashedi f7a1d32bea revert a move 2021-03-18 13:28:26 -07:00
Elaheh Rashedi 062b0a80d3 revert a move 2021-03-18 13:27:00 -07:00
Elaheh Rashedi 81989243ad revert a move 2021-03-18 13:22:14 -07:00
Elaheh Rashedi d37cffa9d8 change split and continue rule 2021-03-18 13:03:03 -07:00
csigsandDevDiv Build Lab - Dev14 bde41134f9 Localization - Translated Strings (#7191)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-03-18 10:12:58 -07:00
csigsandDevDiv Build Lab - Dev14 4497b7fb2b Localization - Translated Strings (#7187)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-03-17 11:28:37 -07:00
Colen Garoutte-Carson d942d64b7b Merge main to insiders (#7186) 2021-03-16 20:56:48 -07:00
Colen Garoutte-Carson 63dbbb8b38 Update changelog date (#7183) 2021-03-16 20:44:21 -07:00
Colen Garoutte-Carson 1a2bf6fc4c Merge main into insiders (#7180) 2021-03-16 17:44:59 -07:00
Colen Garoutte-Carson 64cc5c42e7 Update msc version (#7182) 2021-03-16 16:53:54 -07:00
Sean McManus 17f7cd1c2c Avoid running the node-addon code if the setting isn't enabled. (#7140) 2021-03-16 16:13:48 -07:00
Colen Garoutte-Carson 0b66fe2535 Update changelog for insiders (#7181) 2021-03-16 16:13:07 -07:00
Colen Garoutte-Carson 1cc0983315 New edge strings from FI (#7179) 2021-03-16 15:39:10 -07:00
Mestery 828589705d support yarn pnp for nodeAddonIncludes (#7123)
This solves problems with Yarn PnP and node addon includes.
2021-03-15 14:39:23 -07:00
Sean McManus fb0b4d1504 Update TPN. (#7173) 2021-03-15 14:26:24 -07:00
Sean McManus 390c987081 Update xmldom and mocha. (#7172)
* Update xmldom and mocha.
2021-03-15 12:05:55 -07:00
csigsandDevDiv Build Lab - Dev14 87f0b9fdee Localization - Translated Strings (#7169)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-03-15 10:17:36 -07:00
c83637e6fe Localization - Translated Strings (#7142)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
Co-authored-by: Sean McManus <[email protected]>
2021-03-12 15:17:44 -08:00
Michelle Matias c4b44d3038 Add Doxygen tag label "retval" (#6983) 2021-03-12 14:23:35 -08:00
Sean McManus 0b1064ea7d Fix dependencies. (#7132) 2021-03-09 11:00:15 -08:00
Sean McManus 16f5f68ff8 Add autocompleteAddParentheses (#7109)
* autocompleteAddParentheses
Fixes #882
2021-03-08 17:39:54 -08:00
Sean McManus d2cb68506b Fix getDocumenSymbol before didOpen. (#7104) 2021-03-03 21:29:34 -08:00
csigsandDevDiv Build Lab - Dev14 9b290c5a8a Localization - Translated Strings (#7099)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-03-03 10:09:14 -08:00
Michelle Matias 7bac5a7101 Merge pull request #7053 from microsoft/mimatias/main122
Merge main to release for 1.2.2
2021-02-25 14:38:00 -08:00
Michelle Matias 736cf279c3 Merge branch 'release' into mimatias/main122 2021-02-25 14:36:54 -08:00
Michelle Matias 3d49cfa0e7 Update changelog and fwlink for version 1.2.2 (#7052) 2021-02-25 14:29:50 -08:00
Sean McManus 9e7b2d68ad Fix "console" squiggle with "cppdbg". (#7051)
* Fix "console" squiggle with "cppdbg".
* Change "default"
2021-02-25 13:42:13 -08:00
Sean McManus 32c1d6bf52 Merge pull request #6997 from microsoft/main
Merge for 1.2.2-insiders2
2021-02-18 18:13:59 -08:00
Sean McManus 2199ec324d Update changelog for 1.2.2-insiders2. (#6996) 2021-02-18 17:48:21 -08:00
Sean McManus 4f3e3c8f63 Fix regression. Add test case. (#6993)
* Add test case.
* Fix regression bug.
2021-02-18 15:56:20 -08:00
csigsandDevDiv Build Lab - Dev14 585cb66534 Localization - Translated Strings (#6991)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-02-18 11:14:30 -08:00
Sean McManus ebd5314b48 Merge pull request #6986 from microsoft/seanmcm/1_2_2_insiders
1.2.2-insiders
2021-02-17 15:01:04 -08:00
Sean McManus 5c7f551dba Merge. 2021-02-17 14:57:49 -08:00
Colen Garoutte-Carson 325ea2939d Update CHANGELOG.md for 1.2.2-insiders (#6985) 2021-02-17 14:52:53 -08:00
Colen Garoutte-Carson 1a26463bcb Move initialization of TimeTelemetryCollector (#6984) 2021-02-17 14:33:24 -08:00
Elaheh Rashedi 8401086544 Merge pull request #6977 from microsoft/release1.2.1_2
remove main from version
2021-02-16 17:59:36 -05:00
Elaheh Rashedi 5b44545fd2 remove main from version 2021-02-16 17:54:34 -05:00
csigs 71a1005720 Localization - Translated Strings (#6970) 2021-02-16 11:44:06 -08:00
Elaheh Rashedi 52b2b8f6df Merge pull request #6961 from microsoft/release1.2.1
Release1.2.1
2021-02-12 14:00:28 -05:00
Elaheh Rashedi 67345e0e6d Merge branch 'main' into release1.2.1 2021-02-12 13:44:10 -05:00
Elaheh Rashedi fcd84dda26 updating fwlinks and changelog for 1.2.1 (#6960)
* update fwlinks

* update changelog

* change date to 16th
2021-02-12 10:36:34 -08:00
csigsandDevDiv Build Lab - Dev14 dfd4970060 Localization - Translated Strings (#6959)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-02-12 10:20:13 -08:00
Colen Garoutte-Carson 256d0cd95f Update codespaces check to also include VS Code remoting codespaces (#6952) 2021-02-11 15:16:20 -08:00
Sean McManus 9d4238b236 Fix bug with cwd in build tasks. (#6954) 2021-02-11 12:27:03 -08:00
Sean McManus 9ba19af496 Update signed LLDB-MI for mac. (#6956) 2021-02-11 11:18:08 -08:00
csigsandDevDiv Build Lab - Dev14 c15f359d8f Localization - Translated Strings (#6955)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-02-11 09:39:21 -08:00
Elaheh Rashedi 7fc86af212 changelog 1.2.1 (#6949) 2021-02-10 14:49:42 -05:00
csigsandDevDiv Build Lab - Dev14 10c477eb09 Localization - Translated Strings (#6946)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-02-10 09:19:22 -08:00
Michelle Matias 4f4d662541 Add link to Discussions board (#6938) 2021-02-09 14:38:09 -08:00
Sean McManus 9196ba593b Update clang-format style descriptions. (#6914) 2021-02-08 13:45:02 -08:00
chausner 0c6e43c33d Fix typo in README.md (#6918) 2021-02-08 13:15:04 -08:00
Michelle Matias 6514d98b2c Clarify legacy IntelliSense modes in description (#6929) 2021-02-08 13:07:51 -08:00
Sean McManus 64b502b4f2 Fix switch header source with symlinked workspace folders. (#6863) 2021-02-04 11:12:08 -08:00
Sean McManus 3b0b4d1ef0 Merge pull request #6906 from microsoft/localization
[Auto] Localization - Translated Strings
2021-02-04 10:58:07 -08:00
DevDiv Build Lab - Dev14 5661f0a56d Localization - Translated Strings 2021-02-04 15:01:42 +00:00
csigs 1534bc53d8 Localization - Translated Strings (#6899) 2021-02-03 13:56:37 -08:00
Sean McManus ecf57ce8d2 Merge pull request #6892 from microsoft/seanmcm/1_2_0_release3
Update 1.2.0
2021-02-02 13:31:31 -08:00
Sean McManus 0259eeeb5d Merge branch 'main' into seanmcm/1_2_0_release3 2021-02-02 13:25:59 -08:00
Elaheh Rashedi 8c989a057d Merge branch 'main' of https://github.com/Microsoft/vscode-cpptools into ella/asterisk 2021-02-02 13:15:17 -08:00
Elaheh Rashedi 3a0aa9eaa9 add previousLineText from insider release 2021-02-02 13:14:07 -08:00
csigsandDevDiv Build Lab - Dev14 76e427fdb2 Localization - Translated Strings (#6891)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-02-02 11:03:17 -08:00
Sean McManus 0a13cdec11 Merge pull request #6888 from microsoft/seanmcm/1_2_0_release_2
1.2.0 release 2nd try
2021-02-01 20:36:01 -08:00
Sean McManus 6ff23b461c Merge branch 'main' into seanmcm/1_2_0_release_2 2021-02-01 20:27:47 -08:00
Sean McManus f17ce8703d Fix CHS translation (#6886)
* Fix CHS translation.
* Update date.
* Update hashes.
2021-02-01 20:14:16 -08:00
Sean McManus 978d9ae574 Merge pull request #6885 from microsoft/seanmcm/1_2_0
1.2.0
2021-02-01 14:19:22 -08:00
Sean McManus 399b43666f Merge for 1.2.0. 2021-02-01 14:09:10 -08:00
csigsandDevDiv Build Lab - Dev14 880277c473 Localization - Translated Strings (#6822)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2021-02-01 13:59:47 -08:00
Sean McManus 3faceeb863 Update changelog and fwlinks (#6872)
* Update changelog.
* Update fwlinks and hashes.
2021-02-01 13:49:24 -08:00
Sean McManus 5746586532 Fix cl.exe not appearing in the compiler list. (#6884) 2021-02-01 12:58:25 -08:00
Sean McManus b1deef866d Fix updateChannel for code-exploration. (#6882) 2021-02-01 12:47:28 -08:00
Sean McManus 6ccea3878b Merge pull request #6853 from microsoft/seanmcm/1_2_0_insiders3
1.2.0-insiders3
2021-01-26 18:22:11 -08:00
Sean McManus e5fd036af9 Update changelog. 2021-01-26 17:40:57 -08:00
Sean McManus 4254419e76 Merge branch 'main' into seanmcm/1_2_0_insiders3 2021-01-26 17:27:51 -08:00
Sean McManus fb89c1c2d8 Add crash count telemetry. (#6851)
* Add crash count telemetry.
2021-01-26 17:24:06 -08:00
Sean McManus fdda9c2db5 Update changelog. (#6852)
* Update changelog.
2021-01-26 16:59:19 -08:00
Elaheh Rashedi 89cdae0456 avoid throwing error for single-file mode task configuration (#6828)
* change master to main

* ignore single-mode files error

* linter error
2021-01-21 13:48:41 -08:00
Michelle Matias f73a5d169a Use cpptools API v5 (#6823) 2021-01-21 13:01:56 -08:00
Sean McManus f9ecc9c6f9 Merge pull request #6820 from microsoft/seanmcm/1_2_0_insiders2
1.2.0-insiders2
2021-01-19 20:26:53 -08:00
Sean McManus 9405f41521 Merge branch 'main' into seanmcm/1_2_0_insiders2 2021-01-19 18:22:49 -08:00
Sean McManus 5f94a645d5 1.2.0-insiders2 changelog (#6817)
* Update changelog.
2021-01-19 18:20:44 -08:00
Sean McManus f9b6d18af4 Revert "Remove .dylib filtering. (#6796)" (#6797)
This reverts commit e4809d9f90.
2021-01-15 22:09:16 -08:00
Andrew Wang 51fff8eb42 Add new "console" launch config for cppvsdbg (#6794)
* Add new "console" launch config for vsdbg

This PR adds new console support for the cppvsdbg debug type.

This removes the legacy 'externalConsole' flag with 'console'.
Console has four enums:
- internalConsole: Output to the VS Code Debug Console. This doesn't
  support reading console input (ex:Console.ReadLine)
- integratedTerminal: VS Code's integrated terminal
- externalTerminal: External terminal that can be configured via user
  settings
- newExternalWindow: Console applications will be launched in their own
  external console window which will end when the application stops.
  Non-console applications will run without a terminal, and
  stdout/stderr will be ignored.
2021-01-15 18:09:56 -08:00
Sean McManus e4809d9f90 Remove .dylib filtering. (#6796)
* Remove .dylib filtering.
2021-01-15 16:10:21 -08:00
Sean McManus bbcc3fdcab Fix Go to Symbol in Workspace (#6795)
* Fix Go to Symbol in Workspace
2021-01-15 15:57:20 -08:00
Colen Garoutte-Carson 781e813abd Fix issue with git cleanup in loc auto-pr script (#6786) 2021-01-15 11:44:46 -08:00
Sean McManus 37cca41225 Merge pull request #6785 from microsoft/seanmcm/1_2_0_insiders_updates
1 2 0 insiders updates
2021-01-14 18:22:43 -08:00
Sean McManus ed584b23e2 Merge branch 'main' into seanmcm/1_2_0_insiders_updates 2021-01-14 18:21:56 -08:00
Colen Garoutte-Carson 8e8482b527 Fix issue with multiple didOpen (#6784) 2021-01-14 18:21:09 -08:00
Sean McManus f7cab674a4 Merge branch 'main' into seanmcm/1_2_0_insiders_updates 2021-01-14 17:31:47 -08:00
Michelle Matias 3e2488a9e7 fix config name UI error (#6783) 2021-01-14 17:15:42 -08:00
Sean McManus 2a94a2b26d Fix configuration status bar issue. Update changelog. (#6782)
* Fix configuration status bar issue. Update changelog.
2021-01-14 17:05:50 -08:00
Sean McManus 42586081fa Merge pull request #6777 from microsoft/seanmcm/1_2_0_insiders
Merge latest changes for 1.2.0-insiders
2021-01-13 18:56:37 -08:00
Sean McManus c49e51d386 Fix extra space. 2021-01-13 18:53:52 -08:00
Sean McManus 51557b5ae9 1.2.0-insiders changelog (#6776)
* Update changelog for 1.2.0-insiders.
* Update version.
2021-01-13 18:40:22 -08:00
Sean McManus 1201a56169 Merge pull request #6775 from microsoft/insiders
Merge to main: implement addNodeAddonIncludePaths (#6731)
2021-01-13 18:16:12 -08:00
Sean McManus 3c32946d88 Merge branch 'main' into insiders 2021-01-13 18:10:08 -08:00
Bruce MacNaughton 41b7678e62 implement addNodeAddonIncludePaths (#6731)
* add addNodeAddonIncludePaths, fix for https://github.com/microsoft/vscode-cpptools/issues/4854
2021-01-13 18:09:01 -08:00
Elaheh Rashedi 1145a49108 show a Squiggle if there is a duplicate configuration name (#6752)
* change master to main

* check for duplicate names

* check duplicates before removing the later configs

* spelling check

* fix spelling error

* add configNameInvalid for UI error(won't show yet)

* show the UI error

* squiggle for all duplicates

* change let to const

* squiggle for first one as well

* let to const
2021-01-13 18:02:59 -08:00
Colen Garoutte-Carson 02c547b60e Update offline links to clang-format (#6774) 2021-01-13 15:30:59 -08:00
Michelle Matias 46e6b87d13 Add triplet IntelliSense modes to support cross-compilation (#6745) 2021-01-13 15:05:30 -08:00
Elaheh Rashedi 1bf090238d edit to compile-commands take effect immediately (#6748)
* draft

* check CompileCommands

* check CompileCommands

* remove updateCompileCommandsFileWatchers

* remove array of filewatchers for compile_commands

* Revert "remove array of filewatchers for compile_commands"

This reverts commit d557c6328cfb32adbe79a098df062c74f651d9e9.

* Revert "remove updateCompileCommandsFileWatchers"

This reverts commit 0e6c03a65b1dfad56b79ae39a4ddfbb9f2c35486.
2021-01-11 10:49:13 -08:00
Sean McManus 438a7e337d Fix SwitchHeaderSource with RevealIfOpen (#6751) 2021-01-08 17:46:13 -08:00
Andrew Wang 4ae2f001fa Update link for Windows Debugger (#6750)
* Update link for Windows Debugger

This PR updated the License.txt when vsdbg is downloaded in
debugAdapters.

See https://github.com/microsoft/vscode-cpptools/pull/6735

* Update integreity hash for the Windows Debugger
2021-01-07 14:59:07 -08:00
Sean McManus effb26733e Update runtime licenses. (#6735)
* Update licenses.
* Update License.md to reference RuntimeLicenses.
2021-01-06 17:27:47 -08:00
Sean McManus 1fa4f67afd Stop falling back to a /usr/bin debugger on Windows, show an error when a non-existent miDebuggerPath is used, and stop showing "unknown error" (#6705)
Fix for #6511 and #6608
* Stop falling back to a /usr/bin debugger on Windows.
* Add error message.
* Fix unknown error.
2021-01-06 14:48:53 -08:00
Sean McManus 6254bb6ad2 Output the cppbuild command used. Fix D warnings. (#6701)
* Output the cppbuild command used. Fixes #6647 .
Also fixes "D" command line warnings with cl.exe.
Move the build result message to the end.
Handle the /nologo case and always shows the logo/header if it exists (but default to use /nologo).
2021-01-06 14:35:13 -08:00
dependabot[bot] bf6bc96437 Bump axios from 0.19.2 to 0.21.1 in /.github/actions (#6743)
Bumps [axios](https://github.com/axios/axios) from 0.19.2 to 0.21.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v0.21.1/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.19.2...v0.21.1)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-06 14:13:51 -08:00
Sean McManus 71d1f4c701 Remove references to deprecated code. (#6728) 2021-01-04 16:58:06 -08:00
Elaheh Rashedi 26d5679d5d add test 2021-01-04 13:34:44 -08:00
Elaheh Rashedi f297d411df change Rules to TsRules 2020-12-21 13:04:52 -08:00
Sean McManus 2ad35c83c0 Add IntelliSense crashed string and update changelog (#6674)
* Add IntelliSense crashed string.
* Update changelog.
2020-12-21 13:04:06 -08:00
Elaheh Rashedi 72c9f2115e change master to main (#6679)
* change master to main

* master to main
2020-12-17 16:04:38 -08:00
Colen Garoutte-Carson 805f884b17 Handle inactive regions when determining folding ranges (#6667) 2020-12-14 16:22:31 -08:00
Elaheh Rashedi 26726df578 check for valid user compiler path (#6606)
* valid user compiler path

* fix lint error
2020-12-14 13:48:17 -08:00
csigs b7a0279352 Localization - Translated Strings (#6664) 2020-12-14 12:45:24 -08:00
dependabot[bot] f724ae8912 Bump ini from 1.3.5 to 1.3.7 in /Extension (#6653)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-11 15:09:06 -08:00
Sean McManus ab55557ddb Cache call to which.sync('clang-format') (#6645) 2020-12-08 19:25:46 -08:00
Michelle Matias c70dc9e93b Separate "investigate costing" and "investigate" for debugger issue workflows (#6646) 2020-12-08 16:41:21 -08:00
Michelle Matias 0aaf0c5af4 Fix yaml syntax for GitHub actions (#6644) 2020-12-08 15:58:50 -08:00
Michelle Matias 29ff9be9f7 add GitHub actions for debugger issues (#6637) 2020-12-08 13:23:58 -08:00
Sean McManus 52469738d3 Update TPN. (#6529)
* Update TPN.
2020-12-04 13:26:52 -08:00
Sean McManus 25d74973b0 Update TPN for release. (#6622) 2020-12-03 17:44:20 -08:00
Sean McManus 8dd2efd090 Merge pull request #6601 from xymeng16/master
Allow extension's x64 binaries to run on Apple Silicon x64 emulator
2020-12-03 17:20:43 -08:00
Sean McManus 07683b02fe Merge branch 'master' into master 2020-12-03 16:13:41 -08:00
Sean McManus a0a7d5b678 Add dependencies for TPN generation. (#6621) 2020-12-03 16:13:15 -08:00
Sean McManus adf99597f6 Merge pull request #6620 from microsoft/seanmcm/cherryPick6619
cherry pick6619
2020-12-03 16:12:07 -08:00
Sean McManus 52fe7952d6 Update changelog. 2020-12-03 14:14:30 -08:00
Sean McManus aa4c5df4b7 Fix cwd. (#6619)
Fixes #6618
2020-12-03 14:11:07 -08:00
Sean McManus 3e34ba2227 Fix cwd. (#6619)
Fixes #6618
2020-12-03 14:00:20 -08:00
Sean McManus a3de2f9bee Merge pull request #6614 from microsoft/seanmcm/cherryPick6609
cherry pick 6609
2020-12-02 22:17:06 -08:00
Colen Garoutte-Carson 28f6dd66d2 Add field to activation telemetry for web-based Codespaces (#6609) 2020-12-02 22:15:07 -08:00
Colen Garoutte-Carson 89fd6a960c Remove telemetry for remoteName (#6537) 2020-12-02 22:10:26 -08:00
Colen Garoutte-Carson 08a28c3fd5 Add field to activation telemetry for web-based Codespaces (#6609) 2020-12-02 12:22:40 -08:00
Xiangyi Meng 95ae82ff5c Merge branch 'master' into master 2020-12-02 15:08:05 +08:00
Sean McManus 8b06e7d04f Merge pull request #6607 from microsoft/seanmcm/1_1_3
Merge for 1.1.3 release
2020-12-01 20:53:46 -08:00
Sean McManus b1021432ec Update changelog and @types/vscode 2020-12-01 17:41:56 -08:00
Sean McManus 2cca514128 Fix infinite loop after cpptools crashes. (#6604)
* Fix infinite loop after cpptools crashes: https://github.com/microsoft/vscode-cpptools/issues/6603
2020-12-01 17:25:04 -08:00
Sean McManus 2e33027272 Fix cppbuild task warnings. (#6557)
* Fix cppbuild task warnings: https://github.com/microsoft/vscode-cpptools/issues/6556
2020-12-01 17:21:30 -08:00
Elaheh Rashedi 73a0b95df7 Add localization to strings in LanguageServer\cppBuildTaskProvider.ts (#6544)
* localizing for task provider

* localize single_file_mode_not_available

* remove end of line from localalized string

* modify error(s)

* remove space from localized string

* remove space from localized string
2020-12-01 17:20:56 -08:00
Sean McManus 39f32a3b45 Fix build task bugs. (#6539)
* Fix build task bugs.
* Use VS Code's variable resolution.
2020-12-01 17:20:42 -08:00
Sean McManus 94294dd372 Fix infinite loop after cpptools crashes. (#6604)
* Fix infinite loop after cpptools crashes: https://github.com/microsoft/vscode-cpptools/issues/6603
2020-12-01 15:50:24 -08:00
Sean McManus 61e98c0e0d Fix cppbuild task warnings. (#6557)
* Fix cppbuild task warnings: https://github.com/microsoft/vscode-cpptools/issues/6556
2020-12-01 14:22:59 -08:00
Xiangyi Meng bb910aa280 Add support to Apple Silicon 2020-12-01 20:17:23 +08:00
Sean McManus a6c7ffd8f5 Update a loc string. (#6577) 2020-11-25 20:30:57 -08:00
Elaheh Rashedi 4c2124ebf4 Add localization to strings in LanguageServer\cppBuildTaskProvider.ts (#6544)
* localizing for task provider

* localize single_file_mode_not_available

* remove end of line from localalized string

* modify error(s)

* remove space from localized string

* remove space from localized string
2020-11-25 15:13:31 -08:00
Sean McManus aefe53cab1 Update IntelliSense strings. (#6528) 2020-11-20 12:31:25 -08:00
Sean McManus ce3d3fa403 Fix build task bugs. (#6539)
* Fix build task bugs.
* Use VS Code's variable resolution.
2020-11-19 16:09:03 -08:00
Colen Garoutte-Carson 55a9117ecf Remove telemetry for remoteName (#6537) 2020-11-18 12:54:16 -08:00
Sean McManus 16f352169c 1_1_2 release (#6532)
* Fix fileDirname. (#6482)
* Update changelog.
* Update the version.
2020-11-17 18:02:59 -08:00
guntern e5d08d2a9e fixed problemmatcher regexp (#6490)
* fixed problemmatcher regexp so that it should work with compilers not printing the column
Co-authored-by: guntern <[email protected]>
2020-11-17 14:21:23 -08:00
csigsandazure-pipelines[bot] 3194b10e62 Localization - Translated Strings (#6533)
Co-authored-by: azure-pipelines[bot] <azure-pipelines[bot]@users.noreply.github.com>
2020-11-17 11:39:46 -08:00
Colen Garoutte-Carson 12c653fa7b Do not prompt Web-based Codespaces users to join Insiders (#6513) 2020-11-16 14:34:24 -08:00
csigsandazure-pipelines[bot] 0c32d707ab Localization - Translated Strings (#6523)
Co-authored-by: azure-pipelines[bot] <azure-pipelines[bot]@users.noreply.github.com>
2020-11-16 12:44:47 -08:00
Colen Garoutte-Carson b4e2a8457f Automatically fall back to config provider (#6504) 2020-11-13 14:29:02 -08:00
csigs f6d7577688 Localization - Translated Strings (#6499) 2020-11-11 12:54:47 -08:00
Colen Garoutte-Carson c026a827c6 Replace uses of 'probe' with 'query' (#6495) 2020-11-10 18:57:09 -08:00
Sean McManus 55421659dc Remove symbol_add_failed. (#6493)
* Remove unused strings.
2020-11-10 17:15:28 -08:00
Sean McManus 1a718f3f0e Fix fileDirname. (#6482) 2020-11-10 15:12:12 -08:00
Colen Garoutte-Carson 68078182bf Command to generate .editorconfig file (#6415) 2020-11-10 13:22:48 -08:00
Colen Garoutte-Carson 7bcbea62e9 Replace uses of process.env.HOME with os.homedir() (#6479) 2020-11-10 13:10:58 -08:00
csigs ec66642c60 Localization - Translated Strings (#6487) 2020-11-10 11:58:44 -08:00
Colen Garoutte-Carson 4119b6c263 Add string for log message regarding compiler probeability (#6463) 2020-11-09 21:45:17 -08:00
Sean McManus adff6e66d5 Merge pull request #6481 from microsoft/seanmcm/1_1_1_release
1_1_1 release
2020-11-09 16:05:21 -08:00
Sean McManus 1877aed36a Merge. 2020-11-09 16:01:38 -08:00
Sean McManus 49d9cfd5ee Fix invalid architectures. (#6480)
* Fix invalid architectures.
2020-11-09 15:56:54 -08:00
csigsandazure-pipelines[bot] 6867272d06 Localization - Translated Strings (#6477)
Co-authored-by: azure-pipelines[bot] <azure-pipelines[bot]@users.noreply.github.com>
2020-11-09 09:50:26 -08:00
csigs 890dae3a87 Localization - Translated Strings (#6455) 2020-11-06 11:30:56 -08:00
Sean McManus 9a7fa21028 Update cpptools.json (#6452)
* Update cpptools.json
2020-11-05 19:09:49 -08:00
Sean McManus 50c1efadd8 Fix version. (#6449) 2020-11-05 15:41:17 -08:00
Sean McManus 83df90082a Merge pull request #6448 from microsoft/seanmcm/1_1_0_release
1_1_0 release
2020-11-05 15:30:17 -08:00
Sean McManus b1d7d19ed7 Merge branch 'master' into seanmcm/1_1_0_release 2020-11-05 15:25:21 -08:00
Sean McManus 64de2af400 Update changelog and integrity hashes. (#6447) 2020-11-05 15:24:18 -08:00
csigs 646c3e5ca5 Localization - Translated Strings (#6440) 2020-11-04 12:10:23 -08:00
Elaheh Rashedi f0be1a2d76 add detail to menuItem (#6435) 2020-11-03 16:18:41 -08:00
Elaheh Rashedi df8523e550 "F5" using the correct build task (#6420)
* shows details correctly

* change default name

* generating unique names

* lint errors

* lint errors

* modify resolvetask

* modify details
2020-11-03 14:39:48 -08:00
David Sanders 7d7b898ee6 Fix whitespace in imports (#6421) 2020-11-03 14:12:09 -08:00
Elaheh Rashedi a94de6edff update changelog for insiders 4 (#6429)
* insiders 4

* order

* order 2

* PR #
2020-11-03 13:05:29 -08:00
csigsandDevDiv Build Lab - Dev14 6fbf85df90 Localization - Translated Strings (#6432)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-11-03 10:07:38 -08:00
csigsandDevDiv Build Lab - Dev14 dfa59e12aa Localization - Translated Strings (#6425)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-11-02 11:25:55 -08:00
Colen Garoutte-Carson 5a5903ab25 Add telemetry for machineId changes and remoteName (#6419) 2020-10-30 17:22:49 -07:00
Colen Garoutte-Carson fc7cdac41b Fix paths to edge message files (#6418) 2020-10-30 16:22:02 -07:00
Andrew Wang 68733b4ea6 Update DebugServerPath description (#6414) 2020-10-30 14:17:48 -07:00
csigsandDevDiv Build Lab - Dev14 9a9d58f76b Localization - Translated Strings (#6416)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-10-30 10:15:11 -07:00
Sean McManus 3dd3e8857f Don't register cppvsdbg for Windows ARM. (#6401) 2020-10-29 13:33:07 -07:00
Colen Garoutte-Carson b25e5192bb Various bug fixes with vcFormat (#6408) 2020-10-29 11:37:09 -07:00
csigs c18f3f67b3 Localization - Translated Strings (#6405) 2020-10-28 12:49:22 -07:00
Elaheh Rashedi e5b3136d3b show details of the compiler path (#6377)
* show details of the compiler path

* remove detail from launch.json

* rename noDetailConfig

* lint error

* add comments
2020-10-27 17:26:01 -07:00
Elaheh Rashedi 554c91430b fix terminal issues (windows/linux/linux-on-wsl verified) (#6384)
* fix tab issues on g++ on windows

* add ;

* windows+linux verified
2020-10-27 13:03:28 -07:00
csigs 5ee1034856 Localization - Translated Strings (#6400) 2020-10-27 11:11:11 -07:00
Andrew Wang dcc1f93f1c ResolveDebugConfigurationWithSubstitutedVariable (#6382)
Add resolveDebugConfigurationWithSubstitutedVariables for
configurationProviders.

Keeping resolveDebugConfiguration to return null if type is not provided
in order to prompt `provideDebugConfiguration`.
2020-10-26 15:00:21 -07:00
csigsandDevDiv Build Lab - Dev14 7690c1a1dd Localization - Translated Strings (#6380)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-10-26 13:21:41 -07:00
Elaheh Rashedi 3832029be4 don't overwrite options and args (#6374)
* dont overwrite options and args

* linter error

* update changelog
2020-10-22 16:47:23 -07:00
Sean McManus 61ab30fe87 Fix insiders bug. (#6373) 2020-10-22 14:56:12 -07:00
Andrew Wang 839eefa032 [cppdbg] Support new sourceFileMap schema (#6319)
* [cppdbg] Support new sourceFileMap schema

For cppdbg, sourceFileMap can be used for binding breakpoints.
If keeping with the old format "<source-path>":"<target-path>", it will
always be used for breakpoints.

If you use the new:
"<compile-path>" : {
   "editorPath": "<target-path>",
   "useForBreakpoints": true
}

The sourceMap will only be used for frame enumeration.

* Fix linter issues

* Addressing PR comments
2020-10-22 13:36:06 -07:00
Sean McManus 7779eb0a56 update1 1 0 insider3 changelog (#6371)
* Update changelog.
2020-10-22 13:27:16 -07:00
csigsandDevDiv Build Lab - Dev14 da43cf9b15 Localization - Translated Strings (#6367)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-10-21 11:20:54 -07:00
Sean McManus 73653f894e Fixes for Windows ARM64 (#6337)
* Fixes for Windows ARM64
* Update node types version.
2020-10-20 19:38:16 -07:00
余腾靖 12feb81aa1 Add intelliSenseUpdateDelay setting (#6344)
* Add intelliSenseUpdateDelay setting
* Typo: settings_spaceWithinSquareBracketse -> settings_spaceWithinSquareBrackets
2020-10-20 10:54:37 -07:00
Elaheh Rashedi e41b32c5cd setup time (#6351) 2020-10-19 12:59:38 -07:00
Colen Garoutte-Carson f73d351981 Action bug fixes (#6336) 2020-10-16 17:44:29 -07:00
Elaheh Rashedi 5f43d5fcc1 add telemetry updates for openfile (#6257)
* copy ClientCollection.ts

* copy extension.ts

* copy client.ts

* rename LS message

* create new file

* spath to path

* remove uri with logged telemtery

* fix linter errors

* fix linter errors 2

* fix linter error 3

* change warm start collection

* nit

* bring setDidOpenTime to the beginnign of didOpen

* reply to reviews
2020-10-16 17:18:54 -07:00
Colen Garoutte-Carson 444b3ccb9e Add action to reopen feature requests that get enough votes (#6305) 2020-10-16 14:14:12 -07:00
Sean McManus a052d76f62 Revert "Use 'resolveDebugConfigWithSubVariables' (#6328)" (#6331)
This reverts commit 2ec525e129.
2020-10-15 19:46:51 -07:00
Colen Garoutte-Carson 8ac65e65b5 Only show warning channel the first time populated (#6330) 2020-10-15 17:55:42 -07:00
Andrew Wang 2ec525e129 Use 'resolveDebugConfigWithSubVariables' (#6328)
This PR uses the
DebugConfigurationProvider.resolveDebugConfigurationWithSubstitutedVariables
which allows the debug configuration to wait for the preLaunchTask to
complete before continuing on and resolving variables that may have been
set in the 'tasks.json'.

This also resolves the logging issue where the 'Build and Debug Active
File' preLaunchTask uses the current file but we switch to the output
window for logging.
2020-10-15 16:13:32 -07:00
Sean McManus b124e441fa Update changelog for 1.1.0-insiders2. (#6327) 2020-10-15 15:55:41 -07:00
Colen Garoutte-Carson ff6fd3473b Remove files for Azure Pipeline CI (#6313) 2020-10-13 21:44:35 -07:00
Colen Garoutte-Carson da110e78f0 CI workflows based on GitHub actions (#6312) 2020-10-13 20:07:52 -07:00
Colen Garoutte-Carson 89f609d70b Prevent config warnings from stealing user focus (#6310) 2020-10-13 19:45:57 -07:00
Andrew Wang 9dfb2c6060 Fix 'Build and Debug Active File' race condition with EngineLogs (#6304)
* Fix 'Build and Debug Active File' race condition with EngineLogs

If users use 'Build and Debug Active File' with "engineLogging", the resolveDebugConfigurations will quickly switch to the output window and `${fileBasenameNoExtension}` will resolve to something similar to `./extension-output-#5`.

This may be a bug with VS Code determining the output window to be a file, but this will unblock users who need to enable engine logging for this scenario.
2020-10-13 17:01:59 -07:00
Colen Garoutte-Carson 20759af979 Regenerate action JS files (#6306) 2020-10-13 13:41:03 -07:00
Colen Garoutte-Carson 2dbe8e4366 Fix issue causing locker action to lock closed issues too early (#6303) 2020-10-13 12:00:22 -07:00
Sean McManus f94e7e05e0 Update changelog. (#6299)
* Update changelog.
2020-10-13 01:03:30 -07:00
Sean McManus aa2b618ff6 Update VS version. (#6298) 2020-10-12 18:31:20 -07:00
Colen Garoutte-Carson 551642a987 Add timestamps to config warning output (#6297) 2020-10-12 18:10:02 -07:00
csigs c1c59368c1 Localization - Translated Strings (#6295) 2020-10-12 12:59:42 -07:00
Colen Garoutte-Carson 6aa6146689 Add closers for 'by design' and 'duplicate' issues (#6286) 2020-10-09 13:23:54 -07:00
csigsandvs-mobiletools-engineering-service2 558a3cf892 Localization - Translated Strings (#6287)
Co-authored-by: vs-mobiletools-engineering-service2 <[email protected]>
2020-10-09 10:23:24 -07:00
Colen Garoutte-Carson 659cc18243 Corrected some missed occurances of gnu18 -> gnu17 (#6284) 2020-10-08 17:49:34 -07:00
Colen Garoutte-Carson 1e5c015f99 Restrict feature request close action to Triage and Backlog milestones (#6283) 2020-10-08 16:15:33 -07:00
Colen Garoutte-Carson 225a8631d2 Add custom actions to close and lock stale issues (#6241) 2020-10-08 14:11:31 -07:00
csigsandvs-mobiletools-engineering-service2 b8cd5d8bb0 Localization - Translated Strings (#6274)
Co-authored-by: vs-mobiletools-engineering-service2 <[email protected]>
2020-10-08 10:45:07 -07:00
csigs 9fcdafb9cc [Auto] Localization - Translated Strings (#6268) 2020-10-07 16:43:48 -07:00
Sean McManus c71e06a208 Update changelog for 1.1.0-insiders. (#6263) 2020-10-06 16:14:01 -07:00
csigsandDevDiv Build Lab - Dev14 77319d5ce0 Localization - Translated Strings (#6261)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-10-06 16:02:59 -07:00
Andrew Wang 80ea255a7c Merge branch 'master' into release 2020-10-06 13:05:19 -07:00
Michelle Matias 7dcf4db276 Add memory usage limit of an IntelliSense process (#6240) 2020-10-05 14:19:12 -07:00
csigs eac4703376 Localization - Translated Strings (#6253) 2020-10-05 12:35:50 -07:00
csigsandDevDiv Build Lab - Dev14 ca4482d664 Localization - Translated Strings (#6243)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-10-02 10:51:25 -07:00
Sean McManus b31c42e629 Update IntelliSense localized strings. (#6220) 2020-10-01 16:28:18 -07:00
csigs 754dd9a440 Localization - Translated Strings (#6233) 2020-09-30 12:10:32 -07:00
Elaheh Rashedi 25dc96ac27 build clang-format binary for Windows32 instead of 64 (#6223)
* update fwlink

* updare integrity
2020-09-29 22:57:58 -07:00
Sean McManus 1a03dd2a1d Add runtime licenses (#6140)
* Add RuntimeLicenses
* Update version and fwlinks.
* Update gitignore.
2020-09-29 13:36:19 -07:00
csigsandDevDiv Build Lab - Dev14 2136b84aae Localization - Translated Strings (#6227)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-09-29 10:23:11 -07:00
Colen Garoutte-Carson 9c835e5370 Add logging/warnings when compile probing alters explicit user configuration details (#6180) 2020-09-28 17:26:34 -07:00
csigsandDevDiv Build Lab - Dev14 0a09372f61 Localization - Translated Strings (#6219)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-09-28 10:06:11 -07:00
Sean McManus af1ab619e6 Merge pull request #6187 from microsoft/bobbrow/mergeToMaster
Merge changes made in release branch to master
2020-09-25 16:07:14 -07:00
Colen Garoutte-Carson d07c90b6aa Merge branch 'master' into bobbrow/mergeToMaster 2020-09-24 14:03:19 -07:00
csigs 1b8f652d97 Localization - Translated Strings (#6155) 2020-09-24 14:02:59 -07:00
Elaheh Rashedi 7817a10b5f remove extra telemtery (#6206) 2020-09-24 12:59:21 -07:00
Michelle Matias 6eeff1ab02 Disable Linux test (#6203) 2020-09-23 17:22:05 -07:00
Colen Garoutte-Carson bc0770aa9b Revert "Add showWarning message and output channel"
This reverts commit d737c07a10.
2020-09-22 17:54:06 -07:00
Colen Garoutte-Carson d737c07a10 Add showWarning message and output channel 2020-09-22 17:32:40 -07:00
40e28c2a85 Task Provider Feature (#5659)
* adding standard std version to clang_format_style

* add new cppBuildTaskProvider

* add Sean's changes  to tasks

* draft

* draft 2

* draft 3 - working

* windows version

* fix cwd path

* fix cwd

* change header and source file set

* minor changes

* make new instance

* create new instance

* remove compilerPath input

* review changes

* solving the error due to space in file name

* showing the error message

* fix lint

* add set timeout and setinterval from timers

* Rename cppbuildTaskProvider.ts to cppBuildTaskProvider.ts

* fire the events with zero

* delete filewatcher

* localize strings

* change changelog.md

* changelog

* changelog

* change format

* wait dobuild

* use checkFileExists

* after test

* after test2

* add properties

* change the doBuild

* this.closeEmitter.fire(result);

* change doBuild

* very minor change

* label vs name resolved

* draft

* draft for Sean

* before cleaning the code

* Stable, Clean, Before API proposal

* adding details to the tasks menue

* add TODO

* remove extra ",remove description,merge from local

* remove task rename in this versoin

* remove TODOs

* merge the "default" stuff

* remove some parts of proposals

* fix linter errors

* add import * as which from 'which';

* clean up the code after version 1.0.0

* add new line

* adapt to the new Vs Code API

* linter error

* revert changelog

Co-authored-by: Elaheh Rashedi <[email protected]>
Co-authored-by: Sean McManus <[email protected]>
2020-09-22 12:52:10 -07:00
Bob Brown (DEVDIV) f3f151075b removing duplicate cleanup stage 2020-09-22 10:28:05 -07:00
Bob Brown (DEVDIV) 79d0b01722 Merge branch 'bobbrow/mergeToMaster' of https://github.com/Microsoft/vscode-cpptools into bobbrow/mergeToMaster 2020-09-22 10:25:24 -07:00
Bob Brown (DEVDIV) 8ad680b57b removing duplicate installation stage 2020-09-22 10:25:19 -07:00
Bob Brown 1822556dc2 Merge branch 'master' into bobbrow/mergeToMaster 2020-09-22 10:22:23 -07:00
Bob Brown (DEVDIV) f2ca7a2c03 update package.json 2020-09-22 10:20:27 -07:00
Sean McManusandColen Garoutte-Carson 0940fb709c Merge pull request #6177 from microsoft/1.0.1
* Fix issue with LSP process not getting shut down gracefully (#6141)
* Update version number and changelog
* Update changelog, fwlinks, and hashes.

Co-authored-by: Colen Garoutte-Carson <[email protected]>
Co-authored-by: Sean McManus <[email protected]>
2020-09-21 16:51:25 -07:00
Sean McManus 9d79f0ff2b Update changelog, fwlinks, and hashes. 2020-09-21 15:38:48 -07:00
Bob Brown (DEVDIV) c23d218403 Update version 2020-09-21 12:21:45 -07:00
Bob Brown (DEVDIV) 8dacea0cd5 Update changelog 2020-09-21 12:20:18 -07:00
Bob Brown (DEVDIV) 04e93a9bb4 update changelog 2020-09-16 15:55:32 -07:00
Bob Brown (DEVDIV) a17c8e6dd4 remove #6147 from the list of fixes 2020-09-16 15:27:10 -07:00
Bob Brown (DEVDIV) 4508c95dac one more changelog update 2020-09-16 13:30:15 -07:00
Bob Brown (DEVDIV) bcc45e5d60 Update version number and changelog 2020-09-16 13:28:29 -07:00
Colen Garoutte-Carson df83a38c61 Fix issue with LSP process not getting shut down gracefully (#6141) 2020-09-16 13:00:53 -07:00
csigs 348be98436 Localization - Translated Strings (#6146) 2020-09-15 14:37:24 -07:00
Colen Garoutte-Carson 927a0a8995 Fix casing of some loc strings (#6098) 2020-09-15 13:45:03 -07:00
Colen Garoutte-Carson 9f8a5ad797 Fix issue with LSP process not getting shut down gracefully (#6141) 2020-09-15 13:23:46 -07:00
Sean McManus 27b5faca11 Merge pull request #5998 from devabhishekpal/provider_5871
Refactored provider classes from client.ts to providers.ts
2020-09-14 18:07:08 -07:00
Sean McManus fc72913cb5 Merge branch 'master' into provider_5871 2020-09-14 14:44:58 -07:00
Sean McManus 857256b753 Update node-fetch. (#6119) 2020-09-14 14:35:29 -07:00
Sean McManus c2af2c9296 Fix jsonc handling for non-active c_cpp_properties.json. (#6133) 2020-09-14 14:15:02 -07:00
Sean McManus 9525fc702d Merge pull request #6131 from microsoft/master
Fix build and debug active file with no .vscode folder on Linux/Mac. …
2020-09-13 12:01:19 -07:00
Sean McManus 0820b5ef52 Fix build and debug active file with no .vscode folder on Linux/Mac. (#6130) 2020-09-13 12:00:14 -07:00
Sean McManus 58d071c917 Merge pull request #6124 from microsoft/master
Merge for 1.0.0 (2nd time)
2020-09-12 15:14:15 -07:00
Sean McManus 9650bb7d9f Fix bug with failed downloads not erroring out. (#6123) 2020-09-12 15:11:07 -07:00
Sean McManus 3c06384078 Update binary hashes. (#6122) 2020-09-12 14:56:25 -07:00
Sean McManus ec0f671ecf Merge pull request #6118 from microsoft/seanmcm/1_0_0_release
Merge for 1.0.0 release
2020-09-11 16:44:11 -07:00
Sean McManus fb3c9af085 Merge branch 'master' into seanmcm/1_0_0_release 2020-09-11 16:19:10 -07:00
Sean McManus 19f918d111 Update changelog for 1.0 and update aarch64 fwlinks (#6109)
* Update changelog for 1.0.
* Update aarch fwlinks.
2020-09-11 16:17:30 -07:00
Sean McManus c22ed1e843 Merge for 1.0.0. 2020-09-10 14:41:11 -07:00
Abhishek Pal 6aab5a14f7 Merge branch 'master' into provider_5871 2020-09-10 20:23:52 +05:30
Abhishek Pal c1a5f25b5b Update renameProvider.ts 2020-09-10 17:08:23 +05:30
Abhishek Pal be06726777 Update onTypeFormattingEditProvider.ts 2020-09-10 17:07:55 +05:30
Abhishek Pal 888d38632a Update documentSymbolProvider.ts 2020-09-10 17:07:30 +05:30
Abhishek Pal 2f35092acf Update documentFormattingEditProvider.ts 2020-09-10 17:07:01 +05:30
Abhishek Pal 75b4240b3e Update client.ts 2020-09-10 17:06:09 +05:30
Abhishek Pal b5ac4e8515 Update .eslintrc.js
Updated .eslintrc.js
2020-09-10 15:47:00 +05:30
Elaheh Rashedi 825ecc350d remove preview from extension (#6100)
* remove preview

* change second readme

* modify readme

* arm 32 bit
2020-09-09 19:49:38 -07:00
Sean McManus 81d0baa321 Update changelog for 0.30.0-insiders5. (#6099)
* Update changelog for 0.30.0-insiders5.
* Fix markup.
2020-09-09 15:25:48 -07:00
Sean McManus 99b198f281 Update serialize-javascript. (#6085) 2020-09-09 15:13:00 -07:00
Abhishek Pal 99b956c319 Update client.ts
Fixed linter errors
2020-09-10 00:37:43 +05:30
Abhishek Pal dd1ab75d13 Fixed eror on line 1360 2020-09-09 14:36:33 +05:30
Sean McManus 58e60ac36a Merge branch 'master' into provider_5871 2020-09-08 12:14:47 -07:00
Abhishek Pal e1596fe3a9 Updated client with current master and fixed extra spaces 2020-09-06 00:27:06 +05:30
Abhishek Pal 66a9890551 Revert "Undo previous commit and changing variables to public static"
This reverts commit d04aa1c4a5.
2020-09-05 23:13:10 +05:30
csigsandDevDiv Build Lab - Dev14 8ea26d6e62 Localization - Translated Strings (#6083)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-09-04 10:28:15 -07:00
Abhishek Pal d04aa1c4a5 Undo previous commit and changing variables to public static 2020-09-04 16:44:53 +05:30
Abhishek Pal 536a94ca3d Revert "Refactored the params into DefaultClient as static members"
This reverts commit ff24cdf33a.
2020-09-04 16:27:00 +05:30
csigsandDevDiv Build Lab - Dev14 3713694b47 Localization - Translated Strings (#6077)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-09-03 12:26:17 -07:00
Elaheh RashediandSean McManus a177759d3a Creating extension pack (#6051)
* initialize extension pack

* initial release

* CMake

* MIT license

* modify changelog

* modify readme

* version update

* new packages added

Co-authored-by: Sean McManus <[email protected]>
2020-09-03 10:38:04 -07:00
Elaheh Rashedi 6e60876af8 which.sync modified (#6073) 2020-09-02 16:49:08 -07:00
csigs c752e31cb4 Localization - Translated Strings (#6070) 2020-09-02 12:23:10 -07:00
Elaheh Rashedi 48d5fef90a bypass launch.json (#6072) 2020-09-02 11:20:18 -07:00
devabhishekpal ff24cdf33a Refactored the params into DefaultClient as static members 2020-09-02 14:16:39 +05:30
Colen Garoutte-Carson abde9a33b9 Split format requests into separate messages for telemetry (#6068) 2020-09-01 17:05:30 -07:00
Elaheh Rashedi e8bc0e8c42 create '.vscode' directory before creating 'tasks.json' (#6065)
* getRawTasksJson modify

* add lib

* create folders while creating a file

* fix linter errors

* remove details from this version

* getRawTasksJson modified

* revert getRawTasksJson
2020-09-01 15:57:22 -07:00
dan-shaw ca777ddf92 Adds a JSON parsing library for tasks.json (#5954)
* add json with comments parser for tasks.json
2020-09-01 12:52:44 -07:00
csigsandDevDiv Build Lab - Dev14 c90c130d05 Localization - Translated Strings (#6063)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-09-01 09:59:03 -07:00
Sean McManus bcb7cd5875 Update changelog for 0.30.0-insiders4. (#6059) 2020-08-31 17:57:50 -07:00
Colen Garoutte-Carson 35fa7f63a0 Plumbing for sending 'files.encoding' to native process (#6040) 2020-08-31 14:40:21 -07:00
Elaheh Rashedi 85936c3cf3 dont squiggel for resolved compilerpath (#6057) 2020-08-31 14:16:53 -07:00
Elaheh RashediandSean McManus 61360a8313 Improving the progress bar (#6050)
* add increment to progress bar

* remove localized string

* calculate the increment based on num of packages

* change increment function

* cleanup extra progress

* add typedef

Co-authored-by: Sean McManus <[email protected]>
2020-08-31 13:59:42 -07:00
csigsandDevDiv Build Lab - Dev14 6d29964cb3 Localization - Translated Strings (#6055)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-08-31 13:13:30 -07:00
Bob BrownandSean McManus bf67be3000 Fix a regression in resolveVariables (#6049)
Co-authored-by: Sean McManus <[email protected]>
2020-08-28 13:06:01 -07:00
csigs 462a8565ab Localization - Translated Strings (#6045) 2020-08-28 11:53:37 -07:00
Colen Garoutte-Carson ab5d4329f8 Switch to using asWebviewUri instead of vscode-resource (#6041) 2020-08-27 17:42:45 -07:00
Colen Garoutte-Carson e621e98595 Switch to using asWebviewUri instead of vscode-resource (#6041) 2020-08-27 17:42:00 -07:00
csigsandDevDiv Build Lab - Dev14 a84ab7e549 Localization - Translated Strings (#6038)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-08-27 10:13:38 -07:00
Abhishek Pal babafd20d0 Merge branch 'master' into provider_5871 2020-08-26 14:18:23 +05:30
Abhishek Pal d688979d4f Moved all providers to Providers folder and removed holder classes 2020-08-26 14:17:35 +05:30
Sean McManus a0b948057e Fix some linter errors. (#6026) 2020-08-25 16:08:43 -07:00
csigsandDevDiv Build Lab - Dev14 a08a9b6e11 Localization - Translated Strings (#6015)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-08-25 15:07:01 -07:00
Sean McManus 1f43948f92 Remove unintended loc. (#6023) 2020-08-25 14:06:21 -07:00
Abhishek Pal e8d91542a8 Added links to the C/C++ properties reference (#5991)
* Added links to the C/C++ properties reference
2020-08-25 13:36:27 -07:00
Abhishek Pal f9c1dec542 Deleted wrong commit 2020-08-25 22:53:23 +05:30
Abhishek Pal 834bfbc8eb Add localization title and changed sentence 2020-08-25 22:47:02 +05:30
Bob Brown 2cc1f62b0f Rename telemetry property that is being filtered (#6017) 2020-08-24 15:50:36 -07:00
Abhishek Pal 64cf9270ed Merge branch 'provider_5871' of https://github.com/devabhishekpal/vscode-cpptools into provider_5871 2020-08-22 16:46:58 +05:30
Abhishek Pal 02cc49b5ab Refixed spaces for linting 2020-08-22 16:46:37 +05:30
Abhishek Pal 742299309b Merge branch 'master' into provider_5871 2020-08-22 16:42:35 +05:30
Abhishek Pal 42664952a1 Fixed linting issues 2020-08-22 16:40:21 +05:30
Abhishek Pal 5aa64f156d Created individual files for providers 2020-08-22 16:16:43 +05:30
Michelle Matias 4e4828694a Add 3 fixes to changelog for 0.30.0-insiders3 (#6005) 2020-08-21 14:56:48 -07:00
Elaheh Rashedi 4ab525fd51 Adding the defaultFolder to the configuration.includePath (#5989)
* update description
* change UI description (match with Docs description)
2020-08-21 12:29:15 -07:00
Abhishek Pal d390344167 Merge branch 'provider_5871' of https://github.com/devabhishekpal/vscode-cpptools into provider_5871 2020-08-21 23:41:19 +05:30
Abhishek Pal 8e2b2e67b7 Added comment lines for azure pipeline error 2020-08-21 23:40:46 +05:30
Sean McManus ea26e533c0 Merge branch 'master' into provider_5871 2020-08-21 10:08:05 -07:00
csigsandDevDiv Build Lab - Dev14 1852c504bf Localization - Translated Strings (#6002)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-08-21 10:04:35 -07:00
Abhishek Pal 18b7f8d8e4 Fixed lint errors in Azure pipeline 2020-08-21 16:16:55 +05:30
Abhishek Pal fa1b16293e Refactored provider classes from client.ts 2020-08-21 16:00:53 +05:30
Colen Garoutte-Carson 5f7e208926 Fix issue with clang-format on-type failing at end of file (#5995) 2020-08-20 19:37:44 -07:00
Colen Garoutte-Carson 80f41b7c06 Fix issue with clang-format on-type (#5994) 2020-08-20 18:24:15 -07:00
Sean McManus 3e8df13031 Update changelog for 0.30.0-insiders3 (#5992)
* Update changelog for 0.30.0-insiders3
* Update TPN.
2020-08-20 17:13:21 -07:00
Michelle Matias 5743471b68 Generate and validate integrity of downloaded packages (#5978) 2020-08-20 14:29:59 -07:00
Tarik Brown 61c22d7b22 EditorConfig Support (#5932) 2020-08-20 13:27:37 -07:00
Sean McManus f82c1ed901 Add new localized IntelliSense strings. (#5983) 2020-08-19 15:22:24 -07:00
Elaheh Rashedi 2e10951389 change the default to 1.44.0 (#5987) 2020-08-19 12:00:06 -07:00
Elaheh Rashedi 81b6d710f6 insiders upgrade/downgrade after we recall an insider release (#5959)
change GetTargetBuild
Add more tests
2020-08-18 12:12:52 -07:00
csigsandDevDiv Build Lab - Dev14 c87bd6576d Localization - Translated Strings (#5979)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-08-18 11:11:56 -07:00
Elaheh Rashedi ca72441372 Improve the description of the browse.path setting (#5974)
* change definition of browse.path
2020-08-17 12:58:07 -07:00
Elaheh Rashedi 8312941547 Check the insiders version to be compatible with vscode (#5839)
Check the insiders version to be compatible with vscode
2020-08-17 09:30:10 -07:00
Colen Garoutte-Carson 837cd84d8c Resolve compiler filename if in PATH (#5965) 2020-08-14 16:22:51 -07:00
csigs 86dfc01518 Localization - Translated Strings (#5961) 2020-08-13 11:58:08 -07:00
Elaheh Rashedi bcbabb9ff7 don't downgrade pre-release (#5946)
* no downgrade on pre-release in default channel
2020-08-12 14:42:42 -07:00
Sean McManus 5d97af0fc1 Updates for aarch64 (#5955) 2020-08-12 10:32:12 -07:00
csigsandDevDiv Build Lab - Dev14 de6bc2fae2 Localization - Translated Strings (#5957)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-08-12 10:18:52 -07:00
Elaheh Rashedi 8246ad066f add telemetry for missing files (#5944) 2020-08-11 16:46:40 -07:00
Sean McManus b063b69a3a Update changelog for 0.30.0-insiders2 (#5956)
* Update changelog for 0.30.0-insiders2
2020-08-11 16:42:45 -07:00
csigs 96433e00a8 Localization - Translated Strings (#5952) 2020-08-11 12:00:30 -07:00
Colen Garoutte-Carson 02f0349010 Correct vcFormat default values (#5949) 2020-08-11 11:41:11 -07:00
Colen Garoutte-Carson ebd7fb169e Revert descriptions to prior to adding clangFormat -> vcFormat fallback (#5948) 2020-08-10 17:46:50 -07:00
Bob BrownandSean McManus fff393310f add telemetry for missing format style (#5933)
Co-authored-by: Sean McManus <[email protected]>
2020-08-10 15:33:36 -07:00
csigs 6eb189944a Localization - Translated Strings (#5943) 2020-08-10 12:39:21 -07:00
csigs a4dfac77a4 Localization - Translated Strings (#5930) 2020-08-07 13:05:36 -07:00
csigs 63cd557eac Localization - Translated Strings (#5916) 2020-08-06 11:54:18 -07:00
Sean McManus cd04d2a51c Set jsonc for c_cpp_properties.json. (#5911)
Fix c_cpp_properties.json not opening as JSON with comments. Follow up to #5885
Fix the configuration UI disappearing when selection moves to the C/C++ or Log Diagnostics window, mentioned at #5822 .
Fix an unreported bug where the configuration UI wouldn't appear for non-cpp files that are active on startup (until the selection changed).
Add more more C/C++ related files to ShowConfigurations.
2020-08-05 18:02:22 -07:00
Colen Garoutte-Carson a051c15bb0 Add localized string label for compiler probe command (#5909) 2020-08-05 17:06:55 -07:00
csigs 85377fa4c2 Localization - Translated Strings (#5900) 2020-08-05 10:38:18 -07:00
Sean McManus 19f14d1516 Update changelog with Colen's latest fixes. (#5895) 2020-08-04 16:25:29 -07:00
csigsandDevDiv Build Lab - Dev14 2912ce5223 Localization - Translated Strings (#5892)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-08-04 11:26:52 -07:00
Colen Garoutte-Carson 3017c5e83f Allow comments in c_cpp_properties.json (use JSONC) (#5888) 2020-08-03 19:02:11 -07:00
Shogan Aversa-Druesne 5dce5534ff Update settings.html (#5876)
Fix UI:  gnu17 -> gnu18.
2020-08-03 15:50:25 -07:00
csigsandDevDiv Build Lab - Dev14 6a4ba9638d Localization - Translated Strings (#5878)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-08-03 15:49:02 -07:00
Sean McManus 10859b38af Fix formatting settings. (#5887) 2020-08-03 15:48:38 -07:00
Bob Brown 2a0cfd26a9 fix a typo in the formatting settings descriptions (#5886) 2020-08-03 15:48:19 -07:00
Tarik Brown a44c5e4f2c Merge pull request #5872 from microsoft/dev/t-tabro/tsbug
Dev/t tabro/tsbug
2020-07-30 16:51:58 -07:00
Bob Brown c31de3cb1a Merge branch 'master' into dev/t-tabro/tsbug 2020-07-30 15:23:03 -07:00
Bob Brown (DEVDIV) d7a9e077ff PR comments 2020-07-30 15:20:36 -07:00
Tarik Brown ff2356e96d Fix Typo 2020-07-30 14:39:56 -07:00
9baa974219 Localization - Translated Strings (#5863)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
Co-authored-by: Sean McManus <[email protected]>
2020-07-30 14:22:48 -07:00
Bob Brown b9392b4ab7 Add enum descriptions and clarify a few formatting descriptions (#5868)
* Add enum descriptions and clarify a few formatting descriptions
2020-07-30 14:06:08 -07:00
Tarik Brown 292aa0e647 Merge branch 'master' of https://github.com/Microsoft/vscode-cpptools 2020-07-30 13:32:28 -07:00
Colen Garoutte-Carson 236ea2af7a Fix another issue with resolving compilerPath when compileCommands are used. (#5855) 2020-07-29 17:38:30 -07:00
Sean McManus ddb62591c2 Update changelog. (#5860) 2020-07-29 17:29:30 -07:00
dependabot[bot] 24f7a15fa0 Bump elliptic from 6.5.2 to 6.5.3 in /Extension (#5859)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-29 16:34:58 -07:00
Elaheh Rashedi 9903bc708d Extension installation/download failures (#5823)
Authored-by: Elaheh Rashedi <[email protected]>
bug fix: https://github.com/microsoft/vscode-cpptools/issues/4829
- Check for the core binary files in the extension folder and show this warning message if any of the binaries are missing:
- Check for the important JSON files in the extension folder and show this error message if any of the binaries are missing (the message is shown if the user has installed a VSIX that doesn't match their OS).
2020-07-29 16:11:43 -07:00
Colen Garoutte-Carson 42e41bb122 Use detected default compiler (#5838) 2020-07-28 19:02:06 -07:00
Tarik Brown a83b58b090 Merge pull request #5841 from microsoft/dev/t-tabro/bugfixes
Formatting Bug Fixes
2020-07-28 13:00:32 -07:00
Tarik Brown 5ffc2e05c1 Fix Lint Issue 2020-07-28 09:04:43 -07:00
Tarik Brown 9649aa793b Merge branch 'dev/t-tabro/bugfixes' of https://github.com/Microsoft/vscode-cpptools into dev/t-tabro/bugfixes 2020-07-28 08:54:49 -07:00
Tarik Brown 67661a188b Fix Issues 2020-07-28 08:54:43 -07:00
Colen Garoutte-Carson 9c4f93050e Merge branch 'master' into dev/t-tabro/bugfixes 2020-07-27 16:28:12 -07:00
Tarik Brown 5994640826 Push Branch 2020-07-27 15:04:30 -07:00
Tarik Brown 3121cd9ca6 Fix Changes 2020-07-27 15:01:20 -07:00
Tarik Brown f383145b11 Fix PR Changes 2020-07-27 14:58:49 -07:00
Tarik Brown 6f288bb086 TS 2020-07-27 14:41:30 -07:00
Tarik Brown 94756538fd Changes 2020-07-27 12:56:36 -07:00
Tarik Brown 12f04343d5 Merge pull request #5785 from microsoft/dev/t-tabro/formatting
Formatting Feature - First Pass
2020-07-24 08:53:53 -07:00
Colen Garoutte-Carson a469383507 Merge branch 'master' into dev/t-tabro/formatting 2020-07-23 19:21:43 -07:00
Colen Garoutte-Carson 7d3559127b Make commentContinuationPatterns, enhancedColorization and codeFolding window scope (#5830) 2020-07-23 18:20:27 -07:00
Tarik Brown 15fe2279c7 Fix issues 2020-07-23 12:15:42 -07:00
Colen Garoutte-Carson 3a1e751f22 Remove file from semantic token cached when closed (#5824) 2020-07-22 21:00:25 -07:00
Sean McManus 4899e8936b Use GitHub created MIT License. (#5787) 2020-07-22 18:04:27 -07:00
Tarik Brown e6d146e4b8 Remove tabSize and insertSpaces 2020-07-22 14:36:50 -07:00
Tarik Brown b99c86b288 Fix Booleans 2020-07-22 14:32:42 -07:00
Tarik Brown f013b1fdb8 Merge branch 'master' of https://github.com/Microsoft/vscode-cpptools into dev/t-tabro/formatting 2020-07-22 14:26:23 -07:00
Tarik Brown 9584ce76ac rever * 2020-07-22 14:25:26 -07:00
Tarik Brown 3a3e4a9554 Fix formatting 2020-07-22 14:20:03 -07:00
Tarik Brown 955ea7cc9b Merge branch 'dev/t-tabro/formatting' of https://github.com/Microsoft/vscode-cpptools into dev/t-tabro/formatting 2020-07-22 14:18:25 -07:00
Tarik Brown d1a1fe2f41 Fix PR 2020-07-22 14:18:19 -07:00
Michelle Matias 25cc0cdfc6 Update quickInfo test (#5816) 2020-07-22 13:05:34 -07:00
Colen Garoutte-Carson e55adab7f9 Fix semantic tokens in multiroot (#5814) 2020-07-21 15:42:59 -07:00
Sean McManus ac0920a52b Merge branch 'master' into dev/t-tabro/formatting 2020-07-21 14:16:34 -07:00
Tarik Brown e7e99e7da8 Adresss PR 2020-07-21 13:13:47 -07:00
Sean McManus ff7baa5135 Update loc. (#5813) 2020-07-21 13:07:09 -07:00
Sean McManus db13ca2680 Changes for ARM support (#5810)
* Changes to enable ARM.
* Update fwlinks.
2020-07-21 12:35:35 -07:00
dependabot[bot] 6bd63798d6 Bump lodash from 4.17.15 to 4.17.19 in /Extension (#5793)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-16 15:18:25 -07:00
Sean McManus 287ef10bf2 Update fwlinks and changelog. (#5792)
* Update fwlinks and changelog.
2020-07-16 15:03:07 -07:00
Sean McManus a6f012a251 Merge pull request #5789 from microsoft/seanmcm/0_29_0_release
0_29_0 release
2020-07-15 17:29:58 -07:00
Sean McManus 7cfe3606ff Merge. 2020-07-15 15:54:09 -07:00
Elaheh Rashedi 1192d5b38e changelog Version 0.29.0: July 15, 2020 (#5788)
* changelog Version 0.29.0: July 15, 2020
2020-07-15 15:45:04 -07:00
Sean McManus 8f2016e8ee Change GitHub repo license from .txt to .md. (#5786) 2020-07-15 12:55:05 -07:00
Tarik Brown 0828a20096 Formatting Feature - TypeScript First Pass 2020-07-15 10:33:46 -07:00
Tarik Brown 4e34f2dbe4 Formatting Feature - TypeScript First Pass 2020-07-15 10:32:48 -07:00
Colen Garoutte-Carson faa6d9e28e Add missing semantic token old scope mappings (#5771) 2020-07-13 13:02:23 -07:00
Colen Garoutte-Carson e17ff5e93e Ensure semantic tokens are re-requested if changed without the file having changed (#5755) 2020-07-09 17:28:19 -07:00
Bob Brown 471f9b3701 Fix settings telemetry to handle more deeply nested settings (#5749) 2020-07-08 13:00:31 -07:00
Colen Garoutte-Carson 196510aa19 Update Changelog. Format package.json (#5743) 2020-07-07 19:16:55 -07:00
Sean McManus af8ea7c0a3 Add configuration provider input info to log diagnostics (#5719)
* Add custom config logging.
2020-07-07 16:23:00 -07:00
Michelle Matias ed15700734 Add settings to optionally simplify structured comments (Doxygen) (#5730) 2020-07-07 15:04:28 -07:00
csigsandDevDiv Build Lab - Dev14 977f1f6342 Localization - Translated Strings (#5725)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-07-07 10:26:20 -07:00
Elaheh Rashedi 45a9907832 add ${default} to the end of includePath (#5413) 2020-07-06 13:12:58 -07:00
Sean McManus a9d86c8f62 Merge pull request #5705 from microsoft/seanmcm/screenSizeCherryPick
Screen size cherry pick
2020-07-02 11:25:37 -07:00
Sean McManus 7673fd0ec4 Merge branch 'master' into seanmcm/screenSizeCherryPick 2020-07-02 11:14:38 -07:00
csigsandDevDiv Build Lab - Dev14 02a7c5c45a Localization - Translated Strings (#5716)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-07-02 10:51:43 -07:00
Colen Garoutte-Carson f7165bae4f Switch to Semantic Tokens API (#5401) 2020-07-01 14:48:26 -07:00
Sean McManus d87cc30854 Screen size follow up. 2020-06-26 11:00:10 -07:00
nukoyluoglu 32b997d3d8 ignore 'screen size is bogus' error; fixes microsoft/vscode/issues/100563 (and microsoft/vscode/issues/75932) (#5669)
* ignore 'screen size is bogus' error; fixes microsoft/vscode#75932; imitiates similar fix for a different extension microsoft/vscode-node-debug/commit/5298920
2020-06-26 10:56:30 -07:00
Sean McManus 832165fc9f Fix compileCommand updating. (#5688) 2020-06-25 14:33:53 -07:00
Bob Brown 2efdb847a9 Generate a new telemetry key for comment continuation patterns (#5691) 2020-06-24 17:13:26 -07:00
Sean McManus d8cdeee035 Update changelog for 0.29.0-insiders. (#5684)
* Update changelog for 0.29.0-insiders.
2020-06-23 18:50:54 -07:00
nukoyluoglu 9db05b6945 ignore 'screen size is bogus' error; fixes microsoft/vscode/issues/100563 (and microsoft/vscode/issues/75932) (#5669)
* ignore 'screen size is bogus' error; fixes microsoft/vscode#75932; imitiates similar fix for a different extension microsoft/vscode-node-debug/commit/5298920
2020-06-23 14:59:29 -07:00
Sean McManus d80e04ec66 updateChannel fixes. (#5465)
Fixes:
- It doesn't check for a downgrade to non-insiders on startup, only when the setting changes.
- There was a bug with the timer code that checks for a new insiders every hour.
- It wasn't bypassing the autoUpdate check when the user manually switches the updateChannel.
2020-06-22 16:31:25 -07:00
Michelle Matias 929d548419 Doxygen strings for localization (#5658) 2020-06-22 13:27:46 -07:00
Michelle Matias 64b949583d Update vscode-cpptools to 4.0.1 (#5623) 2020-06-22 13:10:09 -07:00
Andrew Wang de4a6babef [cppvsdbg] Add logging ThreadExit and ProcessExit (#5652)
* [cppvsdbg] Add logging ThreadExit and ProcessExit

This PR adds two log flags for ThreadExit and ProcessExit events.
This will remove the "The thread 10564 has exited with code 0 (0x0)."
and "The program '[24104] ConsoleApplication1.exe' has exited with code
0 (0x0)." messages.
2020-06-18 17:55:30 -07:00
Colen Garoutte-Carson 37dfc2dda4 Additional localized strings for hover and auto-complete (#5651) 2020-06-17 14:19:32 -07:00
Andrew WangandSean McManus b7cd0d9d7d Print launch.json to C/C++ Output Log (#5644)
* Print launch.json to C/C++ Output Log

This PR adds a check in resolveDebugConfiguration so that if a user adds
logging.engineLogging = true in the launch.json, we will output the
resovled json in the C/C++ Output.

* Use GitHub bug notation and add title for log

Co-authored-by: Sean McManus <[email protected]>
2020-06-17 11:17:57 -07:00
Sean McManus 7821797aae Merge pull request #5645 from microsoft/seanmcm/customConfigurationVariableCherryPick
custom configuration variable cherry pick
2020-06-15 15:43:48 -07:00
Sean McManus 3a5a00bab4 Edit customConfigurationVariables description. 2020-06-15 15:02:24 -07:00
Sean McManus a6df7eeaba Fix linter errors. 2020-06-15 14:52:50 -07:00
bugengine 1942a701bf Added system to store and query properties from the active C/C++ configuration (#5453)
* Added system to store and query properties from the active C/C++ configuration
Co-authored-by: yngwe@farnsworth <yngwe@farnsworth>
Co-authored-by: yngwe@bender <yngwe@bender>
2020-06-15 14:50:38 -07:00
Sean McManus 1f1b2b0236 Add prefer-const to eslint. Fix some other lint errors. (#5634) 2020-06-15 14:44:55 -07:00
bugengine eedadd9ba0 Added system to store and query properties from the active C/C++ configuration (#5453)
* Added system to store and query properties from the active C/C++ configuration
Co-authored-by: yngwe@farnsworth <yngwe@farnsworth>
Co-authored-by: yngwe@bender <yngwe@bender>
2020-06-15 14:22:32 -07:00
Andrew Wang 0dea2e48c2 Support Debug Welcome Panel (#5503)
This PR enables the Debug Welcome Panel for c/cpp languages.
2020-06-15 13:46:20 -07:00
Andrew Wang f3c44319b3 Add quoteArgs to schema (#5639)
With https://github.com/microsoft/MIEngine/pull/1006, the debug adapter
supports 'quoteArgs' in pipeTransports. If the user wishes to handle the
quoting for pipeTransport arguments, they should set this field to
'false'. It currently defaults to true.

For example, if quoteArgs is 'true', the pipe command will result in
"bash.exe -c '/usr/bin/gdb --interpreter=mi'" If false,
it will result to "wsl.exe -c /usr/bin/gdb --interpreter=mi"
2020-06-15 13:31:42 -07:00
Sean McManus 86a81392de Fix files.associations updating. (#5626)
Fix for #5618
Scenario 1: Manually change files.associations. Bug: We weren't sending files.associations along with the settings change.
Scenario 2: Open a .C file. Bug: The language associations need to be changed before sending the didOpen.
2020-06-10 10:20:03 -07:00
Michelle Matias b33117997a Update cpptools-api to 4.0.1 in release branch for 0.28.3 (#5624) 2020-06-08 15:54:31 -07:00
Sean McManus 34457f222c Update strings and fwlinks (#5614)
* Update strings.
* Update fwlinks.
2020-06-05 18:20:38 -07:00
Sean McManus e3db8a5bf4 Fix cwd on Windows. (#5605) 2020-06-04 13:00:47 -07:00
Sean McManus 734ce74be2 Merge pull request #5593 from microsoft/seanmcm/0_28_2_release
0_28_2 release
2020-06-02 12:17:27 -07:00
Sean McManus 5262a75d87 Merge. 2020-06-01 15:56:51 -07:00
Sean McManus b7488e61b0 0_28_2 changelog (#5592)
* Update changelog for 0.28.2.
2020-06-01 15:55:09 -07:00
Sean McManus 5210e23479 Fix task bugs. (#5585)
Fixes https://github.com/microsoft/vscode-docs/issues/3724, https://github.com/microsoft/vscode-cpptools/issues/5561, https://github.com/microsoft/vscode-cpptools/issues/3295, https://github.com/microsoft/vscode-cpptools/issues/4761 .

Problems are:
1. The task source was incorrectly changed to "shell" (regression). Only the "type" registered task type needed to be shell: https://github.com/microsoft/vscode-docs/issues/3724 . 
2. Using Configure Default Build Task would create a task with "shell: " or "C/C++: " in the name, while F5 would not. The adding of the source to the name is caused by VS. I had added a bug report at https://github.com/microsoft/vscode/issues/98838, but I just closed it since we can work around the issue via always adding the source to the name.
3. Added the problemMatcher and group fields to the tasks created from F5 (and Build and Debug Active File): https://github.com/microsoft/vscode-cpptools/issues/3295 .
4. Change the cwd to be ${workspaceFolder} instead of "/usr/bin": https://github.com/microsoft/vscode-cpptools/issues/4761 . The reason we did this originally was because Cygwin would fail, but that can be worked around via either adding Cygwin's bin folder the path or changing the cwd for those cases (but most users won't want cwd to be the path to the compiler, and Cygwin usage is low compared to other scenarios).
2020-06-01 13:40:36 -07:00
Krishna Ersson 64ecdb78ad Join string arrays in env with the correct delimiter based on platform (#5510) 2020-05-29 15:16:01 -07:00
csigsandDevDiv Build Lab - Dev14 8c3e10cb5e Localization - Translated Strings (#5582)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-05-29 10:27:04 -07:00
csigsandDevDiv Build Lab - Dev14 2737f46885 Localization - Translated Strings (#5576)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-05-28 10:57:08 -07:00
Colen Garoutte-Carson dfca58c539 Handle quoted spaces when stripping args from compilerPath (#5513) 2020-05-21 12:09:24 -07:00
Sean McManus 214a22911d Update changelog. (#5539) 2020-05-20 12:59:54 -07:00
Sean McManus c8a36e091e Merge pull request #5530 from microsoft/seanmcm/0_28_1_release
0_28_1 release
2020-05-19 17:49:21 -07:00
Sean McManus 6c95236356 Merge. 2020-05-19 17:26:27 -07:00
Sean McManus 8a2e6738eb Update changelog, fwlinks, version. (#5529)
* Update changelog, fwlinks, version.
2020-05-19 17:22:48 -07:00
csigsandDevDiv Build Lab - Dev14 d036a413c5 Localization - Translated Strings (#5520)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-05-18 10:45:22 -07:00
csigs d2f9113397 Localization - Translated Strings (#5495) 2020-05-14 12:37:11 -07:00
csigsandDevDiv Build Lab - Dev14 881836c0e8 Localization - Translated Strings (#5482)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-05-13 10:42:49 -07:00
Sean McManus 6bdf5f2495 Merge pull request #5475 from microsoft/seanmcm/0_28_0_release2
0_28_0_release2
2020-05-12 13:57:01 -07:00
Sean McManus 9b559d0a18 Merge. 2020-05-12 13:48:23 -07:00
csigsandDevDiv Build Lab - Dev14 25022e93d3 Localization - Translated Strings (#5472)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-05-12 13:35:26 -07:00
Bob Brown 17ddec484a Merge pull request #5466 from microsoft/bobbrow/downgradeFix
Fix a bug with downgrading
2020-05-11 20:29:46 -07:00
Bob Brown (DEVDIV) a4535a9feb Fix a bug with downgrading 2020-05-11 17:32:10 -07:00
csigsandDevDiv Build Lab - Dev14 7b2eb67be9 Localization - Translated Strings (#5459)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-05-11 09:26:54 -07:00
Sean McManus 1fbbd6be51 Updates for 0.28.0. (#5446)
* Updates for 0.28.0.
* Update string.
* Update TPN.
2020-05-08 20:43:18 -07:00
Sean McManus 7ab06da098 Fix online vsix error message. (#5443) 2020-05-08 17:08:15 -07:00
Sean McManus c71c100efb Merge pull request #5442 from microsoft/seanmcm/0_28_0_shell
Change C/C++ taskSourceStr to shell.
Fixes https://github.com/microsoft/vscode-cpptools/issues/5388
2020-05-08 14:48:18 -07:00
Sean McManus 1d4371268c Update change. Change min Insiders version back to 1.42.1. 2020-05-08 14:40:51 -07:00
Sean McManus 66a62b36a7 Update changelog. 2020-05-08 14:34:02 -07:00
Sean McManus c74908f4ae Change C/C++ taskSourceStr to shell. 2020-05-08 13:13:14 -07:00
csigsandDevDiv Build Lab - Dev14 fde1427e44 Localization - Translated Strings (#5440)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-05-08 10:21:15 -07:00
Sean McManus 255ecac866 Merge pull request #5438 from microsoft/seanmcm/0_28_0_release
Merge for 0_28_0 release
2020-05-07 19:53:56 -07:00
Sean McManus f97729a8cb Merge. 2020-05-07 19:36:43 -07:00
Sean McManus d6a9927435 Merge pull request #5436 from microsoft/seanmcm/0_27_1_cherryPick
Cherry pick "Disable Insiders updates for unsupported cases."
Other minor changes to.
2020-05-07 19:32:18 -07:00
Sean McManus 39af7295d5 Upgrade yargs-parser. 2020-05-07 19:23:18 -07:00
Sean McManus 7906500259 Fix bad merge. 2020-05-07 19:09:28 -07:00
Sean McManus a62cb72ca6 Merge branch 'master' into seanmcm/0_27_1_cherryPick 2020-05-07 19:02:05 -07:00
Sean McManus 48f90bd944 Changelog for 0.28.0. (#5437) 2020-05-07 19:01:47 -07:00
Sean McManus 61fca7feeb Change insider requirement to 1.44. 2020-05-07 18:59:21 -07:00
Sean McManus af92309090 Disable Insiders updates for unsupported cases. (#5371)
* Disable Insiders updates for unsupported cases.
2020-05-07 18:35:39 -07:00
Sean McManus c295ad8a64 Merge. 2020-05-07 18:34:21 -07:00
Michelle Matias 55aaeccc36 Delete temporary VSIX created during installation (#5422) 2020-05-07 17:39:55 -07:00
Colen Garoutte-Carson 9e3eecc9af Add setting to enable/disable code folding provider (#5435) 2020-05-07 17:28:47 -07:00
5fe62db314 add new error message for Custom config provider extension users (#5406)
* add new error message

* add error to the end of the list

* add new error message with no squiggles

* adding more info to the error message

Co-authored-by: Elaheh Rashedi <[email protected]>
Co-authored-by: Sean McManus <[email protected]>
Co-authored-by: Bob Brown <[email protected]>
2020-05-07 15:26:41 -07:00
Bob Brown 40ac9fd074 Merge pull request #5399 from microsoft/elrashed/4121
Change C_Cpp.clang_format_path to be scope machine-overridable
2020-05-07 14:12:55 -07:00
csigsandDevDiv Build Lab - Dev14 8168a12737 Localization - Translated Strings (#5432)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-05-07 10:35:10 -07:00
Colen Garoutte-Carson ef120e8313 Add telemetry event for main process crashes (#5425) 2020-05-06 17:46:39 -07:00
Sean McManus fd200daff1 Fix Find All Refs status. (#5420) 2020-05-06 17:31:07 -07:00
Michelle Matias 552c86c98b Add ARM IntelliSenseMode options to default settings (#5423) 2020-05-06 17:02:12 -07:00
csigsandDevDiv Build Lab - Dev14 9b2c34b7b9 Localization - Translated Strings (#5419)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-05-06 14:05:50 -07:00
Colen Garoutte-Carson bc5002041c Default registration of callbacks until settings have been processed (#5412) 2020-05-05 13:18:00 -07:00
csigs 5767a5e19d Localization - Translated Strings (#5407) 2020-05-04 12:47:52 -07:00
Elaheh Rashedi dbc0d90158 adding clang-format-style and fallback-style 2020-05-01 16:39:05 -07:00
Elaheh Rashedi 4ce4631167 machine_overridable 2020-05-01 16:04:21 -07:00
Elaheh Rashedi fc57be8d9d Change C_Cpp.clang_format_path machine-overridable 2020-05-01 12:27:05 -07:00
Sean McManus 8292868a86 0.28.0-insiders2 changelog. (#5394) 2020-04-30 18:40:20 -07:00
Sean McManus 1b38713e30 Fix "" compilerPath. (#5393) 2020-04-30 17:34:14 -07:00
Sean McManus b31e464d95 String update. (#5390) 2020-04-30 14:02:52 -07:00
csigsandDevDiv Build Lab - Dev14 ba4825c00e Localization - Translated Strings (#5387)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-04-30 10:34:50 -07:00
Michelle Matias 50a82baaff Add GNU standards and C18 standard for querying compiler (#5321) 2020-04-29 13:10:22 -07:00
csigsandDevDiv Build Lab - Dev14 53970a6351 Localization - Translated Strings (#5378)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-04-29 11:23:40 -07:00
Sean McManus a88ca881ad Disable Insiders updates for unsupported cases. (#5371)
* Disable Insiders updates for unsupported cases.
2020-04-28 14:41:01 -07:00
4216aa4605 check offline/insiders VSIX (#5341)
* check offline/insiders VSIX

* draft

* add offline url, modify warning message

* check offline/insiders VSIX

* draft

* add offline url, modify warning message

* modify warning message

* fix reviewers comments

* changing the approach to determine the platform

* fixing the integration test

* testing

Co-authored-by: Elaheh Rashedi <[email protected]>
Co-authored-by: Bob Brown <[email protected]>
2020-04-28 13:07:58 -07:00
Sean McManus 118bed15b6 Attempt to fix c_cpp_properties resetting. (#5368) 2020-04-28 12:40:35 -07:00
csigsandDevDiv Build Lab - Dev14 c9f46cc19f Localization - Translated Strings (#5373)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-04-28 10:48:42 -07:00
Michelle Matias 3efc997fcc valid cl/clang-cl and msvc intellisensemode 2020-04-27 16:43:17 -07:00
Sean McManus 6b0ab5ef37 Add changelog. (#5369) 2020-04-27 14:09:00 -07:00
Sean McManus 3b1284196a Update changelog for 0.28.0-insiders (#5359)
* Update changelog for 0.28.0-insiders
2020-04-24 16:43:56 -07:00
Sean McManus 58c50dc38b Remove some 32-bit Linux stuff. (#5357) 2020-04-24 13:31:19 -07:00
Sean McManus 4980ff732a Update for 3 assets (no more 32-bit Linux) (#5350) 2020-04-23 16:44:59 -07:00
Sean McManus abc19f357c Fix onFileSystem activation. (#5355) 2020-04-23 16:33:41 -07:00
Colen Garoutte-Carson c6017ef418 Code Folding (#5307) 2020-04-22 21:39:38 -07:00
Michelle Matias 820a82293c Update readme: add GCC Linux tutorial and deprecate Linux 32bit (#5348) 2020-04-22 18:31:25 -07:00
ddbf7a3dd7 insiders update/downgrade improvements (#5309)
* add test, no warning yet

* check for the assets, add more test

* addd test for Default channel

* fix spelling srrors

* update Default chanel tests

Co-authored-by: Elaheh Rashedi <[email protected]>
Co-authored-by: Sean McManus <[email protected]>
2020-04-21 13:56:43 -07:00
csigsandDevDiv Build Lab - Dev14 c5946e2f08 Localization - Translated Strings (#5339)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-04-21 10:26:53 -07:00
Pierson Lee eb9da46a83 Adding the arm/arm64 packages for mono runtime (#5064)
* Adding the arm/arm64 packages for mono runtime

Adding the arm/arm64 packages for the mono runtime. This is to enable
remote-ssh extension debugging.

* Undo activate change

* Fix lint error

* Remove vsce dependency
2020-04-20 17:11:22 -07:00
Sean McManus 0d0e0042de Fix duplicate config squiggles. (#5323) 2020-04-20 11:35:38 -07:00
csigsandDevDiv Build Lab - Dev14 7a0d5feefc Localization - Translated Strings (#5330)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-04-20 10:36:30 -07:00
Sean McManus 2a8a60b9ad Fix path not a directory in "env" (#5320)
* Remove path is not a directory squiggle for env.
2020-04-17 14:57:09 -07:00
csigsandDevDiv Build Lab - Dev14 c5463c6c20 Localization - Translated Strings (#5317)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-04-17 11:18:27 -07:00
Sean McManus 26911f91b4 Fix cpptools restarting. (#5305)
* Fix cpptools restarting.
2020-04-16 20:44:20 -07:00
csigsandDevDiv Build Lab - Dev14 418e1fc177 Localization - Translated Strings (#5312)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-04-16 10:58:41 -07:00
csigsandDevDiv Build Lab - Dev14 0b4a761875 Localization - Translated Strings (#5300)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-04-15 10:44:10 -07:00
csigsandDevDiv Build Lab - Dev14 fdfc1b7ca6 Localization - Translated Strings (#5234)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-04-10 17:41:45 -07:00
Michelle Matias 4c7ddbcf62 Update IntelliSense Features E2E tests (#5281) 2020-04-10 15:46:35 -07:00
Sean McManus 07bb7dd411 Remove workaround for v3 providers. (#5263)
* Remove workaround for v3 providers.
2020-04-09 19:46:33 -07:00
Elaheh Rashedi 38d49bf23a modify nativeString.json (#5260)
bugfix: https://github.com/microsoft/vscode-cpptools/issues/5160
2020-04-07 13:04:33 -07:00
Michelle Matias a037a70449 Add ARM IntelliSenseModes (#5250) 2020-04-06 17:35:48 -07:00
Sean McManus c268e8a2a7 Fix test linter issues. (#5252)
* Fix test linter issues.
* Add .eslintignore.
2020-04-06 15:36:42 -07:00
Sean McManus e420f54746 Update mocha/diff. (#5251) 2020-04-06 13:06:36 -07:00
Sean McManus ac2398d987 Use autoDetect problemMatcher. (#3916) 2020-04-03 12:15:13 -07:00
Colen Garoutte-Carson 82d462fef7 Update engine version to match vscode/types (#5249) 2020-04-03 10:43:23 -07:00
Colen Garoutte-Carson 289562e442 Remove Rename UI in favor of new WorkspaceEdit Preview API (#5133) 2020-04-01 16:26:22 -07:00
Elaheh Rashedi 873775aafe define path delimiter based on windows/mac config (#5229)
* define path delimiter based on windows/mac config
https://github.com/microsoft/vscode-cpptools/issues/3940
2020-04-01 12:00:42 -07:00
Sean McManus 941d31ce91 Fix error string. (#5195) 2020-03-31 17:48:11 -07:00
Sean McManus dd174e241d Update fwlinks (#5231)
* Update version and fwlinks.
2020-03-31 17:06:45 -07:00
Sean McManus 03bed1c17c New IntelliSense error messages. (#5214) 2020-03-31 16:51:57 -07:00
Elaheh Rashedi e2e1868270 fix Bug 5124, adding namespace indent
* fix Bug 5124, adding namespace indent
https://github.com/microsoft/vscode-cpptools/issues/5124
2020-03-30 10:09:43 -07:00
Sean McManus 9ea6727743 Merge pull request #5218 from microsoft/seanmcm/0_27_0_release_merge2
Seanmcm/0 27 0 release merge2
2020-03-27 18:26:11 -07:00
Sean McManus bd1f66b411 Merge branch 'release' into seanmcm/0_27_0_release_merge2 2020-03-27 18:14:51 -07:00
Sean McManus a8ade55826 Update changelog for 0.27.0. (#5216)
* Update changelog for 0.27.0.
2020-03-27 17:29:34 -07:00
Sean McManus 913ddf4785 Fix incorrect compiler path with spaces and args squiggle. (#5217)
* Fix invalid `c_cpp_properties.json` and configuration UI warning `Compiler path with spaces and arguments is missing double quotes`.
2020-03-27 17:02:53 -07:00
Sean McManus c5be0b55c7 Merge pull request #5205 from microsoft/seanmcm/0_27_0_release_merge
Seanmcm/0 27 0 release merge
2020-03-26 14:07:45 -07:00
Sean McManus e8080fc86f Merge branch 'seanmcm/0_27_0_release_merge' of https://github.com/Microsoft/vscode-cpptools into seanmcm/0_27_0_release_merge 2020-03-26 13:45:08 -07:00
Sean McManus 579e4db42b Merge. 2020-03-26 13:44:36 -07:00
Sean McManus eba352eb07 Update changelog. (#5206) 2020-03-26 13:41:58 -07:00
Sean McManus 16bc8f6e5d Merge branch 'release' into seanmcm/0_27_0_release_merge 2020-03-26 13:16:05 -07:00
Andrew WangandSean McManus 05014a36c3 Add darwin OS version change check for lldb-mi (#5197)
If the darwin version changes and is upgraded to Mojave or higher, users
will need to use ./debugAdapters/lldb-mi. These changes will cleanup the
old files and cause the online installation process to run again.

Co-authored-by: Sean McManus <[email protected]>
2020-03-26 12:32:52 -07:00
Sean McManus 276e095d2c Update changelog. (#5199)
* Update changelog.
2020-03-26 12:13:02 -07:00
Sean McManus 208f28bfd6 Update some dependencies. (#5198) 2020-03-26 11:28:54 -07:00
Elaheh Rashedi 3f09f608a9 fix for validating cl compiler path (#5196)
bug fix 5151
2020-03-25 17:20:26 -07:00
Sean McManus b5fc4cc9b2 Fix crash with a workspace with no folders. (#5193) 2020-03-25 15:26:04 -07:00
Sean McManus 4062d86dff Fix databse when no folder is open. (#5186) 2020-03-24 17:59:37 -07:00
Sean McManus b7c0624369 Fix updateChannel being settable per workspace. (#5185) 2020-03-24 15:40:42 -07:00
csigsandDevDiv Build Lab - Dev14 9697ee65f0 Localization - Translated Strings (#5179)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-03-24 10:18:14 -07:00
Michelle Matias 155ed2b669 fix version filtering (#5175) 2020-03-23 17:57:31 -07:00
Sean McManus 6c4080832b Seanmcm/0 27 0 insider4 changelog2 (#5172)
* Update changelog.
2020-03-23 14:48:36 -07:00
Sean McManus 882b62c25b Fix package.json activation events. (#5173) 2020-03-23 14:40:37 -07:00
Sean McManusandAndrew Wang 5878686eac Add cleanUnusedBinaries stage (#5170)
Our offline installer will include two versions of lldb.
./debugAdapters/lldb is lldb-mi 3.8 and is used for High-Sierra and older
./debugAdapters/lldb-mi is lldb-mi 10.x and is used for Mojave and
higher.

Co-authored-by: Andrew Wang <[email protected]>
2020-03-23 14:39:20 -07:00
Andrew Wang 9b2c568db5 Add cleanUnusedBinaries stage (#5153)
Our offline installer will include two versions of lldb.
./debugAdapters/lldb is lldb-mi 3.8 and is used for High-Sierra and older
./debugAdapters/lldb-mi is lldb-mi 10.x and is used for Mojave and
higher.
2020-03-23 13:10:38 -07:00
Sean McManus f87944a72a Merge pull request #5158 from microsoft/seanmcm/0_27_0_insiders4_merge
Seanmcm/0 27 0 insiders4 merge
2020-03-20 17:26:01 -07:00
Sean McManus 5986aee6da Fix search.exclude for Go to Symbol in Workspace (#5101)
* Fix workspace folder settings bug: https://github.com/microsoft/vscode-cpptools/issues/5134
* Fix bug with rescan folder getting called once per workspace folder.
* Update changelog.
2020-03-19 18:49:32 -07:00
Colen Garoutte-Carson 2ffd9210d2 Use optional arg in client constructor instead of | undefined (#5140) 2020-03-17 13:39:28 -07:00
csigs de6ddc2440 Localization - Translated Strings (#5111) 2020-03-17 11:03:50 -07:00
Sean McManus 70944b6352 Fix workspace folder settings being incorrect. (#5135) 2020-03-16 20:14:32 -07:00
Colen Garoutte-Carson 0c9e000a4f Fix open file scenario bugs due to struct null changes (#5137) 2020-03-16 19:28:05 -07:00
dependabot[bot] 2091cc2614 Bump minimist from 1.2.0 to 1.2.2 in /Extension (#5132) 2020-03-16 16:29:56 -07:00
Colen Garoutte-Carson 927d2bb9e6 Fix some settings so they are editable in settings UI (#5126) 2020-03-16 15:37:09 -07:00
Colen Garoutte-Carson 502eb84116 Undo bad fix for check in getVcpkgRoot (#5116) 2020-03-13 16:58:26 -07:00
Colen Garoutte-Carson 1c8b8f4d6d Fix error when renaming (#5114) 2020-03-13 16:36:32 -07:00
Colen Garoutte-Carson 399e8ad1db Remove use of tilde from setting descriptions (#5108) 2020-03-12 22:14:17 -07:00
Sean McManus 8e0a0792b8 Merge pull request #5106 from microsoft/seanmcm/0_27_0_merge
0_27_0 merge to release
2020-03-12 14:57:51 -07:00
Sean McManus 6712181c45 Merge. 2020-03-12 14:11:19 -07:00
Sean McManus 940a720501 Update version. 2020-03-12 14:09:25 -07:00
csigsandDevDiv Build Lab - Dev14 5b68300c02 Localization - Translated Strings (#5104)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-03-12 10:16:52 -07:00
Sean McManus 5ef1d8db35 update 0 27 0 insiders3 changelog (#5098)
* More changelog entries.
2020-03-11 18:31:43 -07:00
Colen Garoutte-Carson 98ba6828cc Remove null default for intelliSenseCachePath (#5097) 2020-03-11 16:01:06 -07:00
Michelle Matias f1328840d2 Update issue language template (#5089) 2020-03-11 10:25:53 -07:00
csigsandDevDiv Build Lab - Dev14 f2eb925120 Localization - Translated Strings (#5094)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-03-11 10:15:32 -07:00
Sean McManus 80a293b83d 0 27 0 insiders3 changelog (#5088)
* Update changelog for 0.27.0-insiders3
2020-03-10 16:08:53 -07:00
Helloimbob 831f29c963 Optionally enable backtick command substitution for pickRemoteProcess (#5053)
* Backtick substiution
Co-authored-by: Thomas A. George <[email protected]>
2020-03-10 14:27:03 -07:00
Michelle Matias c648c1f56b Ask for logs for language service 2020-03-10 13:51:21 -07:00
Sean McManus 6cd03fc81b Update acorn dependencies. (#5087) 2020-03-10 13:08:16 -07:00
Sean McManus 6ece751d81 Fix debugger regressions. (#5086)
Fix null reference on call to "this.resolveEnvFile" ("this" was undefined) when doing Attach debugging.
2020-03-10 11:38:19 -07:00
csigsandDevDiv Build Lab - Dev14 7ca75be2ac Localization - Translated Strings (#5083)
Co-authored-by: DevDiv Build Lab - Dev14 <[email protected]>
2020-03-09 09:02:25 -07:00
Sean McManus d3020a39e9 Fix error after editing a document too early. (#5077) 2020-03-06 17:49:26 -08:00
Sean McManus 46335eb722 Fix bugs when c_cpp_properties.json doesn't exist. (#5065)
* Fix bugs when c_cpp_properties.json doesn't exist.
* Fix crash that sometimes occurs when switching color themes (with multiroot workspaces): https://github.com/microsoft/vscode-cpptools/issues/5063
2020-03-06 11:59:12 -08:00
Sean McManus bab6eff42f Minor telemetry change. (#5058) 2020-03-05 12:19:57 -08:00
Colen Garoutte-Carson f1bec1e564 Enable strictNullChecks (#5030) 2020-03-05 11:50:02 -08:00
Sean McManus 33a6b6699e Attempt to fix Mac crash telemetry. (#5056)
* Attept to fix Mac crash telemetry.
2020-03-04 14:56:15 -08:00
Sean McManus fc21920a65 Fix null reference in updateCustomBrowseConfiguration. (#5055)
* Fix null reference in updateCustomBrowseConfiguration.
2020-03-04 13:20:04 -08:00
Sean McManus d4910cc370 Fix the "Open File..." scenario (without a workspace folder) (#5054)
Fix the "Open File..." scenario (without a workspace folder)
2020-03-04 12:58:08 -08:00
Colen Garoutte-Carson 62222e592e Localization - Translated Strings (#5050) 2020-03-04 12:15:18 -08:00
Sean McManus e52fdd51da Fix C_Cpp.default.configurationProvider changes not taking effect. (#5043)
* Fix C_Cpp.default.configurationProvider changes not taking effect.
2020-03-03 12:53:09 -08:00
csigs dfe7ff348f Localization - Translated Strings (#5046) 2020-03-03 09:46:12 -08:00
Sean McManus 8f79cfae66 Fix bug with multiroot persistent folder states. (#5042) 2020-03-02 18:26:16 -08:00
csigs e0253a5f15 Localization - Translated Strings (#5037) 2020-03-02 10:01:22 -08:00
Colen Garoutte-Carson 8dbb12554c Fix issue with onDidChangeSettings never returning changed settings (#5026) 2020-02-27 18:15:52 -08:00
Sean McManus 8e7c8357ac Fix settings not getting sent after add folder. (#5021) 2020-02-27 16:41:17 -08:00
Colen Garoutte-Carson 5567e3abd8 Fix issue with cancellation of rename (#5025) 2020-02-27 16:14:31 -08:00
csigs 8aac4eccb1 [Auto] Localization - Translated Strings (#5017) 2020-02-27 10:13:04 -08:00
Sean McManus cfd09cf9e6 Update changelog. (#5016)
* Update changelog.
2020-02-26 18:26:44 -08:00
Colen Garoutte-Carson cda9491ffa Fix setting name for intelliSenseEngineFallback (#5015) 2020-02-26 17:08:20 -08:00
Sean McManus ffa9ca3249 Fix config switching after adding folder. (#5010) 2020-02-26 14:53:49 -08:00
csigs b83519cdd2 Localization - Translated Strings (#5013) 2020-02-26 10:14:50 -08:00
Colen Garoutte-Carson 51f7d1e5e1 Address issue with wrong problem matcher added to tasks.json (#5008) 2020-02-25 18:04:32 -08:00
Colen Garoutte-Carson 0f089261af Switch to returning CodeActions from CodeActionProvider (#5007) 2020-02-25 17:10:37 -08:00
Sean McManus 1041278dca New multi-root (#4809)
Adds multiroot support for a single language server process.

Instead of a single settings and cpp_properties objects, there are one per workspace folder.
There is a single browse database, but multiple browse-related settings (e.g. for per-folder files.exclude), so workspace parsing operates with a separate pass per workspace folder.
2020-02-25 13:47:41 -08:00
Colen Garoutte-Carson b77eee9197 Localize 'build and debug active file' (#5006) 2020-02-25 13:27:59 -08:00
csigs e5bf202d4f Localization - Translated Strings (#5004) 2020-02-25 10:00:36 -08:00
csigs 0e45efcfc1 Localization - Translated Strings (#5002) 2020-02-24 17:55:49 -08:00
Andrew Wang af8cf554a5 Validate dependencies for lldb-mi (#4911)
If a user does not provide a custom lldb-mi on macOS running in LLDB
mode. We check to see if the XCode/XCode CLI LLDB.framework dependencies
exist.

Also adds both LLDB-MI Package based on versionRegex

This PR also adds in PlatformInfo.version and IPackage.versionRegex and
IPackage.matchVersion.

Currently only darwin PlatformInfo.version is set since only the LLDB-MI
package utilizes IPackage.versionRegex and matchVersion.

The LLDB-MI 3.8 package is used for High Sierra and lower and the newer
lldb-mi is used for Mojave and higher
2020-02-21 11:24:16 -08:00
Michelle Matias 3c6438c12f update loc for Feb 20 FI (#4993) 2020-02-20 16:49:50 -08:00
Colen Garoutte-Carson a8285cbc0e Prompt again for provider if config is cleared (#4987) 2020-02-19 17:18:32 -08:00
Colen Garoutte-Carson 8fa7cbbde2 Get a stable yarn lock (#4986) 2020-02-19 13:05:26 -08:00
Colen Garoutte-Carson 548d6a82d4 Migrate from TSLint to ESLint (#4974) 2020-02-18 14:33:26 -08:00
Colen Garoutte-Carson 764b1d143a Use system installed clang-format only if newer, or bundled version is not executable (#4968) 2020-02-14 13:29:54 -08:00
csigs d59bad705f Localization - Translated Strings (#4973) 2020-02-14 09:30:17 -08:00
csigs 28b567ca8e Localization - Translated Strings (#4964) 2020-02-13 09:55:57 -08:00
Michelle Matias cd73fb3755 Initial E2E IntelliSense Features tests (#4856) 2020-02-12 17:06:00 -08:00
Andrew Wang 772b7f948e Create .yml for building LLDB-MI (#4910)
Add build for LLDB-MI
2020-02-12 13:38:43 -08:00
Colen Garoutte-Carson 0225a566e9 Remove knownCompilers from Configuration interface, entirely (#4960) 2020-02-12 12:35:50 -08:00
Colen Garoutte-Carson da17ded7fa Remove knownCompilers if found in c_cpp_properties.json (#4956) 2020-02-12 10:04:07 -08:00
csigs 823b5879eb Localization - Translated Strings (#4952) 2020-02-11 16:53:33 -08:00
Colen Garoutte-Carson 60847b3962 Handle missing assert in getVsixDownloadUrl (#4951) 2020-02-10 13:43:26 -08:00
Colen Garoutte-Carson 0d91db0e06 Undo settings renames (#4938) 2020-02-10 09:50:05 -08:00
csigs 3fa056f4d5 Localization - Translated Strings (#4937) 2020-02-07 16:54:37 -08:00
csigs 05f2b24011 Localization - Translated Strings (#4923) 2020-02-04 10:20:42 -08:00
Colen Garoutte-Carson 2f0c3fddd3 Update fw links for clang-format (#4918) 2020-02-03 19:49:36 -08:00
csigs 21c8d54373 Localization - Translated Strings (#4915) 2020-01-30 11:40:15 -08:00
aleksey-sergey 2aeb48d722 add support for a new command: cpptools.setActiveConfigName (#4893)
* add support for a new command: cpptools.setActiveConfigName

Command allows other extensions to control activeConfigName

* post review fix: localized config-name-not-found message
2020-01-29 18:46:37 -08:00
Colen Garoutte-Carson bf2802e4e4 Rename various settings (#4907) 2020-01-29 18:33:26 -08:00
Colen Garoutte-Carson e01071a625 Fix issue with disabled compiler path in config UI if none detected (#4912) 2020-01-29 18:32:59 -08:00
csigs 4a8802a38d Localization - Translated Strings (#4906) 2020-01-28 09:52:22 -08:00
csigs 631ecff716 Localization - Translated Strings (#4903) 2020-01-27 09:42:53 -08:00
Colen Garoutte-Carson 997161f862 Avoid unrecognized uri schemes when processing open/visible file event (#4896) 2020-01-24 16:33:07 -08:00
csigs 3cbc918860 Localization - Translated Strings (#4895) 2020-01-24 09:45:07 -08:00
csigs 4f24cafb45 Localization - Translated Strings (#4886) 2020-01-23 18:23:23 -08:00
Colen Garoutte-Carson 0122819f26 Update fwlinks (#4892) 2020-01-23 17:57:38 -08:00
Colen Garoutte-Carson 2b1054bf41 rename native binaries (#4882) 2020-01-23 12:34:04 -08:00
Colen Garoutte-Carson 53d65fd430 Move all webpacked dependencies to devDependencies (#4884) 2020-01-22 17:26:06 -08:00
Colen Garoutte-Carson 79e0d487d0 Remove unused script (#4883) 2020-01-22 15:59:35 -08:00
csigs 13f740ed99 Localization - Translated Strings (#4880) 2020-01-22 09:51:41 -08:00
Sean McManus 211e497a89 Merge pull request #4876 from microsoft/seanmcm/0_26_3_release
Seanmcm/0 26 3 release
2020-01-21 17:46:50 -08:00
Sean McManus f04ee43425 Merge branch 'release' into seanmcm/0_26_3_release 2020-01-21 16:52:34 -08:00
Sean McManus 3c9c1f1622 Merge changelog for 0.26.3. (#4874)
* Merge changelog for 0.26.3.
* Update TPN.
2020-01-21 16:50:25 -08:00
Michelle Matias cc1998c1d6 Add back statusChangedEvent (#4860) 2020-01-17 12:30:05 -08:00
Andrew Wang 223f63036c Update Changelog for MIEngine (#4858)
* Update Changelog for MIEngine
2020-01-16 16:49:53 -08:00
Colen Garoutte-Carson 2ece201c00 Update changelog for 0.26.3-insiders4: (#4857)
* Update changelog
Authored-by: Colen Garoutte-Carson <[email protected]>
2020-01-16 15:23:41 -08:00
Colen Garoutte-Carson fe8245fbab Look for clang-format installed on system before defaulting to bundled version (#4855) 2020-01-16 15:04:01 -08:00
Colen Garoutte-Carson 419d5c1316 Fix issue with didOpen processed before initial custom browse config (#4846) 2020-01-15 14:16:38 -08:00
Sean McManus e61c360bab Fix no compiler found when compilerPath isn't set. (#4844) 2020-01-13 21:37:49 -08:00
Colen M. Garoutte-Carson d479d79c36 Revert "Fix issue with didOpen processed before initial custom browse config"
This reverts commit 1bddf02180.
2020-01-13 20:12:18 -08:00
Colen M. Garoutte-Carson 1bddf02180 Fix issue with didOpen processed before initial custom browse config 2020-01-13 20:08:16 -08:00
Michelle Matias acdd5ca9d2 Merge pull request #4820 from microsoft/mimatias/test-timeout-fix
Fix integration tests timeouts and events
2020-01-10 16:15:30 -08:00
Michelle Matias 09ba872c38 update yarn.lock file 2020-01-10 15:04:33 -08:00
Michelle Matias d790c6fd4d clean up 2020-01-10 15:04:15 -08:00
Michelle Matias 2b58af166a remove unused imports. sleep for file watcher 2020-01-10 14:40:52 -08:00
Michelle Matias 6e043a77bc change timeout 2020-01-10 14:25:19 -08:00
Michelle Matias aa8e0ce62e remove call to getActiveClient() from tests 2020-01-10 14:19:55 -08:00
Michelle Matias 36e4b13232 add temp logging to debug timeout cause 2020-01-10 10:12:03 -08:00
Michelle Matias 63bfb423b4 Merge branch 'master' into mimatias/test-timeout-fix 2020-01-09 22:19:40 -08:00
Colen Garoutte-Carson cb31a0d840 Update yarn lock and remove a resolution that is no longer needed. (#4830) 2020-01-09 18:15:56 -08:00
Michelle Matias ac7d437d33 use new CppToolsTestHook event 2020-01-09 15:46:58 -08:00
Michelle Matias d41698455e remove debugging logs 2020-01-09 14:02:23 -08:00
Michelle Matias 91f4dbb10a Update testHook api 2020-01-09 13:43:10 -08:00
Sean McManus adc9892578 Update changelog. (#4825) 2020-01-08 15:58:10 -08:00
Colen Garoutte-Carson 9ece80f6d8 Fix issue with files in the database getting unnecessarily removed on startup with a configuration provider (#4821) 2020-01-08 00:44:32 -08:00
Michelle Matias 78b09612e9 increase default timeout 2020-01-07 17:26:55 -08:00
Michelle Matias 501df6ea8c add logging 2020-01-07 13:41:53 -08:00
Michelle Matias 26a83985f4 log intellisense update 2020-01-07 12:06:29 -08:00
Michelle Matias 8f137f9842 increase timeout for extensibility tests v1 2020-01-07 11:47:57 -08:00
Michelle Matias c2eabf1274 remove timeout for one check 2020-01-07 11:36:44 -08:00
Michelle Matias 5059a45aab increase timeout value 2020-01-06 17:29:52 -08:00
csigs fb1ca8ffa8 Localization - Translated Strings (#4738) 2020-01-06 11:06:59 -08:00
Sean McManus c5e6699421 Fix bug with Insider installation. (#4767)
Fix for #3874 .
This was also causing my previous "downgrade" fix to fail: #4760
2019-12-18 18:11:40 -08:00
Sean McManus 297bada947 Fix Insider channel not auto-downgrading after an Insider vsix is unpublished. (#4765)
* Fix Insider channel not auto-downgrading after an Insider vsix is unpublished.
2019-12-18 14:54:52 -08:00
Sean McManus 336c529fe8 Updating changelog. (#4750) 2019-12-16 15:44:15 -08:00
Enna1 de14a285a4 Update package.json (#4734)
Fix missing description of "C_Cpp.clang_format_style" configuration property
2019-12-12 15:34:39 -08:00
Colen Garoutte-Carson b428ff154f Coleng/update changelog (#4728) 2019-12-10 17:28:18 -08:00
Sean McManus 8cd858f5f5 Update loc and json versions. (#4709)
* Update loc and json versions.
* Minor TPN change.
2019-12-06 13:30:30 -08:00
Colen Garoutte-Carson 3f66cb5c59 Fix security issue with serialize-javascript. Updating yarn.lock (#4710) 2019-12-05 13:53:26 -08:00
dx-coding b18f561724 Update common.ts (#4658) 2019-12-05 13:06:40 -08:00
Michelle Matias d651a3b898 prep for 0.26.3 (#4690) 2019-12-05 12:57:59 -08:00
csigs d66482a115 Localization - Translated Strings (#4706) 2019-12-05 12:48:34 -08:00
csigs 59f25f8636 Localization - Translated Strings (#4700) 2019-12-04 10:09:47 -08:00
Colen Garoutte-Carson 11a2c04008 Fix issue in which source file selection for header TU's does not occur when reconfiguring custom config provider (#4671) 2019-12-03 10:45:07 -08:00
csigs d3dd19e26f Localization - Translated Strings (#4694) 2019-12-03 10:10:01 -08:00
Michelle Matias 8a4bfa2183 Merge pull request #4689 from microsoft/mimatias/master-26-2
Merge for 0.26.2
2019-12-02 14:57:18 -08:00
Michelle Matias 4edd43062c change log for 26.2 (#4688) 2019-12-02 14:47:18 -08:00
Colen Garoutte-Carson 1523516673 Update changelog. Other misc. (#4659) 2019-11-25 16:27:34 -08:00
Colen Garoutte-Carson 8e1006d78d Add new strings for bitness fallback (#4656) 2019-11-22 16:27:58 -08:00
Colen Garoutte-Carson 922ac06e2d correct spelling in changelog (#4651)
Does not build.  Bypassing checks.
2019-11-21 17:05:13 -08:00
Colen Garoutte-Carson 33f2d606e7 Update changlog. Push out 1 day. (#4650)
Bypassing checks, as file does not build.
2019-11-21 16:52:31 -08:00
Colen Garoutte-Carson 2300e38645 Update changelog for 0.26.2-insiders2 (#4648) 2019-11-21 13:40:58 -08:00
Colen Garoutte-Carson d362ef9814 Add strings for m32/m64 compiler fallback (#4644) 2019-11-21 12:30:17 -08:00
csigs f3b5c507d8 Localization - Translated Strings (#4641) 2019-11-20 10:24:02 -08:00
Colen Garoutte-Carson f6a2a65474 Make closeRenameUI safe to call even if Rename UI was never opened (#4640) 2019-11-20 10:02:57 -08:00
Colen Garoutte-Carson e2213568f3 Extend .C handling to .H files as well (#4639) 2019-11-20 09:53:56 -08:00
csigs e18d53e7ba Localization - Translated Strings (#4634) 2019-11-19 14:02:24 -08:00
Colen Garoutte-Carson 6f76898110 Address issue with TU not being created for file already open when activated (#4621) 2019-11-15 17:16:10 -08:00
Colen Garoutte-Carson 95f8f11dc4 Fix casing of locale IDs for Chinese languages (#4620) 2019-11-15 16:11:04 -08:00
Colen Garoutte-Carson fcf2090ffd Sort files in FAR and Rename UI (#4616) 2019-11-15 14:40:34 -08:00
csigs 59c90611c4 Localization - Translated Strings (#4604) 2019-11-14 09:59:50 -08:00
Bob Brown c6af5ce8b5 Merge pull request #4601 from microsoft/coleng/merge_release
Merge master into release, up to 0.26.2-insiders
2019-11-14 09:28:48 -08:00
Colen Garoutte-Carson 014f30e942 Merge commit 'f0c961aa734df9fb2ca7d49649cd06b1f4e07a11' into release 2019-11-13 12:37:31 -08:00
csigs 7b4288c6f4 Localization - Translated Strings (#4599)
Bypassing validation as these are just string changes, not code changes.
2019-11-13 11:27:44 -08:00
Colen Garoutte-Carson d3263a187e Defer TU creation until editor for the file is visible in the UI. (#4593) 2019-11-13 11:26:59 -08:00
csigs f0c961aa73 Localization - Translated Strings (#4591) 2019-11-12 10:10:32 -08:00
Colen Garoutte-Carson 2c436f94b0 Update intelliSenseCachePath description. Update changelog (#4589)
Code has not changed.  Bypassing validation.
2019-11-11 17:48:28 -08:00
Sean McManus 2fd3214300 Merge pull request #4585 from trxcllnt/enable-cuda-breakpoints
enable breakpoints set in cu and cuh files
2019-11-11 17:33:34 -08:00
Sean McManus b33b1b3cc2 Merge branch 'master' into enable-cuda-breakpoints 2019-11-11 17:33:10 -08:00
Michelle Matias a9000a4c9d update change log for 0.26.2-insider (#4588) 2019-11-11 17:30:47 -08:00
Colen Garoutte-Carson a11b2aeb4d Support both provider ID's for cmake-tools (#4587) 2019-11-11 15:25:15 -08:00
ptaylor f31d641a13 add language:cuda entry to breakpoints list to enable breakpoints set in cu and cuh files 2019-11-11 11:20:14 -08:00
Colen Garoutte-Carson 1a7e9b9fd8 Add missing underscore to ASCII range in identifier validation (#4584) 2019-11-11 10:44:38 -08:00
csigs 2a8556df50 Localization - Translated Strings (#4583) 2019-11-11 10:13:30 -08:00
Colen Garoutte-Carson acf53d02a8 Update changelog for 0.26.2-insiders (#4574) 2019-11-08 17:57:24 -08:00
Colen Garoutte-Carson 0e43057f0f Add optional identifier validation to RenameProvider (#4546) 2019-11-08 14:50:06 -08:00
Sean McManus d2d20971a2 Merge pull request #4575 from microsoft/seanmcm/updateTPN
Minor TPN updates.
2019-11-08 13:16:34 -08:00
Sean McManus edf99c77a2 Minor TPN updates. 2019-11-08 12:35:29 -08:00
Colen Garoutte-Carson b88ca99a47 Fix issue with English schema files not being found (#4570) 2019-11-07 17:31:51 -08:00
csigs 23f214973f Localization - Translated Strings (#4566) 2019-11-07 10:13:06 -08:00
Colen Garoutte-Carson 7b1f093012 Fix issue in SchemaProvider that could occur if schema is in a subdirectory (#4545) 2019-11-06 15:54:34 -08:00
Michelle Matias f83f82db8a Fix squiggle config settings (#4538) 2019-11-06 11:39:13 -08:00
csigs 2da22041b5 Localization - Translated Strings (#4541) 2019-11-06 10:06:26 -08:00
csigs 2fe3961b23 Localization - Translated Strings (#4537) 2019-11-05 13:03:30 -08:00
Colen Garoutte-Carson b82a86e5e4 Ensure localized content output to JSON use escaped quotes (#4533) 2019-11-05 13:02:56 -08:00
Colen Garoutte-Carson 10224c1294 Update FW links (#4534)
Build is expected to fail until this is checked in, AND binaries are updated to new versions.  So, bypassing build check.
2019-11-04 13:09:05 -08:00
Colen Garoutte-Carson 7e3ff84d3b Improve TU selection (#4519) 2019-11-04 12:51:49 -08:00
csigs 4795a5e9bb Localization - Translated Strings (#4532) 2019-11-04 11:12:07 -08:00
Colen Garoutte-Carson 83092d7c00 Dismiss progress indicator when in Rename UI. Add error dialog when no symbol is found. (#4517) 2019-11-01 14:49:15 -07:00
Sean McManus d1c9d4d298 Merge pull request #4500 from microsoft/seanmcm/0_26_1_release2
Fix a missed https-proxy-agent case. (#4497)
2019-10-25 19:01:24 -07:00
Sean McManus 69fcb1b1b4 Fix a missed https-proxy-agent case. (#4497)
* Fix a missed https-proxy-agent case.
2019-10-25 17:52:38 -07:00
Sean McManus 09ccd3af42 Merge pull request #4495 from microsoft/seanmcm/0_26_1_release
0.26.1 release
2019-10-25 16:18:54 -07:00
Sean McManus 375b64b4f8 Merge branch 'release' into seanmcm/0_26_1_release 2019-10-25 15:55:21 -07:00
Sean McManus 3d3763fbc6 Fix launch.json creation when using non-English display languages. (#4480)
* Fix `launch.json` creation when using non-English display languages.
* Update changelog.
2019-10-25 15:49:32 -07:00
Sean McManus febccce8e3 Update https-proxy-agent. (#4492)
* Update https-proxy-agent.
2019-10-25 15:39:51 -07:00
Sean McManus 1443b4f3fc Update package.json 2019-10-25 15:00:25 -07:00
Colen Garoutte-Carson 5c1f592c17 Update locale id lookup to match approach used by vscode-nls (#4474) 2019-10-21 14:59:48 -07:00
csigs d91a217559 Localization - Translated Strings (#4457) 2019-10-18 12:45:23 -04:00
csigs 565dc06c56 Localization - Translated Strings (#4448) 2019-10-16 14:21:53 -04:00
Sean McManus 783ef7290a Merge for 0.26.0. 2019-10-15 16:42:02 -07:00
Sean McManus 7f1efd4b84 Merge. 2019-10-15 16:34:34 -07:00
Sean McManus bf5435d5b6 Update TPN. (#4438)
* Update TPN.
2019-10-15 16:32:33 -07:00
Sean McManus 70560ece68 Update changelog. (#4436) 2019-10-15 15:12:14 -07:00
csigs 62050c2060 Localization - Translated Strings (#4435) 2019-10-15 13:03:37 -04:00
csigs 241bb9f6fe Localization - Translated Strings (#4427) 2019-10-14 16:49:24 -04:00
csigs 0274e2d527 Localization - Translated Strings (#4416) 2019-10-10 12:48:35 -04:00
Colen Garoutte-Carson b24be86710 Add a few files to .vscodeignore (#4406) 2019-10-08 19:28:39 -07:00
Colen Garoutte-Carson ed6b46ee9a Restore fix to a race condition that arises when a new FAR request interrupts a previously previewed request (#4405) 2019-10-08 18:39:37 -07:00
Colen Garoutte-Carson 4777a7de8f Custom config timeout fixes (#4404) 2019-10-08 18:06:14 -07:00
Colen Garoutte-Carson e043c13019 Address some race issues with preview and cancellation (#4403)
* Address some race issues with preview and cancellation
2019-10-08 16:15:25 -07:00
Michelle Matias a8537c4fa0 fix collapse state (#4402) 2019-10-08 14:35:36 -04:00
csigs 72163c935b Localization - Translated Strings (#4401) 2019-10-08 13:50:58 -04:00
Sean McManus 0b2a32ba81 Prevent error with invalid commentContinuationPattern. (#4398) 2019-10-08 08:44:28 -07:00
Colen Garoutte-Carson bc94dae1e4 Refactored FAR and Rename TreeView UI (#4378) 2019-10-07 16:50:58 -07:00
csigs cd8aa87f82 Localization - Translated Strings (#4394) 2019-10-07 14:39:36 -07:00
Colen Garoutte-Carson d1f345437b Use previously received browse config if invalid/empty browse config is received from provider (#4385) 2019-10-07 14:18:11 -07:00
Bob Brown (DEVDIV) 200b9e2ca6 Update changelog for 0.26.0-insiders2 2019-10-03 10:07:54 -07:00
csigs 8cd4b6f520 Localization - Translated Strings (#4379) 2019-10-02 16:36:10 -07:00
Sean McManus 07148cbeb9 Fix 2nd references without preview. (#4368)
* Fix references bugs.
2019-10-01 17:14:01 -07:00
Jorge Reyes Paniagua 66b12b8809 Change "C/C++ References" output panel to "C/C++ Peek References" and create it when Peek occurs (#4363)
* change output panel and create it when Peek occurs
* create output pane only on peek references
2019-10-01 16:11:30 -07:00
Sean McManus 346ee37472 Seanmcm/fix2nd references (#4367)
* More fixes.
2019-10-01 16:10:44 -07:00
Colen Garoutte-Carson db7b8e7bab Localization - Translated Strings (#4361) 2019-10-01 16:09:38 -07:00
Sean McManus b6a46ab078 Fix preview results. (#4365)
* Fix preview results.
* Refactoring.
2019-10-01 13:23:43 -07:00
Colen Garoutte-Carson 6c0eaea632 Ensure renamePending gets reset when operation is complete (#4344) 2019-09-30 14:38:05 -07:00
Sean McManus c44c50b50c Fix loc strings. (#4324)
* Fix loc strings.
* Update changelog.
2019-09-30 13:58:55 -07:00
Sean McManus e2fabf924f Fix cancel references. (#4341) 2019-09-30 10:40:16 -07:00
Colen Garoutte-Carson 01340bb4e9 Localization - Translated Strings (#4340) 2019-09-26 11:38:35 -07:00
Sean McManus 1b91354125 Fix cancel not working after a preview. (#4337) 2019-09-25 18:05:23 -07:00
Michelle Matias 105f08f7a1 Select symbol of other references results (#4336) 2019-09-25 16:25:53 -07:00
Michelle Matias c267efb76d update rename icons (#4335) 2019-09-25 15:42:56 -07:00
Sean McManus 47676ca893 Fix Linter issues. (#4334) 2019-09-25 15:29:40 -07:00
Colen Garoutte-Carson 3b0fb6a268 Localization - Translated Strings (#4330) 2019-09-25 09:52:02 -07:00
Colen Garoutte-Carson 8fe1f37342 Localization - Translated Strings (#4317) 2019-09-24 13:05:07 -07:00
Colen Garoutte-Carson 95e47d19ef Add i18n to .vscodeignore (#4322) 2019-09-24 11:48:53 -07:00
Michelle Matias 7907870362 Use VSCode icons for reference types (#4321) 2019-09-24 11:27:48 -07:00
Sean McManus 3dd0aa4806 Update changelog and ThirdPartyNotices. (#4299) 2019-09-24 11:10:16 -07:00
Colen Garoutte-Carson 6a0d08e09a Work on FAR/Rename w/UI reliablity with cancellation (#4314) 2019-09-24 11:03:49 -07:00
Colen Garoutte-Carson 46c9e53676 Move cleanup to after last async call. Call git fetch to ensure master ref is present (#4316)
Directly submitting, as this does not build.
2019-09-23 18:40:42 -07:00
Sean McManus b520073176 Remove peek references preview. (#4298)
* Remove peek references preview.
* Remove rename click text.
* Update strings.
2019-09-20 16:15:59 -07:00
Pierson Lee 81576fa30f Fix messaging for miDebuggerArgs (#4295)
This fixes/clarifies #4292
2019-09-20 14:51:51 -07:00
Colen Garoutte-Carson c458f20adb Auto complete a rename if there are only confirmed references (#4297) 2019-09-20 14:48:57 -07:00
Michelle Matias 130b832378 Toggle to group references by type (#4294) 2019-09-20 14:27:23 -07:00
Colen Garoutte-Carson a48e9db30c Add watch targets. Clean up scripts in package.json (#4215) 2019-09-20 13:38:34 -07:00
Sean McManus 88ecb46bce Minor changes. (#4260) 2019-09-19 20:32:26 -07:00
Colen Garoutte-Carson 8734c62ece Make translations_auto_pr_js check for changes after git add, in case only changes were CR/LF and were resolved (#4284)
Does not build.  Committing directly.
2019-09-19 18:23:20 -07:00
Colen Garoutte-Carson 0f37d2f097 Coleng/fix translations pr script more (#4283)
Does not build.  Bypassing.
2019-09-19 17:57:28 -07:00
Colen Garoutte-Carson 1f22ea7e24 Add Rename UI (#4277) 2019-09-19 17:54:59 -07:00
Colen Garoutte-Carson 8fe05b3a8c Check for branch before trying to remove it (#4282)
File does not build.  Merging directly.
2019-09-19 17:45:56 -07:00
Colen Garoutte-Carson 46fbe89bd4 Improve translations_auto_pr.js (#4281)
Does not build, so build verification is not needed.
2019-09-19 16:40:13 -07:00
Colen Garoutte-Carson 72c8572b1e Localization - Translated Strings (#4272) 2019-09-19 14:52:51 -07:00
Michelle Matias a64bbc14da Handle peek references, references without location & update draft icons (#4258) 2019-09-17 11:45:50 -07:00
Jorge Reyes Paniagua e97b3e1570 Localize strings for document symbols and workspace symbols (#4234)
* localize strings for doc and workspace symbols
2019-09-13 14:25:11 -07:00
Michelle Matias 6e879df2ba Add custom view for other references results (#4237) 2019-09-13 13:25:56 -07:00
Colen Garoutte-Carson fedb8ec7c6 Localization - Translated Strings (#4236) 2019-09-13 10:16:10 -07:00
Colen Garoutte-Carson 92a16965a1 Script to automatically create a PR when new translations are available (#4231) 2019-09-12 15:00:45 -07:00
Andrew Wang 958dfd9e5b Adding requireExactSource flag to vsdbg schema (#4235) 2019-09-12 14:45:01 -07:00
Andrew Wang b924f8de3e Add support for SymbolLoadInfo (#4194)
* Add support for SymbolLoadInfo

This allows users to disable symbol loading by setting the LoadAll field
in the SymbolLoadInfo object to false.

The excludeList can be used to ignore specific modules.

* Add descriptions for SymbolLoadInfo

* Addressing PR issues

* Fixing descriptions
2019-09-12 14:20:39 -07:00
Sean McManus 17f2bcc343 Seanmcm/handle file changed (#4216)
* Fix for #4211 and #3567: add handle file changed support. 
* Add back files.associations handling.
2019-09-10 15:30:13 -07:00
Jorge Reyes Paniagua 0d9ecd04f1 Joreyesp/remove navigation (#4214)
* update nativeStrings.json
2019-09-06 16:28:37 -07:00
Sean McManus 034de98202 Add V1 rename (#4184)
* Rename V1 (no UI)
* Update ThirdPartyNotices.txt
* Localize search icon tooltips.
2019-09-06 15:33:30 -07:00
Jorge Reyes Paniagua 3267ef003c Remove navigation (#4187)
* remove navigation code

* remove global_scope string

* remove package.nls.json strings
2019-09-06 14:55:55 -07:00
Sean McManus 5f957090fd Move icons to the left. (#4200)
* Move icons to the left.
2019-09-06 14:00:14 -07:00
Colen Garoutte-Carson 400c848a7b Fix local test deployment (#4175) 2019-09-04 12:50:56 -07:00
Colen Garoutte-Carson b04021930f Update documentation to reflect use of yarn (#4174) 2019-08-30 17:12:36 -07:00
Michelle Matias b906bc8189 Move references code to separate class/file (#4167) 2019-08-30 15:23:21 -07:00
Sean McManus 1895ff855c Fix Vcpkg code action for includes with more than one forward slash. (#4172) 2019-08-30 13:35:54 -07:00
Sean McManus 54e443035c Skip prompts with config providers. (#4170) 2019-08-30 13:15:36 -07:00
Colen Garoutte-Carson 09b69a9423 Switch from npm to yarn. Always install when building (#4171) 2019-08-30 12:51:25 -07:00
Sean McManus e53bc01aa2 Merge pull request #4169 from microsoft/seanmcm/updateFwlinks
Update fwlinks.
2019-08-30 11:28:11 -07:00
Sean McManus 1513b95136 Update lock. 2019-08-29 18:47:49 -07:00
Sean McManus fb611c79bc Update fwlinks. 2019-08-29 18:19:16 -07:00
Colen Garoutte-Carson 6b3cdce94d Enable string localization (#3963) 2019-08-29 18:08:49 -07:00
Sean McManus d68f76b51e Merge pull request #4161 from microsoft/seanmcm/0_25_1_release
Seanmcm/0 25 1 release
2019-08-28 15:27:34 -07:00
Sean McManus 6ba1262347 Merge for 0.25.1 release. 2019-08-28 15:24:08 -07:00
Sean McManus 6cc70dfe7b Add VcPkgHeadersDatabase. (#4156)
* Add VcPkgHeadersDatabase.
* Update changelog.
2019-08-28 15:18:02 -07:00
Colen Garoutte-Carson 41933fa969 Fix issue with incorrect colorization immediately after saving a new file (#4153) 2019-08-28 10:15:52 -07:00
Bob Brown c03fea0f1a Use an absolute URL so the Readme links resolve online (#4152) 2019-08-27 18:03:31 -07:00
Sean McManus 8aac573589 Check extensions.autoUpdate. (#4151) 2019-08-27 17:15:17 -07:00
Bob Brown 7b1677e120 Minor reorganization of theme assets (#4149) 2019-08-27 10:38:47 -07:00
jogo- adead7f983 Fix typo in README.md (#4148) 2019-08-27 10:18:02 -07:00
Sean McManus 7ff83d5e61 Remove shallow document copy and prevent extension activation on Untitled (#4144)
* Remove shallow document copy and prevent extension activation on Untitled.
2019-08-26 15:52:39 -07:00
mistersandman d51ae12747 Resolve compiler path before verification (fixes issue #4141) (#4142) 2019-08-26 14:08:24 -07:00
Colen Garoutte-Carson a17cb4220a Add readme and license to Themes directory (#4111) 2019-08-26 13:59:48 -07:00
Sean McManus 3251ee599b 0.25.1 bug fixes. (#4130)
* 0.25.1 bug fixes.
2019-08-23 17:31:55 -07:00
Sean McManus 490fc7504f Merge pull request #4115 from microsoft/seanmcm/0_25_0_release
Seanmcm/0 25 0 release
2019-08-20 18:59:53 -07:00
Sean McManus f2959f4d7a Merge for 0.25.0 release. 2019-08-20 18:05:52 -07:00
Sean McManus d7520eacf3 Update changelog for 0.25.0. (#4113) 2019-08-20 17:56:40 -07:00
Bob Brown e17de19810 clone the TextDocument on didOpen to fix a race condition (#4110) 2019-08-20 15:05:10 -07:00
Sean McManus 4be65505a4 Update references text and averageLexingPercent. (#4112) 2019-08-20 14:48:23 -07:00
Sean McManus 918faeae44 Change clang_format_path back to resource scope. (#4107) 2019-08-20 13:28:58 -07:00
Sean McManus 423a727fcf Improve the search icon message. (#4106) 2019-08-20 11:34:42 -07:00
Michelle Matias 1ad20e18a2 Validate env paths (#4100) 2019-08-19 13:33:43 -07:00
Colen Garoutte-Carson bb43c500c2 Fix issue with diagnostics source mismatch preventing VcpkgSrv feature from working (#4093) 2019-08-15 18:22:15 -07:00
Sean McManus 4ae01b6d4b Update changelog for Insiders2. 2019-08-15 15:23:21 -07:00
Sean McManus 59af571d61 Fix bug with compile_commands.json updating after a change. (#4081) 2019-08-15 09:30:24 -07:00
Sean McManus 355711c24c Add peek references telemetry. (#4080) 2019-08-13 17:13:10 -07:00
Sean McManus c7b6f3c554 Minor references fixes (#4068)
* Minor fixes.
* Improve progress bar.
* Update changelog
2019-08-12 17:24:19 -07:00
Sean McManus c31528b716 Remove release notes. (#4069)
* Remove release notes.
* Fix Linter error. Add noUnusedLocals.
2019-08-12 17:03:50 -07:00
Michelle Matias 655c320c3c Update issue templates (#4065)
Update links on all issue templates
2019-08-12 16:14:11 -07:00
Bob Brown 5e915a5a3a Merge pull request #4066 from microsoft/bobbrow/disableArm
re-enable the supported arch check
2019-08-12 14:33:18 -07:00
Bob Brown (DEVDIV) 27607493d8 re-enable the supported arch check 2019-08-12 12:42:51 -07:00
Bob Brown b80404df5a Merge pull request #4057 from microsoft/bobbrow/themeId
rename the id
2019-08-09 15:45:31 -07:00
Bob Brown (DEVDIV) f2d9aff338 rename the id 2019-08-09 11:09:45 -07:00
Sean McManus 6bc6d4931d Fix buggy progress message. (#4039) 2019-08-08 17:57:58 -07:00
Bob Brown (DEVDIV) b7bd343019 tslint 2019-08-08 17:19:32 -07:00
Bob Brown 1a71059316 fix a broken squiggle (#4037) 2019-08-08 17:16:55 -07:00
Bob Brown (DEVDIV) d9ca558f74 Temporarily disable architecture checks. 2019-08-08 16:51:35 -07:00
Sean McManus c9a114b38f Add Find All References (#4016)
Add Find All References.
2019-08-08 16:16:00 -07:00
Bob Brown 44298673fc Implement not supported message for arm platform and alpine containers (#4027) 2019-08-08 12:50:19 -07:00
Bob Brown c9869894de Merge branch 'master' into dev/andris/NotSupportedMessage2 2019-08-08 10:14:57 -07:00
Jorge Reyes Paniagua 41893b049d Add support for x86 architecture (#4005)
* add 32 bit architecture files

* add the option for 32 bit architectures

* changes on Intellisense mode description
2019-08-08 10:06:31 -07:00
Bob Brown e9659f2c6e Merge branch 'master' into dev/andris/NotSupportedMessage2 2019-08-08 09:55:50 -07:00
Bob Brown (DEVDIV) 7f9e5758bc Merge branch 'dev/andris/NotSupportedMessage2' of https://github.com/Microsoft/vscode-cpptools into dev/andris/NotSupportedMessage2 2019-08-08 09:51:38 -07:00
Bob Brown (DEVDIV) 03fa10fbd1 tslint 2019-08-08 09:51:25 -07:00
Michelle Matias d3d9655534 Deprecate old documentation and update readme files (#3984) 2019-08-08 09:47:35 -07:00
Bob Brown 586068e874 Merge branch 'master' into dev/andris/NotSupportedMessage2 2019-08-08 09:42:53 -07:00
Bob Brown (DEVDIV) 8e69cde774 return an empty API 2019-08-08 09:41:13 -07:00
Griffin Downs ba2da8d98c Vcpkg integration (#3791) 2019-08-08 09:28:18 -07:00
Andreea Isac 007292cbda Move the unsupported error message higher up 2019-08-07 08:36:27 -07:00
Michelle Matias b608921b9d Add IntelliSense configuration property: compilerArgs (#3950) 2019-08-06 15:26:18 -07:00
Andreea Isac 8e31eb99d9 Implement not supported message for arm platform and alpine containers 2019-08-06 14:04:52 -07:00
Colen Garoutte-Carson ceac5cb95a VS Code themes that match VS Light and Dark, including semantic tokens (#4019) 2019-08-06 10:41:25 -07:00
pi1024e 14f2c9f030 Typo and grammar fixes in documentation (#4014) 2019-08-01 14:11:15 -07:00
Bob Brown 3d40ac231a Support for the V3 API (#3987)
* Support for the V3 API
2019-07-30 11:10:40 -07:00
Sean McManus baf6f50be3 Fix error in open file scenario. (#3986)
* Fix error in open file scenario.
2019-07-26 14:50:08 -07:00
Colen Garoutte-Carson d9de95ca15 Update examples in colorization.md to color entity.name.type instead of entity.name.type.class (#3973) 2019-07-24 17:10:04 -07:00
Colen Garoutte-Carson 2b3d2ac541 Remove unused 'nogrammar' files (#3974) 2019-07-24 16:56:49 -07:00
Colen Garoutte-Carson 4b4c93cd94 Restore updated doc for enhanced colorization (#3955) 2019-07-22 13:04:01 -07:00
Sean McManus fa4d7b22c1 Update package.json version. (#3948) 2019-07-19 12:33:53 -07:00
Colen Garoutte-Carson 3cb7f7e61f Merge pull request #3946 from microsoft/coleng/CherryPickAgain
Cherry pick into release for 0.24.1
2019-07-18 18:54:51 -07:00
Colen Garoutte-Carson 779f2ce2b5 Fix issue with didClose received after didOpen (#3844) 2019-07-18 18:42:51 -07:00
Colen Garoutte-Carson 0c4c83e5bd Improve scope names used by Enhanced Colorization (#3896) 2019-07-18 18:42:46 -07:00
Colen Garoutte-Carson a369ede8d9 Update changelog for 0.24.1 release (#3945) 2019-07-18 18:42:40 -07:00
Colen Garoutte-Carson 36ce8f885f Revert "cherry pick fixes for 0.24.1 (#3943)"
This reverts commit 347794b0c7.
2019-07-18 18:37:18 -07:00
Colen Garoutte-Carson 2cde4d6f1a Update changelog for 0.24.1 release (#3945) 2019-07-18 18:34:48 -07:00
Colen Garoutte-Carson 066c8f1247 Temporarily revert documentation until changes to feature ship (#3944) 2019-07-18 17:31:14 -07:00
Colen Garoutte-Carson 347794b0c7 cherry pick fixes for 0.24.1 (#3943) 2019-07-18 17:28:00 -07:00
Colen Garoutte-Carson 4495d0b26d Improve scope names used by Enhanced Colorization (#3896) 2019-07-18 16:30:05 -07:00
Jorge Reyes Paniagua b1d50e4336 file watcher compiler commands (#3938)
* use resolve path to create valid file watcher

* convention fix

* changes for improve implementation

* Moved validation to mantain logic
2019-07-18 15:52:51 -07:00
Sean McManus cb035dd1f2 Update dependencies. (#3931) 2019-07-15 17:05:50 -07:00
Jorge Reyes Paniagua 3faaca14c0 Add c++20 to enums (#3905)
* Add c++20 to enums

* update msvc version in json files
2019-07-15 14:47:00 -07:00
Michelle Matias 53107bc57c Update c_cpp_properties.json description in Config UI and documentation (#3872)
* Update c_cpp_properties.json desc

* minor text change

* fix casing on "the"

* update names

* update ipch on FAQ

* fix text

* fix wording

* update link in FAQ

* update ipch name and title

* missing s

* use macOS
2019-07-08 15:59:52 -07:00
Sean McManus d38740c098 Update dependencies and fwlinks. (#3885)
* Update dependencies and fwlinks.
2019-07-05 17:52:48 -07:00
Sean McManus ccc18a6f66 Add more linting and fix linter issues. (#3847)
* Add more linting and fix linter issues.
2019-07-05 14:39:06 -07:00
Colen Garoutte-Carson e26cae6838 Fix issue with didClose received after didOpen (#3844) 2019-07-03 21:05:02 -07:00
Sean McManus 9ea53681a5 Fix bug with mac crash version reading. (#3875) 2019-07-03 20:17:57 -07:00
Sean McManus 3ed087134c Merge pull request #3869 from microsoft/seanmcm/0_24_0_release
Seanmcm/0 24 0 release
2019-07-02 19:04:05 -07:00
Sean McManus 902355e021 Merge branch 'release' into seanmcm/0_24_0_release 2019-07-02 18:36:53 -07:00
Sean McManus 32e98912df Change version 2019-07-02 18:33:53 -07:00
Colen Garoutte-Carson 6bc49d595e Update release notes and changelog for June 2019 release (#3868)
* Update release notes and changelog for June 2019 release
2019-07-02 18:29:19 -07:00
Pierson Lee 6b3c0f1b10 Update default for externalConsole to false (#3828) 2019-07-02 17:12:23 -07:00
Sean McManus 35501431f8 Add the binaryVersion to Mac crash telemetry. (#3865) 2019-07-02 11:43:56 -07:00
Colen Garoutte-Carson 27a3c9958d Add output of current configuration to diagnostics command (#3866) 2019-07-01 19:38:25 -07:00
Sean McManus 5b3d4ebf44 Update dev dependencies and ThirdPartyNotices.txt (#3863)
* Update dev dependencies.
* Update ThirdPartyNotices.txt
2019-07-01 15:50:40 -07:00
Andrew Wang cfc064efcd Support resolving ${env:...} in sourceFileMap (#3857)
* Support resolving ${env:...} in sourceFileMap

This PR addresses ${env:...} variables in sourceFileMap keys and values.
2019-07-01 11:25:51 -07:00
Colen Garoutte-Carson 4f7a64a1a2 Add support parent scope syntax in theme loader for enhancedColorization (#3855) 2019-07-01 11:05:32 -07:00
Sean McManus c84cb36004 Update changelog for 0.24.0-insiders3. (#3850) 2019-06-27 19:10:25 -07:00
Andrew Wang 0502351002 Update envFile variable substitution (#3848)
* Update envFile variable substitution

In launch.json, the `envFile` configuration can substitute
${workspaceFolder}, ${workspaceRoot} and ${env::???}.

* Fix lint issues
2019-06-27 17:52:58 -07:00
Andrew Wang 5de420ee70 Decrease F5 workflow time w/ VSCode (#3843)
* Decrease F5 workflow time w/ VSCode

webpack is being called twice. Once with --mode production and then
rewritten with --mode development. Fixing tasks and launch.
2019-06-27 15:57:49 -07:00
Bob Brown 6a73275924 This message wasn't being sent by the language server (#3840) 2019-06-27 12:29:40 -07:00
Michelle Matias d12591062e validate advanced settings input (#3838) 2019-06-27 11:45:35 -07:00
Colen Garoutte-Carson 3926110b33 Update colorization.md to remove (syntactic) identifier (#3832) 2019-06-25 18:16:38 -07:00
Bob Brown f5975e6534 update fwlink for abtesting (#3830) 2019-06-25 13:19:07 -07:00
Pierson Lee b55e2c7ac5 Add useful links at the top of the README.md in the extension (#3808)
* Add useful links at the top of the README.md in the extension

* add liveshare badge
2019-06-25 10:52:38 -07:00
Colen Garoutte-Carson 73fda38d71 Enable enhanced colorization by default (#3824)
* Enable enhanced colorization by default
2019-06-25 10:21:11 -07:00
TheGreatRambler 9211292b60 Update FAQ.md (#3812) 2019-06-25 10:19:03 -07:00
Colen Garoutte-Carson f63a8da581 Remove syntactic colorization in favor of text mate colorization (#3821) 2019-06-24 17:42:10 -07:00
Colen Garoutte-Carson fd314b1b04 Handle comma-delimited scopes in JSON themes (#3814) 2019-06-21 16:54:48 -07:00
Sean McManus ea52c76595 Change to use machine scopes for clang_format_path.. (#3810)
* Change to use machine scopes for clang_format_path.
2019-06-21 11:49:23 -07:00
Colen Garoutte-Carson 7659e2826b Remove incorrect editor background setting (#3806) 2019-06-20 11:34:42 -07:00
Michelle Matias 8e898151f6 resolve cache path (#3807) 2019-06-20 11:20:24 -07:00
Colen Garoutte-Carson b2b0ad37af Avoid applying edits to cached colorization tokens until needed (#3793) 2019-06-17 18:12:28 -07:00
Bob Brown cee6ebe1d9 Disabling enhanced colorization for now. (#3785) 2019-06-17 17:31:40 -07:00
Colen Garoutte-Carson 566e657fad Make handleSquiggles no longer dependent on special escaping in parsePropertiesFile (#3778) 2019-06-17 10:38:59 -07:00
Colen Garoutte-Carson db1f631396 Fix colorization issue where only 1 of multiple get colorized (#3777) 2019-06-14 13:29:06 -07:00
Colen Garoutte-Carson 426c08293d Attempt to address colorization issue with flickering on Mac (#3775) 2019-06-14 13:00:06 -07:00
Colen Garoutte-Carson 631a4452d0 Enable enhancedColorization by default. Fix refresh race in colorization.ts (#3770) 2019-06-13 16:46:46 -07:00
Michelle Matias 9b29698b0e fix cl.exe check and other UI fixes (#3769) 2019-06-13 15:39:18 -07:00
Colen Garoutte-Carson b5c94e9e1f Address issue with AB default not applied. Fix issue with non file URIs (#3767) 2019-06-13 14:18:48 -07:00
Sean McManus 384cd35d6b Fix configuration squiggles not appearing for multiple occurrences of the same error. (#3766) 2019-06-13 13:55:55 -07:00
Sean McManus 2d4df9149f Update changelog for Insiders. (#3763)
* Update changelog for Insiders.
2019-06-12 19:44:57 -07:00
Michelle Matias d3c2ccbb93 return empty string if path is not set (#3761) 2019-06-12 17:15:56 -07:00
Colen Garoutte-Carson c637221b92 Update colorization support to only return tokens for currently visible ranges (#3738) 2019-06-12 16:28:40 -07:00
Michelle Matias 814f01b263 Change cache path default (#3747)
* change cache path default

* update check for falsy

* change default path name and location

* Update cache path description in json
2019-06-12 15:20:41 -07:00
Andrew Wang b763aa57d3 Fix windows remote attach experience (#3757)
* Check host machine for specific quotes for command

Attach to process is not working on Windows OS due to the single quote
then double inner quote. However, this is required for linux because if
you do not, it will evaluate the variables within the double quotes.
2019-06-12 15:06:02 -07:00
Michelle Matias 54b1e69975 Update IntelliSense mode and compiler compatibility validation (#3752)
* get compiler name

* get name for case when there are no args
2019-06-12 14:03:14 -07:00
Andrew Wang dacfe08033 Enable 'envFile' for cppdbg (#3723)
* Enable 'envFile' for cppdbg

This PR allows the cppdbg configuration to set environment variables
via a envFile.

Example envFile:
ENVIRONMENT_VAR_1=Hello
ENVIRONMENT_VAR_2=15
2019-06-10 17:54:00 -07:00
Michelle Matias f5aa7dc33e change text of include path. code clean up. (#3743) 2019-06-07 16:27:34 -07:00
Michelle Matias 90c6e9876a Configuration UI - V2 (#3732)
* edit config name

* button active style

* refactor settings.ts

* clean up configurations.ts

* advanced settings

* telemetry compilerPath & listen to forecedInclude

* fix lint

* fix spelling

* spelling & fix contrast color for buttons

* remove outline of button on click

* save view state & code cleanup
2019-06-07 09:46:43 -07:00
Bob Brown 9fa950db6a Add a command to rescan the workspace (#3658) 2019-06-05 15:12:29 -07:00
Bob Brown 8ea627e085 Telemetry not being logged for intellisense mode mismatch (#3726) 2019-06-04 11:39:47 -07:00
Andrew Wang 536d38e3bf Remove minify from webpack compile (#3724)
This will cause the code to still be webpacked but will not minify it.
2019-06-03 13:52:11 -07:00
Sean McManus c10c626869 Change multi-root storagePath to use the index instead of name. (#3715)
* Change multi-root storagePath to use the index as a subfolder when the name is a duplicate.
2019-05-31 14:47:45 -07:00
Sean McManus 24d37bc233 Update TPN from plist dependency. (#3719) 2019-05-31 13:35:06 -07:00
Sean McManus 158719cf46 Fixes to gcc problem matcher. (#3714)
* Fixes to gcc problem matcher.
2019-05-30 14:41:21 -07:00
Colen Garoutte-Carson b6327ed6c3 Add colorization support to cpptools (#3651) 2019-05-30 13:42:18 -07:00
Michelle Matias c60a2c6752 Add list of detected compiler paths to IntelliSense config UI (#3708)
* editable select control for compilerPath field

* set compiler path values

* update comments and width

* normalize path, update description
2019-05-30 11:27:49 -07:00
Michelle Matias 1f7c27d7f9 fix elementId.configName (#3692) 2019-05-24 17:25:50 -07:00
Karsten Thoms 1d82458a3a Fix typo in intelliSenseMode description (#3682) 2019-05-23 15:54:53 -07:00
Michelle Matias 25d122c3f7 Add telemetry to configuration UI (#3661)
* add telemetry to config ui

* cache telemetry and log when settingsPanel object is disposed

* fix linting
2019-05-22 14:41:39 -07:00
Andreea Isac 627acc535e Refresh IntelliSense time (#3680)
* Flame on timing

* Fixed linter errors

* Log IntelliSense refresh time information for debug logging level.

* Rephrasing log message

* Print the message in the output window instead of the console.
2019-05-22 14:03:04 -07:00
Sean McManus 515d858b4d Fix ${workspaceFolderBasename} resolving to "untitled", and add ${workspaceStorage} (#3643)
* Fix ${workspaceFolderBasename} resolving to "untitled".
* Enable ${workspaceStorage} in intelliSenseCachePath.
2019-05-21 15:26:05 -07:00
Bob Brown 7ec15af47c Clarify data collection policy #3299 (#3660) 2019-05-17 11:22:14 -07:00
Bob Brown cac58e9f88 Fix unit tests (#3659) 2019-05-16 11:46:29 -07:00
Sean McManus 0c28725628 Update versions. (#3641)
* Update versions.
2019-05-14 18:03:16 -07:00
Sean McManus 084a8e708c Merge pull request #3630 from microsoft/0_23_1_release
0 23 1 release
2019-05-10 15:57:24 -07:00
Sean McManus 045d50bb90 Merge branch 'release' into 0_23_1_release 2019-05-10 15:17:20 -07:00
Sean McManus 68eda19665 Update version. 2019-05-10 15:14:16 -07:00
Sean McManus ae564c8428 Update changelog for 0.23.1. (#3629) 2019-05-10 15:12:41 -07:00
Sean McManus 5241ce28e0 Add telemetry for missing language service extension binary (#3611)
Add telemetry for missing language service extension binary
2019-05-10 14:55:10 -07:00
Sean McManus febb880e32 Fix launch.json creation with intelliSenseEngine Disabled. (#3612)
* Fix launch.json creation with intelliSenseEngine Disabled.
2019-05-09 15:56:30 -07:00
Sean McManus d1c344b944 Fix .vscodeignore issues. (#3623) 2019-05-09 14:49:00 -07:00
Colen Garoutte-Carson a19d1c325e Fix issue with extension context not being set before initializeTemporaryCommandRegistrar (#3622) 2019-05-09 13:48:23 -07:00
Sean McManus 82225338c4 Update ThirdPartyNotices.txt -- removed a lot of unnecessary stuff. (#3606)
* Update ThirdPartyNotices.txt -- removed a lot of unnecessary stuff.
* Minor update to changelog.
2019-05-08 12:11:55 -07:00
Sean McManus fa72ab582d Seanmcm/update dependencies (#3605)
* Update the dependencies.
2019-05-07 17:19:57 -07:00
Sean McManus 0b3e43c93f Update TPN. (#3601) 2019-05-07 12:51:21 -07:00
Sean McManus 8b332a7795 Update version and fwlinks. (#3600)
* Update version and fwlinks.
* Some package-lock.json changes.
2019-05-07 12:18:10 -07:00
Sean McManus 39ab866a10 Merge pull request #3595 from microsoft/seanmcm/0_23_0_release
Seanmcm/0 23 0 release
2019-05-06 18:47:28 -07:00
Sean McManus d4cdfe6994 Merge branch 'release' into seanmcm/0_23_0_release 2019-05-06 18:42:11 -07:00
Sean McManus 4e20f27127 Seanmcm/0 23 0 changelog (#3593)
* 0.23.0 changelog.
2019-05-06 18:31:48 -07:00
Michelle Matias 4e2f1b8ba5 update release notes for 5-2019 (#3592)
* update release notes for 5-2019
2019-05-06 18:21:54 -07:00
Sean McManus 0cffa4e27a Dev/waan/fix test run (#3581)
* Fix integration tests and fail if tests fail
2019-05-06 16:51:51 -07:00
Colen Garoutte-Carson b67e701fc9 Address issue with trailing backslashes in config path not squiggled (#3573) 2019-05-01 15:58:19 -07:00
Sean McManus 77f3747630 Fix includePath code actions and configuration actions. (#3576)
* Fix `includePath` code actions amd configuration actions.
2019-05-01 14:26:55 -07:00
Sean McManus dc8813f449 Fix undefined access if there's no includePath. (#3572)
* Fix undefined access if there's no includePath.
2019-05-01 11:38:57 -07:00
Sean McManus e0543a64c1 Seanmcm/0 23 0 insiders2 changelog2 (#3571)
* Update changelog for crash fixes.
2019-04-30 16:12:52 -07:00
Sean McManus e5b118c707 Update changelog for 0.23.0-insiders2. (#3570)
* Update changelog for 0.23.0-insiders2.
2019-04-30 14:23:34 -07:00
Colen Garoutte-Carson f465766d1e Undo tab size change (#3568) 2019-04-30 12:29:15 -07:00
Michelle Matias 7f4fc339c7 Add input validation on configuration UI (#3563)
* show errors on config UI
2019-04-29 19:10:15 -07:00
Sean McManus 788cee3ecf Fix out dir not getting created. (#3562) 2019-04-29 16:42:43 -07:00
Michelle Matias 05939c19a9 add depends on (#3561) 2019-04-29 16:14:24 -07:00
Colen Garoutte-Carson 110e683790 Work around issue with getting stale contents from openTextDocument (#3545)
* Work around issue with getting stale contents from openTextDocument

* Avoid calling openTextDocument when creating a new file, and use only writeFile.  Unsubscribe from window activation when settings UI is not visible.

* Switch to using editorTabSize for settings file
2019-04-29 15:17:01 -07:00
Andrew Wang 6a88c9917b Adding support for .env files for cppvsdbg (#3500)
* Adding support for .env files for cppvsdbg

This PR allows users to have a .env file that listed as
KEY=VALUE or KEY="VALUE WITH SPACE" to be used as environment variables
when launching a process. Anything that begins with '#' is treated as a
comment. Blank lines are ignored.

This .env file will be used if envFile passed in with the launch.json.
It will also work with the existing environment variable, however
anything listed in the .env file will overwrite anything from the
environment field in the launch.json.

* Update 'envFile' description and add documentation
2019-04-26 14:59:43 -07:00
Sean McManus 2ac33971ed Update webpack dependency, fix linter errors (#3544)
* Update webpack dependency.
* Fix lint errors.
2019-04-26 14:43:29 -07:00
Sean McManus a5905276ce Bobbrow/webpack (#3411)
* Use webpack to consolidate JavaScript files
2019-04-25 18:34:15 -07:00
Colen Garoutte-Carson d6726e5d42 Switch to using the installExtension command for offline/insider vsix installing (#3521) 2019-04-25 18:02:23 -07:00
Colen Garoutte-Carson aa6873b84e Work around vscode not treating .C files as C++ (#3536) 2019-04-25 17:53:07 -07:00
Colen Garoutte-Carson e3ddec66ee Update config squiggle parsing to squiggle bad paths delimited by semicolons (#3517) 2019-04-25 17:45:42 -07:00
Sean McManus 26d83d136e Skip first install release notes (#3534)
* Don't show release notes if the extension has never been installed before
2019-04-25 17:13:08 -07:00
Colen Garoutte-Carson 6f4439ca88 Various settings UI load/save related changes (#3529) 2019-04-25 10:09:10 -07:00
Colen Garoutte-Carson 3fbeba779c Unescape backslashes in settings for UI (#3527) 2019-04-24 13:49:43 -07:00
Colen Garoutte-Carson cfc908a1ac Update Select Configurations command to offer Edit Configs JSON option (#3519)
* Update Select Configurations command to offer Edit Configs JSON option

* Add 'Edit Configurations (UI)' option to Select Configuration menu
2019-04-24 11:19:53 -07:00
Sean McManus f3a02fde4e Change version. (#3520) 2019-04-23 18:10:57 -07:00
Sean McManus e863e88e95 Merge pull request #3516 from Microsoft/seanmcm/0_23_0_changelog2
Seanmcm/0 23 0 changelog2
2019-04-23 17:11:53 -07:00
Sean McManus bc70ea8c79 Merge branch 'master' into seanmcm/0_23_0_changelog2 2019-04-23 16:58:14 -07:00
Michelle Matias bbfea25a1d Config UI data sync fix (#3515)
* fix data sync, rewording

* add default to intellisense mode. rewording.

* fix lint

* update description

* remove extra padding
2019-04-23 16:57:50 -07:00
Sean McManus 968d6c5919 Add a reported by. 2019-04-23 14:46:32 -07:00
Sean McManus 33d23b3a5e Revert line endings. 2019-04-23 14:27:09 -07:00
Sean McManus 4bf3691f7f Move issue. 2019-04-23 14:26:27 -07:00
Sean McManus bf9d69a8ad Update changelog. 2019-04-23 14:22:35 -07:00
Bob Brown 9a78289fec encode the installation type in install telemetry (#3513) 2019-04-23 10:28:23 -07:00
Michelle Matias 7960904575 changelog for 0.23.0 insiders (#3499)
* Log new features and minor changes

* fix quotes

* Update changelog.

* Separate sections.

* Fix.

* Minor change.

* More changes.
2019-04-19 18:19:50 -07:00
Michelle Matias dd590ea1f5 Config UI - fix colors on some html elements. Change some wording. (#3498)
* fix empty compilerPath. Clarify some descriptions

* fix colors

* removed unused code
2019-04-19 18:08:55 -07:00
Sean McManus 5d1e503480 Merge pull request #3497 from Microsoft/seanmcm/showLogDiagnostics
Seanmcm/show log diagnostics
2019-04-19 15:50:49 -07:00
Sean McManus 3b15f515d1 Merge branch 'master' into seanmcm/showLogDiagnostics 2019-04-19 15:44:50 -07:00
Sean McManus d7a3384a07 Merge pull request #3495 from Microsoft/seanmcm/updateThirdPartyNotices
Update ThirdPartyNotices.txt
2019-04-19 15:44:30 -07:00
Sean McManus 4cdcd72990 Merge branch 'master' into seanmcm/showLogDiagnostics 2019-04-19 15:40:52 -07:00
Sean McManus 740705973e Merge branch 'master' into seanmcm/updateThirdPartyNotices 2019-04-19 15:34:26 -07:00
Colen Garoutte-Carson 3a78e96785 Add check for undefined compilerPath in isCompilerIntelliSenseModeCompatible (#3496) 2019-04-19 15:15:15 -07:00
Sean McManus 39b89bdb5b Undo newline change. 2019-04-19 14:33:37 -07:00
Sean McManus d4d68cb808 Show the log diagnostics. 2019-04-19 14:32:34 -07:00
Sean McManus d3e8958b29 Update ThirdPartyNotices.txt 2019-04-19 13:11:18 -07:00
Colen Garoutte-Carson 0e3fea978a Add command to log language service diagnostics (#3489)
* Add support for showing diagnostics
2019-04-18 18:12:08 -07:00
Sean McManus a39b1a5d6c Merge pull request #3486 from Microsoft/bobbrow/tasksIndentation
When generating tasks.json, use the editor's tab setting
2019-04-18 17:45:11 -07:00
Sean McManus f15994a58c Merge branch 'master' into bobbrow/tasksIndentation 2019-04-18 17:35:01 -07:00
Sean McManus 009c77d45f Merge pull request #3453 from Microsoft/seanmcm/fixJsonParse
Fix for 0.22.0 regression caused by squiggle work: https://github.com/Microsoft/vscode-cpptools/issues/3449 .
2019-04-18 17:34:41 -07:00
Sean McManus 94e213449f Merge branch 'master' into seanmcm/fixJsonParse 2019-04-18 17:14:14 -07:00
Michelle Matias 7ae6818bfb Add styling to configuration UI (#3487)
* add styling to configuration UI

* fix casing on command text. style cleanup

* edit wording for command palette tip

* change wording. Disable editing of config name

* update webview on config selection changed
2019-04-18 17:03:48 -07:00
Sean McManus 03a6c04629 Merge branch 'master' into seanmcm/fixJsonParse 2019-04-18 16:07:44 -07:00
Andrew Wang 8526bc90cb Add debugHeap toggle and turn off by default (#3488)
* Add debugHeap toggle and turn off by default

This PR adds a launch.json setting to enable debugHeap if users are
intersted in using it. By default, debug heap will be disabled.
2019-04-18 15:52:37 -07:00
Bob Brown 105760833d Merge branch 'master' into bobbrow/tasksIndentation 2019-04-18 15:04:33 -07:00
Colen Garoutte-Carson 239e4015d6 Add config squiggle for intelliSenseMode/compilerPath mismatch (#3483)
* Add squiggle for intelliSenseMode/compilerPath mismatch

* Break out function for isCompilerIntelliSenseModeCompatible.
2019-04-18 14:02:29 -07:00
Bob Brown (DEVDIV) 7e7b38acd7 When generating tasks.json, use the editor's tab setting 2019-04-18 11:22:04 -07:00
Sean McManus 260dc5d840 Merge branch 'master' into seanmcm/fixJsonParse 2019-04-17 18:01:34 -07:00
Michelle Matias 99b290513b Configuration UI (#3479)
* Add settings webview

* Add setting: useSettingsUI

* Use existing global setting (workbench.settings.editor == ui | json)

* handle changes from webview

* Add content security policy to html

* Move use of workbench settings into OtherSettings class

* sync ui and json file

* Add functions for each way to open settings (UI, JSON, based on config)

* Remove unnecesary command

* add telemetry. handle failed parse. Add UI command to toast notification.

* add newline

* fix value properties of HTML element

* fix another html value

* fix formatting

* add typedef

* fix more formatting and ===

* fix code styling. fixed some bugs.

* move configDirty flag reset

* add typedef to onWindowStateChanged

* small clean up
2019-04-17 16:31:46 -07:00
Sean McManus 76b3d9ca28 Merge pull request #3455 from Microsoft/seanmcm/fixMultiRootHover
Fix hover using the active client instead of the owning client.
2019-04-17 16:11:19 -07:00
Sean McManus 806dc8ac43 Merge branch 'master' into seanmcm/fixMultiRootHover 2019-04-17 16:04:30 -07:00
Colen Garoutte-Carson 03cf4d7aaf Default intelliSenseEngineFallback to Disabled. Add additional settings value to errorSquiggles (#3421)
* Update package.json to reflect new values

* Break ToggleErrorSquiggles out into Enable/Disable

* Update localization files
2019-04-17 16:00:28 -07:00
Sean McManus 569a7cb53d Merge pull request #3478 from Microsoft/seanmcm/fixRegExpInConfigName
Seanmcm/fix reg exp in config name
2019-04-17 14:17:03 -07:00
Sean McManus 6de2250fef Merge branch 'master' into seanmcm/fixRegExpInConfigName 2019-04-17 14:08:29 -07:00
Sean McManus ae861b3605 Change sorting. 2019-04-17 14:07:19 -07:00
Bob Brown 2aeadbd395 Update FAQs.md for ipch folder (#3424) 2019-04-16 22:03:38 -07:00
Sean McManus 0b500cefb7 Fix line endings. 2019-04-16 14:57:28 -07:00
Sean McManus 2e8cd7f406 Fix bug with special chars in config name. 2019-04-16 14:56:23 -07:00
Sean McManus 8c8c2c22e3 Undo line changes. 2019-04-16 14:35:34 -07:00
Sean McManus bdc8322da3 Go back to my original fix. 2019-04-16 14:34:39 -07:00
Sean McManus eeb2ba207c Work in progress. 2019-04-16 14:11:34 -07:00
Sean McManus f848bf392a Fix hover using the active client instead of the owning client. 2019-04-11 18:18:29 -07:00
Sean McManus f72a3ded96 Undo activation events change. 2019-04-11 16:00:05 -07:00
Sean McManus 31b993941b Another attempt to undo changes. 2019-04-11 15:59:07 -07:00
Sean McManus 59b0b3f924 Merge branch 'seanmcm/fixJsonParse' of https://github.com/Microsoft/vscode-cpptools into seanmcm/fixJsonParse 2019-04-11 15:57:57 -07:00
Sean McManus 5b90fc6bd3 Attempt to undo commits. 2019-04-11 15:57:06 -07:00
Sean McManus a4e9df0e6e Merge branch 'seanmcm/fixJsonParse' of https://github.com/Microsoft/vscode-cpptools into seanmcm/fixJsonParse 2019-04-11 15:55:17 -07:00
Sean McManus 3ef0b7597f Undo checked in files. 2019-04-11 15:54:47 -07:00
Sean McManus 74c9b0b967 Replace 3 replace with 1.
Signed-off-by: Sean McManus <[email protected]>
2019-04-11 15:52:29 -07:00
Sean McManus 3b5a8466d7 Update line endings. 2019-04-11 15:27:22 -07:00
Sean McManus fbf8ed4e35 Fix bug with json parsing. 2019-04-11 15:26:07 -07:00
Colen Garoutte-Carson c978eb0755 Reorder contents of provideCustomConfiguration, as an optimization (#3437) 2019-04-11 10:06:24 -07:00
Sean McManus 0f67f54b42 Seanmcm/small changes for insiders (#3435)
* Update changelog.
* Remove confusing quotes from clang_format_style descriptions, and use the Visual Studio style as the clang_format_style examples.
2019-04-08 21:50:46 -07:00
Sean McManus b770030ec2 Update changelog for 0.22.2-insiders. (#3409)
* Update changelog for 0.22.2-insiders.
2019-04-04 14:11:08 -07:00
Colen Garoutte-Carson 8129ce337e Add call to notifyWhenReady, to prevent crash (#3406)
Addresses an issue with a prior change, which added use of languageClient when it may not yet be available.

Use requestWhenReady(), to prevent crash.
2019-04-04 13:00:34 -07:00
Colen Garoutte-Carson 93a88c948a Ensure clearCustomConfigurations() is called when changing the configurationProvider (#3404)
* Ensure clearCustomConfigurations() is called when changing the configurationProvider
2019-04-03 17:00:14 -07:00
Sean McManus 34d8874754 Seanmcm/disable cpp squiggles (#3405)
* Add enableConfigurationSquiggles.
2019-04-03 16:42:44 -07:00
Sean McManus 0773ec8c41 Fix compile_commands prompt not being per-folder. (#3399) 2019-04-03 13:07:19 -07:00
Colen Garoutte-Carson 9f842ac0d9 Add use of queryTranslationUnitSource to determine if custom configuration can be skipped (#3393)
Add call in provideCustomConfiguration to new QueryTranslationUnitSourceRequest. Use result to decide whether it's necessary to request a custom configuration.

* Add queryTranslationUnitSource

* Update "Building the Extension.md"
2019-04-03 12:39:17 -07:00
Sean McManus e8d0ded816 Fix for null ref race condition when using custom config providers. (#3377)
* Fix for null ref race condition when using custom config providers.
2019-04-02 15:22:25 -07:00
Tara Raj f5bdac9889 Merge pull request #3314 from Microsoft/taraj/box-sample
Taraj/box sample
2019-04-02 14:36:59 -07:00
Sean McManus eb976d5ca5 Merge branch 'master' into taraj/box-sample 2019-03-28 19:11:35 -07:00
Sean McManus d5a902e144 Enable environment variables with intelliSenseCachePath. (#3368)
* Enable environment variables with intelliSenseCachePath.
2019-03-27 18:28:07 -07:00
Sean McManus b0c2d54144 Merge branch 'master' into taraj/box-sample 2019-03-27 18:02:57 -07:00
Sean McManus bcdabc9c36 Attempt to fix Azure Pipelines Cl. (#3371) 2019-03-27 17:02:53 -07:00
Sean McManus e054287c48 Update for 0.22.2. (#3359) 2019-03-27 12:40:57 -07:00
Sean McManus dcf480990b Merge branch 'master' into taraj/box-sample 2019-03-26 12:52:53 -07:00
Sean McManus 02a3152f0f Fix duplicate build task when compilerPath has args. (#3360) 2019-03-26 12:52:27 -07:00
Sean McManus 77806f657f Add squiggle for compilerPath with args and spaces missing quotes. (#3358) 2019-03-26 12:41:59 -07:00
Bob Brown 7e5f22f862 updates 2019-03-25 21:10:52 -07:00
Sean McManus 0f8e7b2d7b Merge branch 'master' into taraj/box-sample 2019-03-25 15:34:43 -07:00
Sean McManus 088276b4af Seanmcm/component governance (#3346)
* Add Component Governance.
2019-03-25 11:44:55 -07:00
Tara Raj a7cefc9d4d Merge branch 'master' into taraj/box-sample 2019-03-22 09:53:05 -07:00
Bob Brown 30d8a1daa4 Update FAQ.md 2019-03-22 09:08:58 -07:00
Bob Brown (DEVDIV) 148ae1d325 ignore cache files 2019-03-22 08:52:21 -07:00
Tara Raj 968ce8acba Adding gitignore file 2019-03-21 12:56:54 -07:00
Tara Raj ff6e13e829 Add Box Sample and Remove Stale Clang Sample 2019-03-21 11:45:05 -07:00
Sean McManus c18592b5a3 Merge pull request #3332 from Microsoft/0_22_1_release
0 22 1 release
2019-03-20 19:06:23 -07:00
Sean McManus fee924b374 Merge branch 'release' into 0_22_1_release 2019-03-20 18:46:03 -07:00
Sean McManus 6724e13c63 Update for 0.22.1. 2019-03-20 18:44:44 -07:00
Sean McManus 798e90574c Update for 0.22.1. (#3331) 2019-03-20 18:24:13 -07:00
Sean McManus 1eb064e020 Build tasks.json deletion. Configure Task. (#3328)
* Build tasks.json deletion. Configure Task.
2019-03-20 15:39:06 -07:00
Sean McManus 717de54b06 Merge pull request #3321 from Microsoft/0_22_0_release
0 22 0 release
2019-03-19 16:52:44 -07:00
Sean McManus 51cd214f1e Merge branch 'release' into 0_22_0_release 2019-03-19 16:40:15 -07:00
Sean McManus 4ca9ad8b3a Update changelog. (#3312)
* Update changelog.
2019-03-19 14:01:54 -07:00
Sean McManus 8aadd40a58 Fix squiggles with WSL compilerPath with args. (#3313)
* Fix squiggles with WSL compilerPath with args.
* Normalize path separators.
2019-03-19 13:44:58 -07:00
Tara Raj 7088f546aa Additional box sample files 2019-03-18 19:53:33 -07:00
Tara Raj 64ca48b50e BoxConsoleSample for build and debug demo 2019-03-18 19:52:49 -07:00
Sean McManus 0c61ee96b7 Fix variable resolving not working with ${default}. (#3310) 2019-03-18 15:47:57 -07:00
Bob Brown e020801dac readme feedback #3300 (#3307) 2019-03-18 13:12:18 -07:00
Sean McManus 270a4f7d38 Update changelog for 0.22.0-insiders3. (#3294)
* Update changelog for 0.22.0-insiders3.
2019-03-14 17:27:22 -07:00
Sean McManus 342de46452 Disable the IntelliSense cache on Mac. (#3293)
* Disable the IntelliSense cache on Mac.
2019-03-14 14:22:32 -07:00
Bob Brown cd0dde9e27 Update release notes (#3291) 2019-03-14 13:14:40 -07:00
Bob Brown 79f8262d26 show squiggles when invalid properties are added to the c_cpp_properties.json file (#3283) 2019-03-12 16:58:30 -07:00
Sean McManus 24b69c7873 Seanmcm/add cl debug support (#3264)
* Add cl.exe support.
* Fix Build and Debug too early.
* Make menus better.
2019-03-12 16:55:15 -07:00
Andrew Wang 260124b39b Updating vsdbg (#3267) 2019-03-11 13:02:44 -07:00
Sean McManus 2426a66be4 Seanmcm/change mac mi debugger path default (#3262)
* Change default miDebuggerPath on Mac.
2019-03-07 11:27:30 -08:00
Sean McManus 6f5c9e362b Fix unwanted compilerPath squiggle with cl.exe. (#3263) 2019-03-07 11:22:21 -08:00
Sean McManus 868799af10 Disable AutoPCH for older Macs. (#3261)
* Disable AutoPCH for older Macs.
2019-03-07 11:10:32 -08:00
Sean McManus 01d013723f Fix install vsix. (#3251)
* Fix install vsix.
2019-03-05 16:42:09 -08:00
Sean McManus 1a8e84bca3 Seanmcm/debug fixes (#3244)
* Fix debug launch bugs.
2019-03-05 16:29:43 -08:00
lh123 3db3c8da9a Suggest user switching to insiders channel (#3221)
* suggested user switch to insiders
2019-03-04 17:26:12 -08:00
Sean McManus 670a105c1f Update changelog. (#3243) 2019-03-01 17:26:25 -08:00
Andrew Wang 5445eff250 Update vsdbg for 0.23.0 (#3242) 2019-03-01 17:23:33 -08:00
Sean McManus 95dd5386ed Reduce VS Code requirement. (#3241)
* Reduce VS Code requirement.
* Remove more addresses in crash telemetry.
2019-03-01 16:02:41 -08:00
Sean McManus 55120359a4 Remove trailing "/" from intelliSenseCachePath setting. (#3240) 2019-03-01 14:44:11 -08:00
Sean McManus bb2d23c694 Change AutoPch to AutoPCH. (#3239) 2019-03-01 13:59:19 -08:00
Sean McManus 15ac01d70c Update date. (#3238) 2019-03-01 13:56:03 -08:00
Sean McManus 0c77b9e6cf Fix "cl.exe" in the compilerPath squiggle. (#3237)
* Fix "cl.exe" and missing ".exe" in the compilerPath squiggle.
2019-03-01 13:53:19 -08:00
Sean McManus c39579010b Fix bugs with compilerPath squiggles and build tasks. (#3228) 2019-03-01 11:10:16 -08:00
Bob Brown e928bfb0a9 Fix tslint issues (#3234) 2019-03-01 10:51:11 -08:00
Sean McManus 1d47bc4160 Seanmcm/0 22 0 insiders2 changelog (#3226)
* Update changelog for 0.22.0-insiders.
2019-02-28 17:56:27 -08:00
Griffin Downs 3d7937feeb Grdowns/launch configs (#3215)
* Implement debug configurations that will build the active C/C++ file and launch a debugger (disabled)
* Handle compilerPath in build and squiggles.
2019-02-28 16:46:26 -08:00
Andrew Wang 98260f96ea Remove Travis-CI (#3205)
Removing .travis.yml and will be removing webhooks/app integration of
Travis-CI from vscode-cpptools.

Minor fixes and add debug integration tests back.
2019-02-28 14:55:14 -08:00
Bob Brown 8d96465cb6 Enable ${command:cpptools.activeConfigName} in tasks #1524 (#3219)
* Enable ${command:cpptools.activeConfigName} in tasks #1524

* PR feedback
2019-02-26 20:09:20 -08:00
Bob Brown ece90711fb fix typos (#3218) 2019-02-26 14:54:22 -08:00
Bob Brown 361ca45b50 Merge pull request #3184 from Microsoft/mimatias/add_pch_settings
Add settings for auto pch
2019-02-25 14:51:34 -08:00
Sean McManus 28e8f1f2ed Seanmcm/cpp properties squiggles (#3196)
* Add c_cpp_properties.json warning squiggles for invalid paths.
2019-02-25 14:46:05 -08:00
Michelle Matias d27e609d92 Merge branch 'mimatias/add_pch_settings' of https://github.com/Microsoft/vscode-cpptools into mimatias/add_pch_settings 2019-02-22 13:59:41 -08:00
Michelle Matias fdcbfee87c update cache path 2019-02-22 13:59:26 -08:00
Sean McManus bda5bbf89c Merge branch 'master' into mimatias/add_pch_settings 2019-02-22 13:50:29 -08:00
Sean McManus 50ddd670c7 Fix command not found and empty c_cpp_properties.json if activation is too slow. (#3178)
* Fix command not found if activation is too slow.
* Fix empty c_cpp_properties.json.
2019-02-22 13:50:11 -08:00
Andrew Wang cc81b4bb8f Set up CI with Azure Pipelines (#3191)
Set up CI with Azure Pipelines
2019-02-22 11:51:01 -08:00
Michelle Matias a0f6eb61ad Update cachePath description 2019-02-22 11:05:09 -08:00
Michelle Matias 10a06af93d rename cachePath and cacheSize 2019-02-22 10:39:07 -08:00
Michelle Matias b28ab0a874 add slash at end of default path 2019-02-15 16:20:56 -08:00
Michelle Matias f1ca548849 filter autoPCH cache for telemetry 2019-02-15 16:16:40 -08:00
Michelle Matias f860223723 fix auto pch settings 2019-02-15 16:16:40 -08:00
Michelle Matias e2aaababc4 Add settings for cached pre-compiled headers 2019-02-15 16:16:40 -08:00
Andrew Wang 49aa55261f Fix quoting for process picker (#3181) 2019-02-15 12:58:11 -08:00
Griffin Downs 035d0284d9 Grdowns/build tasks (#3118)
* Generate a C/C++ build task

* Cleaning

* Move args into definition

* Add args to shellexecution to allow calling the task without first configuring; Add TODO's

* Read compiler paths sent in defaults to generate task list

* Rename compilerPaths to compilerInfo; Filter tasks based on file extension

* Use our own file extension filters to decide whether tasks are presented

* Show dialog when no compilers are found

* Display a message if no compilers are found

* Add compilerPath getter to config; Use it to offer another task

* Refactoring; Commenting

* Remove CompilerInfo namespace; Formatting; Change return vals

* Commenting; Add telemetry; Inverse condition

* Change output program based on OS; Remove message and collect telemetry instead

* Filter out redundant compiler entries

* Remove TODO; Get proper exe name; Properly reassign compilerPaths after filtering

* Commenting; Fix cwd mingw bug

* Commenting; Refactor

* Mark compilerInfo const

* Remove whitespace; Remove bad comment

* Remove whitespace

* Replace unique algorithm with a map

* pre-compute basename

* Move comment

* Commenting; Ensure user's compilerPath setting is used

* Use indexOf instead of find

* Simplify isHeader calculation by using some instead of every

* Don't redundantly check extensions; Use some instead of indexOf

* Add comment punctuation

Use file macro instead of fileDirName and fileBaseName

Change path provider name; expose cwd in definition

Add shell task definition (it's not built into vs code apparently)

* Lowercase file extension to match; Count extensionless files as headers

* Add newline

* Change CompilerInfo to KnownCompiler

* Support ambiguous file extension

* Early out for extensionless files

* Commenting

* Commenting; Rename telemetry event

* Change languageAssociation to isC

* Fix bug where cwd was not used; Add comment
2019-02-13 16:00:31 -08:00
Sean McManus f216e0262a Update extend version. (#3146) 2019-02-08 18:47:52 -08:00
Sean McManus 373e9be4cb Update changelog for 0.22.0-insiders. (#3137)
* Update changelog for 0.22.0-insiders.
2019-02-06 14:44:40 -08:00
Sean McManus 7a20270b10 Seanmcm/suggest snippets setting (#3135)
* Add suggestSnippets setting.
2019-02-05 15:46:49 -08:00
Bob Brown 41a4e14e4c Merge pull request #3128 from xisui-MSFT/xisui/chinese_command_support
Add Chinese support for commands
2019-02-04 09:38:58 -08:00
xisui-MSFT 13b78f2129 Add Chinese support for commands 2019-02-02 18:24:42 -08:00
Tucker Kern bf6b4aa54e Fix regex to allow non-recursive includePath (#3122)
* Fix regex to allow non-recursive includePath when constructing browse.path from includePath
2019-01-31 18:20:23 -08:00
Bob Brown f978719dea Merge pull request #3113 from Microsoft/bobbrow/cc
#3102 - fix compilerPath/compileCommands policy
2019-01-29 14:07:32 -08:00
Bob Brown (DEVDIV) 2713e70563 #3102 - fix compilerPath/compileCommands policy 2019-01-29 10:39:37 -08:00
Sean McManus af516b9515 Seanmcm/0 22 0 changelog1 (#3101)
* Update changelog, version, and fwlinks.
* Add telemetry for C/C++ Clang Command Adapter usage.
* Update language-service.md.
2019-01-28 17:44:04 -08:00
Andrew Wang 243f21380d Updating debugAdapterExecutable to new API (#2921)
https://code.visualstudio.com/updates/v1_30#_debugging-api has
depricated adapterExecutableCommand. This PR updates the extension to
use DebugAdapterDescriptorFactory.
2019-01-23 15:05:37 -08:00
Sean McManus da277c8593 Seanmcm/0 21 0 release2 (#3070)
* Update yauzl version and changelog date. (#3069)
2019-01-22 19:17:42 -08:00
Sean McManus 6fc9f7b682 Update yauzl version and changelog date. (#3069) 2019-01-22 19:05:23 -08:00
Bob Brown b3cce807bb Merge pull request #3068 from Microsoft/seanmcm/0_21_0_release 2019-01-22 14:43:34 -08:00
Sean McManus a533eb9a43 Merge branch 'release' into seanmcm/0_21_0_release 2019-01-22 14:32:57 -08:00
Sean McManus 9702eae953 Update package.json. 2019-01-22 14:32:04 -08:00
Sean McManus a4b51997ff Update version. 2019-01-22 14:30:32 -08:00
Sean McManus ec9270f5a9 Update ReleaseNotes. (#3067) 2019-01-22 14:25:09 -08:00
Griffin Downs 75f35a1fd7 Fix CLI mismatch for downgrading (#3065) 2019-01-22 13:24:00 -08:00
Sean McManus dcc0174133 Update changelog. (#3050) 2019-01-18 11:23:33 -08:00
jogo- 3b8c3143e4 Fix typos in launch.md (#3027)
* Fix typos in launch.md
2019-01-16 16:24:56 -08:00
jogo- 33e7d70324 Fix typo in How To Debug MIEngine.md (#3028) 2019-01-14 16:47:54 -08:00
jogo- 703e23a62b Update FAQs.md (#3029)
Missing whitespace
2019-01-14 13:15:28 -08:00
Jmnote 39ba7fc6ba extenion → extension (#3002)
extenion → extension
2019-01-08 16:00:02 -08:00
Sean McManus 6488a11dc3 Update changelog (#2997) 2019-01-03 14:31:12 -08:00
Sean McManus 5ca48e24cf Update changelog for 0.21.0-insiders3. (#2958)
* Update changelog for 0.21.0-insiders3.
2019-01-03 13:20:33 -08:00
Sean McManus de9cc715fc Give a better message if the binary is missing. (#2975)
* Give a better message if the binary is missing.
2019-01-02 18:15:05 -08:00
Sean McManus c727ceca1b Remove json-based snippets, handled by the server now. (#2945)
* Remove json-based snippets, handled by the server now.
2018-12-27 18:36:27 -08:00
Sean McManus f58af4fb2e Disable wordBasedSuggestions by default. (#2944) 2018-12-20 14:39:41 -08:00
Andrew Wang 7935b97329 Update How To Debug MIEngine.md (#2935)
* Update How To Debug MIEngine.md

Added information on how to debug with VS Code

* Update How To Debug MIEngine.md

* .dll -> .pdb

Mistake on symbol list
2018-12-17 14:33:09 -08:00
Sean McManus bd6f8f0df3 Update date in changelog. (#2926)
* Update changelog.
2018-12-17 14:11:40 -08:00
Sean McManus 4b22333f5c Attempt to fix download failure. (#2931)
* Retry vsix download with http.proxySupport "off".
2018-12-17 13:58:43 -08:00
Sean McManus 968e0d2aae Fix bug with Insiders updating. 2018-12-14 18:39:36 -08:00
Sean McManus 8dc8b3bc37 Update changelog for 0.21.0-insiders2. (#2911)
* Update changelog for 0.21.0-insiders2.
* Update README.md.
* Update to 5.1.1 of the vscode-languageclient.
2018-12-13 18:02:35 -08:00
Matt Bise bb962b91e8 Add refresh button to process picker (#2895)
* Add attach QuickView with refresh

* vscode engine 1.23 -> 1.26

* Clean up disposables

* Add entry to CHANGELOG

* Provide refresh image for dark and light themes

* Add title to QuickPick
2018-12-10 15:50:53 -08:00
Sean McManus 8c53c027ca Protect against no activeDocument. (#2875) 2018-11-28 16:05:27 -08:00
Sean McManus b864126494 Fix missed package.json issue from my last checkin. (#2873) 2018-11-28 11:33:16 -08:00
Bob Brown b78e85619a bump up the timeout (#2872) 2018-11-28 09:17:16 -08:00
Sean McManus f474ba8539 Seanmcm/fix insiders debugging (#2871)
* Fix debugging with VS Code Insiders and other Linter fixes.
2018-11-27 16:34:31 -08:00
Sean McManus 0f1071a5c9 Seanmcm/exploration build (#2829)
* Treat the Exploration build like Insiders.
* Update changelog.
2018-11-16 15:11:05 -08:00
Sean McManus f69e6e191b Update telemetry API. (#2828) 2018-11-14 19:38:49 -08:00
Sean McManus 230895d6ba Remove <numbers><spaces> from the start of call stack lines. (#2827)
* Remove <numbers><spaces> from the start of call stack lines.
* Remove __1::.
2018-11-14 19:06:08 -08:00
Sean McManus fa8173076d Update MinGW.md (#2813)
* Update MinGW.md
2018-11-14 17:51:23 -08:00
Bob Brown 3079fb58ae ignore update failures caused by no network present (#2808) 2018-11-13 15:37:35 -08:00
Julien Russo 9f1b482de4 Translation improvements (#2663)
Moved command english translation to package.nls.json, added command translation for italian and modified package.json to use localization files.
2018-11-12 16:54:22 -08:00
Sean McManus 8f6714254a Seanmcm/0 21 0 changelog3 (#2796)
* Change "Fix for" to "Fix" in changelog.
2018-11-08 17:34:34 -08:00
Sean McManus 5246cdc527 Update changelog. (#2795) 2018-11-08 17:21:36 -08:00
Sean McManus 4938f5b2f4 Update changelog for 0.21.0-insiders. (#2794) 2018-11-08 16:14:52 -08:00
Bob Brown 21fef3b067 use WebviewPanel (#2781) (#2783) 2018-11-07 14:47:57 -08:00
Pierson Lee 71582d1883 Add avoidWindowsConsoleRedirection and fix externalConsole comment (#2772)
* Add avoidWindowsConsoleRedirection and fix externalConsole comment

* Update OptionsSchema.json

* Making Andrew happy by updating npm@latest
2018-11-06 13:33:04 -08:00
Pierson Lee 23fc338f71 Update launch.md 2018-11-05 10:31:37 -08:00
Sean McManus 4a8b143ce0 Add more crash telemetry filtering. (#2759) 2018-11-01 15:55:47 -07:00
Sean McManus b1274d3c76 Merge pull request #2749 from Microsoft/seanmcm/0_20_1_release
Seanmcm/0 20 1 release
2018-10-31 17:24:43 -07:00
Sean McManus 8f8565dbfd Merge branch 'seanmcm/0_20_1_release' of https://github.com/Microsoft/vscode-cpptools into seanmcm/0_20_1_release 2018-10-31 17:16:30 -07:00
Sean McManus 7f4614c31c Merge again. 2018-10-31 17:15:52 -07:00
Sean McManus eccee49017 Fix punctuation/spacing inconsistencies. (#2750) 2018-10-31 17:12:30 -07:00
Sean McManus e231453778 Merge branch 'release' into seanmcm/0_20_1_release 2018-10-31 16:29:33 -07:00
Sean McManus 8729804dc2 Update version. 2018-10-31 16:27:42 -07:00
Anandlal c607604b6b "taskName" changed to "label" as per version 2.0.0 (#2741)
https://code.visualstudio.com/docs/editor/tasks#_migrating-to-tasks-200
2018-10-31 16:24:50 -07:00
Sean McManus 460b95920f Update changelog, fwlinks, and update telemetry API (#2748)
Update changelog, fwlinks, and update telemetry API
2018-10-31 16:06:34 -07:00
Pierson Lee 1c38b55b9f Update external Console notes
Updated external console option to show changes to support for integratedTerminal.
2018-10-31 12:08:00 -07:00
Sean McManus 0cf237c839 Merge pull request #2725 from Microsoft/master
2nd merge for 0.20.0
2018-10-25 16:46:17 -07:00
Sean McManus e12bad5172 Fix 2 typos in the changelog. (#2723) 2018-10-25 16:42:57 -07:00
Bob Brown 04bb260577 update release notes (#2722) 2018-10-25 16:42:15 -07:00
Bob Brown ddc1f901c2 Merge pull request #2721 from Microsoft/seanmcm/0_20_0_release
Seanmcm/0 20 0 release
2018-10-25 16:21:08 -07:00
Sean McManus 9ca27af2df Merge. 2018-10-25 15:58:34 -07:00
Sean McManus b964d4ebc4 Fix comment for intelliSenseEngine setting. (#2720) 2018-10-25 15:57:20 -07:00
Sean McManus 082435ec8b Fix comment for intelliSenseEngine setting. 2018-10-25 15:48:28 -07:00
Sean McManus 324c5f59f4 Update changelog for 0.20.0 release. 2018-10-25 15:38:26 -07:00
Sean McManus 72581c23b7 Update changelog for 0.20.0. (#2718)
* Update changelog for 0.20.0.

* Revise changelog for 0.20.0.
2018-10-25 15:29:44 -07:00
Sean McManus 807ff80f56 Update vscode telemetry api used. (#2707) 2018-10-23 20:23:12 -07:00
Griffin Downs b0e17a1fd9 Don't update pre-releases (#2693) 2018-10-19 16:00:55 -07:00
Griffin Downs bc64d25a1d Ensure that package version suffix + version suffix version are set (#2686) 2018-10-19 15:29:38 -07:00
Sean McManus ed5d8c8fac Get rid of the MacCrash memory addresses. (#2695) 2018-10-18 19:17:36 -07:00
Sean McManus 3a9f4c404d Update changelog for 0.19.1-insiders3. (#2694) 2018-10-18 17:19:28 -07:00
Bob Brown 4330679e23 Don't allow configuration providers to activate the extension when IntelliSense is disabled (#2692) 2018-10-18 12:29:06 -07:00
Andrew Wang 88e9724892 Attempt to fix security and gulp 4.0 (#2689) 2018-10-17 14:34:21 -07:00
Sean McManus acf7b464eb Update changelog.md. (#2676)
* Update changelog.md.
2018-10-16 13:38:58 -07:00
Sean McManus 78f5a38110 Update changelog for 0.19.1-insiders2 (#2649)
* Update changelog for 0.19.1-insiders2
2018-10-11 15:59:02 -07:00
Pierson Lee 31eed4cee2 Add missing interop 15 file to dev workflow (#2643) 2018-10-11 12:28:32 -07:00
Pierson Lee ea8ab1358f Update CHANGELOG.md and copyDebuggerDependencies (#2641)
Update for VSCodeDebugProtocol dll and for the Integratedterminal Work.
2018-10-10 17:53:20 -07:00
Pierson Lee 55558a53e3 Update links for mono framework and runtime (#2640)
Updating to 5.14.0.177 of mono. Update TPN header per CELA
2018-10-10 16:37:23 -07:00
Griffin Downs 536685c8a0 Grdowns/update channel fix (#2637)
* Use shell optional arg

* Add try/catch around spawn to override any possible exceptions

* Default vsixname to cpptools-linux32.vsix

* Move logFailure inline

* Remove potential PII from error message to be on the safe side

* Fix linter errors

* Remove spawn optional arg; instead remove quotes surrounding command

* Remove rethrowing of error at the top level checkAndApplyUpdate

* Commenting

* Remove default case in switch statement for vsixName; Add x86, i383, i686 cases
2018-10-10 15:51:29 -07:00
Sean McManus b6f184744c Update changelog. (#2625) 2018-10-08 15:04:16 -07:00
Sean McManus 539ecc536f Update the changlog for 0.19.1-insiders. (#2615)
* Update the changlog for 0.19.1-insiders.
2018-10-08 11:42:59 -07:00
Sean McManus e819f36e91 Fix error when rootRui is null. (#2614) 2018-10-05 15:34:44 -07:00
Bob Brown 140670c371 Update c_cpp_properties.json.md 2018-10-04 08:48:54 -07:00
Pierson Lee 102ffc1616 Fixing quoting around ssh's command (#2604)
This fixes #2585
2018-10-03 17:35:02 -07:00
Bob Brown 28981f3ce6 remove telemetry that is already being blocked (#2603) 2018-10-03 16:45:53 -07:00
shankaryoga21 775aba8650 don't use falsy comparisons when resolving default settings. (#2592) 2018-10-02 13:18:16 -07:00
Bob Brown b3fb2558fd update telemetry version (#2593) 2018-10-02 12:46:35 -07:00
Griffin Downs 80716ae228 Grdowns/update channel4 (#2576)
* Remove redundant error telemetry
* Check rate limit before attempting to download release JSON
2018-10-02 10:13:10 -07:00
Bob Brown 6d71c6dd4f Merge pull request #2575 from Microsoft/bobbrow/releaseToMaster
Merge release to master
2018-09-28 09:54:40 -07:00
Bob Brown (DEVDIV) da68908e3e update version and fwlinks for October release 2018-09-28 09:35:26 -07:00
Sean McManus 963ee02117 Merge pull request #2572 from Microsoft/master
Merge latest changes
2018-09-27 15:05:13 -07:00
Sean McManus 45a1804da4 Update changelog. (#2571) 2018-09-27 14:57:45 -07:00
Pierson Lee f66eb138f4 Return null config to VS Code (#2570)
return null to trigger VS Code to open a configuration file
https://github.com/Microsoft/vscode/issues/54213
2018-09-27 14:32:35 -07:00
Bob Brown da862646c3 Merge pull request #2566 from Microsoft/bobbrow/release-19.0
Bobbrow/release 19.0
2018-09-26 16:32:14 -07:00
Bob Brown (DEVDIV) 1bcaa540b6 update version number and fwlink for abtesting json 2018-09-26 16:30:07 -07:00
Bob Brown 96e3386288 september release notes/string changes (#2563) 2018-09-26 13:38:54 -07:00
Sean McManus 862a10f3f8 Merge branch 'master' of https://github.com/Microsoft/vscode-cpptools 2018-09-26 13:16:13 -07:00
Sean McManus 2e62382b24 Update changelog for 0.19.0. 2018-09-26 13:15:40 -07:00
Sean McManus 5f9ef54c54 Add ab testing for Go to Def (fix some ab testing bugs) (#2559)
* Add goto_def_intellisense abTesting.
2018-09-26 09:39:31 -07:00
Bob Brown 4575e2840e incorrect warning messages (#2560) 2018-09-25 17:13:10 -07:00
Bob Brown a9a09dcd11 Only serialize tasks that require it (#2553)
* Remove serialization in the queuing except for cases that actually need it
2018-09-25 13:28:14 -07:00
Bob Brown e0e7944f3a Don't add workspaceFolderBasename to new config files (#2552) 2018-09-25 12:48:14 -07:00
Griffin Downs 63e18afcf1 Update Channel pt 3 (#2543)
* Instead of uninstalling then installing, install and override when prompted
2018-09-24 16:32:06 -07:00
Bob Brown fcdcd80157 Fixing queuing logic that stalls LS on Mac (#2540) 2018-09-24 15:01:06 -07:00
Griffin Downs 126cf7cef6 Update channel feature pt 2 (#2541)
* Find Mac code script; Commenting; Move code into try catches correctly filter errors; Add notification on installation

* Merge files from correct commit

* Revert changes made from not having master branch code
2018-09-21 16:25:27 -07:00
Bob Brown ad451bb438 Resolve empty array environment variables #2532 (#2534) 2018-09-20 16:15:32 -07:00
Griffin Downs 83be111769 Add updateChannel setting (#2465)
* Read json from harded-coded file location

* Expose settings tracker

* Get linux download url

* Remove unused imports

* Correctly get changed setting

* Add update timer

* Minimum end to end

* Refactoring; Commenting; Renaming

* Commenting

* Add optional param to download fn; Refactoring; Renaming

* Commenting; Then parse fn

* Mark vars const; Add todos; Refactoring

* Commenting; Refactoring

* url from any to string; Index into parsed json as separate step

* Use temp files to prevent clutter

* Correct windows platform name check; Replace quotes

* Resolve vsixName for mac + win

* Factor version comparisons into ParsedVersion class while correcting version comparison

* Use which utility to find code script

* Update timer to once per hour

* Move downloadFileToDestination to common; Replace downloadCpptoolsJsonAsync

* Return changed settings on onDidChangeSettings

* Get changed settings without stealing them

* Remove tracker from client interface

* Add basic isReleaseJson fn; Add telemetry; Add catch functions

* Write type predicates for release json

* Refactoring; Rewrite version check; Rewrite build selection

* Factor target build search into helper fn

* Reorder fn defs

* Uninstall version before installing if downgrading

* Add undefined checks; Update version comparison

* Reorder fn

* Telemetry rename; Parse versions more safely

* Turn ParsedVersion into interface; Rename release to build

* Fix fn return types

* Commenting

* Remove unneeded validity check

* Rename telemetry event; Correct fn return type

* Update setting description

* Remove promise rejection

* Remove unwanted changes

* Rename var

* Remove imports; Move call to updateSettingsAsync to .then in abTesting

* Remove import; Remove unneeded uses of await

* Remove comment

* Reformat else ifs

* Remove '| undefined' instances

* Use find fn more idiomatically

* Add type specification for predicates + rename them

* Add url var to shorten call to downloadFileToDestination

* Move parsedVersion to separate file

* Move parsedVersion into PackageVersion class

* Move helper fn's to separate file

* Get script name for both insiders and release VSCode (untested)

* Move packageVersion + ghAPI from LanguageServe to src

* Update imports to reflect mv; Check isValid on PackageVersion

* Add todo's

* Correctly get download URL; Correctly verify releaseJson by only checking recent 5 builds

* Check version numbers against undefined instead of 0

* Await install command before removing install file; Change var name

* Re-merge package.json

* Rename ghAPI.ts to githubAPI.ts

* Rename vars; Remove TODO

* Modify version comparison (untested)

* Remove todo

* Create file async

* Download and install file async

* Rework promises

* Make functions async where possible

* Commenting

* Grandfather in insiders users

* Change syntax via await keyword

* Re-enable interval timer

* Add updateChannel settings get

* Immediately check for update on extension activation if on insiders

* Surround windows code script path in quotes

* Rename versionStr to version

* Change telemetry event

* Update telemetry/exception handling

* Update telemetry strings; Reformat is functions

* Another pass at promises + telemetry

* Commenting

* Remove undefined from fn return

* Fix headers not being forwarded to recursive call

* Another pass at promises

* Correctly return promise in checkAndApplyUpdate

* Remove debug vars

* Rename fns

* Fix version parsing

* Tidy version comparison

* Remove commented out code

* Variable rename; Add newline at EOF

* Add newline at EOF

* Commenting; Unbind functions and use function syntax for .thens

* Error message; add rejection

* Correct exceptions being handled one promise too late

* PR feedback

* Rewrite promise chain to await to allow premature cancellation of promise chain

* Mark vars const; Comment; Rename var
2018-09-19 10:44:24 -07:00
Bob Brown 2f931d930d Implement provider API v2 (#2531)
* Implement provider API v2
2018-09-18 16:33:08 -07:00
Sean McManus bc6cb3e55f Add the active selection end. (#2511)
* Add the active selection end.
2018-09-17 14:11:13 -07:00
Gabriel Arjones f44e9068ca Allow workspaceFolderBasename in default settings (#2503) 2018-09-10 12:33:30 -07:00
Gabriel Arjones c206a4b88c Add support for 'workspaceFolderBasename' expansion (#2491) (#2495) 2018-09-07 15:06:08 -07:00
Bob Brown 9e95e412a8 The user settings were not considered when querying the active configuration provider (#2485) 2018-09-05 12:40:28 -07:00
Bob Brown 86ce6c6115 Update c_cpp_properties.json.md 2018-09-04 09:17:44 -07:00
Pierson Lee ecd3eb24f4 Fix sh command (#2475)
When the change from bash to sh happened, the comparison operator was
not updated.

Fixes #2444
2018-08-31 15:30:33 -07:00
Bob Brown 25e29a01c2 Fix bug in default CL macros (#2468)
* incorrect cl macros being defined
2018-08-30 17:00:56 -07:00
Bob Brown e9b8ad66a1 fix bad line endings (#2469) 2018-08-30 16:48:44 -07:00
Bob Brown 3e5a6aae80 Update c_cpp_properties.json.md 2018-08-28 10:47:22 -07:00
Bob Brown 49fea0249d Update MinGW.md 2018-08-28 10:45:36 -07:00
Bob Brown 7de9956a92 Update Windows Subsystem for Linux.md
a few people seem to be getting confused about the example usage
2018-08-28 08:38:29 -07:00
Bob Brown 9abf44b7ac Update language-service.md (#2454) 2018-08-27 12:52:35 -07:00
Bob Brown daaf169c8a Update Enabling logging.md 2018-08-24 11:27:23 -07:00
Bob Brown 23d94452bb Update MinGW.md 2018-08-20 08:29:41 -07:00
Bob Brown 705122a168 update master branch version (#2428) 2018-08-17 13:53:15 -07:00
Sean McManus 757f1f94be Merge pull request #2427 from Microsoft/master
Update changelog and version for 0.18.1. fwlinks don't need to change…
2018-08-17 11:08:28 -07:00
Sean McManus 7fe2db1202 Update changelog and version for 0.18.1. fwlinks don't need to change. (#2426) 2018-08-17 10:53:49 -07:00
Sean McManus d8738c3e0c Merge pull request #2421 from Microsoft/master
Update changelog. (#2420)
2018-08-17 06:07:19 -07:00
Sean McManus b1bd33b8f4 Update changelog. (#2420) 2018-08-17 06:05:16 -07:00
Sean McManus 436c483d35 Merge pull request #2418 from Microsoft/master
Register the config provider for new clients. (#2416)
2018-08-17 05:05:56 -07:00
Sean McManus 99bd382707 Register the config provider for new clients. (#2416) 2018-08-16 15:50:36 -07:00
Bob Brown 356bb903d0 Merge pull request #2414 from Microsoft/master
Merge for 0.18.0
2018-08-16 10:34:19 -07:00
Sean McManus b0fc9427cf Merge branch 'release' into master 2018-08-16 10:01:07 -07:00
Sean McManus 60b20dce8d Update package-lock and fix new linter errors. (#2412)
Update package-lock and fix new linter errors.
2018-08-16 09:59:18 -07:00
Sean McManus 906fd2d8f0 Seanmcm/auto open cpp properties (#2410)
* Invoke `Edit Configurations...` when the `Configuration Help` button is clicked.
2018-08-16 09:34:20 -07:00
Bob Brown 4afadad93b update changelog (#2411) 2018-08-16 09:22:46 -07:00
Sean McManus 3790fa95e7 Add intelliSenseEngine "Disabled". (#2392)
* Add intelliSenseEngine "Disabled".
2018-08-16 09:12:32 -07:00
Griffin Downs a0882446d9 Update changelog to reflect compile commands parsing fix (#2409)
* Update changelog to reflect compile commands parsing fix
2018-08-16 06:35:39 -07:00
Sean McManus ce59810a6d Update changelog for 0.18.0. (#2384)
* Update changelog for 0.18.0.
2018-08-15 13:45:38 -07:00
Sean McManus 770013d77e Enable environment variables with clang_format_path. (#2380)
* Enable environment variables with clang_format_path.
2018-08-15 09:39:45 -07:00
Pierson Lee 2388fa97f4 Update FAQs.md (#2343) 2018-08-08 11:26:53 -07:00
Sean McManus 3381cde61c Update changelog for 0.17.8-insiders. (#2353)
* Update changelog for 0.17.8-insiders.
2018-08-03 17:36:17 -07:00
Sean McManus 3a46f10d97 Add gcc-x64 intelliSenseMode. (#2315)
* Add gcc-x64 intelliSenseMode.
2018-08-02 13:53:19 -07:00
Bob Brown 2b4b5d397d add a setting to modify the behavior of go to symbol in workspace (#2349)
* add a setting to modify the behavior of go to symbol in workspace
2018-08-02 13:37:47 -07:00
Andy Neff c36eb8e7b1 Using sh instead of bash (#2340)
Fixes #569
2018-07-30 15:37:55 -07:00
Bob Brown ad46d3887a Only allow one configuration popup at a time (#2337) 2018-07-30 14:28:19 -07:00
Bob Brown 8b704f5972 allow users to use ~ for ${userprofile} on Windows (#2333) 2018-07-27 12:50:56 -07:00
Bob Brown 1009b76b22 minor tweaks to config provider experience (#2302) 2018-07-27 09:27:14 -07:00
John Patterson 84ff661e15 adds CHANGELOG entry for PR 2322 (#2325)
Realized I had left out the CHANGELOG update. For [PR
2322](https://github.com/Microsoft/vscode-cpptools/pull/2322).
2018-07-27 09:24:11 -07:00
Xeonacid 2292e7d762 Improve description in Extension/README.md (#2336)
`MinGW` is the proper spelling

`OS X` is now called `macOS`
2018-07-27 09:23:40 -07:00
Andrew Wang c8e30c70b1 Allow telemetry to detect failed downloads (#2332) 2018-07-26 13:35:34 -07:00
John Patterson 7947dd80d6 Add multi-pass environment variable resolution (#2322)
* Dependent variable definition
```
"env": {
    "envRoot": "apps/tool/builldenv",
    "arm6.include": "${envRoot}/arm6/include"
},
...
"some_config": "${arm6.include}
```

* Additionally, this fixes an open bug that was not reported. If a variable contained "env", "config", or "workspaceFolder" it would not be parsed correctly. If you used a variable ${envRoot} it would match "envR" as the type and "oot" as the variable. This has been resolved.

* Also fixes travis-ci to run the unit tests as part of checkin validation
2018-07-24 14:40:58 -07:00
John Patterson 913f740cc2 adds settings for inactive region font & bg color (#2308)
* adds settings for inactive region font & bg color

This adds the inactiveRegionForegroundColor and inactiveRegionBackgroundColor
settings. If a preprocessor block is found to be inactive, it will be
colored by these fields if they are set. They accept hexadecimal font
strings or valid theme colors as their values.These fields also
interactive with the dimInactiveRegions setting.

This was requested in issue
https://github.com/Microsoft/vscode-cpptools/issues/2212.
2018-07-23 15:52:41 -07:00
Sean McManus 2cbc90d98b Fix empty windowsSDKVersion. (#2301) 2018-07-20 17:07:14 -07:00
Bob Brown 25a29d0bc3 update fwlinks 2018-07-20 10:45:55 -07:00
Bob Brown 052f4e7b39 update version 2018-07-20 10:34:59 -07:00
Bob Brown 2b245202b5 Merge pull request #2295 from Microsoft/bobbrow/merge_release
0.17.7
2018-07-19 12:27:41 -07:00
Bob Brown 15c6c0a50e update version number 2018-07-19 12:23:32 -07:00
Bob Brown a0e0254c73 Add a setting to silence configuration provider warnings (#2293)
* Add a setting to silence configuration provider warnings
2018-07-19 12:14:05 -07:00
Sean McManus 528905326f Update changelog. (#2289) 2018-07-19 12:03:37 -07:00
Sean McManus 458b2be489 Update changelog for 0.17.7. (#2288)
* Update changelog for 0.17.7.
* Fix main snippet.
2018-07-18 16:10:00 -07:00
Pierson Lee 95d4724dc8 Update launch.md with miDebuggerArgs (#2270) 2018-07-13 15:56:49 -07:00
Sean McManus a178faab9b Update cpp.hint to use the injected defaults. (#2261) 2018-07-12 15:22:47 -07:00
Sean McManus 25aa8206a0 Update changelog. (#2257)
* Update changelog.
2018-07-12 14:54:21 -07:00
Sean McManus 879d880c82 Seanmcm/windows sdk version (#2241)
* Add windowsSDKVersion.
2018-07-10 15:57:03 -07:00
Bob Brown 16c4defcd0 Add a command to change the active custom config provider (#2247) 2018-07-09 16:03:35 -07:00
Bob Brown 725828c1c5 disable the config provider message for headers outside the workspace & while debugging (#2239)
* disable the config provider message for headers & while debugging

* leave the message on for headers inside the workspace folder
2018-07-07 15:11:46 -07:00
Bob Brown 8b188541ba fix spelling 2018-07-06 14:09:42 -07:00
Sean McManus 28f1bc991e Add ${VcpkgRoot} variable 2018-07-06 14:08:37 -07:00
Sean McManus aa424f1946 Fix bug c_cpp_properties.json creation after being deleted. (#2235)
Fix bug c_cpp_properties.json creation after being deleted: https://github.com/Microsoft/vscode-cpptools/issues/2214
2018-07-06 13:12:08 -07:00
Bob Brown 130711f4c5 Update Building the Extension.md 2018-07-03 10:25:12 -07:00
Bob Brown 863d26451c Merge pull request #2218 from Microsoft/master
merge master -> release
2018-07-02 11:38:35 -07:00
Bob Brown 0a85b6c115 Merge branch 'release' into master 2018-07-02 11:38:11 -07:00
Sean McManus f2b3bd5a18 Update changelog. (#2213)
* Update changelog.
2018-07-02 11:33:07 -07:00
Bob Brown ab3e498c17 update version for insiders branch (#2211) 2018-06-29 14:08:08 -07:00
Bob Brown bfad3045bd Merge branch 'insiders' into master 2018-06-29 14:00:30 -07:00
Andrew Wang 842e685a6a Removing dashes for ps command (#2185) 2018-06-29 13:59:14 -07:00
Bob Brown 3b36a23956 Merge pull request #2203 from Microsoft/master
merge master (one more change for 0.17.6)
2018-06-28 16:11:04 -07:00
Bob Brown bf7287e70b Merge branch 'master' of https://github.com/Microsoft/vscode-cpptools 2018-06-28 16:09:01 -07:00
Bob Brown 63ce03573c vscode-cpptools is in the wrong dependency list 2018-06-28 16:08:48 -07:00
Bob Brown 9ddf1098f7 update version for release (#2201)
* Update package.json

* Update package-lock.json
2018-06-28 12:58:02 -07:00
Bob Brown 56f4be1f65 Merge pull request #2200 from Microsoft/master
merge master to release for 0.17.6
2018-06-28 12:56:01 -07:00
Bob Brown 3b6dc61562 sanitize inputs (#2199) 2018-06-28 12:47:06 -07:00
Sean McManus b8a15ddfe6 Updated changelog and fwlinks. (#2195)
* Updated changelog and fwlinks.
2018-06-27 20:23:31 -07:00
Bob Brown f3e188c0ce fix version number (#2194)
* Update package.json

* Update package-lock.json
2018-06-27 13:20:12 -07:00
Bob Brown d403c8f984 Polishing the custom configuration provider experience (#2188) 2018-06-26 13:10:49 -07:00
Bob Brown 35288aad17 start sending installation failure telemetry again (#2189) 2018-06-26 12:35:58 -07:00
Bob Brown 9604256fb8 Merge pull request #2168 from Microsoft/master
Fix ${config:a.b} https://github.com/Microsoft/vscode-cpptools/issues…
2018-06-21 18:42:58 -07:00
Bob Brown d3f701823d Merge branch 'release' into master 2018-06-21 18:42:44 -07:00
Sean McManus 987347c4b6 Update CHANGELOG.md (#2161)
* Update CHANGELOG.md
2018-06-21 18:04:33 -07:00
Sean McManus 7e7a522603 Fix ${config:a.b} https://github.com/Microsoft/vscode-cpptools/issues… (#2166)
* Fix ${config:a.b} https://github.com/Microsoft/vscode-cpptools/issues/2165 .
2018-06-21 18:04:05 -07:00
Bob Brown 14bc488e5b Merge pull request #2154 from Microsoft/master
merge 0.17.5 release notes
2018-06-19 14:57:20 -07:00
Bob Brown 352745754b update (#2153) 2018-06-19 14:52:37 -07:00
Bob Brown dde3b515db update version numbers (#2152)
* Update package.json

* Update package-lock.json
2018-06-19 12:12:30 -07:00
Bob Brown cc6d7f3cac Merge pull request #2150 from Microsoft/master
0.17.5 merge from master
2018-06-19 12:10:38 -07:00
Bob Brown f8dbe57da7 Merge branch 'release' into master 2018-06-19 11:51:57 -07:00
Sean McManus 4fe877ed26 Update changelog, fwlinks, and fix an issue with abTesting. (#2143)
* Update changelog, fwlinks, and fix an issue with abTesting.
* Adding debugger changes to changelog
2018-06-19 11:41:22 -07:00
Griffin Downs 974ecd3ecb Grdowns/detect compile commands (#2137) 2018-06-19 10:36:01 -07:00
Bob Brown 7be69a0880 Bobbrow/recursive includes (#2136)
* Make recursive includePath the default again. Refactor A/B testing stuff.

* fix initialization dependency bug

* bugfix
2018-06-15 16:39:01 -07:00
Bob Brown d77470f753 make browse.path optional (#2135) 2018-06-15 16:34:57 -07:00
James Hamm 846cdc3a32 Updated the link for creating issues. (#2126)
The current link returns a 301 (permanent redirect) so we may as well just point straight to the site.
2018-06-13 07:41:45 -07:00
Andrew Wang 17c307a369 Adding miDebuggerArgs (#1974)
Fixing GenerateOptionsSchema too, due to linting fixes
2018-06-07 18:26:47 -07:00
Andrew Wang 485d762d70 Updating debugging MI Engine docs (#2103)
* Updating debugging MI Engine docs

* Forgot extensions
2018-06-07 18:18:31 -07:00
Sean McManus 4b90e4c151 Merge pull request #2100 from Microsoft/0_17_5_insiders
0 17 5 insiders
2018-06-07 16:26:44 -07:00
Sean McManus cc85f3d7c3 Merge, Also updated changelog and versions. 2018-06-07 16:15:56 -07:00
Sean McManus 73c025dcee Update dependencies due to vulnerabilities from npm audit. (#2095)
* Update dependencies due to vulnerabilities from npm audit.
2018-06-07 14:24:12 -07:00
Bob Brown 90b1ebd74c update version (#2097)
* Update package.json
* Update package-lock.json
2018-06-07 09:16:50 -07:00
Griffin Downs 3027e18968 Grdowns/inactive region opacity (#2061) 2018-06-06 12:14:19 -07:00
Pierson Lee 7729d0a700 Update issue templates (#2087)
* Update issue templates

* Remove old issues_template.md
2018-06-04 16:54:33 -07:00
Sean McManus c0e32437df Update version. (#2071) 2018-05-31 16:11:05 -07:00
Sean McManus b580b7347f Merge pull request #2069 from Microsoft/master
0.17.4 release
2018-05-31 16:07:20 -07:00
Bob Brown 4b5b086150 Merge branch 'release' into master 2018-05-31 16:01:48 -07:00
Sean McManus c5105f0731 Update for 0.17.4. (#2067) 2018-05-31 15:53:11 -07:00
b5e00c068e disable recursive includePath for ${workspaceFolder} in default c_cpp_properties.json (#2059) 2018-05-31 12:44:44 -07:00
Bob Brown 9b33938293 Fix startup bug (#2065) 2018-05-31 12:16:36 -07:00
Bob Brown a096ec9c6f Update Customizing Default Settings.md
typo
2018-05-25 10:00:42 -07:00
Bob Brown 847a2e3d5a reduce promise reject messages in the standard case (#2041) 2018-05-24 16:32:46 -07:00
Bob Brown 7b91a97ba7 Update extension version (#2035)
* Update package.json

* Update package-lock.json
2018-05-24 12:21:48 -07:00
henrywiechert 306a55da2e Update IntelliSense engine.md (#2040)
fix a link
2018-05-24 12:20:58 -07:00
Sean McManus 7553bb9358 Update ISSUE_TEMPLATE.md (#2030) 2018-05-22 13:34:39 -07:00
Sean McManus d786b0f602 Merge pull request #2029 from Microsoft/seanmcm/0_17_3_release
Seanmcm/0 17 3 release
2018-05-22 13:17:55 -07:00
Bob Brown a60c1c51f5 doc updates (#2028) 2018-05-22 12:58:29 -07:00
Bob Brown 891d590562 add support for ${workspaceFolder:<folder_name>} (#2027) 2018-05-22 12:58:09 -07:00
Sean McManus df7b77b6cf Update for 0.17.3. 2018-05-22 12:54:40 -07:00
Bob Brown 94a2b67e14 add support for ${workspaceFolder:<folder_name>} 2018-05-22 12:49:13 -07:00
Sean McManus fbbe28458a Merge for 0.17.2-insiders. 2018-05-21 19:24:59 -07:00
Sean McManus 5883747474 Update package-lock.json. (#2024) 2018-05-21 16:49:05 -07:00
Sean McManus 3f62ffd135 Merge pull request #2023 from Microsoft/seanmcm/0_17_2_release
Seanmcm/0 17 2 release
2018-05-21 16:00:03 -07:00
Sean McManus 7de9d166b8 Update version. 2018-05-21 15:19:50 -07:00
Sean McManus 2edf7267e8 Update for 0.17.2. (#2022) 2018-05-21 15:18:37 -07:00
Sean McManus 3f5b0b7220 Update for 0.17.2. (#2022) 2018-05-21 15:14:40 -07:00
Bob Brown baebe0acec Merge pull request #2011 from Microsoft/bobbrow/regression
fix regression from extension API change
2018-05-18 14:20:32 -07:00
Bob Brown 6d1264e6b1 fix regression from extension API change 2018-05-18 14:11:17 -07:00
Bob Brown 0d80edba3d Update package.json 2018-05-18 13:33:00 -07:00
Bob Brown 76870c637c Merge pull request #2010 from Microsoft/master
Merge master into insiders
2018-05-18 13:32:20 -07:00
Bob Brown 7cd7d3422c Update package.json 2018-05-18 13:31:37 -07:00
Bob Brown a4edf98976 Update package.json 2018-05-18 13:31:25 -07:00
Bob Brown bffafc058a Merge branch 'insiders' into master 2018-05-18 13:30:35 -07:00
Sherry Shi 01efb1a584 Allow other VS Code extensions to provide custom intellisense configurations. (#1804) 2018-05-18 11:03:08 -07:00
Sean McManus b1e40a4ccc Merge pull request #2005 from Microsoft/seanmcm/0_17_1_release
Seanmcm/0 17 1 release
2018-05-17 12:10:07 -07:00
Sean McManus 7d4aed2009 Update version. 2018-05-17 11:34:10 -07:00
Sean McManus 20d782349d Merge branch 'master' into release 2018-05-17 11:30:23 -07:00
Sean McManus a3a0572325 Merge branch 'release' 2018-05-17 11:28:44 -07:00
Sean McManus c9473b21d4 Update changelog. (#2003) 2018-05-16 19:57:30 -07:00
Sean McManus 74b5867660 Seanmcm/0 17 1 changelog (#1996)
* Updates for 0.17.1.
* Add C++17 fixes for msvc-x64.
2018-05-15 15:48:06 -07:00
Bob Brown d1e90b507f Remove outdated logic from getConfigIndexForPlatform (#1992) 2018-05-14 23:02:35 -07:00
Bob Brown 7f10e90a6f update https-proxy-agent version (#1984) 2018-05-11 16:38:30 -07:00
Bob Brown fbfb83ac30 Update Enabling logging.md 2018-05-11 14:08:45 -07:00
Bob Brown 8f8ed52aae Fix the file watcher (#1983) 2018-05-11 12:33:42 -07:00
Bob Brown a190707f67 update telemetry for settings changes (#1973)
update telemetry for settings changes
2018-05-09 15:11:29 -07:00
Bob Brown 79871a6587 update c_cpp_properties.json reference 2018-05-08 16:10:30 -07:00
Bob Brown ba65c4877c documentation updates for 0.17.0 (#1952)
* documentation updates for 0.17.0

* updates to logging docs

* PR feedback
2018-05-08 15:01:15 -07:00
Bob Brown 8c6a167787 update package.json for release (#1951)
* update package.json for release

* Update package-lock.json
2018-05-07 13:49:53 -07:00
Bob Brown 0ac4744c11 Merge pull request #1950 from Microsoft/master
Merge master -> release
2018-05-07 13:47:11 -07:00
Bob Brown 7ea61221bc update release notes and don't enable recursive includes by default in new folders (#1948)
* update release notes and don't enable recursive includes by default in new folders.

* changelog bug
2018-05-07 13:44:53 -07:00
Andrew Wang ff31eef0a2 Extension Development Improvements (#1941)
1. Updated tasks.json to 2.0
2. Added tslint problem matcher
   - Weird issue that problem does not disappear when resolved.
3. Adding tslint for class and function names.
   - class must be in PascalCase
   - funcitons must be in camelCase
4. Addressing vulnerability warning
   - https://github.com/Microsoft/vscode/issues/49146
2018-05-07 11:22:12 -07:00
jogo- 842856f08a Fix typo in README.md (#1944) 2018-05-07 10:41:38 -07:00
jogo- 2ded5b241e Fix typo in c_cpp_properties.schema.json (#1945) 2018-05-07 10:40:56 -07:00
Bob Brown 58cfb5ee10 add support for custom variables (#1921)
* add support for custom variables

* support for string[] variables

* rename "variables" to "env"
2018-05-04 20:18:42 -07:00
Andrew Wang 8deee74b68 Adding OptionsSchema generation (#1937)
* Adding OptionsSchema generation

This is to prevent repetitive fields from being copy and pasted
improperly.

* Move tslint to be after compile

* Address PR issues
2018-05-04 16:19:53 -07:00
Sean McManus d6aa178cac Fix issues introduced with VS Code 1.23.0. (#1925) 2018-05-03 16:57:38 -07:00
Bob Brown b5b1ceea98 trim the path before checking if it exists (#1924) 2018-05-03 16:27:03 -07:00
Bob Brown 264ed5eb23 trim the path before checking if it exists (#1924) 2018-05-03 16:21:52 -07:00
Griffin Downs ded26d66b0 Move settings update into updateToVersion4 function (#1916) 2018-05-03 12:47:45 -07:00
Bob Brown 90d28133e4 Update package.json (#1923)
* Update package.json
* Update package-lock.json
2018-05-02 22:16:21 -07:00
Bob Brown 39273f1087 Merge pull request #1922 from Microsoft/master
merge master into insiders for April insiders2
2018-05-02 22:12:14 -07:00
Sean McManus 00008a2d80 Dev/seanmcm/update changelog master0 17 0 insiders2 (#1920)
* Update changelog.

* Update changelog with snippets/vcpkg change.
2018-05-02 22:09:52 -07:00
Bob Brown 9396786be8 update changelog (#1918)
* update changelog

* PR feedback
2018-05-02 16:59:44 -07:00
Jim Griesmer da17254c03 Provide user hint through IntelliSense fallback msg that vcpkg is installed and is being used. (#1910) 2018-05-02 15:42:06 -07:00
Andrew Wang 3ddc2292cd Improve README, issue template, and test error output (#1898)
* Improve README and test error output

* Adding popular feature requests

* Feature Requests gets thumbs up, not issues.

* Adding info for issues
2018-05-02 13:47:04 -07:00
Sean McManus f58217f03f Recursive includePath changes. (#1896)
* Recursive includePath changes.
* Keep config/icons visible with settings json files.
2018-04-30 14:16:51 -07:00
Jim Griesmer f2d328161e Slight tweak for what vcpkg will do. (#1897) 2018-04-30 14:04:41 -07:00
Jim Griesmer 947fb78e9a Users/jimgries/snippets (#1823) 2018-04-30 13:55:01 -07:00
Bob Brown 0521bbec32 additional logging for language server spawn failure (#1895)
* additional logging for language server spawn failure
* Show the client failure message once per session instead of once in forever
2018-04-30 08:11:00 -07:00
Jim Griesmer 9249e27df5 Initial implementation for supporting vcpkg (#1886)
* Initial implementation for supporting vcpkg
2018-04-27 14:50:24 -07:00
Bob Brown 063c4bd753 shouldn't be attempting to re-register vscode's commands (#1893) 2018-04-27 13:30:48 -07:00
Andrew Wang 7c34669c60 Updating License.txt (#1879)
* Updating EULA

* Fix text

* Updated fwlink for vsdbg
2018-04-27 12:09:37 -07:00
Bob Brown 7f2fa088d8 remove bad bracket 2018-04-24 21:00:57 -07:00
Bob Brown 548d32f21b workspaceFolder 2018-04-24 20:58:44 -07:00
Bob Brown e55ef6e153 fix commas 2018-04-24 20:57:37 -07:00
Bob Brown 8a0fe21176 Merge branch 'master' into insiders 2018-04-24 08:32:06 -07:00
Bob Brown fdff9df795 wrong name for enum (#1872) 2018-04-24 08:31:39 -07:00
Bob Brown d4e23a6063 merge master for 0.17.0 insiders build 2018-04-23 15:24:34 -07:00
Sean McManus 80da21f199 Seanmcm/update changelog0 17 insiders1 (#1867)
* Update changelog.md.

* Added the clang-format 6.0 update.
2018-04-23 15:19:14 -07:00
Sean McManus b60b17b6a5 Update changelog.md. (#1866) 2018-04-23 15:02:39 -07:00
Bob Brown 6faac1071f Fixing issues found while testing settings changes (#1865)
* Fixing issues found while testing settings changes

* missed a property in the schema

* additional safety around config updates
2018-04-23 14:13:34 -07:00
Sean McManus 6648c400b7 Add preferredPathSeparator setting and update package.json version and fwlinks (#1854)
* Add preferredPathSeparator setting
* Update package.json version and fwlinks.
2018-04-20 14:15:56 -07:00
Bob Brown 8f21515eeb Add VS Code settings for configuration properties (#1848)
* Add VS Code settings for configuration properties
2018-04-19 15:20:20 -07:00
Sean McManus 313ce1928f Update c_cpp_properties.json.md (#1851) 2018-04-19 14:52:40 -07:00
Bob Brown 999aad5633 fix typo 2018-04-18 14:40:01 -07:00
Bob Brown 136091e8ce Updates to MinGW documentation (#1844)
* documentation update for mingw
2018-04-17 13:32:24 -07:00
Sean McManus 91e4f64f3d Update MinGW.md (#1841) 2018-04-16 08:44:25 -07:00
Andrew Wang 1318cce09f Adding snippet to fix pipeProgram in pipeTransport (#1829)
* Adding snippet to fix pipeProgram in pipeTransport

Now with VSCode 64 bit, WSL users need to use the correct pipeProgram in
the correct folder. We will attempt to help users with this.

* Fix tslint issue

* Remove 64 bit check and check for relative path
2018-04-13 18:02:21 -07:00
Andrew Wang 308e5a5c13 Download and Install Progress Window for Packages (#1806)
* Adding progress bar

* Updating vscode requirement and package version

* Updating message
2018-04-10 16:19:39 -07:00
Bob Brown e2b5bf9fbc Address config issues: #1599, #1790 (#1807)
* addresses #1599, #1790

* Update all configs when c_cpp_properties.json is parsed
2018-04-10 14:34:43 -07:00
Andrew Wang 7cff0f175d Prevent package.json rewrite from being checked in with test (#1809)
* Fix up package.json rewrite

VSCode package.json is readonly.

Rewriting package.json will use the disk package.json to prevent getting
expanded fields from VSCode. It will only read from disk once.

Added `gulp pr-check` to make sure that package.json activationEvents has
not been rewritten for open source contributers.

* run pr-check needs to be before run test

* Update log message
2018-04-10 12:04:29 -07:00
Pierson Lee 6517b8e395 Update launch.md for args to include comment about doublequoting (#1794)
* Update launch.md

* Update launch.md
2018-04-10 11:05:01 -07:00
Sean McManus a44bab5589 Fix https://github.com/Microsoft/vscode-cpptools/issues/1792 . (#1793) 2018-04-04 17:10:40 -07:00
Sean McManus 28102494b1 Update CONTRIBUTING.md (#1776)
Fix broken link.
2018-04-03 15:22:20 -07:00
Sean McManus 88a0494ce5 Merge pull request #1766 from Microsoft/master
Merge for 0.16.1 release
2018-03-30 17:08:02 -07:00
Sean McManus b32debdb76 Update package-lock.json version. (#1765) 2018-03-30 16:27:55 -07:00
Sean McManus 480af0c155 Dev/seanmcm/0 16 1 update (#1762)
* Update for 0.16.1.
2018-03-30 15:45:36 -07:00
Andrew Wang b65a89733c Adding file validation for download and unzip. (#1751)
* Adding file validation for download and unzip.

Refactored the download retry code.

Added error handlers for read and write streams.

WriteStream writes to a *.tmp file and then renames. This catches the
case if VSCode dies in the middle of this process and the file is
partially written. We will continue where we left off.

* Adding return to resolve/reject calls.

* Fix retry loop and check err in unlink and rename

* Actually wait for those promises

* Fix TSLint error
2018-03-28 15:58:08 -07:00
Bob Brown 3bbfed643f Merge pull request #1746 from Microsoft/master
Merge to release 0.16.0
2018-03-27 20:36:40 -07:00
Sean McManus 638fd678dc Update changelog date. (#1745) 2018-03-27 20:34:35 -07:00
Sean McManus ff5d363926 Don't set the compilerPath if the default is empty. (#1741)
* Don't set the compilerPath if the default is empty or compile commands is set.
* Guard against empty std.
2018-03-27 18:43:07 -07:00
Andrew Wang e0bb796423 Boolean default types should be boolean not string (#1732) 2018-03-23 13:27:59 -07:00
Sean McManus 1b218b2bd9 Merge pull request #1731 from Microsoft/dev/seanmcm/0_16_0_insiders2
Dev/seanmcm/0 16 0 insiders2
2018-03-23 13:26:27 -07:00
Sean McManus ddd85515fa Merge and update for 0.16.0-insiders2 2018-03-23 13:18:29 -07:00
Bob Brown d079892710 Merge pull request #1726 from Microsoft/master
Merge to release for 0.16.0
2018-03-22 12:23:03 -07:00
Sean McManus 56fd1e7076 Update changelog. (#1721)
* Update changelog.

* Minor edit.

* Forgot a bug fix.

* Add debugger bug.
2018-03-22 07:50:58 -07:00
Andrew Wang 1699ec02cd Adding -c flag to WSL configurations (#1722)
Missing the -c flag for bash.exe
2018-03-21 19:18:53 -07:00
Shubham Bhattar 97a635bf2d "taskName" changed to "label" as per version 2.0.0 (#1713)
Reference Link: https://code.visualstudio.com/docs/editor/tasks#_migrating-to-tasks-200
2018-03-21 12:44:47 -07:00
Bob Brown f5a2192235 update documentation (#1710) 2018-03-20 17:14:56 -07:00
Bob Brown 5d85eae737 Database icon is not using the theme color (#1638) (#1711) 2018-03-20 17:14:04 -07:00
Sean McManus 4fe2ec1bfe Dev/seanmcm/fix blank config with file watcher limit (#1709)
Fix blank config in the status bar (and browse engine stuck initializing) when the file watcher limit is hit.
2018-03-20 16:14:27 -07:00
Bob Brown 83a9cb2b02 anticipating release (#1703) 2018-03-19 15:58:57 -07:00
Bob Brown 905041068f More guards against crashes in configuration processing (#1702) 2018-03-19 15:58:25 -07:00
Sean McManus c68ad37d98 Seanmcm/change compiler path comments (#1688)
* Modify compilerPath description.

* Modification.
2018-03-15 13:04:29 -07:00
Bob Brown f857bc45c3 deal with error cases in configurations (#1687) 2018-03-14 13:28:48 -07:00
Bob Brown 263b69ed15 Merge pull request #1654 from Microsoft/master
don't repeatedly mark the c_cpp_properties.json file as dirty on Windows
2018-03-08 15:21:29 -08:00
Bob Brown 1177ab5cee don't repeatedly mark the c_cpp_properties.json file as dirty on Windows (#1653) 2018-03-08 15:16:19 -08:00
Bob Brown 3ca02dac55 Merge pull request #1652 from Microsoft/master
merge master
2018-03-08 08:59:51 -08:00
Sean McManus 17d19a93e0 Fix bug with compilerPath/cppVersion. (#1650) 2018-03-07 20:32:28 -08:00
Sean McManus 42698a85cd Update changelog.md and merge fix for https://github.com/Microsoft/vscode-cpptools/issues/1640. 2018-03-07 17:52:35 -08:00
Sean McManus 5fb96a6d02 Fix launch.json and activation stuck on cpptools.json downloading. (#1649)
* Fix launch.json and activation stuck on cpptools.json downloading.
2018-03-07 17:45:11 -08:00
Bob Brown 605adb1edd Merge pull request #1648 from Microsoft/master
merge master into insiders
2018-03-07 15:29:54 -08:00
Bob Brown 5e88dbfd79 Merge branch 'insiders' into master 2018-03-07 15:28:50 -08:00
Griffin Downs 35e002756e Check whether propertiesFile is null before accessing (#1647)
Travis looks like it's stalled. I'm going to force this in so we can build an insiders package.
2018-03-07 12:54:33 -08:00
Bob Brown 70cff29645 replace workspaceRoot with workspaceFolder (#1641)
* replace workspaceRoot with workspaceFolder (actual support is on the server side)
* update changelog
2018-03-06 08:35:03 -08:00
Sean McManus bd181c3b8f add compilerPath, cStandard, and cppStandard settings, fix inactive region deletion bug (#1549)
* Add compilerPath setting.
* Add code to query the default compiler.
* Add cStandard and cppStandard settings.
* Fix bug with inactive region deletion.
2018-03-02 16:29:27 -08:00
Bob Brown 00f70aed7c add support for force includes in c_cpp_properties.json (#1630) 2018-03-02 15:11:00 -08:00
Bob Brown bea033ef67 TypeScript compile needs to happen as part of prepublish step. (#1629) 2018-03-01 10:46:27 -08:00
Pierson Lee b05e8c5627 Correct Fix to make sure debugger dependencies are copied (#1621)
* Correct Fix to make sure debugger dependencies are copied

Fix double compile and make sure that it is only run once.

* Fix log

* Andrew requested outDir
2018-02-28 14:32:26 -08:00
Pierson Lee 523e8c9c26 Fixing misisng compile step before executing .js file (#1618) 2018-02-27 17:04:36 -08:00
Andrew Wang 6ad4814173 copySourceDependencies needs to be run every time (#1617)
This fixes the nightly builds
2018-02-27 15:58:20 -08:00
Bob Brown 6756be66d5 update c_cpp_properties.json documentation to version 3 (#1615) 2018-02-27 13:29:40 -08:00
Bob Brown a6c6c7e691 Add a setting to manage inactive region colorization (#1604) 2018-02-26 15:56:44 -08:00
Bob Brown 9937753e3a Add setting to enable multiline comment customizations (#1583)
* Work in progress.  Wrote framework for comment pattern handling.  Implementation incomplete and some bugs remain.

* address TODOs

* incorrect disposal

* incorrect type decorations

* WIP: update changelog, add a test

* test updates

* rename the setting, update package.json and add more tests

* deal with whitespace continuations

* address PR feedback
2018-02-21 13:35:51 -08:00
Andrew Wang 03cc6b26ec Adding setupCommands to attach configuraitons (#1593)
Addressing #1581
2018-02-20 17:11:29 -08:00
Hogyun Yu  (aka Philographer) 8cb05ed0cb Update ReleaseNotes.html (#1572) 2018-02-16 08:59:48 -08:00
Bob Brown d5fb6a1d15 faster launch times for extension debugging (#1555)
* add a way to speed up subsequent launches of the extension.

* A cleaner way to exit

* update package.json

* read the environment variable to short-circuit the node_modules check.
2018-02-15 12:44:05 -08:00
Sean McManus e5976d2656 Merge pull request #1557 from Microsoft/master
Merge for release.
2018-02-14 16:55:56 -08:00
Bob Brown e70f625212 release notes (#1566) 2018-02-14 16:42:48 -08:00
Bob Brown 625e5478be define __CHAR_BIT__ for Mac (#1564)
* define `__CHAR_BIT__` for Mac
* update changelog
2018-02-14 12:49:44 -08:00
Sean McManus e825292931 Update changelog. (#1556)
* Update changelog.
2018-02-13 17:29:36 -08:00
Charles Milette 2fcd4b4943 Add _UNICODE to default defines on Windows (#1540)
* Add _UNICODE to default defines on Windows
Fixes #1538
2018-02-08 17:42:22 -08:00
ronglums f5b2d30182 Moved the extension building instructions into a separate file. (#1537)
Moved the extension building instructions into a separate file.
2018-02-08 12:02:32 -08:00
Joshua Cannon d5af9a1b45 Adding configuration variable replacement in c_cpp_properties.json. (#1529)
* Adding configuration variable replacement in c_cpp_properties.json. #314

* Fixing issues brought up by linter
2018-02-07 10:35:31 -08:00
Faheel Ahmad e6d8d1fb28 Improve documentation (#1515)
* improve Markdown formatting
* use consistent formatting rules for all Markdown files
* fix typos
* fix broken links
2018-02-07 08:04:18 -08:00
Sean McManus 536182cf1f Change for insiders. 2018-02-01 12:58:43 -08:00
Bob Brown 7a39edaf65 Fix crash in client module (#1506)
Temporary key name was lost outside of the switch block, resulting in an attempt to access .length of 'undefined'
2018-01-31 14:29:16 -08:00
Griffin Downs fd7b691885 Inactive region highlight (#1505)
* Add intermediary type to safely construct vscode.Ranges for use

* Fix incorrect object definition

* Fix file empty edge case; refactor + comment out code while testing

* Use InputRegions (lines only); Remove commented out code

* Commenting

* Fix linter error from merge with master
2018-01-31 14:02:01 -08:00
Sean McManus 42ddf188f3 Fix for https://github.com/Microsoft/vscode-extension-telemetry/issues/7 (#1499)
* Fix for https://github.com/Microsoft/vscode-extension-telemetry/issues/7 .
* Filter out settings values that don't match enum values.
2018-01-29 17:24:08 -08:00
Sean McManus 3512cb370b Seanmcm/telemetry fix (#1494)
* Fix telemetry.
2018-01-29 12:56:43 -08:00
Andrew Wang aa0f613dfb Force semicolon in object literal (#1493) 2018-01-26 11:01:44 -08:00
Griffin Downs b68d1e173e Add intermediary type to safely construct vscode.Ranges for use (#1492)
* Add intermediary type to safely construct vscode.Ranges for use

* Fix incorrect object definition
2018-01-25 16:46:24 -08:00
Sean McManus 58e403d9e0 Merge pull request #1490 from Microsoft/seanmcm/update0_15_0
Update stuff for 0.15.0 in preparation for the insider release.
2018-01-25 15:52:14 -08:00
Sean McManus d46c0594b5 Merge branch 'seanmcm/update0_15_0' of https://github.com/Microsoft/vscode-cpptools into seanmcm/update0_15_0 2018-01-25 14:35:19 -08:00
Sean McManus 44f65f2e14 Merge. 2018-01-25 14:35:01 -08:00
Bob Brown fca11d63c4 Merge branch 'master' into seanmcm/update0_15_0 2018-01-25 14:33:44 -08:00
grdowns 572f21a7e2 Merge pull request #1482 from Microsoft/inactive-region-highlight
Inactive region highlight
2018-01-25 14:31:09 -08:00
Sean McManus c2c84aaf7f Change date to 14th. 2018-01-25 14:13:46 -08:00
Griffin Downs 0eae7fd7a3 Rename method; Re-word commenting 2018-01-25 14:11:22 -08:00
Sean McManus ca777a2172 Change date. 2018-01-25 13:12:51 -08:00
Sean McManus c57da0d645 Change error limit to 25000. 2018-01-25 12:27:51 -08:00
Griffin Downs dd2ca57532 Compare each range by value instead of by reference 2018-01-25 11:52:43 -08:00
Griffin Downs f614c75ab6 Fix no return error 2018-01-25 11:05:42 -08:00
Griffin Downs be1bae2321 *Correctly* use guard 2018-01-25 10:37:25 -08:00
Griffin Downs 0af3069091 Guard against decorations being set on update but without changes 2018-01-25 10:26:30 -08:00
Sean McManus 8e86dd333a Update stuff for 0.15.0. 2018-01-24 19:47:17 -08:00
Griffin Downs 31a53bd95f Merge branch 'inactive-region-highlight' of https://github.com/Microsoft/vscode-cpptools into inactive-region-highlight 2018-01-24 14:27:02 -08:00
Griffin Downs 4d0490edf7 Merge branch 'master' of https://github.com/Microsoft/vscode-cpptools into inactive-region-highlight 2018-01-24 14:25:52 -08:00
Griffin Downs 02dc3fecda Express conditional more idiomatically 2018-01-24 14:25:20 -08:00
Griffin Downs 84fd6a21eb Uncomment guard block; Move comment 2018-01-24 14:11:55 -08:00
Griffin Downs b1c332ba34 Move interface + capitalize 2018-01-24 13:57:09 -08:00
grdowns 1e8ea4a656 Merge branch 'master' into inactive-region-highlight 2018-01-24 13:54:44 -08:00
Bob Brown 510094a71d fix a bug in resolveVariables util function (#1488) 2018-01-24 13:54:17 -08:00
Griffin Downs 6f9a8e10a8 Modify light theme coloration; Add decorationRangePair interface; Guard against undefined return value 2018-01-24 13:45:56 -08:00
Griffin Downs 4ab47bd2c9 Var rename for consistence + commenting 2018-01-24 10:23:16 -08:00
Griffin Downs 1ccc670265 Wording on comment 2018-01-24 10:08:35 -08:00
Griffin Downs e4634395c3 Refactor updateInactiveRegions + comment 2018-01-24 10:04:25 -08:00
Griffin Downs 3c012719c6 Use Map to track text editors and apply decorations as they become visible 2018-01-24 09:41:10 -08:00
Griffin Downs 74f567db16 Rename and move decoration object 2018-01-23 14:14:20 -08:00
Griffin Downs d444874f0d Remove auto-generated files/changes; Properly set text decorations 2018-01-23 13:38:44 -08:00
Griffin Downs 762de3ff28 Merge branch 'master' of https://github.com/Microsoft/vscode-cpptools into inactive-region-highlight 2018-01-22 17:03:38 -08:00
Griffin Downs 24c4f7f8c3 Add TODO 2018-01-22 15:59:25 -08:00
Griffin Downs 0622ade175 Fix deprecated launch.json; Add auto-generated files 2018-01-22 15:58:13 -08:00
Andrew Wang ecd1b06bef Adding triple-equals to tslint (#1480)
https://stackoverflow.com/questions/48270127/can-a-1-a-2-a-3-ever-evaluate-to-true
2018-01-22 11:12:45 -08:00
jogo- dfec64f233 Fix typos in CHANGELOG.md (#1478) 2018-01-22 08:51:36 -08:00
Griffin Downs 0bdd303978 Add notification for inactive regions; Respond by changing text color 2018-01-19 16:15:46 -08:00
Bob Brown 6c21e5445b Create CODE_OF_CONDUCT.md 2018-01-19 08:47:11 -08:00
Seokhwan Song 02201d3961 fix wrong URL (msvscode -> vscode) (#1470) 2018-01-19 08:12:46 -08:00
Pierson Lee (PIE) cdab065ded Merge remote-tracking branch 'origin/master' into release 2018-01-17 13:09:00 -08:00
Andrew Wang be11d40e4e Fix rename error and its message and linux build (#1462)
* Fix rename error and its message and linux build

Rename was always outputting an error message since the callback is
always called. Included and error check. For offline install, if
opendebug.exe.config exists, rename needs to happen too. Added function
call for offline installation.

'use strict' was erroring on ubuntu build in copyScript.ts
2018-01-17 13:02:42 -08:00
Sean McManus 3f62c3d244 Merge pull request #1458 from Microsoft/master
0.14.6 release
2018-01-16 15:51:11 -08:00
Bob Brown 5c8fdabe74 rename files.associations.autoAdd setting (#1452) 2018-01-16 14:36:53 -08:00
Sean McManus 2f10eb8fd0 Add CONTRIBUTING.md. (#1456) 2018-01-16 14:33:02 -08:00
Sean McManus 2847a96622 Rename LICENSE.txt. (#1457) 2018-01-16 14:32:37 -08:00
Sean McManus 69282d25e0 Modify changelog. (#1455) 2018-01-16 14:32:05 -08:00
Bob Brown 9ea384fc23 update comment for workspaceParsingPriority setting (#1454) 2018-01-16 13:00:08 -08:00
Bob Brown ca13ab99c9 update release notes for January 2018 (#1451) 2018-01-16 12:59:28 -08:00
Andrew Wang 20e4dd1aa8 Enable support for Integration Tests (#1441)
* Enable support for Integration Tests

Added Logger to help tests retrieve output from the installation of the
extension.
2018-01-12 16:55:01 -08:00
Bob Brown c9ca99423f Merge pull request #1438 from vitosamson/doc-img-links
fix image links in Getting Started docs
2018-01-11 16:59:00 -08:00
Vito 476b5791cc fix image links in Getting Started docs 2018-01-11 18:47:10 -05:00
Andrew Wang 62eb613f12 Fix activating language server for 2nd launch (#1435)
* Fix activating language server for 2nd launch

* Moving check distro to run only on install

Fix function name for getTempRegistrarInstance
2018-01-11 12:37:51 -08:00
Andrew Wang 9232ed8ead Cleanup reload dialog and processRuntimeDependencies flow. (#1428)
* Removing reload code and insert wait code

Lots of refactoring to improve readability.
2018-01-10 17:20:49 -08:00
Sean McManus bc721d3f5a Fix delay in language service activation caused by cpptools.json downloading. (#1433)
* Prevent downloadCpptoolsJsonPkg from delaying activation.
* Also, changed the default workspaceParsingPriority to "highest" and the "normal" enum to "medium".
* And updated the changelog.
2018-01-10 13:56:39 -08:00
Bob Brown 5885388ae4 Merge pull request #1425 from Microsoft/users/seanmcm/fixMacInstall
Fix install on Mac.
2018-01-09 16:41:06 -08:00
Sean McManus eb74a9a834 Change == to ===. 2018-01-09 12:50:39 -08:00
Sean McManus 9e7b370aca Fix install on Mac. 2018-01-09 03:19:08 -08:00
Sean McManus 1bfb2477c1 Add setting to throttle workspace parsing. (#1389)
Add workspaceParsingPriority and exclusionPolicy settings.
2018-01-08 17:54:28 -08:00
Andrew Wang 0b8cdac4a6 rewriteManifest did not actually rewrite package (#1423) 2018-01-08 17:18:25 -08:00
Bob Brown 698d1e4014 Merge pull request #1422 from Microsoft/bobbrow/faq
Add the gcc command to check include paths to the FAQ
2018-01-08 16:14:51 -08:00
Bob Brown 11e0ffcaae Add the gcc command to check include paths to the FAQ 2018-01-08 15:31:04 -08:00
Bob Brown 68b8965dfe Merge pull request #1420 from Microsoft/bobbrow/split-paths
move path-splitting code into TypeScript and add support for browse.path
2018-01-08 14:59:17 -08:00
Bob Brown (DEVDIV) 484051c3d5 tslint 2018-01-08 14:23:13 -08:00
Bob Brown (DEVDIV) ce917b5243 move path-splitting code into TypeScript and add support for browse.path 2018-01-08 14:16:25 -08:00
Andrew Wang c728178de6 Adding tslint and gulp (#1403)
* Adding Gulp and tslint

Adding tslint and the associated changes that it complains about.

Adding gulp to do tests, tslint, and more.

Including package-lock.json that it keeps complaining about.

* Adding back license that was accidently deleted.

* Updating package-lock.json and missing import

* Sorting and fixing commands for npm run

Added npm run test, watch, and tslint.

* Adding rules for whitespace and types for tslint

* Updating .gitignore rules

* Adding more rules and sorting tslint.json

new-parens for forcing all constructor calls to have parenthesis.
no more than 1 consecutive blank lines
no useage of String(), Boolean(), or Number(), use native type.

* Adding rule to force brance on the same line

* tslint rule to add function return types

* Adding tslint as part of travisci
2018-01-05 13:57:55 -08:00
Andrew Wang ab5ff3ccf2 Adding .travis.yml (#1405)
Addition to compile and run tests per PR.
2018-01-04 13:07:22 -08:00
Pierson Lee 965ba124af Add natvis schema and a quick page on natvis (#1400)
* Add natvis schema and a quick page on natvis

* PR Feedback
2018-01-03 12:26:11 -08:00
Andrew Wang f5f7fa17c1 CompletionItemProvider for launch.json (#1401)
* Creating CompletionItemProvider for launch.json

* Address PR issues

* Adding jsonc-paser to ThirdPartyNotice
2018-01-03 12:22:16 -08:00
Pierson Lee 9a83d3e9bb Changes to copy from installed extension if CPPTOOLS_DEV has been set. (#1388)
We still allow overrides for different package locations but this will
use the vscode extension folder as a fallback if you have the extension
installed to get the extension location.
2018-01-02 16:23:33 -08:00
Andrew Wang 11509bed69 Moving from debugProxy to AdapterExecutableCommand (#1387)
* Moving from debugProxy to AdapterExecutableCommand

* Addressing PR issues

Moving registerAdapterExecutableCommand to Debugger/extension.ts

* Updating comment
2017-12-29 17:07:05 -08:00
Sean McManus aa4550c95d Update How to Contribute Changes.md (#1386)
Changed references to old files that got renamed.
2017-12-28 18:00:34 -08:00
Sean McManus 45aaee1a62 Remove CMakeLists.txt. (#1384) 2017-12-28 14:57:12 -08:00
Pierson Lee fb09db9b4b Add debugger code sample - Fib (#1383)
Add debugger code sample - Fib
2017-12-28 14:40:21 -08:00
Pierson Lee 92d0deceb7 Merge pull request #1382 from Microsoft/users/piel/merge
Move extension code to github.
2017-12-28 14:10:21 -08:00
Pierson Lee (PIE) b36642e5dc Move extension code to github.
* Update LICENSE file and license headers

U
2017-12-28 13:55:35 -08:00
ronglums 0fac6a32e1 Merge pull request #1336 from Microsoft/ronglu-edit
updated links
2017-12-11 17:03:58 -08:00
Rong Lu c6842db40c updated links 2017-12-11 17:02:37 -08:00
ronglums 92ac0b4ede Merge pull request #1335 from Microsoft/ronglu-edit
Ronglu edit
2017-12-11 17:00:09 -08:00
Rong Lu 5e4afa93e5 updates 2017-12-11 16:59:17 -08:00
Rong Lu d7ce37e641 minor edit 2017-12-08 15:36:10 -08:00
Rong Lu a2a3fc47ca format update 2017-12-08 15:34:52 -08:00
Rong Lu f613aeb25b added see also links 2017-12-08 15:33:36 -08:00
Rong Lu debfef31cd updated getting started and added intellisense engine page 2017-12-08 15:27:37 -08:00
Pierson Lee 1834e13c46 Update launch.md
Fix description
2017-12-08 11:20:54 -08:00
Pierson Lee 4d948fe03e Add sourceFileMap instructions 2017-12-07 23:25:11 -08:00
Rong Lu cce6db2f5d updated doc 2017-12-07 17:03:45 -08:00
Rong Lu 64288a3661 updated doc 2017-12-07 17:01:12 -08:00
Rong Lu aeccd7c762 updated screenshots 2017-12-07 16:50:06 -08:00
Rong Lu 9fad87f12b updated doc and include error screenshot 2017-12-07 16:26:29 -08:00
Rong Lu 7c5ed6dccb updated the doc 2017-12-07 16:21:47 -08:00
Rong Lu 815c22a0bb update 2017-12-07 16:11:01 -08:00
Rong Lu 20e51dbbb4 updates 2017-12-07 15:32:14 -08:00
Rong Lu 03c6c4df1d updated doc and screenshots 2017-12-07 15:24:09 -08:00
Rong Lu ab6b27759b updated text for c_cpp_properties.json link 2017-12-07 11:00:00 -08:00
Rong Lu 6b602f7914 updated reference links 2017-12-07 10:58:41 -08:00
Rong Lu 40e0563489 updated link to the lightbulb suggestion screenshot 2017-12-07 10:56:17 -08:00
Rong Lu 94b4de096b updated two links 2017-12-07 10:54:27 -08:00
Rong Lu fb4642c0ef Updated getting started page and screenshots. Added IntelliSense engine.md 2017-12-07 10:52:08 -08:00
ronglums 6276de6084 Merge pull request #1320 from Microsoft/ronglu-edit
update screenshots
2017-12-07 10:11:59 -08:00
Rong Lu 43dba74621 More screenshots 2017-12-07 10:09:09 -08:00
Rong Lu 53b48b1286 updated screenshot 2017-12-06 15:49:30 -08:00
ronglums e7b710896c Merge pull request #1314 from Microsoft/ronglu-edit
add images
2017-12-06 11:19:43 -08:00
Rong Lu 66df256fe6 add images 2017-12-06 11:12:29 -08:00
Pierson Lee 20d89ca801 Update launch.md 2017-11-09 13:29:02 -08:00
Bob Brown fbaca72ff5 Merge pull request #1177 from mezzode/wsl-debug
Update docs for WSL debugging
2017-10-31 09:40:24 -07:00
Bob Brown ddcc97ddaa Powershell command for additional distro filesystems
Credit to @icylogic for providing this Powershell command to discover additional distros' filesystems
2017-10-31 09:38:43 -07:00
Bob Brown 6dfa9d6e55 Merge pull request #1176 from mezzode/wsl-config
Update WSL config docs
2017-10-31 09:33:18 -07:00
Sean aa4220c47f Fix using beta config for C example 2017-10-31 11:24:45 +11:00
Bob Brown 53e8072f02 Merge pull request #1179 from russelltg/patch-1
Fix syntax error in JSON
2017-10-30 09:15:39 -07:00
Russell Greene fce806fa02 Fix syntax error in JSON
The `c_cpp_properties.json` example file was missing a comma in the reference for `c_cpp_properties.json`
2017-10-28 13:01:09 -06:00
Sean 22f71eac7a Update docs for WSL debugging 2017-10-28 12:13:30 +11:00
Sean 9556593ce9 Update formatting 2017-10-28 11:23:09 +11:00
Sean 312a14ad59 Update docs for WSL config 2017-10-28 11:17:09 +11:00
Bob Brown d1d81de3e4 Update Enabling logging.md 2017-10-23 08:40:08 -07:00
Bob Brown 9ed1ec6c9d Update Getting started.md 2017-10-23 08:38:31 -07:00
Bob Brown 9b11449fbe Update ISSUE_TEMPLATE.md 2017-10-19 13:42:16 -07:00
Bob Brown 9f1b6d6e3d formatting 2017-10-19 10:33:17 -07:00
Bob Brown b3580ce633 Update c_cpp_properties.json.md 2017-10-19 10:32:37 -07:00
Bob Brown 08fee2c0a7 Add information about the compileCommands property 2017-10-19 10:29:10 -07:00
Bob Brown ea8a02dfd5 Updating logging information 2017-10-19 10:18:28 -07:00
Bob Brown c26d6441be Merge pull request #1142 from csholmq/patch-1
Typo
2017-10-18 07:51:28 -07:00
Sebastian Holmqvist 42ec330978 Typo 2017-10-18 13:00:56 +02:00
Bob Brown 0d88024174 Update MinGW.md 2017-10-17 11:25:54 -07:00
Bob Brown 684b597255 Update MinGW.md 2017-10-17 11:25:12 -07:00
Bob Brown b6f9acd0d7 Merge pull request #1132 from Jaxkr/patch-1
Update MinGW paths to 6.3.0.
2017-10-17 11:24:09 -07:00
Jackson Roberts 3f330fc8a5 Update MinGW paths to 6.3.0.
As the latest recommended version of MinGW is 6.3.0 and MinGW strongly discourages using old versions, I think it's appropriate to update the version numbers for this file and add a notice informing users that they may have to change the MinGW file path to match their version.
2017-10-14 00:40:43 -06:00
Sean McManus 04f37dac36 Update FAQ.md
Fix typo.
2017-09-18 05:25:27 -07:00
Sean McManus 677e3efc91 Update FAQ.md
Added more text to explain how to `Force semantic IntelliSense`.
2017-09-18 05:22:34 -07:00
Pierson Lee 5de2be573f Update Windows Subsystem for Linux.md 2017-08-22 11:49:01 -07:00
Pierson Lee 1ef0d31f46 Update Windows Subsystem for Linux.md
Added Creator's Update build version for WSL requirement.
2017-08-22 11:48:24 -07:00
Bob Brown 564c6e51ca Update FAQ.md 2017-08-22 08:50:42 -07:00
Bob Brown 5f21f4a6d5 Update FAQ.md 2017-08-22 08:47:06 -07:00
Bob Brown c88233cf6f Update FAQ.md 2017-08-22 08:44:25 -07:00
Bob Brown c324bc5c3b Update Getting started.md 2017-08-17 15:24:03 -07:00
Bob Brown 79aaa86fff Update ISSUE_TEMPLATE.md 2017-08-10 09:14:20 -07:00
Bob Brown 8a05923f2f Create ISSUE_TEMPLATE.md 2017-08-10 09:13:20 -07:00
Sean McManus 41013f8ec5 Add files via upload 2017-07-28 16:26:23 -07:00
Bob Brown 1ce03db464 Update Enabling logging.md 2017-07-19 21:41:39 -07:00
Bob Brown efb918225f Update Enabling logging.md 2017-07-19 21:40:31 -07:00
Bob Brown 76b85ec026 Create Enabling logging.md 2017-07-19 21:35:52 -07:00
Bob Brown c430ed4bd3 Update FAQ.md 2017-07-19 15:42:43 -07:00
Bob Brown a9d2543bf8 Update Getting started.md 2017-07-19 08:25:59 -07:00
Bob Brown ac83d720ff Update MinGW.md
Additional suggestions from #796
2017-07-18 22:59:28 -07:00
Bob Brown bb7cd06769 Update c_cpp_properties.json.md 2017-07-17 16:19:42 -07:00
Bob Brown 34c026ce2b Create reference guide for c_cpp_properties.json 2017-07-17 16:16:09 -07:00
Bob Brown 1b567b2ba4 Update FAQ's regarding MinGW 2017-07-17 14:41:29 -07:00
Bob Brown e88de4eeea Add a getting started doc 2017-07-17 11:14:20 -07:00
Bob Brown ed6a519760 Update README.md 2017-07-12 20:52:23 -07:00
Bob Brown 231df80d1e Update MinGW.md
Add "__GNUC__" to the defines array
2017-06-29 09:39:36 -07:00
Bob Brown 8979a6e6b3 Create Windows Subsystem for Linux.md 2017-06-28 13:49:18 -07:00
Bob Brown 2001e921ff Create MinGW.md 2017-06-28 09:14:07 -07:00
Bob Brown 1a37e74b9b Create FAQ.md 2017-06-12 08:29:42 -07:00
Bob Brown 0006a07de2 update description of when IntelliSense is on by default 2017-06-12 08:29:16 -07:00
Bob Brown 5a4c25e12c add C_Cpp. prefix to settings. 2017-05-23 16:07:57 -07:00
Bob Brown 3adb8cb70b Add a FAQ for getting IntelliSense to work with MinGW on Windows 2017-05-23 08:48:01 -07:00
Bob Brown 6df6c118e5 fix "showDisplayString" example 2017-05-22 21:29:12 -07:00
Bob Brown 8ef109dcb3 Update FAQ.md
fixed the link
2017-05-22 10:58:41 -07:00
Bob Brown b5d3b1e018 Merge pull request #754 from Microsoft/bobbrow-faq
Update FAQ.md
2017-05-22 10:56:57 -07:00
Bob Brown c3fc02c810 Update FAQ.md 2017-05-22 10:54:15 -07:00
Pierson Lee (PIE) 64dd49769d Add initial documentation on how to debug MIEngine component for the
extension.
2017-05-17 18:05:00 -07:00
Bob Brown b1d37a0847 Add a frequently asked questions page to the documentation 2017-05-12 13:22:05 -07:00
1157 changed files with 146928 additions and 301 deletions
@@ -0,0 +1,79 @@
name: Bug Report - Language Service
description: Create a bug report for IntelliSense, code editing, code navigation, code completion, code formatting, semantic colorization, etc.
body:
- type: markdown
attributes:
value: |
### Is there an existing issue for this?
Please search our [existing issues](https://github.com/microsoft/vscode-cpptools/issues) to see if an issue already exists for the bug you encountered.
Please also review our [documentation](https://code.visualstudio.com/docs/languages/cpp) and [FAQs](https://code.visualstudio.com/docs/cpp/faq-cpp).
- type: textarea
attributes:
label: Environment
description: |
Please provide the information for the following:
- OS and Version
- VS Code Version
- C/C++ Extension Version
- If using SSH remote, specify OS of remote machine
value: |
- OS and Version:
- VS Code Version:
- C/C++ Extension Version:
- If using SSH remote, specify OS of remote machine:
validations:
required: true
- type: textarea
attributes:
label: Bug Summary and Steps to Reproduce
description: |
Please describe the language service issue or language service feature that is not working as expected. Include information about the actual workspace project (for example, is the workspace a single project or multiple projects, size of the project, etc).
Include clear steps on how to reproduce the issue and a description of what you expected to happen.
value: |
Bug Summary:
Steps to reproduce:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
Expected behavior:
validations:
required: true
- type: textarea
attributes:
label: Configuration and Logs
description: |
Please provide your c_cpp_properties.json and logs:
- Configurations in `c_cpp_properties.json`
- Logs from running `C/C++: Log Diagnostics` from the VS Code command palette
- Logs from [the language server logging](https://code.visualstudio.com/docs/cpp/enable-logging-cpp#_enable-logging-for-the-language-server)
render: shell
validations:
required: true
- type: textarea
attributes:
label: Other Extensions
description: If applicable, please list other extensions installed and if the issue persists after disabling other extensions.
validations:
required: false
- type: textarea
attributes:
label: Additional context
description: |
Optionally provide other information that will give us more context about the issue you are encountering, such as code sample, screenshots, screen recording of the issue, call stacks, etc.
Providing 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".
Instructions for attaching debugger to language service process:
https://github.com/microsoft/vscode-cpptools/wiki/Attaching-debugger-to-cpptools-or-cpptools%E2%80%90srv.
Performance analysis:
For a performance issue see instructions at https://github.com/microsoft/vscode-cpptools/wiki/Troubleshooting-Performance-Issues.
validations:
required: false
+78
View File
@@ -0,0 +1,78 @@
name: Bug Report - Debugger
description: Create a bug report for debugging such as call stack, breakpoints, watch window, launching or attaching to a debuggee.
body:
- type: markdown
attributes:
value: |
### Is there an existing issue for this?
Please search our [existing issues](https://github.com/microsoft/vscode-cpptools/issues) to see if an issue already exists for the bug you encountered.
Please also review our [documentation](https://code.visualstudio.com/docs/languages/cpp) and [FAQs](https://code.visualstudio.com/docs/cpp/faq-cpp).
- type: textarea
attributes:
label: Environment
description: |
Please provide the information for the following:
- OS and version
- VS Code version
- C/C++ extension version
- OS and version of remote machine (if applicable)
- GDB / LLDB version
value: |
- OS and version:
- VS Code:
- C/C++ extension:
- OS and version of remote machine (if applicable):
- GDB / LLDB version:
validations:
required: true
- type: textarea
attributes:
label: Bug Summary and Steps to Reproduce
description: |
Please describe the debugging issue or debugger feature that is not working as expected.
Include clear steps on how to reproduce the issue.
value: |
Bug Summary:
Steps to reproduce:
1. In this environment...
2. With this config...
3. Do '...'
4. See error...
validations:
required: true
- type: textarea
attributes:
label: Debugger Configurations
description: Please provide the debugger configurations from the **tasks.json** and **launch.json** files.
render: shell
validations:
required: true
- type: textarea
attributes:
label: Debugger Logs
description: |
If applicable, please include [logging for the debugger adapter](https://code.visualstudio.com/docs/cpp/enable-logging-cpp#_enable-logging-for-the-debug-adapter) by adding `"logging": { "engineLogging": true, "trace": true, "traceResponse": true }` in the **launch.json** file.
Include logs or error messages from the Debug Console or Output windows.
render: shell
validations:
required: true
- type: textarea
attributes:
label: Other Extensions
description: If applicable, please list other extensions installed and if the issue persists after disabling other extensions.
validations:
required: false
- type: textarea
attributes:
label: Additional Information
description: |
Optionally provide other information that will give us more context about the issue you are encountering, such as a code sample, screenshots, or screen recording of the issue.
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
validations:
required: false
@@ -0,0 +1,15 @@
name: Feature Request
description: Suggest an idea for the C/C++ extension.
body:
- type: markdown
attributes:
value: |
### Is there an existing request for this feature?
Prior to creating a new feature request, please review our [existing feature requests](https://github.com/microsoft/vscode-cpptools/issues?q=is%3Aopen+is%3Aissue+label%3A%22Feature+Request%22) to avoid duplicates.
- type: textarea
attributes:
label: Feature Request
description: |
Describe the feature you'd like.
validations:
required: true
+5
View File
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Discussion or question
url: https://github.com/microsoft/vscode-cpptools/discussions/new
about: Please use our Discussions board to start a discussion or to ask a question.
+3
View File
@@ -0,0 +1,3 @@
# ignore dependency packages
node_modules
*.js.map
+2
View File
@@ -0,0 +1,2 @@
registry=https://pkgs.dev.azure.com/azure-public/VisualCpp/_packaging/cpp_PublicPackages/npm/registry/
always-auth=true
+86
View File
@@ -0,0 +1,86 @@
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.AddComment = void 0;
const ActionBase_1 = require("../common/ActionBase");
const utils_1 = require("../common/utils");
class AddComment extends ActionBase_1.ActionBase {
constructor(github, createdAfter, afterDays, labels, addComment, addLabels, removeLabels, setMilestoneId, milestoneName, milestoneId, ignoreLabels, ignoreMilestoneNames, ignoreMilestoneIds, minimumVotes, maximumVotes, involves) {
super(labels, milestoneName, milestoneId, ignoreLabels, ignoreMilestoneNames, ignoreMilestoneIds, minimumVotes, maximumVotes, involves);
this.github = github;
this.createdAfter = createdAfter;
this.afterDays = afterDays;
this.addComment = addComment;
this.addLabels = addLabels;
this.removeLabels = removeLabels;
this.setMilestoneId = setMilestoneId;
}
async run() {
const updatedTimestamp = this.afterDays ? (0, utils_1.daysAgoToHumanReadbleDate)(this.afterDays) : undefined;
const query = this.buildQuery((updatedTimestamp ? `updated:<${updatedTimestamp} ` : "") +
(this.createdAfter ? `created:>${this.createdAfter} ` : "") +
"is:open is:unlocked");
const addLabelsSet = this.addLabels ? this.addLabels.split(',') : [];
const removeLabelsSet = this.removeLabels ? this.removeLabels.split(',') : [];
for await (const page of this.github.query({ q: query })) {
for (const issue of page) {
const hydrated = await issue.getIssue();
if (hydrated.open && this.validateIssue(hydrated)
// TODO: Verify updated timestamp
) {
// Don't add a comment if already commented on by an action.
let foundActionComment = false;
for await (const commentBatch of issue.getComments()) {
for (const comment of commentBatch) {
if (comment.author.isGitHubApp) {
foundActionComment = true;
break;
}
}
if (foundActionComment)
break;
}
if (foundActionComment) {
(0, utils_1.safeLog)(`Issue ${hydrated.number} already commented on by an action. Ignoring.`);
continue;
}
if (this.addComment) {
(0, utils_1.safeLog)(`Posting comment on issue ${hydrated.number}`);
await issue.postComment(this.addComment);
}
if (removeLabelsSet.length > 0) {
for (const removeLabel of removeLabelsSet) {
if (removeLabel && removeLabel.length > 0) {
(0, utils_1.safeLog)(`Removing label on issue ${hydrated.number}: ${removeLabel}`);
await issue.removeLabel(removeLabel);
}
}
}
if (addLabelsSet.length > 0) {
for (const addLabel of addLabelsSet) {
if (addLabel && addLabel.length > 0) {
(0, utils_1.safeLog)(`Adding label on issue ${hydrated.number}: ${addLabel}`);
await issue.addLabel(addLabel);
}
}
}
if (this.setMilestoneId != undefined) {
(0, utils_1.safeLog)(`Setting milestone of issue ${hydrated.number} to id ${+this.setMilestoneId}`);
await issue.setMilestone(+this.setMilestoneId);
}
(0, utils_1.safeLog)(`Processing issue ${hydrated.number}.`);
}
else {
if (!hydrated.open) {
(0, utils_1.safeLog)(`Issue ${hydrated.number} is not open. Ignoring`);
}
}
}
}
}
}
exports.AddComment = AddComment;
//# sourceMappingURL=AddComment.js.map
+98
View File
@@ -0,0 +1,98 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { GitHub } from '../api/api';
import { ActionBase } from '../common/ActionBase';
import { daysAgoToHumanReadbleDate, daysAgoToTimestamp, safeLog } from '../common/utils';
export class AddComment extends ActionBase {
constructor(
private github: GitHub,
private createdAfter: string | undefined,
private afterDays: number,
labels: string,
private addComment: string,
private addLabels?: string,
private removeLabels?: string,
private setMilestoneId?: string,
milestoneName?: string,
milestoneId?: string,
ignoreLabels?: string,
ignoreMilestoneNames?: string,
ignoreMilestoneIds?: string,
minimumVotes?: number,
maximumVotes?: number,
involves?: string
) {
super(labels, milestoneName, milestoneId, ignoreLabels, ignoreMilestoneNames, ignoreMilestoneIds, minimumVotes, maximumVotes, involves);
}
async run() {
const updatedTimestamp = this.afterDays ? daysAgoToHumanReadbleDate(this.afterDays) : undefined;
const query = this.buildQuery(
(updatedTimestamp ? `updated:<${updatedTimestamp} ` : "") +
(this.createdAfter ? `created:>${this.createdAfter} ` : "") +
"is:open is:unlocked");
const addLabelsSet = this.addLabels ? this.addLabels.split(',') : [];
const removeLabelsSet = this.removeLabels ? this.removeLabels.split(',') : [];
for await (const page of this.github.query({ q: query })) {
for (const issue of page) {
const hydrated = await issue.getIssue();
if (hydrated.open && this.validateIssue(hydrated)
// TODO: Verify updated timestamp
) {
// Don't add a comment if already commented on by an action.
let foundActionComment = false;
for await (const commentBatch of issue.getComments()) {
for (const comment of commentBatch) {
if (comment.author.isGitHubApp) {
foundActionComment = true;
break;
}
}
if (foundActionComment)
break;
}
if (foundActionComment) {
safeLog(`Issue ${hydrated.number} already commented on by an action. Ignoring.`);
continue;
}
if (this.addComment) {
safeLog(`Posting comment on issue ${hydrated.number}`);
await issue.postComment(this.addComment);
}
if (removeLabelsSet.length > 0) {
for (const removeLabel of removeLabelsSet) {
if (removeLabel && removeLabel.length > 0) {
safeLog(`Removing label on issue ${hydrated.number}: ${removeLabel}`);
await issue.removeLabel(removeLabel);
}
}
}
if (addLabelsSet.length > 0) {
for (const addLabel of addLabelsSet) {
if (addLabel && addLabel.length > 0) {
safeLog(`Adding label on issue ${hydrated.number}: ${addLabel}`);
await issue.addLabel(addLabel);
}
}
}
if (this.setMilestoneId != undefined) {
safeLog(`Setting milestone of issue ${hydrated.number} to id ${+this.setMilestoneId}`);
await issue.setMilestone(+this.setMilestoneId);
}
safeLog(`Processing issue ${hydrated.number}.`);
} else {
if (!hydrated.open) {
safeLog(`Issue ${hydrated.number} is not open. Ignoring`);
}
}
}
}
}
}
+42
View File
@@ -0,0 +1,42 @@
name: Add Comment and Label
description: Add comment (etc) to issues that are marked with a specified label (etc)
inputs:
token:
description: GitHub token with issue, comment, and label read/write permissions
default: ${{ github.token }}
createdAfter:
description: Creation date after which to be considered.
required: false
afterDays:
description: Days to wait before performing this action (may be 0).
required: false
addComment:
description: Comment to add
labels:
description: items with these labels will be considered. May be "*".
required: true
milestoneName:
description: items with these milestones will be considered (name only, must match ID)
milestoneId:
description: items with these milestones will be considered (id only, must match name)
ignoreLabels:
description: items with these labels will not be considered
ignoreMilestoneNames:
description: items with these milestones will not be considered (names only, must match IDs). May be "*".
ignoreMilestoneIds:
description: items with these milestones will not be considered (IDs only, must match names)
addLabels:
description: Labels to add to issue.
removeLabels:
description: Labels to remove from issue.
minimumVotes:
descriptions: Only issues with at least this many votes will be considered.
maximumVotes:
descriptions: Only issues fewer or equal to this many votes will be considered.
involves:
descriptions: Qualifier to find issues that in some way involve a certain user either as an author, assignee, or mentions.
readonly:
description: If true, changes are not applied.
runs:
using: 'node12'
main: 'index.js'
+20
View File
@@ -0,0 +1,20 @@
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("../common/utils");
const AddComment_1 = require("./AddComment");
const Action_1 = require("../common/Action");
class AddCommentAction extends Action_1.Action {
constructor() {
super(...arguments);
this.id = 'AddComment';
}
async onTriggered(github) {
await new AddComment_1.AddComment(github, (0, utils_1.getInput)('createdAfter') || undefined, +((0, utils_1.getInput)('afterDays') || 0), (0, utils_1.getRequiredInput)('labels'), (0, utils_1.getInput)('addComment') || '', (0, utils_1.getInput)('addLabels') || undefined, (0, utils_1.getInput)('removeLabels') || undefined, (0, utils_1.getInput)('setMilestoneId') || undefined, (0, utils_1.getInput)('milestoneName') || undefined, (0, utils_1.getInput)('milestoneId') || undefined, (0, utils_1.getInput)('ignoreLabels') || undefined, (0, utils_1.getInput)('ignoreMilestoneNames') || undefined, (0, utils_1.getInput)('ignoreMilestoneIds') || undefined, +((0, utils_1.getInput)('minimumVotes') || 0), +((0, utils_1.getInput)('maximumVotes') || 9999999), (0, utils_1.getInput)('involves') || undefined).run();
}
}
new AddCommentAction().run(); // eslint-disable-line
//# sourceMappingURL=index.js.map
+36
View File
@@ -0,0 +1,36 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { OctoKit } from '../api/octokit'
import { getInput, getRequiredInput } from '../common/utils'
import { AddComment } from './AddComment'
import { Action } from '../common/Action'
class AddCommentAction extends Action {
id = 'AddComment';
async onTriggered(github: OctoKit) {
await new AddComment(
github,
getInput('createdAfter') || undefined,
+(getInput('afterDays') || 0),
getRequiredInput('labels'),
getInput('addComment') || '',
getInput('addLabels') || undefined,
getInput('removeLabels') || undefined,
getInput('setMilestoneId') || undefined,
getInput('milestoneName') || undefined,
getInput('milestoneId') || undefined,
getInput('ignoreLabels') || undefined,
getInput('ignoreMilestoneNames') || undefined,
getInput('ignoreMilestoneIds') || undefined,
+(getInput('minimumVotes') || 0),
+(getInput('maximumVotes') || 9999999),
getInput('involves') || undefined
).run();
}
}
new AddCommentAction().run(); // eslint-disable-line
+43
View File
@@ -0,0 +1,43 @@
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.Locker = void 0;
const utils_1 = require("../common/utils");
const ActionBase_1 = require("../common/ActionBase");
class Locker extends ActionBase_1.ActionBase {
constructor(github, daysSinceClose, daysSinceUpdate, labels, milestoneName, milestoneId, ignoreLabels, ignoreMilestoneNames, ignoreMilestoneIds, minimumVotes, maximumVotes) {
super(labels, milestoneName, milestoneId, ignoreLabels, ignoreMilestoneNames, ignoreMilestoneIds, minimumVotes, maximumVotes);
this.github = github;
this.daysSinceClose = daysSinceClose;
this.daysSinceUpdate = daysSinceUpdate;
}
async run() {
const closedTimestamp = (0, utils_1.daysAgoToHumanReadbleDate)(this.daysSinceClose);
const updatedTimestamp = (0, utils_1.daysAgoToHumanReadbleDate)(this.daysSinceUpdate);
const query = this.buildQuery((this.daysSinceClose ? `closed:<${closedTimestamp} ` : "") + (this.daysSinceUpdate ? `updated:<${updatedTimestamp} ` : "") + "is:closed is:unlocked");
for await (const page of this.github.query({ q: query })) {
await Promise.all(page.map(async (issue) => {
const hydrated = await issue.getIssue();
if (!hydrated.locked && hydrated.open === false && this.validateIssue(hydrated)
// TODO: Verify closed and updated timestamps
) {
(0, utils_1.safeLog)(`Locking issue ${hydrated.number}`);
await issue.lockIssue();
}
else {
if (hydrated.locked) {
(0, utils_1.safeLog)(`Issue ${hydrated.number} is already locked. Ignoring`);
}
else if (hydrated.open) {
(0, utils_1.safeLog)(`Issue ${hydrated.number} is open. Ignoring`);
}
}
}));
}
}
}
exports.Locker = Locker;
//# sourceMappingURL=Locker.js.map
+55
View File
@@ -0,0 +1,55 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { GitHub, Issue } from '../api/api';
import { daysAgoToHumanReadbleDate, safeLog } from '../common/utils';
import { ActionBase } from '../common/ActionBase';
export class Locker extends ActionBase {
constructor(
private github: GitHub,
private daysSinceClose: number,
private daysSinceUpdate: number,
labels?: string,
milestoneName?: string,
milestoneId?: string,
ignoreLabels?: string,
ignoreMilestoneNames?: string,
ignoreMilestoneIds?: string,
minimumVotes?: number,
maximumVotes?: number
)
{
super(labels, milestoneName, milestoneId, ignoreLabels, ignoreMilestoneNames, ignoreMilestoneIds, minimumVotes, maximumVotes);
}
async run() {
const closedTimestamp = daysAgoToHumanReadbleDate(this.daysSinceClose);
const updatedTimestamp = daysAgoToHumanReadbleDate(this.daysSinceUpdate);
const query = this.buildQuery((this.daysSinceClose ? `closed:<${closedTimestamp} ` : "") + (this.daysSinceUpdate ? `updated:<${updatedTimestamp} ` : "") + "is:closed is:unlocked");
for await (const page of this.github.query({ q: query })) {
await Promise.all(
page.map(async (issue) => {
const hydrated = await issue.getIssue();
if (!hydrated.locked && hydrated.open === false && this.validateIssue(hydrated)
// TODO: Verify closed and updated timestamps
) {
safeLog(`Locking issue ${hydrated.number}`);
await issue.lockIssue();
} else {
if (hydrated.locked) {
safeLog(`Issue ${hydrated.number} is already locked. Ignoring`);
} else if (hydrated.open) {
safeLog(`Issue ${hydrated.number} is open. Ignoring`);
}
}
}),
)
}
}
}
+33
View File
@@ -0,0 +1,33 @@
name: Locker
description: Lock closed issues and PRs after some time has passed
inputs:
token:
description: GitHub token with issue, comment, and label read/write permissions
default: ${{ github.token }}
daysSinceClose:
description: Days to wait since closing before locking the item
required: true
daysSinceUpdate:
description: days to wait since the last interaction before locking the item
required: true
milestoneName:
description: items with these milestones will be considered (name only, must match ID)
milestoneId:
description: items with these milestones will be considered (id only, must match name)
labels:
description: items with these labels will be considered. May be "*".
ignoreMilestoneNames:
description: items with these milestones will not be considered (names only, must match IDs). May be "*".
ignoreMilestoneIds:
description: items with these milestones will not be considered (IDs only, must match names)
ignoreLabels:
description: items with these labels will not be considered
minimumVotes:
descriptions: Only issues with at least this many votes will be considered.
maximumVotes:
descriptions: Only issues fewer or equal to this many votes will be considered.
readonly:
description: If true, changes are not applied.
runs:
using: 'node12'
main: 'index.js'
+20
View File
@@ -0,0 +1,20 @@
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("../common/utils");
const Locker_1 = require("./Locker");
const Action_1 = require("../common/Action");
class LockerAction extends Action_1.Action {
constructor() {
super(...arguments);
this.id = 'Locker';
}
async onTriggered(github) {
await new Locker_1.Locker(github, +(0, utils_1.getRequiredInput)('daysSinceClose'), +(0, utils_1.getRequiredInput)('daysSinceUpdate'), (0, utils_1.getInput)('labels') || undefined, (0, utils_1.getInput)('milestoneName') || undefined, (0, utils_1.getInput)('milestoneId') || undefined, (0, utils_1.getInput)('ignoreLabels') || undefined, (0, utils_1.getInput)('ignoreMilestoneNames') || undefined, (0, utils_1.getInput)('ignoreMilestoneIds') || undefined, +((0, utils_1.getInput)('minimumVotes') || 0), +((0, utils_1.getInput)('maximumVotes') || 9999999)).run();
}
}
new LockerAction().run(); // eslint-disable-line
//# sourceMappingURL=index.js.map
+31
View File
@@ -0,0 +1,31 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { OctoKit } from '../api/octokit';
import { getInput, getRequiredInput } from '../common/utils';
import { Locker } from './Locker';
import { Action } from '../common/Action';
class LockerAction extends Action {
id = 'Locker';
async onTriggered(github: OctoKit) {
await new Locker(
github,
+getRequiredInput('daysSinceClose'),
+getRequiredInput('daysSinceUpdate'),
getInput('labels') || undefined,
getInput('milestoneName') || undefined,
getInput('milestoneId') || undefined,
getInput('ignoreLabels') || undefined,
getInput('ignoreMilestoneNames') || undefined,
getInput('ignoreMilestoneIds') || undefined,
+(getInput('minimumVotes') || 0),
+(getInput('maximumVotes') || 9999999)
).run();
}
}
new LockerAction().run(); // eslint-disable-line
+73
View File
@@ -0,0 +1,73 @@
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.Reopener = void 0;
const utils_1 = require("../common/utils");
const ActionBase_1 = require("../common/ActionBase");
class Reopener extends ActionBase_1.ActionBase {
constructor(github, alsoApplyToOpenIssues, addLabels, removeLabels, reopenComment, setMilestoneId, labels, milestoneName, milestoneId, ignoreLabels, ignoreMilestoneNames, ignoreMilestoneIds, minimumVotes, maximumVotes) {
super(labels, milestoneName, milestoneId, ignoreLabels, ignoreMilestoneNames, ignoreMilestoneIds, minimumVotes, maximumVotes);
this.github = github;
this.alsoApplyToOpenIssues = alsoApplyToOpenIssues;
this.addLabels = addLabels;
this.removeLabels = removeLabels;
this.reopenComment = reopenComment;
this.setMilestoneId = setMilestoneId;
}
async run() {
const addLabelsSet = this.addLabels ? this.addLabels.split(',') : [];
const removeLabelsSet = this.removeLabels ? this.removeLabels.split(',') : [];
(0, utils_1.safeLog)(`alsoApplyToOpenIssues: ${this.alsoApplyToOpenIssues}`);
const query = this.buildQuery((this.alsoApplyToOpenIssues ? "" : "is:closed ") + "is:unlocked");
for await (const page of this.github.query({ q: query })) {
await Promise.all(page.map(async (issue) => {
const hydrated = await issue.getIssue();
if (!hydrated.locked && (this.alsoApplyToOpenIssues || hydrated.open === false) && this.validateIssue(hydrated)
// TODO: Verify closed and updated timestamps
) {
if (hydrated.open === false) {
(0, utils_1.safeLog)(`Reopening issue ${hydrated.number}`);
await issue.reopenIssue();
}
if (this.setMilestoneId != undefined) {
(0, utils_1.safeLog)(`Setting milestone of issue ${hydrated.number} to id ${+this.setMilestoneId}`);
await issue.setMilestone(+this.setMilestoneId);
}
if (removeLabelsSet.length > 0) {
for (const removeLabel of removeLabelsSet) {
if (removeLabel && removeLabel.length > 0) {
(0, utils_1.safeLog)(`Removing label on issue ${hydrated.number}: ${removeLabel}`);
await issue.removeLabel(removeLabel);
}
}
}
if (addLabelsSet.length > 0) {
for (const addLabel of addLabelsSet) {
if (addLabel && addLabel.length > 0) {
(0, utils_1.safeLog)(`Adding label on issue ${hydrated.number}: ${addLabel}`);
await issue.addLabel(addLabel);
}
}
}
if (this.reopenComment) {
(0, utils_1.safeLog)(`Posting comment to issue ${hydrated.number}.`);
await issue.postComment(this.reopenComment);
}
}
else {
if (hydrated.locked) {
(0, utils_1.safeLog)(`Issue ${hydrated.number} is locked. Ignoring`);
}
else if (!this.alsoApplyToOpenIssues && hydrated.open) {
(0, utils_1.safeLog)(`Issue ${hydrated.number} is open. Ignoring`);
}
}
}));
}
}
}
exports.Reopener = Reopener;
//# sourceMappingURL=Reopener.js.map
+85
View File
@@ -0,0 +1,85 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { GitHub, Issue } from '../api/api';
import { daysAgoToHumanReadbleDate, safeLog } from '../common/utils';
import { ActionBase } from '../common/ActionBase';
export class Reopener extends ActionBase {
constructor(
private github: GitHub,
private alsoApplyToOpenIssues: boolean,
private addLabels?: string,
private removeLabels?: string,
private reopenComment?: string,
private setMilestoneId?: string,
labels?: string,
milestoneName?: string,
milestoneId?: string,
ignoreLabels?: string,
ignoreMilestoneNames?: string,
ignoreMilestoneIds?: string,
minimumVotes?: number,
maximumVotes?: number
)
{
super(labels, milestoneName, milestoneId, ignoreLabels, ignoreMilestoneNames, ignoreMilestoneIds, minimumVotes, maximumVotes);
}
async run() {
const addLabelsSet = this.addLabels ? this.addLabels.split(',') : [];
const removeLabelsSet = this.removeLabels ? this.removeLabels.split(',') : [];
safeLog(`alsoApplyToOpenIssues: ${this.alsoApplyToOpenIssues}`);
const query = this.buildQuery((this.alsoApplyToOpenIssues ? "": "is:closed ") + "is:unlocked");
for await (const page of this.github.query({ q: query })) {
await Promise.all(
page.map(async (issue) => {
const hydrated = await issue.getIssue();
if (!hydrated.locked && (this.alsoApplyToOpenIssues || hydrated.open === false) && this.validateIssue(hydrated)
// TODO: Verify closed and updated timestamps
) {
if (hydrated.open === false) {
safeLog(`Reopening issue ${hydrated.number}`);
await issue.reopenIssue();
}
if (this.setMilestoneId != undefined) {
safeLog(`Setting milestone of issue ${hydrated.number} to id ${+this.setMilestoneId}`);
await issue.setMilestone(+this.setMilestoneId);
}
if (removeLabelsSet.length > 0) {
for (const removeLabel of removeLabelsSet) {
if (removeLabel && removeLabel.length > 0) {
safeLog(`Removing label on issue ${hydrated.number}: ${removeLabel}`);
await issue.removeLabel(removeLabel);
}
}
}
if (addLabelsSet.length > 0) {
for (const addLabel of addLabelsSet) {
if (addLabel && addLabel.length > 0) {
safeLog(`Adding label on issue ${hydrated.number}: ${addLabel}`);
await issue.addLabel(addLabel);
}
}
}
if (this.reopenComment) {
safeLog(`Posting comment to issue ${hydrated.number}.`);
await issue.postComment(this.reopenComment);
}
} else {
if (hydrated.locked) {
safeLog(`Issue ${hydrated.number} is locked. Ignoring`);
} else if (!this.alsoApplyToOpenIssues && hydrated.open) {
safeLog(`Issue ${hydrated.number} is open. Ignoring`);
}
}
}),
)
}
}
}
+37
View File
@@ -0,0 +1,37 @@
name: Locker
description: Lock closed issues and PRs after some time has passed
inputs:
token:
description: GitHub token with issue, comment, and label read/write permissions
default: ${{ github.token }}
alsoApplyToOpenIssues:
description: If true, applies to issues that are already opened (to add/remove labels, etc., but not reopen).
addLabels:
description: Labels to add to issue as it is reopend.
reopenComment:
description: Comment to add upon reopening the issue.
setMilestoneId:
description: Milestone to set reopened issue to.
removeLabels:
description: Labels to remove from issue as it is reopened.
milestoneName:
description: items with these milestones will be considered (name only, must match ID)
milestoneId:
description: items with these milestones will be considered (id only, must match name)
labels:
description: items with these labels will be considered. May be "*".
ignoreMilestoneNames:
description: items with these milestones will not be considered (names only, must match IDs). May be "*".
ignoreMilestoneIds:
description: items with these milestones will not be considered (IDs only, must match names)
ignoreLabels:
description: items with these labels will not be considered
minimumVotes:
descriptions: Only issues with at least this many votes will be considered.
maximumVotes:
descriptions: Only issues fewer or equal to this many votes will be considered.
readonly:
description: If true, changes are not applied.
runs:
using: 'node12'
main: 'index.js'
+21
View File
@@ -0,0 +1,21 @@
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("../common/utils");
const Reopener_1 = require("./Reopener");
const Action_1 = require("../common/Action");
class ReopenerAction extends Action_1.Action {
constructor() {
super(...arguments);
this.id = 'Reopener';
}
async onTriggered(github) {
const alsoApplyToOpenIssues = (0, utils_1.getInput)('alsoApplyToOpenIssues');
await new Reopener_1.Reopener(github, alsoApplyToOpenIssues != undefined && alsoApplyToOpenIssues.toLowerCase() == 'true', (0, utils_1.getInput)('addLabels') || undefined, (0, utils_1.getInput)('removeLabels') || undefined, (0, utils_1.getInput)('reopenComment') || '', (0, utils_1.getInput)('setMilestoneId') || undefined, (0, utils_1.getInput)('labels') || undefined, (0, utils_1.getInput)('milestoneName') || undefined, (0, utils_1.getInput)('milestoneId') || undefined, (0, utils_1.getInput)('ignoreLabels') || undefined, (0, utils_1.getInput)('ignoreMilestoneNames') || undefined, (0, utils_1.getInput)('ignoreMilestoneIds') || undefined, +((0, utils_1.getInput)('minimumVotes') || 0), +((0, utils_1.getInput)('maximumVotes') || 9999999)).run();
}
}
new ReopenerAction().run(); // eslint-disable-line
//# sourceMappingURL=index.js.map
+35
View File
@@ -0,0 +1,35 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { OctoKit } from '../api/octokit';
import { getInput, getRequiredInput } from '../common/utils';
import { Reopener } from './Reopener';
import { Action } from '../common/Action';
class ReopenerAction extends Action {
id = 'Reopener';
async onTriggered(github: OctoKit) {
const alsoApplyToOpenIssues: string | undefined = getInput('alsoApplyToOpenIssues');
await new Reopener(
github,
alsoApplyToOpenIssues != undefined && alsoApplyToOpenIssues.toLowerCase() == 'true',
getInput('addLabels') || undefined,
getInput('removeLabels') || undefined,
getInput('reopenComment') || '',
getInput('setMilestoneId') || undefined,
getInput('labels') || undefined,
getInput('milestoneName') || undefined,
getInput('milestoneId') || undefined,
getInput('ignoreLabels') || undefined,
getInput('ignoreMilestoneNames') || undefined,
getInput('ignoreMilestoneIds') || undefined,
+(getInput('minimumVotes') || 0),
+(getInput('maximumVotes') || 9999999)
).run();
}
}
new ReopenerAction().run(); // eslint-disable-line
+106
View File
@@ -0,0 +1,106 @@
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.StaleCloser = void 0;
const ActionBase_1 = require("../common/ActionBase");
const utils_1 = require("../common/utils");
class StaleCloser extends ActionBase_1.ActionBase {
constructor(github, closeDays, labels, closeComment, pingDays, pingComment, additionalTeam, addLabels, removeLabels, setMilestoneId, milestoneName, milestoneId, ignoreLabels, ignoreMilestoneNames, ignoreMilestoneIds, minimumVotes, maximumVotes, involves) {
super(labels, milestoneName, milestoneId, ignoreLabels, ignoreMilestoneNames, ignoreMilestoneIds, minimumVotes, maximumVotes, involves);
this.github = github;
this.closeDays = closeDays;
this.closeComment = closeComment;
this.pingDays = pingDays;
this.pingComment = pingComment;
this.additionalTeam = additionalTeam;
this.addLabels = addLabels;
this.removeLabels = removeLabels;
this.setMilestoneId = setMilestoneId;
}
async run() {
const updatedTimestamp = this.closeDays ? (0, utils_1.daysAgoToHumanReadbleDate)(this.closeDays) : undefined;
const pingTimestamp = this.pingDays ? (0, utils_1.daysAgoToTimestamp)(this.pingDays) : undefined;
const query = this.buildQuery((updatedTimestamp ? `updated:<${updatedTimestamp} ` : "") + "is:open is:unlocked");
const addLabelsSet = this.addLabels ? this.addLabels.split(',') : [];
const removeLabelsSet = this.removeLabels ? this.removeLabels.split(',') : [];
for await (const page of this.github.query({ q: query })) {
for (const issue of page) {
const hydrated = await issue.getIssue();
const lastCommentIterator = await issue.getComments(true).next();
if (lastCommentIterator.done) {
throw Error('Unexpected comment data');
}
const lastComment = lastCommentIterator.value[0];
if (hydrated.open && this.validateIssue(hydrated)
// TODO: Verify updated timestamp
) {
if (!lastComment ||
lastComment.author.isGitHubApp ||
pingTimestamp == undefined ||
// TODO: List the collaborators once per go rather than checking a single user each issue
this.additionalTeam.includes(lastComment.author.name) ||
await issue.hasWriteAccess(lastComment.author)) {
if (pingTimestamp != undefined) {
if (lastComment) {
(0, utils_1.safeLog)(`Last comment on issue ${hydrated.number} by ${lastComment.author.name}. Closing.`);
}
else {
(0, utils_1.safeLog)(`No comments on issue ${hydrated.number}. Closing.`);
}
}
if (this.closeComment) {
(0, utils_1.safeLog)(`Posting comment on issue ${hydrated.number}`);
await issue.postComment(this.closeComment);
}
if (removeLabelsSet.length > 0) {
for (const removeLabel of removeLabelsSet) {
if (removeLabel && removeLabel.length > 0) {
(0, utils_1.safeLog)(`Removing label on issue ${hydrated.number}: ${removeLabel}`);
await issue.removeLabel(removeLabel);
}
}
}
if (addLabelsSet.length > 0) {
for (const addLabel of addLabelsSet) {
if (addLabel && addLabel.length > 0) {
(0, utils_1.safeLog)(`Adding label on issue ${hydrated.number}: ${addLabel}`);
await issue.addLabel(addLabel);
}
}
}
await issue.closeIssue("not_planned");
if (this.setMilestoneId != undefined) {
(0, utils_1.safeLog)(`Setting milestone of issue ${hydrated.number} to id ${+this.setMilestoneId}`);
await issue.setMilestone(+this.setMilestoneId);
}
(0, utils_1.safeLog)(`Closing issue ${hydrated.number}.`);
}
else {
// Ping
if (hydrated.updatedAt < pingTimestamp && hydrated.assignee) {
(0, utils_1.safeLog)(`Last comment on issue ${hydrated.number} by ${lastComment.author.name}. Pinging @${hydrated.assignee}`);
if (this.pingComment) {
await issue.postComment(this.pingComment
.replace('${assignee}', hydrated.assignee)
.replace('${author}', hydrated.author.name));
}
}
else {
(0, utils_1.safeLog)(`Last comment on issue ${hydrated.number} by ${lastComment.author.name}. Skipping.${hydrated.assignee ? ' cc @' + hydrated.assignee : ''}`);
}
}
}
else {
if (!hydrated.open) {
(0, utils_1.safeLog)(`Issue ${hydrated.number} is not open. Ignoring`);
}
}
}
}
}
}
exports.StaleCloser = StaleCloser;
//# sourceMappingURL=StaleCloser.js.map
+128
View File
@@ -0,0 +1,128 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { GitHub } from '../api/api';
import { ActionBase } from '../common/ActionBase';
import { daysAgoToHumanReadbleDate, daysAgoToTimestamp, safeLog } from '../common/utils';
export class StaleCloser extends ActionBase {
constructor(
private github: GitHub,
private closeDays: number,
labels: string,
private closeComment: string,
private pingDays: number,
private pingComment: string,
private additionalTeam: string[],
private addLabels?: string,
private removeLabels?: string,
private setMilestoneId?: string,
milestoneName?: string,
milestoneId?: string,
ignoreLabels?: string,
ignoreMilestoneNames?: string,
ignoreMilestoneIds?: string,
minimumVotes?: number,
maximumVotes?: number,
involves?: string
)
{
super(labels, milestoneName, milestoneId, ignoreLabels, ignoreMilestoneNames, ignoreMilestoneIds, minimumVotes, maximumVotes, involves);
}
async run() {
const updatedTimestamp = this.closeDays ? daysAgoToHumanReadbleDate(this.closeDays) : undefined;
const pingTimestamp = this.pingDays ? daysAgoToTimestamp(this.pingDays) : undefined;
const query = this.buildQuery((updatedTimestamp ? `updated:<${updatedTimestamp} ` : "") + "is:open is:unlocked");
const addLabelsSet = this.addLabels ? this.addLabels.split(',') : [];
const removeLabelsSet = this.removeLabels ? this.removeLabels.split(',') : [];
for await (const page of this.github.query({ q: query })) {
for (const issue of page) {
const hydrated = await issue.getIssue();
const lastCommentIterator = await issue.getComments(true).next();
if (lastCommentIterator.done) {
throw Error('Unexpected comment data');
}
const lastComment = lastCommentIterator.value[0];
if (hydrated.open && this.validateIssue(hydrated)
// TODO: Verify updated timestamp
) {
if (
!lastComment ||
lastComment.author.isGitHubApp ||
pingTimestamp == undefined ||
// TODO: List the collaborators once per go rather than checking a single user each issue
this.additionalTeam.includes(lastComment.author.name) ||
await issue.hasWriteAccess(lastComment.author)
) {
if (pingTimestamp != undefined) {
if (lastComment) {
safeLog(
`Last comment on issue ${hydrated.number} by ${lastComment.author.name}. Closing.`,
);
} else {
safeLog(`No comments on issue ${hydrated.number}. Closing.`);
}
}
if (this.closeComment) {
safeLog(`Posting comment on issue ${hydrated.number}`);
await issue.postComment(this.closeComment);
}
if (removeLabelsSet.length > 0) {
for (const removeLabel of removeLabelsSet) {
if (removeLabel && removeLabel.length > 0) {
safeLog(`Removing label on issue ${hydrated.number}: ${removeLabel}`);
await issue.removeLabel(removeLabel);
}
}
}
if (addLabelsSet.length > 0) {
for (const addLabel of addLabelsSet) {
if (addLabel && addLabel.length > 0) {
safeLog(`Adding label on issue ${hydrated.number}: ${addLabel}`);
await issue.addLabel(addLabel);
}
}
}
await issue.closeIssue("not_planned");
if (this.setMilestoneId != undefined) {
safeLog(`Setting milestone of issue ${hydrated.number} to id ${+this.setMilestoneId}`);
await issue.setMilestone(+this.setMilestoneId);
}
safeLog(`Closing issue ${hydrated.number}.`);
} else {
// Ping
if (hydrated.updatedAt < pingTimestamp && hydrated.assignee) {
safeLog(
`Last comment on issue ${hydrated.number} by ${lastComment.author.name}. Pinging @${hydrated.assignee}`,
);
if (this.pingComment) {
await issue.postComment(
this.pingComment
.replace('${assignee}', hydrated.assignee)
.replace('${author}', hydrated.author.name),
);
}
} else {
safeLog(
`Last comment on issue ${hydrated.number} by ${lastComment.author.name}. Skipping.${
hydrated.assignee ? ' cc @' + hydrated.assignee : ''
}`,
);
}
}
} else {
if (!hydrated.open) {
safeLog(`Issue ${hydrated.number} is not open. Ignoring`);
}
}
}
}
}
}
+47
View File
@@ -0,0 +1,47 @@
name: Stale Issue Closer
description: Close issues that are marked with a specified label and were last interacted with by a contributor or bot
inputs:
token:
description: GitHub token with issue, comment, and label read/write permissions
default: ${{ github.token }}
closeDays:
description: Days to wait before closing the issue
required: true
closeComment:
description: Comment to add upon closing the issue
pingDays:
description: Days to wait before pinging the assignee, if any. If set, issue is not closed if there is an assignee.
additionalTeam:
description: Pipe-separated list of additional users to treat as team members
pingComment:
description: Comment to add when pinging assignee. ${assignee} and ${author} are replaced.
milestoneName:
description: items with these milestones will be considered (name only, must match ID)
milestoneId:
description: items with these milestones will be considered (id only, must match name)
labels:
description: items with these labels will be considered. May be "*".
required: true
ignoreMilestoneNames:
description: items with these milestones will not be considered (names only, must match IDs). May be "*".
ignoreMilestoneIds:
description: items with these milestones will not be considered (IDs only, must match names)
ignoreLabels:
description: items with these labels will not be considered
addLabels:
description: Labels to add to issue as it is closed.
removeLabels:
description: Labels to remove from issue as it is closed.
setMilestoneId:
description: Milestone to set closed issue to.
minimumVotes:
descriptions: Only issues with at least this many votes will be considered.
maximumVotes:
descriptions: Only issues fewer or equal to this many votes will be considered.
involves:
descriptions: Qualifier to find issues that in some way involve a certain user either as an author, assignee, or mentions.
readonly:
description: If true, changes are not applied.
runs:
using: 'node12'
main: 'index.js'
+21
View File
@@ -0,0 +1,21 @@
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("../common/utils");
const StaleCloser_1 = require("./StaleCloser");
const Action_1 = require("../common/Action");
class StaleCloserAction extends Action_1.Action {
constructor() {
super(...arguments);
this.id = 'StaleCloser';
}
async onTriggered(github) {
var _a;
await new StaleCloser_1.StaleCloser(github, +(0, utils_1.getRequiredInput)('closeDays'), (0, utils_1.getRequiredInput)('labels'), (0, utils_1.getInput)('closeComment') || '', +((0, utils_1.getInput)('pingDays') || 0), (0, utils_1.getInput)('pingComment') || '', ((_a = (0, utils_1.getInput)('additionalTeam')) !== null && _a !== void 0 ? _a : '').split(','), (0, utils_1.getInput)('addLabels') || undefined, (0, utils_1.getInput)('removeLabels') || undefined, (0, utils_1.getInput)('setMilestoneId') || undefined, (0, utils_1.getInput)('milestoneName') || undefined, (0, utils_1.getInput)('milestoneId') || undefined, (0, utils_1.getInput)('ignoreLabels') || undefined, (0, utils_1.getInput)('ignoreMilestoneNames') || undefined, (0, utils_1.getInput)('ignoreMilestoneIds') || undefined, +((0, utils_1.getInput)('minimumVotes') || 0), +((0, utils_1.getInput)('maximumVotes') || 9999999), (0, utils_1.getInput)('involves') || undefined).run();
}
}
new StaleCloserAction().run(); // eslint-disable-line
//# sourceMappingURL=index.js.map
+38
View File
@@ -0,0 +1,38 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { OctoKit } from '../api/octokit'
import { getInput, getRequiredInput } from '../common/utils'
import { StaleCloser } from './StaleCloser'
import { Action } from '../common/Action'
class StaleCloserAction extends Action {
id = 'StaleCloser';
async onTriggered(github: OctoKit) {
await new StaleCloser(
github,
+getRequiredInput('closeDays'),
getRequiredInput('labels'),
getInput('closeComment') || '',
+(getInput('pingDays') || 0),
getInput('pingComment') || '',
(getInput('additionalTeam') ?? '').split(','),
getInput('addLabels') || undefined,
getInput('removeLabels') || undefined,
getInput('setMilestoneId') || undefined,
getInput('milestoneName') || undefined,
getInput('milestoneId') || undefined,
getInput('ignoreLabels') || undefined,
getInput('ignoreMilestoneNames') || undefined,
getInput('ignoreMilestoneIds') || undefined,
+(getInput('minimumVotes') || 0),
+(getInput('maximumVotes') || 9999999),
getInput('involves') || undefined
).run();
}
}
new StaleCloserAction().run(); // eslint-disable-line
+7
View File
@@ -0,0 +1,7 @@
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=api.js.map
+123
View File
@@ -0,0 +1,123 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export interface GitHub {
repoOwner: string;
repoName: string;
query(query: Query): AsyncIterableIterator<GitHubIssue[]>;
hasWriteAccess(user: User): Promise<boolean>;
repoHasLabel(label: string): Promise<boolean>;
createLabel(label: string, color: string, description: string): Promise<void>;
deleteLabel(label: string): Promise<void>;
readConfig(path: string): Promise<any>;
dispatch(title: string): Promise<void>;
createIssue(owner: string, repo: string, title: string, body: string): Promise<void>;
releaseContainsCommit(release: string, commit: string): Promise<'yes' | 'no' | 'unknown'>;
/**
* Returns what we think the current milestone for the repo is based on the due on date.
* @returns The milestone id if one is found, else undefined
*/
getCurrentRepoMilestone(): Promise<number | undefined>;
}
export interface GitHubIssue extends GitHub {
getIssue(): Promise<Issue>;
postComment(body: string): Promise<void>;
deleteComment(id: number): Promise<void>;
getComments(last?: boolean): AsyncIterableIterator<Comment[]>;
closeIssue(reason: 'completed' | 'not_planned'): Promise<void>;
lockIssue(): Promise<void>;
unlockIssue(): Promise<void>;
reopenIssue(): Promise<void>;
setMilestone(milestoneId: number): Promise<void>;
addLabel(label: string): Promise<void>;
removeLabel(label: string): Promise<void>;
addAssignee(assignee: string): Promise<void>;
removeAssignee(assignee: string): Promise<void>;
getClosingInfo(): Promise<{ hash: string | undefined; timestamp: number } | undefined>;
}
type SortVar =
| 'comments'
| 'reactions'
| 'reactions-+1'
| 'reactions--1'
| 'reactions-smile'
| 'reactions-thinking_face'
| 'reactions-heart'
| 'reactions-tada'
| 'interactions'
| 'created'
| 'updated';
type SortOrder = 'asc' | 'desc';
export type Reactions = {
'+1': number;
'-1': number;
laugh: number;
hooray: number;
confused: number;
heart: number;
rocket: number;
eyes: number;
};
export interface User {
name: string;
isGitHubApp?: boolean;
}
export interface Comment {
author: User;
body: string;
id: number;
timestamp: number;
}
export interface Issue {
author: User;
body: string;
title: string;
labels: string[];
open: boolean;
locked: boolean;
number: number;
isPr: boolean;
numComments: number;
reactions: Reactions;
milestone: Milestone | null;
assignee?: string;
assignees: string[];
createdAt: number;
updatedAt: number;
closedAt?: number;
}
export interface Milestone {
milestoneId: number;
title: string;
description: string;
numClosedIssues: number;
numOpenIssues: number;
dueOn: Date | null;
createdAt: Date | null;
closedAt: Date | null;
state: 'open' | 'closed';
}
export interface Query {
q: string;
sort?: SortVar;
order?: SortOrder;
}
+484
View File
@@ -0,0 +1,484 @@
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.OctoKitIssue = exports.OctoKit = exports.getNumRequests = void 0;
const github_1 = require("@actions/github");
const child_process_1 = require("child_process");
const utils_1 = require("../common/utils");
let numRequests = 0;
const getNumRequests = () => numRequests;
exports.getNumRequests = getNumRequests;
class OctoKit {
get octokit() {
numRequests++;
return this._octokit;
}
constructor(token, params, options = { readonly: false }) {
this.token = token;
this.params = params;
this.options = options;
// when in readonly mode, record labels just-created so at to not throw unneccesary errors
this.mockLabels = new Set();
this.writeAccessCache = {};
this._octokit = (0, github_1.getOctokit)(token);
this.repoName = params.repo;
this.repoOwner = params.owner;
}
getIssueByNumber(number) {
return new OctoKitIssue(this.token, this.params, { number: number });
}
// TODO: just iterate over the issues in a page here instead of making caller do it
async *query(query) {
const q = query.q + ` repo:${this.params.owner}/${this.params.repo}`;
const options = {
...query,
q,
per_page: 100,
headers: { Accept: 'application/vnd.github.squirrel-girl-preview+json' },
};
let pageNum = 0;
const timeout = async () => {
if (pageNum < 2) {
/* pass */
}
else if (pageNum < 4) {
await new Promise((resolve) => setTimeout(resolve, 10000));
}
else {
await new Promise((resolve) => setTimeout(resolve, 30000));
}
};
for await (const pageResponse of this.octokit.paginate.iterator(this.octokit.rest.search.issuesAndPullRequests, options)) {
await timeout();
numRequests++;
const page = pageResponse.data;
(0, utils_1.safeLog)(`Page ${++pageNum}: ${page.map(({ number }) => number).join(' ')}`);
yield page.map((issue) => new OctoKitIssue(this.token, this.params, this.octokitIssueToIssue(issue), this.options));
}
}
async createIssue(owner, repo, title, body) {
(0, utils_1.safeLog)(`Creating issue \`${title}\` on ${owner}/${repo}`);
if (!this.options.readonly)
await this.octokit.rest.issues.create({ owner, repo, title, body });
}
octokitIssueToIssue(issue) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
return {
author: { name: (_b = (_a = issue.user) === null || _a === void 0 ? void 0 : _a.login) !== null && _b !== void 0 ? _b : 'unkown', isGitHubApp: ((_c = issue.user) === null || _c === void 0 ? void 0 : _c.type) === 'Bot' },
body: (_d = issue.body) !== null && _d !== void 0 ? _d : '',
number: issue.number,
title: issue.title,
isPr: !!((_e = issue.pull_request) === null || _e === void 0 ? void 0 : _e.html_url),
labels: issue.labels.map((label) => { var _a; return (typeof label === 'string' ? label : (_a = label.name) !== null && _a !== void 0 ? _a : ''); }),
open: issue.state === 'open',
locked: issue.locked,
numComments: issue.comments,
reactions: issue.reactions,
assignee: (_g = (_f = issue.assignee) === null || _f === void 0 ? void 0 : _f.login) !== null && _g !== void 0 ? _g : (_j = (_h = issue.assignees) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.login,
assignees: (_l = (_k = issue.assignees) === null || _k === void 0 ? void 0 : _k.map((assignee) => assignee.login)) !== null && _l !== void 0 ? _l : [],
milestone: issue.milestone ? this.octokitMilestoneToMilestone(issue.milestone) : null,
createdAt: +new Date(issue.created_at),
updatedAt: +new Date(issue.updated_at),
closedAt: issue.closed_at ? +new Date(issue.closed_at) : undefined,
};
}
octokitMilestoneToMilestone(milestone) {
var _a;
if ((milestone === null || milestone === void 0 ? void 0 : milestone.number) === undefined) {
return null;
}
return {
title: milestone.title,
milestoneId: milestone.number,
// Remove the time portions of the dates as they're not important
createdAt: milestone.created_at !== null ? new Date(milestone.created_at.split('T')[0]) : null,
dueOn: milestone.due_on !== null ? new Date(milestone.due_on.split('T')[0]) : null,
closedAt: milestone.closed_at !== null ? new Date(milestone.closed_at.split('T')[0]) : null,
description: (_a = milestone.description) !== null && _a !== void 0 ? _a : '',
numClosedIssues: milestone.closed_issues,
numOpenIssues: milestone.open_issues,
state: milestone.state === 'open' ? 'open' : 'closed',
};
}
async hasWriteAccess(user) {
if (user.name in this.writeAccessCache) {
(0, utils_1.safeLog)('Got permissions from cache for ' + user);
return this.writeAccessCache[user.name];
}
(0, utils_1.safeLog)('Fetching permissions for ' + user.name);
const permissions = (await this.octokit.rest.repos.getCollaboratorPermissionLevel({
...this.params,
username: user.name,
})).data.permission;
return (this.writeAccessCache[user.name] = permissions === 'admin' || permissions === 'write');
}
async repoHasLabel(name) {
try {
await this.octokit.rest.issues.getLabel({ ...this.params, name });
return true;
}
catch (err) {
const statusErorr = err;
if (statusErorr.status === 404) {
return this.options.readonly && this.mockLabels.has(name);
}
throw err;
}
}
async createLabel(name, color, description) {
(0, utils_1.safeLog)('Creating label ' + name);
if (!this.options.readonly)
await this.octokit.rest.issues.createLabel({ ...this.params, color, description, name });
else
this.mockLabels.add(name);
}
async deleteLabel(name) {
(0, utils_1.safeLog)('Deleting label ' + name);
try {
if (!this.options.readonly)
await this.octokit.rest.issues.deleteLabel({ ...this.params, name });
}
catch (err) {
const statusErorr = err;
if (statusErorr.status === 404) {
return;
}
throw err;
}
}
async readConfig(path) {
(0, utils_1.safeLog)('Reading config at ' + path);
const repoPath = `.github/${path}.json`;
try {
const data = (await this.octokit.rest.repos.getContent({ ...this.params, path: repoPath })).data;
if ('type' in data && data.type === 'file' && 'content' in data) {
if (data.encoding === 'base64' && data.content) {
return JSON.parse(Buffer.from(data.content, 'base64').toString('utf-8'));
}
throw Error(`Could not read contents "${data.content}" in encoding "${data.encoding}"`);
}
throw Error('Found directory at config path when expecting file' + JSON.stringify(data));
}
catch (e) {
throw Error('Error with config file at ' + repoPath + ': ' + JSON.stringify(e));
}
}
async releaseContainsCommit(release, commit) {
const isHash = (s) => /^[a-fA-F0-9]*$/.test(s);
if (!isHash(release) || !isHash(commit))
return 'unknown';
return new Promise((resolve, reject) => (0, child_process_1.exec)(`git -C ./repo merge-base --is-ancestor ${commit} ${release}`, (err) => {
if (!err || err.code === 1) {
resolve(!err ? 'yes' : 'no');
}
else if (err.message.includes(`Not a valid commit name ${release}`)) {
// release branch is forked. Probably in endgame. Not released.
resolve('no');
}
else if (err.message.includes(`Not a valid commit name ${commit}`)) {
// commit is probably in a different repo.
resolve('unknown');
}
else {
reject(err);
}
}));
}
async getCurrentRepoMilestone() {
(0, utils_1.safeLog)(`Getting repo milestone for ${this.params.owner}/${this.params.repo}`);
// Fetch all milestones open for this repo
const allMilestones = (await this.octokit.rest.issues.listMilestones({
owner: this.params.owner,
repo: this.params.repo,
state: 'open',
sort: 'due_on',
direction: 'asc',
})).data;
const currentDate = new Date();
const possibleMilestones = allMilestones
.filter((milestone) => new Date(milestone.due_on === null ? currentDate : milestone.due_on) > currentDate &&
currentDate > new Date(milestone.created_at) &&
!milestone.title.includes('Recovery'))
.sort((a, b) => { var _a, _b; return +new Date((_a = a.due_on) !== null && _a !== void 0 ? _a : currentDate) - +new Date((_b = b.due_on) !== null && _b !== void 0 ? _b : currentDate); });
if (possibleMilestones.length === 0) {
return undefined;
}
return possibleMilestones[0].number;
}
async dispatch(title) {
(0, utils_1.safeLog)('Dispatching ' + title);
if (!this.options.readonly)
await this.octokit.rest.repos.createDispatchEvent({ ...this.params, event_type: title });
}
}
exports.OctoKit = OctoKit;
class OctoKitIssue extends OctoKit {
constructor(token, params, issueData, options = { readonly: false }) {
super(token, params, options);
this.params = params;
this.issueData = issueData;
(0, utils_1.safeLog)('running bot on issue', issueData.number);
}
async addAssignee(assignee) {
(0, utils_1.safeLog)('Adding assignee ' + assignee + ' to ' + this.issueData.number);
if (!this.options.readonly) {
await this.octokit.rest.issues.addAssignees({
...this.params,
issue_number: this.issueData.number,
assignees: [assignee],
});
}
}
async removeAssignee(assignee) {
(0, utils_1.safeLog)('Removing assignee ' + assignee + ' to ' + this.issueData.number);
if (!this.options.readonly) {
await this.octokit.rest.issues.removeAssignees({
...this.params,
issue_number: this.issueData.number,
assignees: [assignee],
});
}
}
async closeIssue(reason) {
(0, utils_1.safeLog)('Closing issue ' + this.issueData.number);
if (!this.options.readonly) {
const issue = await this.octokit.rest.issues.get({
...this.params,
issue_number: this.issueData.number,
});
// Don't close already closed issues even if it means changing the state
if (issue.data.state === 'closed') {
return;
}
await this.octokit.rest.issues
.update({
...this.params,
issue_number: this.issueData.number,
state: 'closed',
state_reason: reason,
})
.catch((e) => {
(0, utils_1.safeLog)('error closing issue:', e);
});
}
}
async reopenIssue() {
(0, utils_1.safeLog)('Reopening issue ' + this.issueData.number);
if (!this.options.readonly)
await this.octokit.rest.issues.update({
...this.params,
issue_number: this.issueData.number,
state: 'open',
});
}
async lockIssue() {
(0, utils_1.safeLog)('Locking issue ' + this.issueData.number);
if (!this.options.readonly)
await this.octokit.rest.issues.lock({ ...this.params, issue_number: this.issueData.number });
}
async unlockIssue() {
(0, utils_1.safeLog)('Unlocking issue ' + this.issueData.number);
if (!this.options.readonly)
await this.octokit.rest.issues.unlock({ ...this.params, issue_number: this.issueData.number });
}
async getIssue() {
if (isIssue(this.issueData)) {
(0, utils_1.safeLog)('Got issue data from query result ' + this.issueData.number);
return this.issueData;
}
(0, utils_1.safeLog)('Fetching issue ' + this.issueData.number);
const issue = (await this.octokit.rest.issues.get({
...this.params,
issue_number: this.issueData.number,
mediaType: { previews: ['squirrel-girl'] },
})).data;
return (this.issueData = this.octokitIssueToIssue(issue));
}
async postComment(body) {
(0, utils_1.safeLog)(`Posting comment on ${this.issueData.number}`);
if (!this.options.readonly)
await this.octokit.rest.issues.createComment({
...this.params,
issue_number: this.issueData.number,
body,
});
}
async deleteComment(id) {
(0, utils_1.safeLog)(`Deleting comment ${id} on ${this.issueData.number}`);
if (!this.options.readonly)
await this.octokit.rest.issues.deleteComment({
owner: this.params.owner,
repo: this.params.repo,
comment_id: id,
});
}
async setMilestone(milestoneId) {
(0, utils_1.safeLog)(`Setting milestone for ${this.issueData.number} to ${milestoneId}`);
if (!this.options.readonly)
await this.octokit.rest.issues.update({
...this.params,
issue_number: this.issueData.number,
milestone: milestoneId,
});
}
async *getComments(last) {
(0, utils_1.safeLog)('Fetching comments for ' + this.issueData.number);
const response = this.octokit.paginate.iterator(this.octokit.rest.issues.listComments, {
...this.params,
issue_number: this.issueData.number,
per_page: 100,
...(last ? { per_page: 1, page: (await this.getIssue()).numComments } : {}),
});
for await (const page of response) {
numRequests++;
yield page.data.map((comment) => {
var _a, _b, _c, _d;
return ({
author: { name: (_b = (_a = comment.user) === null || _a === void 0 ? void 0 : _a.login) !== null && _b !== void 0 ? _b : '', isGitHubApp: ((_c = comment.user) === null || _c === void 0 ? void 0 : _c.type) === 'Bot' },
body: (_d = comment.body) !== null && _d !== void 0 ? _d : '',
id: comment.id,
timestamp: +new Date(comment.created_at),
});
});
}
}
async addLabel(name) {
(0, utils_1.safeLog)(`Adding label ${name} to ${this.issueData.number}`);
if (!(await this.repoHasLabel(name))) {
throw Error(`Action could not execute becuase label ${name} is not defined.`);
}
if (!this.options.readonly)
await this.octokit.rest.issues.addLabels({
...this.params,
issue_number: this.issueData.number,
labels: [name],
});
}
async getAssigner(assignee) {
var _a, _b;
const options = {
...this.params,
issue_number: this.issueData.number,
};
let assigner;
for await (const event of this.octokit.paginate.iterator(this.octokit.rest.issues.listEventsForTimeline, options)) {
numRequests++;
const timelineEvents = event.data;
for (const timelineEvent of timelineEvents) {
if (timelineEvent.event === 'assigned' && ((_a = timelineEvent.assignee) === null || _a === void 0 ? void 0 : _a.login) === assignee) {
assigner = (_b = timelineEvent.actor) === null || _b === void 0 ? void 0 : _b.login;
}
}
if (assigner) {
break;
}
}
if (!assigner) {
throw Error('Expected to find ' + assignee + ' in issue timeline but did not.');
}
return assigner;
}
async removeLabel(name) {
(0, utils_1.safeLog)(`Removing label ${name} from ${this.issueData.number}`);
try {
if (!this.options.readonly)
await this.octokit.rest.issues.removeLabel({
...this.params,
issue_number: this.issueData.number,
name,
});
}
catch (err) {
const statusErorr = err;
if (statusErorr.status === 404) {
(0, utils_1.safeLog)(`Label ${name} not found on issue`);
return;
}
throw err;
}
}
async getClosingInfo(alreadyChecked = []) {
var _a, _b, _c, _d, _e, _f, _g, _h;
if (alreadyChecked.includes(this.issueData.number)) {
return undefined;
}
alreadyChecked.push(this.issueData.number);
if ((await this.getIssue()).open) {
return;
}
const closingHashComment = /(?:\\|\/)closedWith (?:https:\/\/github\.com\/microsoft\/vscode\/commit\/)?([a-fA-F0-9]{7,40})/;
const options = {
...this.params,
issue_number: this.issueData.number,
};
let closingCommit;
const crossReferencing = [];
for await (const event of this.octokit.paginate.iterator(this.octokit.rest.issues.listEventsForTimeline, options)) {
numRequests++;
const timelineEvents = event.data;
for (const timelineEvent of timelineEvents) {
if ((timelineEvent.event === 'closed' || timelineEvent.event === 'merged') &&
timelineEvent.created_at &&
timelineEvent.commit_id &&
((_a = timelineEvent.commit_url) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(`/${this.params.owner}/${this.params.repo}/`.toLowerCase()))) {
closingCommit = {
hash: timelineEvent.commit_id,
timestamp: +new Date(timelineEvent.created_at),
};
}
if (timelineEvent.event === 'reopened') {
closingCommit = undefined;
}
if (timelineEvent.created_at &&
timelineEvent.event === 'commented' &&
!((_b = timelineEvent.body) === null || _b === void 0 ? void 0 : _b.includes('UNABLE_TO_LOCATE_COMMIT_MESSAGE')) &&
closingHashComment.test(timelineEvent.body)) {
closingCommit = {
hash: closingHashComment.exec(timelineEvent.body)[1],
timestamp: +new Date(timelineEvent.created_at),
};
}
if (timelineEvent.event === 'cross-referenced' &&
((_d = (_c = timelineEvent.source) === null || _c === void 0 ? void 0 : _c.issue) === null || _d === void 0 ? void 0 : _d.number) &&
((_g = (_f = (_e = timelineEvent.source) === null || _e === void 0 ? void 0 : _e.issue) === null || _f === void 0 ? void 0 : _f.pull_request) === null || _g === void 0 ? void 0 : _g.url.includes(`/${this.params.owner}/${this.params.repo}/`.toLowerCase()))) {
crossReferencing.push(timelineEvent.source.issue.number);
}
}
}
// If we dont have any closing info, try to get it from linked issues (PRs).
// If there's a linked issue that was closed at almost the same time, guess it was a PR that closed this.
if (!closingCommit) {
for (const id of crossReferencing.reverse()) {
const closed = await new OctoKitIssue(this.token, this.params, {
number: id,
}).getClosingInfo(alreadyChecked);
if (closed) {
if (Math.abs(closed.timestamp - ((_h = (await this.getIssue()).closedAt) !== null && _h !== void 0 ? _h : 0)) < 5000) {
closingCommit = closed;
break;
}
}
}
}
(0, utils_1.safeLog)(`Got ${JSON.stringify(closingCommit)} as closing commit of ${this.issueData.number}`);
return closingCommit;
}
}
exports.OctoKitIssue = OctoKitIssue;
function isIssue(object) {
const isIssue = 'author' in object &&
'body' in object &&
'title' in object &&
'labels' in object &&
'open' in object &&
'locked' in object &&
'number' in object &&
'numComments' in object &&
'reactions' in object &&
'milestoneId' in object;
return isIssue;
}
//# sourceMappingURL=octokit.js.map
+559
View File
@@ -0,0 +1,559 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { getOctokit } from '@actions/github';
import type { RequestError } from '@octokit/request-error';
import { exec } from 'child_process';
import { IssueGetResponse, IssuesGetResponseMilestone } from '../common/OctokitTypings';
import { safeLog } from '../common/utils';
import { Comment, GitHub, GitHubIssue, Issue, Milestone, Query, User } from './api';
let numRequests = 0;
export const getNumRequests = () => numRequests;
export class OctoKit implements GitHub {
private _octokit: ReturnType<typeof getOctokit>;
protected get octokit(): ReturnType<typeof getOctokit> {
numRequests++;
return this._octokit;
}
// when in readonly mode, record labels just-created so at to not throw unneccesary errors
protected mockLabels: Set<string> = new Set();
public readonly repoName: string;
public readonly repoOwner: string;
constructor(
protected token: string,
protected params: { repo: string; owner: string },
protected options: { readonly: boolean } = { readonly: false },
) {
this._octokit = getOctokit(token);
this.repoName = params.repo;
this.repoOwner = params.owner;
}
getIssueByNumber(number: number) {
return new OctoKitIssue(this.token, this.params, { number: number });
}
// TODO: just iterate over the issues in a page here instead of making caller do it
async *query(query: Query): AsyncIterableIterator<GitHubIssue[]> {
const q = query.q + ` repo:${this.params.owner}/${this.params.repo}`;
const options = {
...query,
q,
per_page: 100,
headers: { Accept: 'application/vnd.github.squirrel-girl-preview+json' },
};
let pageNum = 0;
const timeout = async () => {
if (pageNum < 2) {
/* pass */
} else if (pageNum < 4) {
await new Promise((resolve) => setTimeout(resolve, 10000));
} else {
await new Promise((resolve) => setTimeout(resolve, 30000));
}
};
for await (const pageResponse of this.octokit.paginate.iterator(
this.octokit.rest.search.issuesAndPullRequests,
options,
)) {
await timeout();
numRequests++;
const page = pageResponse.data;
safeLog(`Page ${++pageNum}: ${page.map(({ number }) => number).join(' ')}`);
yield page.map(
(issue) =>
new OctoKitIssue(this.token, this.params, this.octokitIssueToIssue(issue), this.options),
);
}
}
async createIssue(owner: string, repo: string, title: string, body: string): Promise<void> {
safeLog(`Creating issue \`${title}\` on ${owner}/${repo}`);
if (!this.options.readonly) await this.octokit.rest.issues.create({ owner, repo, title, body });
}
protected octokitIssueToIssue(issue: IssueGetResponse): Issue {
return {
author: { name: issue.user?.login ?? 'unkown', isGitHubApp: issue.user?.type === 'Bot' },
body: issue.body ?? '',
number: issue.number,
title: issue.title,
isPr: !!issue.pull_request?.html_url,
labels: issue.labels.map((label) => (typeof label === 'string' ? label : label.name ?? '')),
open: issue.state === 'open',
locked: (issue as any).locked,
numComments: issue.comments,
reactions: (issue as any).reactions,
assignee: issue.assignee?.login ?? (issue as IssueGetResponse).assignees?.[0]?.login,
assignees: (issue as IssueGetResponse).assignees?.map((assignee) => assignee.login) ?? [],
milestone: issue.milestone ? this.octokitMilestoneToMilestone(issue.milestone) : null,
createdAt: +new Date(issue.created_at),
updatedAt: +new Date(issue.updated_at),
closedAt: issue.closed_at ? +new Date(issue.closed_at as unknown as string) : undefined,
};
}
protected octokitMilestoneToMilestone(milestone: IssuesGetResponseMilestone): Milestone | null {
if (milestone?.number === undefined) {
return null;
}
return {
title: milestone.title,
milestoneId: milestone.number,
// Remove the time portions of the dates as they're not important
createdAt: milestone.created_at !== null ? new Date(milestone.created_at.split('T')[0]) : null,
dueOn: milestone.due_on !== null ? new Date(milestone.due_on.split('T')[0]) : null,
closedAt: milestone.closed_at !== null ? new Date(milestone.closed_at.split('T')[0]) : null,
description: milestone.description ?? '',
numClosedIssues: milestone.closed_issues,
numOpenIssues: milestone.open_issues,
state: milestone.state === 'open' ? 'open' : 'closed',
};
}
private writeAccessCache: Record<string, boolean> = {};
async hasWriteAccess(user: User): Promise<boolean> {
if (user.name in this.writeAccessCache) {
safeLog('Got permissions from cache for ' + user);
return this.writeAccessCache[user.name];
}
safeLog('Fetching permissions for ' + user.name);
const permissions = (
await this.octokit.rest.repos.getCollaboratorPermissionLevel({
...this.params,
username: user.name,
})
).data.permission;
return (this.writeAccessCache[user.name] = permissions === 'admin' || permissions === 'write');
}
async repoHasLabel(name: string): Promise<boolean> {
try {
await this.octokit.rest.issues.getLabel({ ...this.params, name });
return true;
} catch (err) {
const statusErorr = err as RequestError;
if (statusErorr.status === 404) {
return this.options.readonly && this.mockLabels.has(name);
}
throw err;
}
}
async createLabel(name: string, color: string, description: string): Promise<void> {
safeLog('Creating label ' + name);
if (!this.options.readonly)
await this.octokit.rest.issues.createLabel({ ...this.params, color, description, name });
else this.mockLabels.add(name);
}
async deleteLabel(name: string): Promise<void> {
safeLog('Deleting label ' + name);
try {
if (!this.options.readonly) await this.octokit.rest.issues.deleteLabel({ ...this.params, name });
} catch (err) {
const statusErorr = err as RequestError;
if (statusErorr.status === 404) {
return;
}
throw err;
}
}
async readConfig(path: string): Promise<any> {
safeLog('Reading config at ' + path);
const repoPath = `.github/${path}.json`;
try {
const data = (await this.octokit.rest.repos.getContent({ ...this.params, path: repoPath })).data;
if ('type' in data && data.type === 'file' && 'content' in data) {
if (data.encoding === 'base64' && data.content) {
return JSON.parse(Buffer.from(data.content, 'base64').toString('utf-8'));
}
throw Error(`Could not read contents "${data.content}" in encoding "${data.encoding}"`);
}
throw Error('Found directory at config path when expecting file' + JSON.stringify(data));
} catch (e) {
throw Error('Error with config file at ' + repoPath + ': ' + JSON.stringify(e));
}
}
async releaseContainsCommit(release: string, commit: string): Promise<'yes' | 'no' | 'unknown'> {
const isHash = (s: string) => /^[a-fA-F0-9]*$/.test(s);
if (!isHash(release) || !isHash(commit)) return 'unknown';
return new Promise((resolve, reject) =>
exec(`git -C ./repo merge-base --is-ancestor ${commit} ${release}`, (err) => {
if (!err || err.code === 1) {
resolve(!err ? 'yes' : 'no');
} else if (err.message.includes(`Not a valid commit name ${release}`)) {
// release branch is forked. Probably in endgame. Not released.
resolve('no');
} else if (err.message.includes(`Not a valid commit name ${commit}`)) {
// commit is probably in a different repo.
resolve('unknown');
} else {
reject(err);
}
}),
);
}
async getCurrentRepoMilestone(): Promise<number | undefined> {
safeLog(`Getting repo milestone for ${this.params.owner}/${this.params.repo}`);
// Fetch all milestones open for this repo
const allMilestones = (
await this.octokit.rest.issues.listMilestones({
owner: this.params.owner,
repo: this.params.repo,
state: 'open',
sort: 'due_on',
direction: 'asc',
})
).data;
const currentDate = new Date();
const possibleMilestones = allMilestones
.filter(
(milestone) =>
new Date(milestone.due_on === null ? currentDate : milestone.due_on) > currentDate &&
currentDate > new Date(milestone.created_at) &&
!milestone.title.includes('Recovery'),
)
.sort((a, b) => +new Date(a.due_on ?? currentDate) - +new Date(b.due_on ?? currentDate));
if (possibleMilestones.length === 0) {
return undefined;
}
return possibleMilestones[0].number;
}
async dispatch(title: string): Promise<void> {
safeLog('Dispatching ' + title);
if (!this.options.readonly)
await this.octokit.rest.repos.createDispatchEvent({ ...this.params, event_type: title });
}
}
export class OctoKitIssue extends OctoKit implements GitHubIssue {
constructor(
token: string,
protected params: { repo: string; owner: string },
private issueData: { number: number } | Issue,
options: { readonly: boolean } = { readonly: false },
) {
super(token, params, options);
safeLog('running bot on issue', issueData.number);
}
async addAssignee(assignee: string): Promise<void> {
safeLog('Adding assignee ' + assignee + ' to ' + this.issueData.number);
if (!this.options.readonly) {
await this.octokit.rest.issues.addAssignees({
...this.params,
issue_number: this.issueData.number,
assignees: [assignee],
});
}
}
async removeAssignee(assignee: string): Promise<void> {
safeLog('Removing assignee ' + assignee + ' to ' + this.issueData.number);
if (!this.options.readonly) {
await this.octokit.rest.issues.removeAssignees({
...this.params,
issue_number: this.issueData.number,
assignees: [assignee],
});
}
}
async closeIssue(reason: 'completed' | 'not_planned'): Promise<void> {
safeLog('Closing issue ' + this.issueData.number);
if (!this.options.readonly) {
const issue = await this.octokit.rest.issues.get({
...this.params,
issue_number: this.issueData.number,
});
// Don't close already closed issues even if it means changing the state
if (issue.data.state === 'closed') {
return;
}
await this.octokit.rest.issues
.update({
...this.params,
issue_number: this.issueData.number,
state: 'closed',
state_reason: reason,
})
.catch((e) => {
safeLog('error closing issue:', e);
});
}
}
async reopenIssue(): Promise<void> {
safeLog('Reopening issue ' + this.issueData.number);
if (!this.options.readonly)
await this.octokit.rest.issues.update({
...this.params,
issue_number: this.issueData.number,
state: 'open',
});
}
async lockIssue(): Promise<void> {
safeLog('Locking issue ' + this.issueData.number);
if (!this.options.readonly)
await this.octokit.rest.issues.lock({ ...this.params, issue_number: this.issueData.number });
}
async unlockIssue(): Promise<void> {
safeLog('Unlocking issue ' + this.issueData.number);
if (!this.options.readonly)
await this.octokit.rest.issues.unlock({ ...this.params, issue_number: this.issueData.number });
}
async getIssue(): Promise<Issue> {
if (isIssue(this.issueData)) {
safeLog('Got issue data from query result ' + this.issueData.number);
return this.issueData;
}
safeLog('Fetching issue ' + this.issueData.number);
const issue = (
await this.octokit.rest.issues.get({
...this.params,
issue_number: this.issueData.number,
mediaType: { previews: ['squirrel-girl'] },
})
).data;
return (this.issueData = this.octokitIssueToIssue(issue));
}
async postComment(body: string): Promise<void> {
safeLog(`Posting comment on ${this.issueData.number}`);
if (!this.options.readonly)
await this.octokit.rest.issues.createComment({
...this.params,
issue_number: this.issueData.number,
body,
});
}
async deleteComment(id: number): Promise<void> {
safeLog(`Deleting comment ${id} on ${this.issueData.number}`);
if (!this.options.readonly)
await this.octokit.rest.issues.deleteComment({
owner: this.params.owner,
repo: this.params.repo,
comment_id: id,
});
}
async setMilestone(milestoneId: number) {
safeLog(`Setting milestone for ${this.issueData.number} to ${milestoneId}`);
if (!this.options.readonly)
await this.octokit.rest.issues.update({
...this.params,
issue_number: this.issueData.number,
milestone: milestoneId,
});
}
async *getComments(last?: boolean): AsyncIterableIterator<Comment[]> {
safeLog('Fetching comments for ' + this.issueData.number);
const response = this.octokit.paginate.iterator(this.octokit.rest.issues.listComments, {
...this.params,
issue_number: this.issueData.number,
per_page: 100,
...(last ? { per_page: 1, page: (await this.getIssue()).numComments } : {}),
});
for await (const page of response) {
numRequests++;
yield page.data.map((comment) => ({
author: { name: comment.user?.login ?? '', isGitHubApp: comment.user?.type === 'Bot' },
body: comment.body ?? '',
id: comment.id,
timestamp: +new Date(comment.created_at),
}));
}
}
async addLabel(name: string): Promise<void> {
safeLog(`Adding label ${name} to ${this.issueData.number}`);
if (!(await this.repoHasLabel(name))) {
throw Error(`Action could not execute becuase label ${name} is not defined.`);
}
if (!this.options.readonly)
await this.octokit.rest.issues.addLabels({
...this.params,
issue_number: this.issueData.number,
labels: [name],
});
}
async getAssigner(assignee: string): Promise<string> {
const options = {
...this.params,
issue_number: this.issueData.number,
};
let assigner: string | undefined;
for await (const event of this.octokit.paginate.iterator(
this.octokit.rest.issues.listEventsForTimeline,
options,
)) {
numRequests++;
const timelineEvents = event.data;
for (const timelineEvent of timelineEvents) {
if (timelineEvent.event === 'assigned' && timelineEvent.assignee?.login === assignee) {
assigner = timelineEvent.actor?.login;
}
}
if (assigner) {
break;
}
}
if (!assigner) {
throw Error('Expected to find ' + assignee + ' in issue timeline but did not.');
}
return assigner;
}
async removeLabel(name: string): Promise<void> {
safeLog(`Removing label ${name} from ${this.issueData.number}`);
try {
if (!this.options.readonly)
await this.octokit.rest.issues.removeLabel({
...this.params,
issue_number: this.issueData.number,
name,
});
} catch (err) {
const statusErorr = err as RequestError;
if (statusErorr.status === 404) {
safeLog(`Label ${name} not found on issue`);
return;
}
throw err;
}
}
async getClosingInfo(
alreadyChecked: number[] = [],
): Promise<{ hash: string | undefined; timestamp: number } | undefined> {
if (alreadyChecked.includes(this.issueData.number)) {
return undefined;
}
alreadyChecked.push(this.issueData.number);
if ((await this.getIssue()).open) {
return;
}
const closingHashComment =
/(?:\\|\/)closedWith (?:https:\/\/github\.com\/microsoft\/vscode\/commit\/)?([a-fA-F0-9]{7,40})/;
const options = {
...this.params,
issue_number: this.issueData.number,
};
let closingCommit: { hash: string | undefined; timestamp: number } | undefined;
const crossReferencing: number[] = [];
for await (const event of this.octokit.paginate.iterator(
this.octokit.rest.issues.listEventsForTimeline,
options,
)) {
numRequests++;
const timelineEvents = event.data;
for (const timelineEvent of timelineEvents) {
if (
(timelineEvent.event === 'closed' || timelineEvent.event === 'merged') &&
timelineEvent.created_at &&
timelineEvent.commit_id &&
timelineEvent.commit_url
?.toLowerCase()
.includes(`/${this.params.owner}/${this.params.repo}/`.toLowerCase())
) {
closingCommit = {
hash: timelineEvent.commit_id,
timestamp: +new Date(timelineEvent.created_at),
};
}
if (timelineEvent.event === 'reopened') {
closingCommit = undefined;
}
if (
timelineEvent.created_at &&
timelineEvent.event === 'commented' &&
!((timelineEvent as any).body as string)?.includes('UNABLE_TO_LOCATE_COMMIT_MESSAGE') &&
closingHashComment.test((timelineEvent as any).body)
) {
closingCommit = {
hash: closingHashComment.exec((timelineEvent as any).body)![1],
timestamp: +new Date(timelineEvent.created_at),
};
}
if (
timelineEvent.event === 'cross-referenced' &&
(timelineEvent as any).source?.issue?.number &&
(timelineEvent as any).source?.issue?.pull_request?.url.includes(
`/${this.params.owner}/${this.params.repo}/`.toLowerCase(),
)
) {
crossReferencing.push((timelineEvent as any).source.issue.number);
}
}
}
// If we dont have any closing info, try to get it from linked issues (PRs).
// If there's a linked issue that was closed at almost the same time, guess it was a PR that closed this.
if (!closingCommit) {
for (const id of crossReferencing.reverse()) {
const closed = await new OctoKitIssue(this.token, this.params, {
number: id,
}).getClosingInfo(alreadyChecked);
if (closed) {
if (Math.abs(closed.timestamp - ((await this.getIssue()).closedAt ?? 0)) < 5000) {
closingCommit = closed;
break;
}
}
}
}
safeLog(`Got ${JSON.stringify(closingCommit)} as closing commit of ${this.issueData.number}`);
return closingCommit;
}
}
function isIssue(object: any): object is Issue {
const isIssue =
'author' in object &&
'body' in object &&
'title' in object &&
'labels' in object &&
'open' in object &&
'locked' in object &&
'number' in object &&
'numComments' in object &&
'reactions' in object &&
'milestoneId' in object;
return isIssue;
}
+144
View File
@@ -0,0 +1,144 @@
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.Action = void 0;
const octokit_1 = require("../api/octokit");
const github_1 = require("@actions/github");
const utils_1 = require("./utils");
const core_1 = require("@actions/core");
class Action {
constructor() {
this.token = (0, utils_1.getRequiredInput)('token');
this.username = (0, github_1.getOctokit)(this.token)
.rest.users.getAuthenticated()
.then((v) => { var _a; return (_a = v.data.name) !== null && _a !== void 0 ? _a : 'unknown'; }, () => 'unknown');
}
async run() {
var _a, _b, _c, _d, _e, _f;
if (utils_1.errorLoggingIssue) {
const { repo, issue, owner } = utils_1.errorLoggingIssue;
if (github_1.context.repo.repo === repo &&
github_1.context.repo.owner === owner &&
((_a = github_1.context.payload.issue) === null || _a === void 0 ? void 0 : _a.number) === issue) {
return (0, utils_1.safeLog)('refusing to run on error logging issue to prevent cascading errors');
}
}
try {
const token = (0, utils_1.getRequiredInput)('token');
const readonly = !!(0, core_1.getInput)('readonly');
const issue = (_b = github_1.context === null || github_1.context === void 0 ? void 0 : github_1.context.issue) === null || _b === void 0 ? void 0 : _b.number;
if (issue) {
const octokit = new octokit_1.OctoKitIssue(token, github_1.context.repo, { number: issue }, { readonly });
if (github_1.context.eventName === 'issue_comment') {
await this.onCommented(octokit, (_c = github_1.context.payload.comment) === null || _c === void 0 ? void 0 : _c.body, github_1.context.actor);
}
else if (github_1.context.eventName === 'issues' ||
github_1.context.eventName === 'pull_request' ||
github_1.context.eventName === 'pull_request_target') {
switch (github_1.context.payload.action) {
case 'opened':
case 'ready_for_review':
await this.onOpened(octokit, github_1.context.payload);
break;
case 'reopened':
await this.onReopened(octokit);
break;
case 'closed':
await this.onClosed(octokit, github_1.context.payload);
break;
case 'labeled':
await this.onLabeled(octokit, github_1.context.payload.label.name);
break;
case 'assigned':
await this.onAssigned(octokit, github_1.context.payload.assignee.login);
break;
case 'unassigned':
await this.onUnassigned(octokit, github_1.context.payload.assignee.login);
break;
case 'edited':
await this.onEdited(octokit);
break;
case 'milestoned':
await this.onMilestoned(octokit);
break;
default:
throw Error('Unexpected action: ' + github_1.context.payload.action);
}
}
}
else if (github_1.context.eventName === 'create') {
await this.onCreated(new octokit_1.OctoKit(token, github_1.context.repo, { readonly }), (_d = github_1.context === null || github_1.context === void 0 ? void 0 : github_1.context.payload) === null || _d === void 0 ? void 0 : _d.ref, (_f = (_e = github_1.context === null || github_1.context === void 0 ? void 0 : github_1.context.payload) === null || _e === void 0 ? void 0 : _e.sender) === null || _f === void 0 ? void 0 : _f.login);
}
else {
await this.onTriggered(new octokit_1.OctoKit(token, github_1.context.repo, { readonly }));
}
}
catch (e) {
const err = e;
try {
await this.error(err);
}
catch {
(0, utils_1.safeLog)((err === null || err === void 0 ? void 0 : err.stack) || (err === null || err === void 0 ? void 0 : err.message) || String(e));
}
}
const usage = await (0, utils_1.getRateLimit)(this.token);
}
async error(error) {
var _a;
const details = {
message: `${error.message}\n${error.stack}`,
id: this.id,
user: await this.username,
};
if ((_a = github_1.context.issue) === null || _a === void 0 ? void 0 : _a.number)
details.issue = github_1.context.issue.number;
const rendered = `
Message: ${details.message}
Actor: ${details.user}
ID: ${details.id}
`;
await (0, utils_1.logErrorToIssue)(rendered, true, this.token);
(0, core_1.setFailed)(error.message);
}
async onTriggered(_octokit) {
throw Error('not implemented');
}
async onCreated(_octokit, _ref, _creator) {
throw Error('not implemented');
}
async onEdited(_issue) {
throw Error('not implemented');
}
async onLabeled(_issue, _label) {
throw Error('not implemented');
}
async onAssigned(_issue, _assignee) {
throw Error('not implemented');
}
async onUnassigned(_issue, _assignee) {
throw Error('not implemented');
}
async onOpened(_issue, _payload) {
throw Error('not implemented');
}
async onReopened(_issue) {
throw Error('not implemented');
}
async onClosed(_issue, _payload) {
throw Error('not implemented');
}
async onMilestoned(_issue) {
throw Error('not implemented');
}
async onCommented(_issue, _comment, _actor) {
throw Error('not implemented');
}
}
exports.Action = Action;
//# sourceMappingURL=Action.js.map
+158
View File
@@ -0,0 +1,158 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { OctoKit, OctoKitIssue, getNumRequests } from '../api/octokit';
import { context, getOctokit } from '@actions/github';
import { getRequiredInput, logErrorToIssue, getRateLimit, errorLoggingIssue, safeLog } from './utils';
import { getInput, setFailed } from '@actions/core';
import { WebhookPayload } from '@actions/github/lib/interfaces';
export abstract class Action {
abstract id: string;
private username: Promise<string>;
private token = getRequiredInput('token');
constructor() {
this.username = getOctokit(this.token)
.rest.users.getAuthenticated()
.then(
(v) => v.data.name ?? 'unknown',
() => 'unknown',
);
}
public async run() {
if (errorLoggingIssue) {
const { repo, issue, owner } = errorLoggingIssue;
if (
context.repo.repo === repo &&
context.repo.owner === owner &&
context.payload.issue?.number === issue
) {
return safeLog('refusing to run on error logging issue to prevent cascading errors');
}
}
try {
const token = getRequiredInput('token');
const readonly = !!getInput('readonly');
const issue = context?.issue?.number;
if (issue) {
const octokit = new OctoKitIssue(token, context.repo, { number: issue }, { readonly });
if (context.eventName === 'issue_comment') {
await this.onCommented(octokit, context.payload.comment?.body, context.actor);
} else if (
context.eventName === 'issues' ||
context.eventName === 'pull_request' ||
context.eventName === 'pull_request_target'
) {
switch (context.payload.action) {
case 'opened':
case 'ready_for_review':
await this.onOpened(octokit, context.payload);
break;
case 'reopened':
await this.onReopened(octokit);
break;
case 'closed':
await this.onClosed(octokit, context.payload);
break;
case 'labeled':
await this.onLabeled(octokit, context.payload.label.name);
break;
case 'assigned':
await this.onAssigned(octokit, context.payload.assignee.login);
break;
case 'unassigned':
await this.onUnassigned(octokit, context.payload.assignee.login);
break;
case 'edited':
await this.onEdited(octokit);
break;
case 'milestoned':
await this.onMilestoned(octokit);
break;
default:
throw Error('Unexpected action: ' + context.payload.action);
}
}
} else if (context.eventName === 'create') {
await this.onCreated(
new OctoKit(token, context.repo, { readonly }),
context?.payload?.ref,
context?.payload?.sender?.login,
);
} else {
await this.onTriggered(new OctoKit(token, context.repo, { readonly }));
}
} catch (e) {
const err = e as Error;
try {
await this.error(err);
} catch {
safeLog(err?.stack || err?.message || String(e));
}
}
const usage = await getRateLimit(this.token);
}
private async error(error: Error) {
const details: any = {
message: `${error.message}\n${error.stack}`,
id: this.id,
user: await this.username,
};
if (context.issue?.number) details.issue = context.issue.number;
const rendered = `
Message: ${details.message}
Actor: ${details.user}
ID: ${details.id}
`;
await logErrorToIssue(rendered, true, this.token);
setFailed(error.message);
}
protected async onTriggered(_octokit: OctoKit): Promise<void> {
throw Error('not implemented');
}
protected async onCreated(_octokit: OctoKit, _ref: string, _creator: string): Promise<void> {
throw Error('not implemented');
}
protected async onEdited(_issue: OctoKitIssue): Promise<void> {
throw Error('not implemented');
}
protected async onLabeled(_issue: OctoKitIssue, _label: string): Promise<void> {
throw Error('not implemented');
}
protected async onAssigned(_issue: OctoKitIssue, _assignee: string): Promise<void> {
throw Error('not implemented');
}
protected async onUnassigned(_issue: OctoKitIssue, _assignee: string): Promise<void> {
throw Error('not implemented');
}
protected async onOpened(_issue: OctoKitIssue, _payload: WebhookPayload): Promise<void> {
throw Error('not implemented');
}
protected async onReopened(_issue: OctoKitIssue): Promise<void> {
throw Error('not implemented');
}
protected async onClosed(_issue: OctoKitIssue, _payload: WebhookPayload): Promise<void> {
throw Error('not implemented');
}
protected async onMilestoned(_issue: OctoKitIssue): Promise<void> {
throw Error('not implemented');
}
protected async onCommented(_issue: OctoKitIssue, _comment: string, _actor: string): Promise<void> {
throw Error('not implemented');
}
}
+183
View File
@@ -0,0 +1,183 @@
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ActionBase = void 0;
const utils_1 = require("./utils");
class ActionBase {
constructor(labels, milestoneName, milestoneId, ignoreLabels, ignoreMilestoneNames, ignoreMilestoneIds, minimumVotes, maximumVotes, involves) {
this.labels = labels;
this.milestoneName = milestoneName;
this.milestoneId = milestoneId;
this.ignoreLabels = ignoreLabels;
this.ignoreMilestoneNames = ignoreMilestoneNames;
this.ignoreMilestoneIds = ignoreMilestoneIds;
this.minimumVotes = minimumVotes;
this.maximumVotes = maximumVotes;
this.involves = involves;
this.labelsSet = [];
this.ignoreLabelsSet = [];
this.ignoreMilestoneNamesSet = [];
this.ignoreMilestoneIdsSet = [];
this.ignoreAllWithLabels = false;
this.ignoreAllWithMilestones = false;
this.involvesSet = [];
}
buildQuery(baseQuery) {
var _a, _b, _c, _d, _e, _f;
let query = baseQuery;
(0, utils_1.safeLog)(`labels: ${this.labels}`);
(0, utils_1.safeLog)(`milestoneName: ${this.milestoneName}`);
(0, utils_1.safeLog)(`milestoneId: ${this.milestoneId}`);
(0, utils_1.safeLog)(`ignoreLabels: ${this.ignoreLabels}`);
(0, utils_1.safeLog)(`ignoreMilestoneNames: ${this.ignoreMilestoneNames}`);
(0, utils_1.safeLog)(`ignoreMilestoneIds: ${this.ignoreMilestoneIds}`);
(0, utils_1.safeLog)(`minimumVotes: ${this.minimumVotes}`);
(0, utils_1.safeLog)(`maximumVotes: ${this.maximumVotes}`);
(0, utils_1.safeLog)(`involves: ${this.involves}`);
// Both milestone name and milestone Id must be provided and must match.
// The name is used to construct the query, which does not accept ID.
// The ID is used for comparisons with issue data, which does not include the name.
// TODO: Figure out a way to convert either from milestone name to ID, or vice versa.
// If label inclusion and exclusion are mixed, exclusion will take precedence.
// For example, an issue with both labels A and B will not match if B is excluded, even if A is included.
// If a milestoneName/milestoneId are set, ignoreMilenameName/ignoreMilestoneIds are ignored.
// GitHub does not appear to support searching for all issues with milestones (not lacking a milestone). "-no:milestone" does not work.
// GitHub does not appear to support searching for all issues with labels (not lacking a label). "-no:label" does not work.
// All indicated labels must be present
if (this.labels) {
if (((_a = this.labels) === null || _a === void 0 ? void 0 : _a.length) > 2 && ((_b = this.labels) === null || _b === void 0 ? void 0 : _b.startsWith('"')) && ((_c = this.labels) === null || _c === void 0 ? void 0 : _c.endsWith('"'))) {
this.labels = this.labels.substring(1, this.labels.length - 2);
}
this.labelsSet = (_d = this.labels) === null || _d === void 0 ? void 0 : _d.split(',');
for (const str of this.labelsSet) {
if (str != "") {
query = query.concat(` label:"${str}"`);
}
}
}
// The "involves" qualifier to find issues that in some way involve a certain user.
// It is a logical OR between the author, assignee, and mentions.
if (this.involves) {
this.involvesSet = (_e = this.involves) === null || _e === void 0 ? void 0 : _e.split(',');
for (const str of this.involvesSet) {
if (str != "") {
query = query.concat(` involves:"${str}"`);
}
}
}
if (this.ignoreLabels) {
if (this.ignoreLabels == "*" && !this.labels) { // only if unlabeled
query = query.concat(` no:label`);
this.ignoreAllWithLabels = true;
}
else {
this.ignoreLabelsSet = (_f = this.ignoreLabels) === null || _f === void 0 ? void 0 : _f.split(',');
for (const str of this.ignoreLabelsSet) {
if (str != "") {
query = query.concat(` -label:"${str}"`);
}
}
}
}
if (this.milestoneName) {
query = query.concat(` milestone:"${this.milestoneName}"`);
}
else if (this.ignoreMilestoneNames) {
if (this.ignoreMilestoneNames == "*") {
query = query.concat(` no:milestone`);
this.ignoreAllWithMilestones = true;
}
else if (this.ignoreMilestoneIds) {
this.ignoreMilestoneNamesSet = this.ignoreMilestoneNames.split(',');
this.ignoreMilestoneIdsSet = this.ignoreMilestoneIds.split(',');
for (const str of this.ignoreMilestoneNamesSet) {
if (str != "") {
query = query.concat(` -milestone:"${str}"`);
}
}
}
}
return query;
}
// This is necessary because GitHub sometimes returns incorrect results,
// and because issues may get modified while we are processing them.
validateIssue(issue) {
var _a, _b;
if (this.ignoreAllWithLabels) {
// Validate that the issue does not have labels
if (issue.labels && issue.labels.length !== 0) {
(0, utils_1.safeLog)(`Issue ${issue.number} skipped due to label found after querying for no:label.`);
return false;
}
}
else {
// Make sure all labels we wanted are present.
if ((!issue.labels || issue.labels.length == 0) && this.labelsSet.length > 0) {
(0, utils_1.safeLog)(`Issue ${issue.number} skipped due to not having a required label set. No labels found.`);
return false;
}
for (const str of this.labelsSet) {
if (!issue.labels.includes(str)) {
(0, utils_1.safeLog)(`Issue ${issue.number} skipped due to not having a required label set.`);
return false;
}
}
// Make sure no labels we wanted to ignore are present.
if (issue.labels && issue.labels.length > 0) {
for (const str of this.ignoreLabelsSet) {
if (issue.labels.includes(str)) {
(0, utils_1.safeLog)(`Issue ${issue.number} skipped due to having an ignore label set: ${str}`);
return false;
}
}
}
}
if (this.ignoreAllWithMilestones) {
// Validate that the issue does not have a milestone.
if (issue.milestone) {
(0, utils_1.safeLog)(`Issue ${issue.number} skipped due to milestone found after querying for no:milestone.`);
return false;
}
}
else {
// Make sure milestone is present, if required.
if (this.milestoneId != null && ((_a = issue.milestone) === null || _a === void 0 ? void 0 : _a.milestoneId) != +this.milestoneId) {
(0, utils_1.safeLog)(`Issue ${issue.number} skipped due to not having required milsetone id ${this.milestoneId}. Had: ${(_b = issue.milestone) === null || _b === void 0 ? void 0 : _b.milestoneId}`);
return false;
}
// Make sure a milestones we wanted to ignore is not present.
if (issue.milestone && issue.milestone.milestoneId != null) {
for (const str of this.ignoreMilestoneIdsSet) {
if (issue.milestone.milestoneId == +str) {
(0, utils_1.safeLog)(`Issue ${issue.number} skipped due to milestone ${issue.milestone.milestoneId} found in list of ignored milestone IDs.`);
return false;
}
}
}
}
// Verify the issue has a sufficient number of upvotes
let upvotes = 0;
if (issue.reactions) {
upvotes = issue.reactions['+1'];
}
if (this.minimumVotes != undefined) {
if (upvotes < this.minimumVotes) {
(0, utils_1.safeLog)(`Issue ${issue.number} skipped due to not having at least ${this.minimumVotes} upvotes. Had: ${upvotes}`);
return false;
}
}
// Verify the issue does not have too many upvotes
if (this.maximumVotes != undefined) {
if (upvotes > this.maximumVotes) {
(0, utils_1.safeLog)(`Issue ${issue.number} skipped due to having more than ${this.maximumVotes} upvotes. Had: ${upvotes}`);
return false;
}
}
return true;
}
}
exports.ActionBase = ActionBase;
//# sourceMappingURL=ActionBase.js.map
+188
View File
@@ -0,0 +1,188 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { Issue } from '../api/api'
import { safeLog } from './utils';
export class ActionBase {
constructor(
private labels?: string,
private milestoneName?: string,
private milestoneId?: string,
private ignoreLabels?: string,
private ignoreMilestoneNames?: string,
private ignoreMilestoneIds?: string,
private minimumVotes?: number,
private maximumVotes?: number,
private involves?: string,
) {}
private labelsSet: string[] = [];
private ignoreLabelsSet: string[] = [];
private ignoreMilestoneNamesSet: string[] = [];
private ignoreMilestoneIdsSet: string[] = [];
private ignoreAllWithLabels: boolean = false;
private ignoreAllWithMilestones: boolean = false;
private involvesSet: string[] = [];
buildQuery(baseQuery: string): string {
let query = baseQuery;
safeLog(`labels: ${this.labels}`);
safeLog(`milestoneName: ${this.milestoneName}`);
safeLog(`milestoneId: ${this.milestoneId}`);
safeLog(`ignoreLabels: ${this.ignoreLabels}`);
safeLog(`ignoreMilestoneNames: ${this.ignoreMilestoneNames}`);
safeLog(`ignoreMilestoneIds: ${this.ignoreMilestoneIds}`);
safeLog(`minimumVotes: ${this.minimumVotes}`);
safeLog(`maximumVotes: ${this.maximumVotes}`);
safeLog(`involves: ${this.involves}`);
// Both milestone name and milestone Id must be provided and must match.
// The name is used to construct the query, which does not accept ID.
// The ID is used for comparisons with issue data, which does not include the name.
// TODO: Figure out a way to convert either from milestone name to ID, or vice versa.
// If label inclusion and exclusion are mixed, exclusion will take precedence.
// For example, an issue with both labels A and B will not match if B is excluded, even if A is included.
// If a milestoneName/milestoneId are set, ignoreMilenameName/ignoreMilestoneIds are ignored.
// GitHub does not appear to support searching for all issues with milestones (not lacking a milestone). "-no:milestone" does not work.
// GitHub does not appear to support searching for all issues with labels (not lacking a label). "-no:label" does not work.
// All indicated labels must be present
if (this.labels) {
if (this.labels?.length > 2 && this.labels?.startsWith('"') && this.labels?.endsWith('"')) {
this.labels = this.labels.substring(1, this.labels.length - 2);
}
this.labelsSet = this.labels?.split(',');
for (const str of this.labelsSet) {
if (str != "") {
query = query.concat(` label:"${str}"`);
}
}
}
// The "involves" qualifier to find issues that in some way involve a certain user.
// It is a logical OR between the author, assignee, and mentions.
if (this.involves) {
this.involvesSet = this.involves?.split(',');
for (const str of this.involvesSet) {
if (str != "") {
query = query.concat(` involves:"${str}"`)
}
}
}
if (this.ignoreLabels) {
if (this.ignoreLabels == "*" && !this.labels) { // only if unlabeled
query = query.concat(` no:label`)
this.ignoreAllWithLabels = true;
} else {
this.ignoreLabelsSet = this.ignoreLabels?.split(',');
for (const str of this.ignoreLabelsSet) {
if (str != "") {
query = query.concat(` -label:"${str}"`)
}
}
}
}
if (this.milestoneName) {
query = query.concat(` milestone:"${this.milestoneName}"`)
}
else if (this.ignoreMilestoneNames) {
if (this.ignoreMilestoneNames == "*") {
query = query.concat(` no:milestone`)
this.ignoreAllWithMilestones = true;
} else if (this.ignoreMilestoneIds) {
this.ignoreMilestoneNamesSet = this.ignoreMilestoneNames.split(',');
this.ignoreMilestoneIdsSet = this.ignoreMilestoneIds.split(',');
for (const str of this.ignoreMilestoneNamesSet) {
if (str != "") {
query = query.concat(` -milestone:"${str}"`)
}
}
}
}
return query;
}
// This is necessary because GitHub sometimes returns incorrect results,
// and because issues may get modified while we are processing them.
validateIssue(issue: Issue): boolean {
if (this.ignoreAllWithLabels) {
// Validate that the issue does not have labels
if (issue.labels && issue.labels.length !== 0) {
safeLog(`Issue ${issue.number} skipped due to label found after querying for no:label.`);
return false;
}
} else {
// Make sure all labels we wanted are present.
if ((!issue.labels || issue.labels.length == 0) && this.labelsSet.length > 0) {
safeLog(`Issue ${issue.number} skipped due to not having a required label set. No labels found.`);
return false;
}
for (const str of this.labelsSet) {
if (!issue.labels.includes(str)) {
safeLog(`Issue ${issue.number} skipped due to not having a required label set.`);
return false;
}
}
// Make sure no labels we wanted to ignore are present.
if (issue.labels && issue.labels.length > 0) {
for (const str of this.ignoreLabelsSet) {
if (issue.labels.includes(str)) {
safeLog(`Issue ${issue.number} skipped due to having an ignore label set: ${str}`);
return false;
}
}
}
}
if (this.ignoreAllWithMilestones) {
// Validate that the issue does not have a milestone.
if (issue.milestone) {
safeLog(`Issue ${issue.number} skipped due to milestone found after querying for no:milestone.`);
return false;
}
} else {
// Make sure milestone is present, if required.
if (this.milestoneId != null && issue.milestone?.milestoneId != +this.milestoneId) {
safeLog(`Issue ${issue.number} skipped due to not having required milsetone id ${this.milestoneId}. Had: ${issue.milestone?.milestoneId}`);
return false;
}
// Make sure a milestones we wanted to ignore is not present.
if (issue.milestone && issue.milestone.milestoneId != null) {
for (const str of this.ignoreMilestoneIdsSet) {
if (issue.milestone.milestoneId == +str) {
safeLog(`Issue ${issue.number} skipped due to milestone ${issue.milestone.milestoneId} found in list of ignored milestone IDs.`);
return false;
}
}
}
}
// Verify the issue has a sufficient number of upvotes
let upvotes = 0;
if (issue.reactions) {
upvotes = issue.reactions['+1'];
}
if (this.minimumVotes != undefined) {
if (upvotes < this.minimumVotes) {
safeLog(`Issue ${issue.number} skipped due to not having at least ${this.minimumVotes} upvotes. Had: ${upvotes}`);
return false;
}
}
// Verify the issue does not have too many upvotes
if (this.maximumVotes != undefined) {
if (upvotes > this.maximumVotes) {
safeLog(`Issue ${issue.number} skipped due to having more than ${this.maximumVotes} upvotes. Had: ${upvotes}`);
return false;
}
}
return true;
}
}
+7
View File
@@ -0,0 +1,7 @@
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=OctokitTypings.js.map
+16
View File
@@ -0,0 +1,16 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import type { RestEndpointMethodTypes } from '@octokit/rest';
// This file is just to re-export some octokit types as nicer names
export type ActionsListWorkflowRunsResponseWorkflowRunsItem =
RestEndpointMethodTypes['actions']['listWorkflowRuns']['response']['data']['workflow_runs'][0];
export type IssueGetResponse = RestEndpointMethodTypes['issues']['get']['response']['data'];
export type IssuesGetResponseMilestone =
RestEndpointMethodTypes['issues']['get']['response']['data']['milestone'];
+119
View File
@@ -0,0 +1,119 @@
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.safeLog = exports.logErrorToIssue = exports.errorLoggingIssue = exports.getRateLimit = exports.daysAgoToHumanReadbleDate = exports.daysAgoToTimestamp = exports.loadLatestRelease = exports.normalizeIssue = exports.getRequiredInput = exports.getInput = void 0;
const core = require("@actions/core");
const github_1 = require("@actions/github");
const axios_1 = require("axios");
const octokit_1 = require("../api/octokit");
const getInput = (name) => core.getInput(name) || undefined;
exports.getInput = getInput;
const getRequiredInput = (name) => core.getInput(name, { required: true });
exports.getRequiredInput = getRequiredInput;
const normalizeIssue = (issue) => {
let { body, title } = issue;
body = body !== null && body !== void 0 ? body : '';
title = title !== null && title !== void 0 ? title : '';
const isBug = body.includes('bug_report_template') || /Issue Type:.*Bug.*/.test(body);
const isFeatureRequest = body.includes('feature_request_template') || /Issue Type:.*Feature Request.*/.test(body);
const cleanse = (str) => {
let out = str
.toLowerCase()
.replace(/<!--.*-->/gu, '')
.replace(/.* version: .*/gu, '')
.replace(/issue type: .*/gu, '')
.replace(/vs ?code/gu, '')
.replace(/we have written.*please paste./gu, '')
.replace(/steps to reproduce:/gu, '')
.replace(/does this issue occur when all extensions are disabled.*/gu, '')
.replace(/!?\[[^\]]*\]\([^)]*\)/gu, '')
.replace(/\s+/gu, ' ')
.replace(/```[^`]*?```/gu, '');
while (out.includes(`<details>`) &&
out.includes('</details>') &&
out.indexOf(`</details>`) > out.indexOf(`<details>`)) {
out = out.slice(0, out.indexOf('<details>')) + out.slice(out.indexOf(`</details>`) + 10);
}
return out;
};
return {
body: cleanse(body),
title: cleanse(title),
issueType: isBug ? 'bug' : isFeatureRequest ? 'feature_request' : 'unknown',
};
};
exports.normalizeIssue = normalizeIssue;
const loadLatestRelease = async (quality) => (await axios_1.default.get(`https://update.code.visualstudio.com/api/update/darwin/${quality}/latest`)).data;
exports.loadLatestRelease = loadLatestRelease;
const daysAgoToTimestamp = (days) => +new Date(Date.now() - days * 24 * 60 * 60 * 1000);
exports.daysAgoToTimestamp = daysAgoToTimestamp;
const daysAgoToHumanReadbleDate = (days) => new Date(Date.now() - days * 24 * 60 * 60 * 1000).toISOString().replace(/\.\d{3}\w$/, '');
exports.daysAgoToHumanReadbleDate = daysAgoToHumanReadbleDate;
const getRateLimit = async (token) => {
const usageData = (await (0, github_1.getOctokit)(token).rest.rateLimit.get()).data.resources;
const usage = {};
['core', 'graphql', 'search'].forEach(async (category) => {
var _a, _b, _c, _d;
if (usageData[category]) {
usage[category] = 1 - ((_b = (_a = usageData[category]) === null || _a === void 0 ? void 0 : _a.remaining) !== null && _b !== void 0 ? _b : 0) / ((_d = (_c = usageData[category]) === null || _c === void 0 ? void 0 : _c.limit) !== null && _d !== void 0 ? _d : 1);
}
});
return usage;
};
exports.getRateLimit = getRateLimit;
exports.errorLoggingIssue = (() => {
try {
const repo = github_1.context.repo.owner.toLowerCase() + '/' + github_1.context.repo.repo.toLowerCase();
if (repo === 'microsoft/vscode' || repo === 'microsoft/vscode-remote-release') {
return { repo: 'vscode', owner: 'Microsoft', issue: 93814 };
}
else if (/microsoft\//.test(repo)) {
return { repo: 'vscode-internalbacklog', owner: 'Microsoft', issue: 974 };
}
else if ((0, exports.getInput)('errorLogIssueNumber')) {
return { ...github_1.context.repo, issue: +(0, exports.getRequiredInput)('errorLogIssueNumber') };
}
else {
return undefined;
}
}
catch (e) {
console.error(e);
return undefined;
}
})();
const logErrorToIssue = async (message, ping, token) => {
var _a;
// Attempt to wait out abuse detection timeout if present
await new Promise((resolve) => setTimeout(resolve, 10000));
const dest = exports.errorLoggingIssue;
if (!dest)
return console.log('no error logging repo defined. swallowing error.');
return new octokit_1.OctoKitIssue(token, { owner: dest.owner, repo: dest.repo }, { number: dest.issue })
.postComment(`
Workflow: ${github_1.context.workflow}
Error: ${message}
Issue: ${ping ? `${github_1.context.repo.owner}/${github_1.context.repo.repo}#` : ''}${(_a = github_1.context.issue) === null || _a === void 0 ? void 0 : _a.number}
Repo: ${github_1.context.repo.owner}/${github_1.context.repo.repo}
<!-- Context:
${JSON.stringify(github_1.context, null, 2)
.replace(/<!--/gu, '<@--')
.replace(/-->/gu, '--@>')
.replace(/\/|\\/gu, 'slash-')}
-->
`);
};
exports.logErrorToIssue = logErrorToIssue;
const safeLog = (message, ...args) => {
const clean = (val) => ('' + val).replace(/:|#/g, '');
console.log(clean(message), ...args.map(clean));
};
exports.safeLog = safeLog;
//# sourceMappingURL=utils.js.map
+129
View File
@@ -0,0 +1,129 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as core from '@actions/core';
import { context, getOctokit } from '@actions/github';
import axios from 'axios';
import { OctoKitIssue } from '../api/octokit';
export const getInput = (name: string) => core.getInput(name) || undefined;
export const getRequiredInput = (name: string) => core.getInput(name, { required: true });
export const normalizeIssue = (issue: {
body: string;
title: string;
}): { body: string; title: string; issueType: 'bug' | 'feature_request' | 'unknown' } => {
let { body, title } = issue;
body = body ?? '';
title = title ?? '';
const isBug = body.includes('bug_report_template') || /Issue Type:.*Bug.*/.test(body);
const isFeatureRequest =
body.includes('feature_request_template') || /Issue Type:.*Feature Request.*/.test(body);
const cleanse = (str: string) => {
let out = str
.toLowerCase()
.replace(/<!--.*-->/gu, '')
.replace(/.* version: .*/gu, '')
.replace(/issue type: .*/gu, '')
.replace(/vs ?code/gu, '')
.replace(/we have written.*please paste./gu, '')
.replace(/steps to reproduce:/gu, '')
.replace(/does this issue occur when all extensions are disabled.*/gu, '')
.replace(/!?\[[^\]]*\]\([^)]*\)/gu, '')
.replace(/\s+/gu, ' ')
.replace(/```[^`]*?```/gu, '');
while (
out.includes(`<details>`) &&
out.includes('</details>') &&
out.indexOf(`</details>`) > out.indexOf(`<details>`)
) {
out = out.slice(0, out.indexOf('<details>')) + out.slice(out.indexOf(`</details>`) + 10);
}
return out;
};
return {
body: cleanse(body),
title: cleanse(title),
issueType: isBug ? 'bug' : isFeatureRequest ? 'feature_request' : 'unknown',
};
};
export interface Release {
productVersion: string;
timestamp: number;
version: string;
}
export const loadLatestRelease = async (quality: 'stable' | 'insider'): Promise<Release | undefined> =>
(await axios.get(`https://update.code.visualstudio.com/api/update/darwin/${quality}/latest`)).data;
export const daysAgoToTimestamp = (days: number): number =>
+new Date(Date.now() - days * 24 * 60 * 60 * 1000);
export const daysAgoToHumanReadbleDate = (days: number) =>
new Date(Date.now() - days * 24 * 60 * 60 * 1000).toISOString().replace(/\.\d{3}\w$/, '');
export const getRateLimit = async (token: string) => {
const usageData = (await getOctokit(token).rest.rateLimit.get()).data.resources;
const usage = {} as { core: number; graphql: number; search: number };
(['core', 'graphql', 'search'] as const).forEach(async (category) => {
if (usageData[category]) {
usage[category] = 1 - (usageData[category]?.remaining ?? 0) / (usageData[category]?.limit ?? 1);
}
});
return usage;
};
export const errorLoggingIssue = (() => {
try {
const repo = context.repo.owner.toLowerCase() + '/' + context.repo.repo.toLowerCase();
if (repo === 'microsoft/vscode' || repo === 'microsoft/vscode-remote-release') {
return { repo: 'vscode', owner: 'Microsoft', issue: 93814 };
} else if (/microsoft\//.test(repo)) {
return { repo: 'vscode-internalbacklog', owner: 'Microsoft', issue: 974 };
} else if (getInput('errorLogIssueNumber')) {
return { ...context.repo, issue: +getRequiredInput('errorLogIssueNumber') };
} else {
return undefined;
}
} catch (e) {
console.error(e);
return undefined;
}
})();
export const logErrorToIssue = async (message: string, ping: boolean, token: string): Promise<void> => {
// Attempt to wait out abuse detection timeout if present
await new Promise((resolve) => setTimeout(resolve, 10000));
const dest = errorLoggingIssue;
if (!dest) return console.log('no error logging repo defined. swallowing error.');
return new OctoKitIssue(token, { owner: dest.owner, repo: dest.repo }, { number: dest.issue })
.postComment(`
Workflow: ${context.workflow}
Error: ${message}
Issue: ${ping ? `${context.repo.owner}/${context.repo.repo}#` : ''}${context.issue?.number}
Repo: ${context.repo.owner}/${context.repo.repo}
<!-- Context:
${JSON.stringify(context, null, 2)
.replace(/<!--/gu, '<@--')
.replace(/-->/gu, '--@>')
.replace(/\/|\\/gu, 'slash-')}
-->
`);
};
export const safeLog = (message: string, ...args: (string | number | string[])[]): void => {
const clean = (val: any) => ('' + val).replace(/:|#/g, '');
console.log(clean(message), ...args.map(clean));
};
+5835
View File
File diff suppressed because it is too large Load Diff
+45
View File
@@ -0,0 +1,45 @@
{
"name": "vscode-cpptools-github-triage-actions",
"version": "1.0.0",
"description": "GitHub Actions used by VS Code cpptools for triaging issues",
"scripts": {
"build": "tsc",
"lint": "eslint -c .eslintrc --fix --ext .ts .",
"watch": "tsc --watch"
},
"keywords": [],
"author": "",
"dependencies": {
"@actions/core": "^1.9.1",
"@actions/github": "^5.0.3",
"@octokit/rest": "^19.0.3",
"@slack/web-api": "^6.9.1",
"applicationinsights": "^2.5.1",
"axios": "^1.6.8",
"uuid": "^8.3.2"
},
"devDependencies": {
"@azure/storage-blob": "^12.13.0",
"@types/chai": "^4.3.3",
"@types/mocha": "^9.1.1",
"@types/uuid": "^8.3.4",
"@types/yargs": "^17.0.11",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"chai": "^4.3.6",
"eslint": "^8.21.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.1",
"mocha": "^10.0.0",
"mongodb": "^4.17.0",
"nock": "^13.2.9",
"prettier": "2.7.1",
"ts-node": "^10.9.1",
"typescript": "^4.7.4",
"yargs": "^17.5.1"
},
"resolutions": {
"minimatch": "^3.0.5"
}
}
+19
View File
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "es2019",
"strict": true,
"module": "commonjs",
"moduleResolution": "node",
"removeComments": false,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"lib": [
"es2020"
]
},
"exclude": [
"**/*.test.ts",
"**/vm-filesystem/**"
]
}
+28
View File
@@ -0,0 +1,28 @@
name: Bug - debugger
on:
schedule:
- cron: 50 12 * * * # Run at 12:50 PM UTC (4:50 AM PST, 5:50 AM PDT)
workflow_dispatch:
inputs:
readonly:
description: "readonly: Specify true or 1 to prevent changes from being commited to GitHub"
default: false
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout Actions
uses: actions/checkout@v2
- name: Install Actions
run: cd ./.github/actions && npm install --production && cd ../..
- name: Add Comment
uses: ./.github/actions/AddComment
with:
readonly: ${{ github.event.inputs.readonly }}
labels: bug,debugger
ignoreLabels: "investigate: costing,investigate,external,by design,question,more info needed,language service,internal"
createdAfter: "2024-07-22"
addComment: "Thank you for reporting this issue. Well let you know if we need more information to investigate it. Additionally, if you're working with GDB/LLDB, please note that the code is open source at https://github.com/microsoft/MIEngine/wiki/Contributing-Code . Your contributions are always welcome and appreciated."
@@ -0,0 +1,28 @@
name: By Design closer - debugger
on:
schedule:
- cron: 0 13 * * * # Run at 1:00 PM UTC (5:00 AM PST, 6:00 AM PDT)
workflow_dispatch:
inputs:
readonly:
description: "readonly: Specify true or 1 to prevent changes from being commited to GitHub"
default: false
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout Actions
uses: actions/checkout@v3
- name: Install Actions
run: cd ./.github/actions && npm install --production && cd ../..
- name: Stale Closer
uses: ./.github/actions/StaleCloser
with:
readonly: ${{ github.event.inputs.readonly }}
labels: by design,debugger
ignoreLabels: language service,internal
closeDays: 0
closeComment: "This issue has been closed because the described behavior was determined to be by design."
+30
View File
@@ -0,0 +1,30 @@
name: By Design Closer
on:
schedule:
- cron: 0 12 * * * # Run at 12:00 PM UTC (4:00 AM PST, 5:00 AM PDT)
workflow_dispatch:
inputs:
readonly:
description: "readonly: Specify true or 1 to prevent changes from being commited to GitHub"
default: false
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout Actions
uses: actions/checkout@v3
- name: Install Actions
run: cd ./.github/actions && npm install --production && cd ../..
- name: Stale Closer
uses: ./.github/actions/StaleCloser
with:
readonly: ${{ github.event.inputs.readonly }}
labels: by design
ignoreLabels: debugger,Feature Request,more info needed,internal
closeDays: 60
closeComment: "This issue has been closed because the described behavior was determined to be by design."
pingDays: 80
pingComment: "Hey @${assignee}, this issue might need further attention.\n\n@${author}, you can help us out by closing this issue if it is no longer relevant."
+14
View File
@@ -0,0 +1,14 @@
name: CI (Linux)
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
job:
uses: ./.github/workflows/job-compile-and-test.yml
with:
runner-env: ubuntu-22.04
platform: linux
+15
View File
@@ -0,0 +1,15 @@
name: CI (Mac)
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
job:
uses: ./.github/workflows/job-compile-and-test.yml
with:
runner-env: macos-12
platform: mac
yarn-args: --network-timeout 100000
+14
View File
@@ -0,0 +1,14 @@
name: CI (Windows)
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
job:
uses: ./.github/workflows/job-compile-and-test.yml
with:
runner-env: windows-2022
platform: windows
+93
View File
@@ -0,0 +1,93 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
on:
push:
branches: [ "main", "insiders", "release", "vs" ]
pull_request:
branches: [ "main", "insiders", "release", "vs" ]
schedule:
- cron: '29 4 * * 3'
jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
# required for all workflows
security-events: write
# required to fetch internal or private CodeQL packs
packages: read
# only required for workflows in private repositories
actions: read
contents: read
strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
+30
View File
@@ -0,0 +1,30 @@
name: Duplicate Closer
on:
schedule:
- cron: 10 12 * * * # Run at 12:10 PM UTC (4:10 AM PST, 5:10 AM PDT)
workflow_dispatch:
inputs:
readonly:
description: "readonly: Specify true or 1 to prevent changes from being commited to GitHub"
default: false
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout Actions
uses: actions/checkout@v2
- name: Install Actions
run: cd ./.github/actions && npm install --production && cd ../..
- name: Stale Closer
uses: ./.github/actions/StaleCloser
with:
readonly: ${{ github.event.inputs.readonly }}
labels: duplicate
ignoreLabels: debugger,Feature Request,more info needed,by design,internal
closeDays: 60
closeComment: "This issue has been closed because it is a duplicate of another issue we are tracking."
pingDays: 80
pingComment: "Hey @${assignee}, this issue might need further attention.\n\n@${author}, you can help us out by closing this issue if it is no longer relevant."
@@ -0,0 +1,32 @@
name: Enhancement Closer (no milestone)
on:
schedule:
- cron: 40 12 * * * # Run at 12:40 PM UTC (4:40 AM PST, 5:40 AM PDT)
workflow_dispatch:
inputs:
readonly:
description: "readonly: Specify true or 1 to prevent changes from being commited to GitHub"
default: false
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout Actions
uses: actions/checkout@v2
- name: Install Actions
run: cd ./.github/actions && npm install --production && cd ../..
- name: Stale Closer
uses: ./.github/actions/StaleCloser
with:
readonly: ${{ github.event.inputs.readonly }}
labels: enhancement
ignoreLabels: debugger,internal,Feature Request
addLabels: more votes needed
closeDays: 60
maximumVotes: 2
closeComment: "This feature request is being closed due to insufficient upvotes. Please leave a 👍-upvote or 👎-downvote reaction on the issue to help us prioritize it. When enough upvotes are received, this issue will be eligible for our backlog."
setMilestoneId: 30
ignoreMilestoneNames: "*"
@@ -0,0 +1,32 @@
name: Enhancement Closer (Triage)
on:
schedule:
- cron: 30 12 * * * # Run at 12:30 PM UTC (4:30 AM PST, 5:30 AM PDT)
workflow_dispatch:
inputs:
readonly:
description: "readonly: Specify true or 1 to prevent changes from being commited to GitHub"
default: false
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout Actions
uses: actions/checkout@v2
- name: Install Actions
run: cd ./.github/actions && npm install --production && cd ../..
- name: Stale Closer
uses: ./.github/actions/StaleCloser
with:
readonly: ${{ github.event.inputs.readonly }}
labels: enhancement
ignoreLabels: debugger,internal,Feature Request
addLabels: more votes needed
closeDays: 60
maximumVotes: 2
closeComment: "This feature request is being closed due to insufficient upvotes. Please leave a 👍-upvote or 👎-downvote reaction on the issue to help us prioritize it. When enough upvotes are received, this issue will be eligible for our backlog."
milestoneName: Triage
milestoneId: 30
@@ -0,0 +1,33 @@
name: Enhancement Reopener
on:
schedule:
- cron: 0 11 * * * # Run at 11:00 AM UTC (3:00 AM PST, 4:00 AM PDT)
workflow_dispatch:
inputs:
readonly:
description: "readonly: Specify true or 1 to prevent changes from being commited to GitHub"
default: false
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout Actions
uses: actions/checkout@v2
- name: Install Actions
run: cd ./.github/actions && npm install --production && cd ../..
- name: Run Reopener
uses: ./.github/actions/Reopener
with:
readonly: ${{ github.event.inputs.readonly }}
alsoApplyToOpenIssues: true
reopenComment: This feature request has received enough votes to be added to our backlog.
labels: enhancement
minimumVotes: 3
ignoreLabels: debugger,internal,Feature Request
milestoneId: 30
milestoneName: Triage
setMilestoneId: 28
removeLabels: more votes needed
@@ -0,0 +1,28 @@
name: External closer - debugger
on:
schedule:
- cron: 10 13 * * * # Run at 1:10 PM UTC (5:10 AM PST, 6:10 AM PDT)
workflow_dispatch:
inputs:
readonly:
description: "readonly: Specify true or 1 to prevent changes from being commited to GitHub"
default: false
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout Actions
uses: actions/checkout@v2
- name: Install Actions
run: cd ./.github/actions && npm install --production && cd ../..
- name: Stale Closer
uses: ./.github/actions/StaleCloser
with:
readonly: ${{ github.event.inputs.readonly }}
labels: external,debugger
ignoreLabels: language service,internal
closeDays: 0
closeComment: "This issue has been closed because it is external or not applicable to the extension."
@@ -0,0 +1,32 @@
name: Feature Request Closer (no milestone)
on:
schedule:
- cron: 50 11 * * * # Run at 11:50 AM UTC (3:50 AM PST, 4:50 AM PDT)
workflow_dispatch:
inputs:
readonly:
description: "readonly: Specify true or 1 to prevent changes from being commited to GitHub"
default: false
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout Actions
uses: actions/checkout@v2
- name: Install Actions
run: cd ./.github/actions && npm install --production && cd ../..
- name: Stale Closer
uses: ./.github/actions/StaleCloser
with:
readonly: ${{ github.event.inputs.readonly }}
labels: Feature Request
ignoreLabels: debugger,internal
addLabels: more votes needed
closeDays: 60
maximumVotes: 2
closeComment: "This feature request is being closed due to insufficient upvotes. Please leave a 👍-upvote or 👎-downvote reaction on the issue to help us prioritize it. When enough upvotes are received, this issue will be eligible for our backlog."
setMilestoneId: 30
ignoreMilestoneNames: "*"
@@ -0,0 +1,32 @@
name: Feature Request Closer (Triage)
on:
schedule:
- cron: 40 11 * * * # Run at 11:40 AM UTC (3:40 AM PST, 4:40 AM PDT)
workflow_dispatch:
inputs:
readonly:
description: "readonly: Specify true or 1 to prevent changes from being commited to GitHub"
default: false
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout Actions
uses: actions/checkout@v2
- name: Install Actions
run: cd ./.github/actions && npm install --production && cd ../..
- name: Stale Closer
uses: ./.github/actions/StaleCloser
with:
readonly: ${{ github.event.inputs.readonly }}
labels: Feature Request
ignoreLabels: debugger,internal
addLabels: more votes needed
closeDays: 60
maximumVotes: 2
closeComment: "This feature request is being closed due to insufficient upvotes. Please leave a 👍-upvote or 👎-downvote reaction on the issue to help us prioritize it. When enough upvotes are received, this issue will be eligible for our backlog."
milestoneName: Triage
milestoneId: 30
@@ -0,0 +1,28 @@
name: Feature Request - debugger
on:
schedule:
- cron: 20 13 * * * # Run at 1:20 PM UTC (5:20 AM PST, 6:20 AM PDT)
workflow_dispatch:
inputs:
readonly:
description: "readonly: Specify true or 1 to prevent changes from being commited to GitHub"
default: false
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout Actions
uses: actions/checkout@v2
- name: Install Actions
run: cd ./.github/actions && npm install --production && cd ../..
- name: Add Comment
uses: ./.github/actions/AddComment
with:
readonly: ${{ github.event.inputs.readonly }}
labels: feature request,debugger
ignoreLabels: "investigate: costing,investigate,external,by design,question,more info needed,language service,internal"
createdAfter: "2024-07-22"
addComment: "Thank you for your feature request. While we may not be able to implement it immediately, we will monitor community reactions to see how it fits into our backlog. Additionally, if you're working with GDB/LLDB, please note that the code is open source at https://github.com/microsoft/MIEngine/wiki/Contributing-Code . Your contributions are always welcome and appreciated."
@@ -0,0 +1,33 @@
name: Feature Request Reopener
on:
schedule:
- cron: 20 12 * * * # Run at 12:20 PM UTC (4:20 AM PST, 5:20 AM PDT)
workflow_dispatch:
inputs:
readonly:
description: "readonly: Specify true or 1 to prevent changes from being commited to GitHub"
default: false
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout Actions
uses: actions/checkout@v2
- name: Install Actions
run: cd ./.github/actions && npm install --production && cd ../..
- name: Run Reopener
uses: ./.github/actions/Reopener
with:
readonly: ${{ github.event.inputs.readonly }}
alsoApplyToOpenIssues: true
reopenComment: This feature request has received enough votes to be added to our backlog.
labels: Feature Request
minimumVotes: 3
ignoreLabels: debugger,internal
milestoneId: 30
milestoneName: Triage
setMilestoneId: 28
removeLabels: more votes needed
@@ -0,0 +1,28 @@
name: Investigate closer - debugger
on:
schedule:
- cron: 30 13 * * * # Run at 1:30 PM UTC (5:30 AM PST, 6:30 AM PDT)
workflow_dispatch:
inputs:
readonly:
description: "readonly: Specify true or 1 to prevent changes from being commited to GitHub"
default: false
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout Actions
uses: actions/checkout@v2
- name: Install Actions
run: cd ./.github/actions && npm install --production && cd ../..
- name: Stale Closer
uses: ./.github/actions/StaleCloser
with:
readonly: ${{ github.event.inputs.readonly }}
labels: investigate,debugger
ignoreLabels: language service,internal
closeDays: 180
closeComment: "This issue has been closed as lower priority. We're sorry if this issue still impacts you but unfortunately we're not able to address this. We will accept a pull request from the community if it's applicable for this issue."
@@ -0,0 +1,28 @@
name: Investigate Costing closer - debugger
on:
schedule:
- cron: 40 13 * * * # Run at 1:40 PM UTC (5:40 AM PST, 6:40 AM PDT)
workflow_dispatch:
inputs:
readonly:
description: "readonly: Specify true or 1 to prevent changes from being commited to GitHub"
default: false
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout Actions
uses: actions/checkout@v2
- name: Install Actions
run: cd ./.github/actions && npm install --production && cd ../..
- name: Stale Closer
uses: ./.github/actions/StaleCloser
with:
readonly: ${{ github.event.inputs.readonly }}
labels: "investigate: costing,debugger"
ignoreLabels: language service,internal
closeDays: 180
closeComment: "This issue has been closed as lower priority. We're sorry if this issue still impacts you but unfortunately we're not able to address this. We will accept a pull request from the community if it's applicable for this issue."
@@ -0,0 +1,73 @@
# Reuable workflow for compiling and testing extension.
name: Compile and test extension
on:
workflow_call:
inputs:
runner-env:
required: true
type: string
platform:
# Expects 'mac', 'linux', or 'windows'
required: true
type: string
yarn-args:
type: string
jobs:
build:
runs-on: ${{ inputs.runner-env }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Dependencies
run: yarn install ${{ inputs.yarn-args }}
working-directory: Extension
- name: Compile Sources
run: yarn run compile
working-directory: Extension
- name: Run Linter
run: yarn run lint
working-directory: Extension
- name: Run unit tests
run: yarn test
working-directory: Extension
# NOTE : We can't run the test that require the native binary files
# yet -- there will be an update soon that allows the tester to
# acquire them on-the-fly
# - name: Run languageServer integration tests
# if: ${{ inputs.platform == 'windows' }}
# run: yarn test --scenario=SingleRootProject
# working-directory: Extension
# - name: Run E2E IntelliSense features tests
# if: ${{ inputs.platform == 'windows' }}
# run: yarn test --scenario=MultirootDeadlockTest
# working-directory: Extension
# NOTE: For mac/linux run the tests with xvfb-action for UI support.
# Another way to start xvfb https://github.com/microsoft/vscode-test/blob/master/sample/azure-pipelines.yml
# - name: Run languageServer integration tests (xvfb)
# if: ${{ inputs.platform == 'mac' || inputs.platform == 'linux' }}
# uses: coactions/setup-xvfb@v1
# with:
# run: yarn test --scenario=SingleRootProject
# working-directory: Extension
# - name: Run E2E IntelliSense features tests (xvfb)
# if: ${{ inputs.platform == 'mac' || inputs.platform == 'linux' }}
# uses: coactions/setup-xvfb@v1
# with:
# run: yarn test --scenario=MultirootDeadlockTest
# working-directory: Extension
+27
View File
@@ -0,0 +1,27 @@
name: Locker
on:
schedule:
- cron: 30 11 * * * # Run at 11:30 AM UTC (3:30 AM PST, 4:30 AM PDT)
workflow_dispatch:
inputs:
readonly:
description: "readonly: Specify true or 1 to prevent changes from being commited to GitHub"
default: false
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout Actions
uses: actions/checkout@v2
- name: Install Actions
run: cd ./.github/actions && npm install --production && cd ../..
- name: Run Locker
uses: ./.github/actions/Locker
with:
readonly: ${{ github.event.inputs.readonly }}
daysSinceClose: 45
daysSinceUpdate: 3
ignoreLabels: more votes needed,debugger,internal
@@ -0,0 +1,31 @@
name: More Info Needed Closer - debugger
on:
schedule:
- cron: 50 13 * * * # Run at 1:50 PM UTC (5:50 AM PST, 6:50 AM PDT)
workflow_dispatch:
inputs:
readonly:
description: "readonly: Specify true or 1 to prevent changes from being commited to GitHub"
default: false
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout Actions
uses: actions/checkout@v2
- name: Install Actions
run: cd ./.github/actions && npm install --production && cd ../..
- name: Stale Closer
uses: ./.github/actions/StaleCloser
with:
readonly: ${{ github.event.inputs.readonly }}
labels: more info needed,debugger
ignoreLabels: language service,internal
involves: wardengnaw,pieandcakes,calgagi
closeDays: 14
closeComment: "This issue has been closed because it needs more information and has not had recent activity."
pingDays: 7
pingComment: "Hey @${assignee}, this issue might need further attention.\n\n@${author}, you can help us out by closing this issue if the problem no longer exists, or adding more information."
@@ -0,0 +1,30 @@
name: More Info Needed Closer
on:
schedule:
- cron: 10 11 * * * # Run at 11:10 AM UTC (3:10 AM PST, 4:10 AM PDT)
workflow_dispatch:
inputs:
readonly:
description: "readonly: Specify true or 1 to prevent changes from being commited to GitHub"
default: false
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout Actions
uses: actions/checkout@v2
- name: Install Actions
run: cd ./.github/actions && npm install --production && cd ../..
- name: Stale Closer
uses: ./.github/actions/StaleCloser
with:
readonly: ${{ github.event.inputs.readonly }}
labels: more info needed
ignoreLabels: debugger,internal
closeDays: 30
closeComment: "This issue has been closed because it needs more information and has not had recent activity."
pingDays: 14
pingComment: "Hey @${assignee}, this issue might need further attention.\n\n@${author}, you can help us out by closing this issue if the problem no longer exists, or adding more information."
@@ -0,0 +1,31 @@
name: Question Closer - debugger
on:
schedule:
- cron: 0 14 * * * # Run at 2:00 PM UTC (6:00 AM PST, 7:00 AM PDT)
workflow_dispatch:
inputs:
readonly:
description: "readonly: Specify true or 1 to prevent changes from being commited to GitHub"
default: false
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout Actions
uses: actions/checkout@v2
- name: Install Actions
run: cd ./.github/actions && npm install --production && cd ../..
- name: Stale Closer
uses: ./.github/actions/StaleCloser
with:
readonly: ${{ github.event.inputs.readonly }}
labels: question,debugger
ignoreLabels: language service,internal
involves: wardengnaw,pieandcakes,calgagi
closeDays: 14
closeComment: "This issue has been closed because it is a question and has not had recent activity."
pingDays: 7
pingComment: "Hey @${assignee}, this issue might need further attention.\n\n@${author}, you can help us out by closing this issue if the question has been answered."
+30
View File
@@ -0,0 +1,30 @@
name: Question Closer
on:
schedule:
- cron: 20 11 * * * # Run at 11:20 AM UTC (3:20 AM PST, 4:20 AM PDT)
workflow_dispatch:
inputs:
readonly:
description: "readonly: Specify true or 1 to prevent changes from being commited to GitHub"
default: false
jobs:
main:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout Actions
uses: actions/checkout@v2
- name: Install Actions
run: cd ./.github/actions && npm install --production && cd ../..
- name: Stale Closer
uses: ./.github/actions/StaleCloser
with:
readonly: ${{ github.event.inputs.readonly }}
labels: question
ignoreLabels: debugger,internal
closeDays: 60
closeComment: "This issue has been closed because it is a question and has not had recent activity."
pingDays: 80
pingComment: "Hey @${assignee}, this issue might need further attention.\n\n@${author}, you can help us out by closing this issue if the question has been answered."
+15
View File
@@ -0,0 +1,15 @@
# ignore cache files for sample projects
.vscode/ipch
browse*.db*
*.obj
*.pdb
*.exe
*.ilk
# ignore exported localization xlf and LCL directories
Build/loc/LCL
vscode-extensions-localization-export
OneLocBuild
# ignore imported localization xlf directory
vscode-translations-import
+121
View File
@@ -0,0 +1,121 @@
name: $(date:yyyyMMdd)$(rev:.r)
trigger:
branches:
include:
- main
- release
schedules:
- cron: 30 5 * * 0
branches:
include:
- main
always: true
resources:
repositories:
- repository: MicroBuildTemplate
type: git
name: 1ESPipelineTemplates/MicroBuildTemplate
ref: refs/tags/release
variables:
- name: Codeql.Enabled
value: true
- name: Codeql.Language
value: javascript
extends:
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
parameters:
pool:
name: AzurePipelines-EO
image: AzurePipelinesWindows2022compliantGPT
os: windows
sdl:
sourceAnalysisPool:
name: AzurePipelines-EO
image: AzurePipelinesWindows2022compliantGPT
os: windows
tsa:
enabled: true
config:
tsaVersion: TsaV2
codebase: NewOrUpdate
codebaseName: vscode-cpptools
tsaStamp: $(TsaProjectName)
tsaEnvironment: PROD
notificationAliases: $(TsaNotificationAlias)
codebaseAdmins: $(TsaCodebaseAdmins)
instanceUrl: $(TsaInstanceUrl)
projectName: $(TsaProjectName)
areaPath: $(TsaAreaPath)
iterationPath: $(TsaIterationPath)
alltools: true
repositoryName: vscode-cpptools
policheck:
enabled: true
featureFlags:
autoBaseline: false
stages:
- stage: build
jobs:
- job: Phase_1
displayName: Build cpptools.vsix
timeoutInMinutes: 60
cancelTimeoutInMinutes: 1
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'cpptools.vsix'
condition: succeeded()
targetPath: $(Build.ArtifactStagingDirectory)\Extension
artifactName: cpptools.vsix
steps:
- checkout: self
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@3
displayName: Use Yarn 1.x
- task: UseNode@1
displayName: Use Node 18.x
inputs:
version: 18.x
- task: CmdLine@2
displayName: Delete .npmrc if it exists
inputs:
script: IF EXIST %SYSTEMDRIVE%\Users\%USERNAME%\.npmrc del %SYSTEMDRIVE%\Users\%USERNAME%\.npmrc
- task: Npm@0
name: NpmInstall_2
displayName: Install vsce
inputs:
arguments: --global @vscode/vsce
- task: CmdLine@1
name: ProcessRunner_11
displayName: Create Extension Staging Directory
inputs:
filename: mkdir
arguments: $(Build.ArtifactStagingDirectory)\Extension
- script: yarn run vsix-prepublish
displayName: Build files
workingDirectory: $(Build.SourcesDirectory)\Extension
- task: CmdLine@1
name: ProcessRunner_12
displayName: Run VSCE to package vsix
inputs:
filename: vsce
arguments: package --yarn -o $(Build.ArtifactStagingDirectory)\Extension\cpptools.vsix
workingFolder: $(Build.SourcesDirectory)\Extension
- task: Npm@0
displayName: Uninstall vsce
inputs:
command: uninstall
arguments: --global @vscode/vsce
+299
View File
@@ -0,0 +1,299 @@
NOTICES AND INFORMATION
Do Not Translate or Localize
This software incorporates material from third parties. Microsoft makes certain
open source code available at https://3rdpartysource.microsoft.com, or you may
send a check or money order for US $5.00, including the product name, the open
source component name, and version number, to:
Source Code Compliance Team
Microsoft Corporation
One Microsoft Way
Redmond, WA 98052
USA
Notwithstanding any other terms, you may reverse engineer this software to the
extent required to debug changes to any libraries licensed under the GNU Lesser
General Public License.
---
LLDB-MI
==============================================================================
The LLVM Project is under the Apache License v2.0 with LLVM Exceptions:
==============================================================================
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
---- LLVM Exceptions to the Apache 2.0 License ----
As an exception, if, as a result of your compiling your source code, portions
of this Software are embedded into an Object form of such source code, you
may redistribute such embedded portions in such Object form without complying
with the conditions of Sections 4(a), 4(b) and 4(d) of the License.
In addition, if you combine or link compiled forms of this Software with
software that is licensed under the GPLv2 ("Combined Software") and if a
court of competent jurisdiction determines that the patent provision (Section
3), the indemnity provision (Section 9) or other Section of the License
conflicts with the conditions of the GPLv2, you may retroactively and
prospectively choose to deem waived or otherwise exclude such Section(s) of
the License, but only in their entirety and only with respect to the Combined
Software.
==============================================================================
Software from third parties included in the LLVM Project:
==============================================================================
The LLVM Project contains third party software which is under different license
terms. All such code will be identified clearly using at least one of two
mechanisms:
1) It will be in a separate directory tree with its own `LICENSE.txt` or
`LICENSE` file at the top containing the specific license and restrictions
which apply to that software, or
2) It will contain specific license and restriction terms at the top of every
file.
==============================================================================
Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy):
==============================================================================
University of Illinois/NCSA
Open Source License
Copyright (c) 2010 Apple Inc.
All rights reserved.
Developed by:
LLDB Team
http://lldb.llvm.org/
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal with
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimers.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimers in the
documentation and/or other materials provided with the distribution.
* Neither the names of the LLDB Team, copyright holders, nor the names of
its contributors may be used to endorse or promote products derived from
this Software without specific prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
SOFTWARE.
---
+6
View File
@@ -0,0 +1,6 @@
This folder contains the entitlements needed for the debugger to run on macOS.
We use the entitlements that the .net runtime uses. See https://github.com/dotnet/runtime/blob/57678512d214af368ff055f358c5106f1aa19ac4/eng/pipelines/common/entitlements.plist
Related Links:
https://docs.microsoft.com/en-us/dotnet/core/install/macos-notarization-issues#default-entitlements
+20
View File
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.cs.debugger</key>
<true/>
<key>com.apple.security.get-task-allow</key>
<true/>
<key>com.apple.security.task_for_pid-allow</key>
<true/>
</dict>
</plist>
+30
View File
@@ -0,0 +1,30 @@
---
parameters:
archs: ["x86_64", "arm64"]
jobs:
- job:
pool:
name: VSEngSS-MicroBuild2022-1ES
steps:
- checkout: none
- ${{ each arch in parameters.archs }}:
- task: DownloadPipelineArtifact@1
displayName: 'Downloading unsigned_lldb-mi_${{ arch }}'
inputs:
targetPath: '$(Pipeline.Workspace)/Artifacts'
artifactName: 'unsigned_lldb-mi_${{ arch }}'
- task: MicroBuildSignMacFiles@1
displayName: 'ESRP Sign'
inputs:
SigningTarget: '$(Pipeline.Workspace)\Artifacts\lldb-mi_${{ arch }}.zip'
SigningCert: 8023
- task: PublishPipelineArtifact@1
displayName: 'Publish signed LLDB-MI'
inputs:
targetPath: '$(Pipeline.Workspace)\Artifacts\lldb-mi_${{ arch }}.zip'
artifactName: 'lldb-mi_${{ arch }}_zip'
...
+160
View File
@@ -0,0 +1,160 @@
parameters:
# Note: Make sure llvm_repo is the same as the one in Extension/cgmanifest.json
# 'RepositoryUrl' for llvm-project.
llvm_repo: https://github.com/llvm/llvm-project.git
# Note: Make sure llvm_commit is the same as the one in Extension/cgmanifest.json
# 'CommitHash' for llvm-project.
llvm_commit: 0d44201451f03ba907cdb268ddddfc3fa38a0ebd
llvm_build_type: Release
llvm_arch: x86_64
llvm_additional_parameters: "-DLLDB_USE_SYSTEM_DEBUGSERVER=ON -DLLDB_RELOCATABLE_PYTHON=1 -DLLDB_INCLUDE_TESTS=OFF -DLLDB_BUILD_FRAMEWORK=1"
# Note: Make sure lldb_mi_repo is the same as the one in Extension/cgmanifest.json
# 'CommitHash' for lldb-mi.
lldb_mi_repo: https://github.com/lldb-tools/lldb-mi.git
# Note: Make sure lldb_mi_commit is the same as the one in Extension/cgmanifest.json
# 'CommitHash' for lldb-mi.
lldb_mi_commit: 2388bd74133bc21eac59b2e2bf97f2a30770a315
lldb_mi_additional_parameters: "-DUSE_LLDB_FRAMEWORK=1"
jobs:
- job: LLDB_MI_${{ parameters.llvm_arch }}
timeoutInMinutes: 360
pool:
${{if eq(parameters['llvm_arch'], 'arm64')}}:
name: cpptoolsMacM1pool
${{ else }}:
vmImage: macOS-latest
steps:
- task: CmdLine@2
displayName: 'Install Dependencies'
inputs:
script: brew install cmake ninja swig
continueOnError: true
- task: CmdLine@2
displayName: 'Make sure buildspace does not exist'
inputs:
script: rm -rf $(Build.StagingDirectory)/buildspace
condition: always()
- task: CmdLine@2
displayName: 'Build LLVM Project'
inputs:
script: |
log_and_exec_cmd() {
echo "##[command] $1"
$1
}
log_and_exec_cmd "sudo rm -rf /Library/Developer/CommandLineTools"
log_and_exec_cmd "sudo xcode-select --switch /Applications/XCode.app"
log_and_exec_cmd "cd $(Build.StagingDirectory)"
log_and_exec_cmd "mkdir $(Build.StagingDirectory)/buildspace"
log_and_exec_cmd "git clone ${{ parameters.llvm_repo }} llvm-project"
log_and_exec_cmd "cd llvm-project"
log_and_exec_cmd "git checkout ${{ parameters.llvm_commit }}"
log_and_exec_cmd "./lldb/scripts/macos-setup-codesign.sh"
log_and_exec_cmd "cd .."
log_and_exec_cmd "mkdir $(Build.StagingDirectory)/buildspace/llvm-inst"
log_and_exec_cmd "mkdir $(Build.StagingDirectory)/buildspace/llvm-build"
log_and_exec_cmd "cd $(Build.StagingDirectory)/buildspace/llvm-build"
log_and_exec_cmd "cmake -DLLVM_ENABLE_PROJECTS=clang;lldb -DCMAKE_BUILD_TYPE=${{ parameters.llvm_build_type }} -DCMAKE_INSTALL_PREFIX=$(Build.StagingDirectory)/buildspace/llvm-inst/ -DCMAKE_OSX_ARCHITECTURES=${{ parameters.llvm_arch }} ${{ parameters.llvm_additional_parameters }} -GNinja $(Build.StagingDirectory)/llvm-project/llvm"
if [[ $? -ne 0 ]]
then
echo "##[error] cmake llvm failed"
cat $(Build.SourcesDirectory)/buildspace/llvm-build/CMakeFiles/CMakeError.log
exit 1
fi
log_and_exec_cmd ninja
if [[ $? -ne 0 ]]
then
echo "##[error] ninja failed"
exit 1
fi
### Workaround for https://github.com/llvm/llvm-project/issues/108
log_and_exec_cmd "ninja install"
# Remove conflicting LLDB.framework file.
log_and_exec_cmd "rm -rf $(Build.StagingDirectory)/buildspace/llvm-inst/Library/Frameworks/LLDB.framework"
# Build lldb/sources/API first
log_and_exec_cmd "cmake -P $(Build.StagingDirectory)/buildspace/llvm-build/tools/lldb/source/API/cmake_install.cmake"
### End of Workaround
log_and_exec_cmd "ninja install"
if [[ $? -ne 0 ]]
then
echo "##[error] ninja install failed"
exit 1
fi
echo "##[section] Build LLDB-MI"
# Download lldb-mi and build it against our custom installation.
log_and_exec_cmd "cd $(Build.StagingDirectory)/buildspace"
log_and_exec_cmd "git clone ${{ parameters.lldb_mi_repo }} lldb-mi"
log_and_exec_cmd "cd lldb-mi"
log_and_exec_cmd "git checkout ${{ parameters.lldb_mi_commit }}"
# Create a separate build directory for building lldb-mi.
log_and_exec_cmd "mkdir build"
log_and_exec_cmd "cd build"
log_and_exec_cmd "cmake -DCMAKE_PREFIX_PATH=$(Build.StagingDirectory)/buildspace/llvm-inst/ -DCMAKE_OSX_ARCHITECTURES=${{ parameters.llvm_arch }} ${{ parameters.lldb_mi_additional_parameters }} -GNinja .."
log_and_exec_cmd "ninja"
if [[ $? -ne 0 ]]
then
echo "##[error] ninja failed"
exit 1
fi
log_and_exec_cmd "mkdir $(Build.StagingDirectory)/publish"
log_and_exec_cmd "cd $(Build.StagingDirectory)/publish"
log_and_exec_cmd "mkdir -p ./debugAdapters/lldb-mi_${{ parameters.llvm_arch }}/bin"
log_and_exec_cmd "cp $(Build.StagingDirectory)/buildspace/lldb-mi/build/src/lldb-mi ./debugAdapters/lldb-mi_${{ parameters.llvm_arch }}/bin/."
# Set rpath for finding LLDB.Framework
log_and_exec_cmd "install_name_tool -add_rpath @rpath/LLDB.framework/Versions/A/LLDB ./debugAdapters/lldb-mi_${{ parameters.llvm_arch }}/bin/lldb-mi"
# Set rpath for App Store XCode LLDB.Framework
log_and_exec_cmd "install_name_tool -add_rpath /Applications/Xcode.app/Contents/SharedFrameworks/ ./debugAdapters/lldb-mi_${{ parameters.llvm_arch }}/bin/lldb-mi"
# Set rpath for XCode CLI LLDB.Framework
log_and_exec_cmd "install_name_tool -add_rpath /Library/Developer/CommandLineTools/Library/PrivateFrameworks/ ./debugAdapters/lldb-mi_${{ parameters.llvm_arch }}/bin/lldb-mi"
# Set rpath next to the lldb-mi executable LLDB.Framework
log_and_exec_cmd "install_name_tool -add_rpath @executable_path/. ./debugAdapters/lldb-mi_${{ parameters.llvm_arch }}/bin/lldb-mi"
# Add entitlements
log_and_exec_cmd "codesign -s - -f --entitlements $(Build.SourcesDirectory)/Build/lldb-mi/debugger-entitlements.plist ./debugAdapters/lldb-mi_${{ parameters.llvm_arch }}/bin/lldb-mi"
# Grab NOTICE.TXT
cp $(Build.SourcesDirectory)/Build/lldb-mi/NOTICE.TXT ./debugAdapters/lldb-mi_${{ parameters.llvm_arch }}/.
zip -r $(Build.StagingDirectory)/lldb-mi_${{ parameters.llvm_arch }}.zip ./debugAdapters
- task: PublishPipelineArtifact@1
displayName: 'Publish LLDB-MI'
inputs:
targetPath: '$(Build.StagingDirectory)/lldb-mi_${{ parameters.llvm_arch }}.zip'
artifactName: 'unsigned_lldb-mi_${{ parameters.llvm_arch }}'
- task: CmdLine@2
displayName: 'Clean up'
inputs:
script: rm -rf $(Build.StagingDirectory)/buildspace
condition: always()
+23
View File
@@ -0,0 +1,23 @@
parameters:
- name: Build_Type
displayName: Build Type
type: string
default: Release
stages:
- stage: Build
dependsOn: []
jobs:
- template: lldb-mi.template.yml
parameters:
llvm_build_type: ${{ parameters.Build_Type }}
llvm_arch: x86_64
- template: lldb-mi.template.yml
parameters:
llvm_build_type: ${{ parameters.Build_Type }}
llvm_arch: arm64
- stage: Signing
dependsOn: ["Build"]
jobs:
- template: lldb-mi-sign.template.yml
+14
View File
@@ -0,0 +1,14 @@
{
"Projects": [
{
"LanguangeSet": "VS_Main_Languages",
"LocItems": [
{
"SourceFile": "vscode-extensions-localization-export\\vscode-extensions\\vscode-cpptools.xlf",
"Languages": "cs;de;es;fr;it;ja;ko;pl;pt-BR;ru;tr;zh-Hans;zh-Hant",
"LclFile": "Build\\loc\\LCL\\{Lang}\\vscode-cpptools.xlf.lcl"
}
]
}
]
}
+92
View File
@@ -0,0 +1,92 @@
# ==================================================================================
# Pipeline for VsCodeExtension-Localization build definition
# Runs OneLocBuild task to localize xlf file
# ==================================================================================
resources:
repositories:
- repository: self
clean: true
- repository: MicroBuildTemplate
type: git
name: 1ESPipelineTemplates/MicroBuildTemplate
ref: refs/tags/release
trigger: none
pr: none
schedules:
- cron: "0 7 * * *"
displayName: Daily 7 AM
branches:
include:
- main
always: true
variables:
TeamName: cpptools
Codeql.Language: javascript
extends:
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
parameters:
pool:
name: AzurePipelines-EO
image: AzurePipelinesWindows2022compliantGPT
os: windows
sdl:
sourceAnalysisPool:
name: AzurePipelines-EO
image: AzurePipelinesWindows2022compliantGPT
os: windows
stages:
- stage: stage
jobs:
- job: job
templateContext:
outputs:
- output: pipelineArtifact
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: 'drop'
publishLocation: 'Container'
steps:
- task: NodeTool@0
inputs:
versionSpec: '18.x'
displayName: 'Install Node.js'
- task: CmdLine@2
inputs:
script: 'cd Extension && yarn install'
- task: CmdLine@2
inputs:
script: 'cd ./Extension && yarn run translations-export && cd ..'
# Requires Azure client 2.x
- task: AzureCLI@2
displayName: 'Set OneLocBuildToken'
enabled: true
inputs:
azureSubscription: '$(AzureSubscription)' # Azure DevOps service connection
scriptType: 'pscore'
scriptLocation: 'inlineScript'
inlineScript: |
$token = az account get-access-token --query accessToken --resource $(AzureGuid) -o tsv
Write-Host "##vso[task.setvariable variable=AzDO.OneLocBuildToken;issecret=true]${token}"
- task: OneLocBuild@2
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
inputs:
locProj: 'Build/loc/LocProject.json'
outDir: '$(Build.ArtifactStagingDirectory)'
isCreatePrSelected: false
prSourceBranchPrefix: 'locfiles'
packageSourceAuth: 'patAuth'
patVariable: '$(AzDO.OneLocBuildToken)'
LclSource: lclFilesfromPackage
LclPackageId: 'LCL-JUNO-PROD-VCPP'
lsBuildXLocPackageVersion: '7.0.30510'
- task: CmdLine@2
inputs:
script: 'cd Extension && node ./translations_auto_pr.js microsoft vscode-cpptools csigs $(csigsPat) csigs [email protected] "$(Build.ArtifactStagingDirectory)/loc" vscode-extensions-localization-export/vscode-extensions && cd ..'
+48
View File
@@ -0,0 +1,48 @@
name: $(date:yyyyMMdd)$(rev:.r)
trigger: none
pr: none
parameters:
- name: verifyVersion
displayName: Attest version in package.json is correct
type: boolean
default: false
- name: verifyReadme
displayName: Attest README.md is updated
type: boolean
default: false
resources:
repositories:
- repository: MicroBuildTemplate
type: git
name: 1ESPipelineTemplates/MicroBuildTemplate
ref: refs/tags/release
extends:
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
parameters:
pool:
name: AzurePipelines-EO
image: AzurePipelinesWindows2022compliantGPT
os: windows
sdl:
sourceAnalysisPool:
name: AzurePipelines-EO
image: AzurePipelinesWindows2022compliantGPT
os: windows
stages:
- stage: package
jobs:
# Introduce pipeline compilation errors to block scheduling if the requisite parameters are not set
- ${{ if not(eq(parameters.verifyVersion, true)) }}:
- 'The version in package.json should be updated before scheduling the pipeline.'
- ${{ if not(eq(parameters.verifyReadme, true)) }}:
- 'README.md should be updated before scheduling the pipeline.'
- template: /Build/package/jobs_package_vsix.yml@self
parameters:
vsixName: cpptools-extension-pack.vsix
srcDir: ExtensionPack
+48
View File
@@ -0,0 +1,48 @@
name: $(date:yyyyMMdd)$(rev:.r)
trigger: none
pr: none
parameters:
- name: verifyVersion
displayName: Attest version in package.json is correct
type: boolean
default: false
- name: verifyReadme
displayName: Attest README.md is updated
type: boolean
default: false
resources:
repositories:
- repository: MicroBuildTemplate
type: git
name: 1ESPipelineTemplates/MicroBuildTemplate
ref: refs/tags/release
extends:
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
parameters:
pool:
name: AzurePipelines-EO
image: AzurePipelinesWindows2022compliantGPT
os: windows
sdl:
sourceAnalysisPool:
name: AzurePipelines-EO
image: AzurePipelinesWindows2022compliantGPT
os: windows
stages:
- stage: package
jobs:
# Introduce pipeline compilation errors to block scheduling if the requisite parameters are not set
- ${{ if not(eq(parameters.verifyVersion, true)) }}:
- 'The version in package.json should be updated before scheduling the pipeline.'
- ${{ if not(eq(parameters.verifyReadme, true)) }}:
- 'README.md should be updated before scheduling the pipeline.'
- template: /Build/package/jobs_package_vsix.yml@self
parameters:
vsixName: cpptools-themes.vsix
srcDir: Themes
+54
View File
@@ -0,0 +1,54 @@
parameters:
- name: vsixName
type: string
default: ''
- name: srcDir
type: string
default: ''
jobs:
- job: package
displayName: Build ${{ parameters.vsixName }}
timeoutInMinutes: 30
cancelTimeoutInMinutes: 1
templateContext:
outputs:
- output: pipelineArtifact
displayName: '${{ parameters.vsixName }}'
targetPath: $(Build.ArtifactStagingDirectory)\vsix
artifactName: vsix
steps:
- checkout: self
- task: UseNode@1
displayName: Use Node 18.x
inputs:
version: 18.x
- task: Npm@0
displayName: Install vsce
inputs:
arguments: --global @vscode/vsce
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@3
displayName: Use Yarn 1.x
- task: CmdLine@1
displayName: Create Staging Directory
inputs:
filename: mkdir
arguments: $(Build.ArtifactStagingDirectory)\vsix
- task: CmdLine@1
displayName: Run VSCE to package vsix
inputs:
filename: vsce
arguments: package --yarn -o $(Build.ArtifactStagingDirectory)\vsix\${{ parameters.vsixName }}
workingFolder: $(Build.SourcesDirectory)\${{ parameters.srcDir }}
- task: Npm@0
displayName: Uninstall vsce
inputs:
command: uninstall
arguments: --global @vscode/vsce
+43
View File
@@ -0,0 +1,43 @@
name: $(Date:yyyyMMdd)$(rev:.r)
trigger: none
pr: none
resources:
repositories:
- repository: MicroBuildTemplate
type: git
name: 1ESPipelineTemplates/MicroBuildTemplate
ref: refs/tags/release
pipelines:
- pipeline: vsixBuild
source: '\VC\VSCode\CpptoolsVSIX\Package cpptools-extension-pack'
trigger: true
extends:
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
parameters:
pool:
name: AzurePipelines-EO
image: AzurePipelinesWindows2022compliantGPT
os: windows
sdl:
sourceAnalysisPool:
name: AzurePipelines-EO
image: AzurePipelinesWindows2022compliantGPT
os: windows
stages:
- stage: Validate
jobs:
- template: /Build/publish/jobs_manual_validation.yml@self
parameters:
notifyUsers: $(NotifyUsers)
releaseBuildUrl: $(ReleaseBuildUrl)
- stage: Release
dependsOn: Validate
jobs:
- template: /Build/publish/jobs_publish_vsix.yml@self
parameters:
vsixName: cpptools-extension-pack.vsix
+43
View File
@@ -0,0 +1,43 @@
name: $(Date:yyyyMMdd)$(rev:.r)
trigger: none
pr: none
resources:
repositories:
- repository: MicroBuildTemplate
type: git
name: 1ESPipelineTemplates/MicroBuildTemplate
ref: refs/tags/release
pipelines:
- pipeline: vsixBuild
source: '\VC\VSCode\CpptoolsVSIX\Package cpptools-themes'
trigger: true
extends:
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
parameters:
pool:
name: AzurePipelines-EO
image: AzurePipelinesWindows2022compliantGPT
os: windows
sdl:
sourceAnalysisPool:
name: AzurePipelines-EO
image: AzurePipelinesWindows2022compliantGPT
os: windows
stages:
- stage: Validate
jobs:
- template: /Build/publish/jobs_manual_validation.yml@self
parameters:
notifyUsers: $(NotifyUsers)
releaseBuildUrl: $(ReleaseBuildUrl)
- stage: Release
dependsOn: Validate
jobs:
- template: /Build/publish/jobs_publish_vsix.yml@self
parameters:
vsixName: cpptools-themes.vsix
+19
View File
@@ -0,0 +1,19 @@
parameters:
- name: notifyUsers
type: string
default: ''
- name: releaseBuildUrl
type: string
default: ''
jobs:
- job: WaitForValidation
displayName: Wait for VSIX validation
pool: server
steps:
- task: ManualValidation@0
displayName: "Manual Validation"
inputs:
notifyUsers: $(notifyUsers)
instructions: |
Download and test the vsix from the latest release build: $(releaseBuildUrl)
+44
View File
@@ -0,0 +1,44 @@
parameters:
- name: vsixName
type: string
default: ''
jobs:
- job: Publish
displayName: Publish to Marketplace
templateContext:
type: releaseJob
isProduction: true
inputs:
- input: pipelineArtifact
pipeline: vsixBuild
artifactName: vsix
targetPath: $(Build.StagingDirectory)\vsix
steps:
- task: NodeTool@0
displayName: Use Node 18.x
inputs:
versionSpec: 18.x
- task: Npm@0
displayName: Install vsce
inputs:
arguments: --global @vscode/vsce
- task: AzureCLI@2
displayName: Generate AAD_TOKEN
inputs:
azureSubscription: $(AzureSubscription)
scriptType: ps
scriptLocation: inlineScript
inlineScript: |
$aadToken = az account get-access-token --query accessToken --resource $(AzureGuid) -o tsv
Write-Host "##vso[task.setvariable variable=AAD_TOKEN;issecret=true]$aadToken"
- script: |
vsce publish --packagePath $(Build.StagingDirectory)\vsix\${{ parameters.vsixName }}
displayName: Publish to Marketplace
env:
VSCE_PAT: $(AAD_TOKEN)
+21
View File
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="SignFiles" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="packages\Microsoft.VisualStudioEng.MicroBuild.Core.0.4.1\build\Microsoft.VisualStudioEng.MicroBuild.Core.props" />
<PropertyGroup>
<BaseOutputDirectory>$(BUILD_STAGINGDIRECTORY)/Extension</BaseOutputDirectory>
<!-- These properties are required by MicroBuild, which only signs files that are under these paths -->
<IntermediateOutputPath>$(BaseOutputDirectory)</IntermediateOutputPath>
<OutDir>$(BaseOutputDirectory)</OutDir>
</PropertyGroup>
<ItemGroup>
<!-- Because of Webpack bundling, these are the only shipping Javascript files.
There are no third-party files to sign because they've all been bundled. -->
<FilesToSign Include="$(OutDir)\dist\src\main.js;$(OutDir)\dist\ui\settings.js">
<Authenticode>Microsoft400</Authenticode>
</FilesToSign>
</ItemGroup>
<Import Project="packages\Microsoft.VisualStudioEng.MicroBuild.Core.0.4.1\build\Microsoft.VisualStudioEng.MicroBuild.Core.targets" />
</Project>
+19
View File
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="SignFiles" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="packages\Microsoft.VisualStudioEng.MicroBuild.Core.0.4.1\build\Microsoft.VisualStudioEng.MicroBuild.Core.props" />
<PropertyGroup>
<BaseOutputDirectory>$(BUILD_STAGINGDIRECTORY)</BaseOutputDirectory>
<!-- These properties are required by MicroBuild, which only signs files that are under these paths -->
<IntermediateOutputPath>$(BaseOutputDirectory)</IntermediateOutputPath>
<OutDir>$(BaseOutputDirectory)</OutDir>
</PropertyGroup>
<ItemGroup>
<FilesToSign Include="$(OutDir)\vsix\cpptools-*.signature.p7s">
<Authenticode>VSCodePublisher</Authenticode>
</FilesToSign>
</ItemGroup>
<Import Project="packages\Microsoft.VisualStudioEng.MicroBuild.Core.0.4.1\build\Microsoft.VisualStudioEng.MicroBuild.Core.targets" />
</Project>
+4
View File
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.VisualStudioEng.MicroBuild.Core" version="0.4.1" developmentDependency="true" />
</packages>
+10
View File
@@ -0,0 +1,10 @@
# Microsoft Open Source Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
Resources:
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
- Contact [[email protected]](mailto:[email protected]) with questions or concerns
- Employees can reach out at [aka.ms/opensource/moderation-support](https://aka.ms/opensource/moderation-support)
+56
View File
@@ -0,0 +1,56 @@
# How to Contribute Changes
## Contribution Steps
* [Build and debug the extension](Documentation/Building%20the%20Extension.md).
* File an [issue](https://github.com/Microsoft/vscode-cpptools/issues) and a [pull request](https://github.com/Microsoft/vscode-cpptools/pulls) with the change and we will review it.
* If the change affects functionality, add a line describing the change to [**CHANGELOG.md**](Extension/CHANGELOG.md).
* Try and add a test in [**test/extension.test.ts**](Extension/test/unitTests/extension.test.ts).
* Run tests via opening the [**Extension**](https://github.com/Microsoft/vscode-cpptools/tree/main/Extension) folder in Visual Studio Code, selecting the "Launch Tests" configuration in the Debug pane, and choosing "Start Debugging".
## About the Code
* Execution starts in the `activate` method in [**main.ts**](Extension/src/main.ts).
* `processRuntimeDependencies` handles the downloading and installation of the OS-dependent files. Downloading code exists in [**packageManager.ts**](Extension/src/packageManager.ts).
* `downloadCpptoolsJsonPkg` handles the **cpptools.json**, which can be used to enable changes to occur mid-update, such as turning the `intelliSenseEngine` to `"Default"` for a certain percentage of users.
* The debugger code is in the [**Debugger**](https://github.com/Microsoft/vscode-cpptools/tree/main/Extension/src/Debugger) folder.
* [**LanguageServer/client.ts**](Extension/src/LanguageServer/client.ts) handles various language server functionality.
* [**LanguageServer/configurations.ts**](Extension/src/LanguageServer/configurations.ts) handles functionality related to **c_cpp_properties.json**.
* [**telemetry.ts**](Extension/src/telemetry.ts): Telemetry data gets sent to either `logLanguageServerEvent` or `logDebuggerEvent`.
* The Tag Parser (symbol database) doesn't automatically expand macros, so the [**cpp.hint**](Extension/cpp.hint) file contains definitions of macros that should be expanded in order for symbols to be parsed correctly.
## String Localization
* [vscode-nls](https://github.com/microsoft/vscode-nls) is used to localize strings in TypeScript code. To use [vscode-nls](https://github.com/microsoft/vscode-nls), the source file must contain:
```typescript
import * as nls from 'vscode-nls';
nls.config({ messageFormat: nls.MessageFormat.bundle, bundleFormat: nls.BundleFormat.standalone })();
const localize: nls.LocalizeFunc = nls.loadMessageBundle();
```
* For each user-facing string, wrap the string in a call to localize:
```typescript
const readmeMessage: string = localize("refer.read.me", "Please refer to {0} for troubleshooting information. Issues can be created at {1}", readmePath, "https://github.com/Microsoft/vscode-cpptools/issues");
```
* The first parameter to localize should be a unique key for that string, not used by any other call to localize() in the file unless representing the same string. The second parameter is the string to localize. Both of these parameters must be string literals. Tokens such as {0} and {1} are supported in the localizable string, with replacement values passed as additional parameters to localize().
## Contributor License Agreement
This project welcomes contributions and suggestions. Most contributions require you to
agree to a Contributor License Agreement (CLA) declaring that you have the right to,
and actually do, grant us the rights to use your contribution. For details, visit
https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need
to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the
instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.
### Adding/Updating package.json dependencies
We maintain a public Azure Artifacts feed that we point the package manager to in .npmrc files. If you want to add a dependency or update a version in package.json, you may need to contact us so we can add it to our feed. Please ping our team in a PR or new issue if you experience this issue.
For local development, you can delete the .npmrc file and the matching `yarn.lock` file while you wait for us to update the feed. However, these changes will need to be reverted in your branch before we will accept a PR.
@@ -0,0 +1,19 @@
#ifndef BOX_H
#define BOX_H
/**
* Definition of a box object with three dimensions.
*/
struct box
{
int length;
int width;
int height;
int volume()
{
return length * width * height;
}
};
#endif
+24
View File
@@ -0,0 +1,24 @@
# Box Sample
This sample is a simple C++ program that computes and outputs the volume of a box.
We use this example in our blog posts to illustrate new extension features.
## Build and Debug Active File
Available as of March 2019, "Build and Debug Active File" automatically configures the build tasks and kicks off a build and debug session. There are
three ways to get started with this feature.
### Command
While editing a file in your workspace folder, you can open the command palette and select the `C/C++: Build and Debug Active File` command.
This option will generate a tasks.json file for you, build your active source file, and then launch the debugger.
![Open command palette and select Build and Debug Active File](build_debug_command.png)
### Context Menu
While editing a file in a workspace folder, you can right click in the editor field and select the "Build and Debug Active File" context menu option.
This option will generate a tasks.json file for you, build your active source file, and then launch the debugger.
![Right click and select Build and Debug Active File](build_debug_context_menu.png)
### F5
Another way to begin building and debugging your active file is to execute the command by pressing <kbd>F5</kbd>. This method will configure
both a tasks.json and launch.json file for you, build your active source file, and then launch the debugger.
@@ -0,0 +1,16 @@
#include <iostream>
#include "Objects/box.h"
using namespace std;
/**
* Calculate and print the volume of a box.
*/
int main()
{
box package{ 10, 10, 10 };
cout << "Package length: " << package.length << endl;
cout << "Package width: " << package.width << endl;
cout << "Package height: " << package.height << endl;
cout << "Package volume: " << package.volume() << endl;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

+40
View File
@@ -0,0 +1,40 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"preLaunchTask": "build",
"type": "cppdbg",
"request": "launch",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": true,
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"logging": {
"engineLogging": false,
"trace": false
},
"windows": {
"program": "${workspaceRoot}/fib.exe",
"MIMode": "gdb",
"miDebuggerPath": "<Path/To/GDB>" // Path to gdb on windows
},
"linux": {
"program": "${workspaceRoot}/fib.out",
"MIMode": "gdb"
},
"osx": {
"program": "${workspaceRoot}/fib.out",
"MIMode": "lldb"
}
}
]
}
+50
View File
@@ -0,0 +1,50 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"windows": {
"command": "${workspaceRoot}/build.cmd",
"args": [
"<Path/To/MinGW/Cygwin/Bin/Folder>", // Path to the bin folder containing g++ to compile
"fib.exe" // Output executable name
]
},
"linux": {
"command": "g++",
"args": [
"-g",
"*.cpp",
"-lpthread",
"--std=c++11",
"-o",
"fib.out"
]
},
"osx": {
"command": "g++",
"args": [
"-g",
"*.cpp",
"-lpthread",
"--std=c++11",
"-o",
"fib.out"
]
}
}
]
}
+3
View File
@@ -0,0 +1,3 @@
# Fib
This code sample is to show debugging. Update `launch.json` and `tasks.json` in the `.vscode` folder to use your setup to build and debug.
+2
View File
@@ -0,0 +1,2 @@
SET PATH=%PATH%;%1
g++ -g *.cpp -lpthread --std=c++11 -O0 -o %2
+58
View File
@@ -0,0 +1,58 @@
#include <iostream>
#include <unistd.h>
#include <sys/types.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include "thread.h"
#define THREAD_COUNT 10
static char block[] = "--block";
int test = 0;
int main(int argc, char **argv)
{
srand(time(NULL));
static char pidText[] = "PID: ";
std::string helpText = "Attach a debugger and execute 'set foo=0' to continue";
char helloText[] = "Hello World!";
std::cout << helloText << std::endl;
pthread_t threads[THREAD_COUNT];
if (argc == 2 && !strcmp(block, argv[1]))
{
std::cout << helpText << std::endl;
volatile int foo = 1;
while (foo)
;
}
if (argc == 2 && !strcmp("--crash", argv[1]))
{
int foo = 0;
int bar = 1 / foo;
}
for (int i = 0; i < THREAD_COUNT; i++)
{
std::cout << "Test " << i << std::endl;
pthread_create(&threads[i], NULL, &thread_proc, NULL);
}
for (int i = 0; i < THREAD_COUNT; i++)
{
pthread_join(threads[i], NULL);
test++;
}
std::cout << "All threads exited!" << std::endl;
return 1;
}
+48
View File
@@ -0,0 +1,48 @@
#include <iostream>
#include <unistd.h>
#include <sys/types.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include "thread.h"
static int g_tid = 0;
static int fib(int n){
switch (n) {
case 0: return 1;
case 1: return 1;
default: return (fib(n-2) + fib(n-1));
}
}
void * thread_proc(void* ctx)
{
int tid = g_tid++;
char thread_name[16];
sprintf(thread_name, "Thread %d", tid);
#ifdef __APPLE__
pthread_setname_np(thread_name);
#else
pthread_setname_np(pthread_self(), thread_name);
#endif
// Random delay, 0 - 0.5 sec
timespec ts;
ts.tv_sec = 0;
ts.tv_nsec = 500000000 + ((float)rand() / (float)RAND_MAX) * 500000000;
nanosleep(&ts, NULL);
volatile int i = 0;
while (i <= 30) {
std::cout << "Thread " << tid << ": fib(" << i << ") = " << fib(i) << std::endl;
i++;
nanosleep(&ts, NULL);
}
std::cout << thread_name << " exited!" << std::endl;
}
+1
View File
@@ -0,0 +1 @@
void * thread_proc(void* ctx);
+23
View File
@@ -0,0 +1,23 @@
## How to build and debug the Microsoft CppTools Extension
These steps will allow you to debug the TypeScript code that is part of the Microsoft CppTools extension for Visual Studio Code.
Prerequisite steps:
* Clone the release branch of [this](https://github.com/Microsoft/vscode-cpptools) repository.
* git clone -b release https://github.com/Microsoft/vscode-cpptools
* Install [node](https://nodejs.org).
* Install [yarn](https://yarnpkg.com).
* From a command line, run the following commands from the **Extension** folder in the root of the repository:
* `yarn install` will install the dependencies needed to build the extension.
* **(optional)** `yarn global add vsce` will install `vsce` globally to create a VSIX package that you can install.
* Open the **Extension** folder in Visual Studio Code and press F5. This will launch a VS Code Extension Host window and activate the TypeScript debugger. You can set breakpoints on the extension source code and debug your scenario.
* If, after pressing F5, you see the following error in the `[Extension Development Host]` window,
> Unable to start the C/C++ language server. IntelliSense features will be disabled. Error: Missing binary at .../vscode-cpptools/Extension/bin/cpptools
* Then, you can follow the instructions in this [comment in a discussion about building this extension locally](https://github.com/microsoft/vscode-cpptools/discussions/8745#discussioncomment-2091563).
> get the <package.version.number> binaries from installing the extension and then copying the binaries
1. To do this, install this extension from the Visual Studio Marketplace and find its location on your device. It might be in a directory like `\\wsl$\Ubuntu\home\hamir\.vscode-server\extensions\ms-vscode.cpptools-<package.version.number>`, for example.
2. Next, go to the `bin/` directory of the aforementioned directory, and drag-and-drop, or copy-and-paste, `cpptools` and `cpptools-srv` from `...\extensions\ms-vscode.cpptools-<package.version.number>\bin\` to this repository's `Extension\bin\` directory on your local device, so that `.../vscode-cpptools/Extension/bin/cpptools` and `.../vscode-cpptools/Extension/bin/cpptools-srv` both exist in your workspace.
3. The aforementioned warning should be gone, and Intellisense, which gives those squiggly red error lines, should now be present.
4. The `insiders` branch has binaries compatible with the latest Pre-Release version of the extension, and the `release` branch has binaries compatible with the latest Release version, but the `main` branch may have TypeScript changes that are incompatible with the published binaries, in which case, you'll need to create a branch off the `insiders` or `release` branches.
* Feel free to use [the Discussions tab of this repository](https://github.com/microsoft/vscode-cpptools/discussions) if you have any further questions on building this extension locally.

Some files were not shown because too many files have changed in this diff Show More