Граф коммитов

3248 Коммитов

Автор SHA1 Сообщение Дата
Garrett Campbell 4ba260c480
fix regression of kit environment variables (#3991) 2024-08-16 06:03:43 -04:00
Sinem Akinci d8a6010d0f
Update cmake-presets.md (#3992)
Fixing broken links
2024-08-16 05:27:46 -04:00
CSIGS@microsoft.com 31a1b4718a
Localization - Translated Strings (#3984) 2024-08-15 15:31:14 -04:00
Garrett Campbell 71739f2ac0 remove item from yml 2024-08-14 15:23:58 -04:00
Garrett Campbell 6dbb49f17e fix node versions in pipelines 2024-08-14 05:40:48 -04:00
Garrett Campbell b77a853ba2
add telemetry for developer environment use (#3975) 2024-08-13 14:50:56 -04:00
Sean McManus 2aeab8d1d9
Update vscode-tas-client. (#3981) 2024-08-13 11:19:40 +00:00
Garrett Campbell a4ff8d1716
Remove popups and update defaults for `configureOnOpen` (#3967)
* update defaults and remove popups

* update changelog

* fix types for configureOnOpen

* fix eslint
2024-08-13 05:28:34 -04:00
Garrett Campbell c848ee3705
only do special handling of ~ in linux, it breaks windows (#3965) 2024-08-08 14:49:13 -04:00
Garrett Campbell 7f2f5abb73
saving progress (#3960) 2024-08-06 14:37:26 -04:00
Garrett Campbell c779bf1fcd
Ensure we correctly inherit preset from UserPreset (#3958)
* fix

* analyze user presets first because it's the base if it exists

* more updates to fix include files and telemetry, still needs work and testing

* ensure telemetry and other uses of 'all..Presets' is right

* more fixes

* ensure we don't duplicate cmakepresets in userpresets includes

* remove unnecessary return

* unionWith consistency

* add test
2024-08-06 14:36:51 -04:00
CSIGS@microsoft.com ec03fc1efb
Localization - Translated Strings (#3954) 2024-08-05 05:33:42 -04:00
Fatima Qarni e7cf93eec0
Set usepresets context after manually creating presets file (#3935)
Fixes #3854. Support for watching multiple paths (cmakepresets.json/cmakeuserpresets.json/include files) was broken due to a Chokidar bug. Created a wrapper class to handle this scenario.
2024-08-01 19:53:21 +00:00
Garrett Campbell ca04165529
Update pipeline (#3952)
* fix validation and pipeline, commented out vsce for testing

* fix indentation for job

* uncomment vsce
2024-08-01 14:59:26 -04:00
Garrett Campbell dc8425816a use correct manual validation task 2024-07-31 11:34:03 -04:00
Garrett Campbell a65486399e switch to targetPath test 2024-07-31 09:02:54 -04:00
Garrett Campbell 01fb95a04c fix destination typo 2024-07-30 16:25:16 -04:00
Garrett Campbell 182e609533 try corrected destinationPath 2024-07-30 16:12:25 -04:00
Garrett Campbell d191663407
fix pipelineArtifact reference (#3948)
* fix pipelineArtifact reference

* update variable update
2024-07-30 15:30:07 -04:00
moyo1997 8f32d0ca46
evaluate inherit presets based on presets that should be visible from file (#3941)
* initial changes

* modify other preset flows

* fix unused import

* remove unused import

* check for default preset

* acocunt for userpresets

* remove extra condition

---------

Co-authored-by: Garrett Campbell <gcampbell@microsoft.com>
2024-07-30 17:27:29 +00:00
Garrett Campbell fa4682727d
Use template for release pipelines (converted from classic) (#3945)
* try to convert release pipeline to yaml

* ensure trigger

* fix variable expansion

* specify name specifically

* add release and fix powershell setup

* fix name

* uncomment vsce task

* only do release pipeline on release branch

* only allow rel branch for release

* enable trigger always, we can rely on manual verification
2024-07-30 12:27:25 -04:00
CSIGS@microsoft.com ccd3f09d9a
Localization - Translated Strings (#3932) 2024-07-30 10:39:10 -04:00
Andreea Isac 27cb55e70e
Configure precondition handler to return boolean to signal a successful recovery case (#3776)
* Making configure precondition handler return a boolean helps to differentiate the successful recovery cases

* Fix pre-condition handler prototype errors in tests

* Experiment with prototypes to fix linter errors

* Add setting for building whole build dir when clean configure

* Remove anything related to deleteBuildDirOnCleanConfigure since it's in a different PR. Keep proper promise<bool> prototype for pre-configure handler return and fix appropriately compilation and lint errors in tests.

* Forgot one file to remove deleteBuildDirOnCleanConfigure from

* Remove forgotten comment

* Add changelog entry

* remove changes not needed

* removing more bad changes

* add logic to regenerate the driver after selecting cmakelists

* remove unused imports

* keep sanity check in _beforeConfigureOrBuild

* only ensure we set the variable so that on retry, it works

* switch return

* erroneous update

* fix

---------

Co-authored-by: Garrett Campbell <gcampbell@microsoft.com>
Co-authored-by: Garrett Campbell <86264750+gcampbell-msft@users.noreply.github.com>
2024-07-29 15:47:40 -04:00
fargies 97b36c94ad
Fix GitHub 1401, diagnostics relative to workspace folder (#3780)
* Fix GitHub 1401, diagnostics relative to workspace folder

 - relative diagnostics files are searched in build_dir and src_dir,
   first existing file is returned
 - defaults to old behavior : `path.resolve(build_dir, file)`
 - `resolveDiagnostics` has been made async to not slow down IDE when
   testing files

* update ChangeLog for #1401

* fix relative file resolution diagnostics test

 - diagnostics paths always use POSIX separators (see `normalizePath` in
   [src/util.ts](src/util.ts))

---------

Co-authored-by: Sylvain Fargier <sylvain.fargier@cern.ch>
Co-authored-by: Garrett Campbell <86264750+gcampbell-msft@users.noreply.github.com>
2024-07-29 14:54:26 -04:00
Garrett Campbell 998ebbd447
update telemetry key (#3944)
* update telemetry key

* typo
2024-07-29 12:10:34 -04:00
Garrett Campbell 4dc3817666
ensure we take deep copy of presets for presetsPlusIncluded (#3939) 2024-07-26 12:47:49 -04:00
Fatima Qarni 2be0df4591
check for quick start in select configure preset to prevent second configure (#3933)
Co-authored-by: Garrett Campbell <86264750+gcampbell-msft@users.noreply.github.com>
2024-07-26 08:49:23 -04:00
Jonathan Phippen ed6d9adeb3
Revert "Don't require Ninja or Make on PATH when checking generators (#3927)" (#3938)
This reverts commit bbc74d8797.
2024-07-25 11:55:39 -07:00
Garrett Campbell 140a429245
better match keybindings to what vscode has (#3928)
* better match keybindings to what vscode has

* update changelog
2024-07-24 13:09:09 -04:00
Fatima Qarni 1eadb61980
Preset file expansion on open/save and expansion validation (#3905)
This change changes the way we do preset file expansion. Expansion now occurs upfront on file open or save, and if there are no errors, the expanded presets will be cached so repeated expansion is not necessary every time getAll{type of preset}Presets() is called.

The only time expansion will happen again is on set preset, which will then also apply the VS developer environment as needed. This is avoided on the initial expansion for performance.

If there are errors in expansion, the errors are shown in the problems panel per file. The presets file will also be set to undefined, which will invalidate that file and not allow any presets in that file to be recognized/selected as valid presets. This is in line with the CMake command line experience.

Some notes:

- The ${generator} macro should not work for packagePresets, but should now expand correctly for all other presets and evaluate conditions correctly
- Tertiary preset cache was added (really its just the original presets cache but used in a new way) to account for included json files that wouldnt be in the original presets files
2024-07-24 15:52:00 +00:00
Jonathan Phippen bbc74d8797
Don't require Ninja or Make on PATH when checking generators (#3927) 2024-07-23 09:52:25 -07:00
Andrew Shark a2de3ee7da
doc: cmake.environment is not applied to launch/debug (#3926) 2024-07-23 10:24:29 -04:00
stepeos 890fb569a1
implement #2521 by adding output channel argument (#3785)
* implement  #2521 by adding output channel argument

* fix failed configuration not showing output channel on "on error"

* implement review, add changelog

* fix changelog

---------

Co-authored-by: Garrett Campbell <86264750+gcampbell-msft@users.noreply.github.com>
Co-authored-by: Garrett Campbell <gcampbell@microsoft.com>
2024-07-23 13:41:47 +00:00
CSIGS@microsoft.com eb4c00df1b
Localization - Translated Strings (#3884)
Co-authored-by: Garrett Campbell <86264750+gcampbell-msft@users.noreply.github.com>
2024-07-22 19:19:56 +00:00
Jonathan Phippen 01db4d6d1f
Dispose of Launch terminal if environment has changed (#3902)
* Compare entire terminal launch environment and dispose if not equal

* Updated CHANGELOG

---------

Co-authored-by: Garrett Campbell <86264750+gcampbell-msft@users.noreply.github.com>
2024-07-22 09:33:21 -07:00
Yonggang Luo 8ed18b224a
Only visual studio 2015 neesd fixes the windows sdk path (#3837)
Co-authored-by: Garrett Campbell <86264750+gcampbell-msft@users.noreply.github.com>
2024-07-18 15:36:15 +00:00
Garrett Campbell 1a5d186010
Delete .github/workflows/closed-fixed-pending-release.yml 2024-07-18 09:58:26 -04:00
Garrett Campbell 5db0a3d850
Update OneLocBuild process (#3912)
* try service connection already there

* use variables
2024-07-18 09:44:49 -04:00
Garrett Campbell e27b57a58f
Update triage-labels.yml 2024-07-17 14:07:20 -04:00
Yonggang Luo aff67c4359
The kit name for Clang/MSVC too long, put the arch at the front (#3835)
[kit] Found Kit (trusted): Clang 17.0.3 (MSVC CLI) for MSVC 17.10.35004.147 (Visual Studio Community 2022 Release - x86)
[kit] Found Kit (trusted): Clang 17.0.3 (GNU CLI) for MSVC 17.10.35004.147 (Visual Studio Community 2022 Release - x86)
[kit] Found Kit (trusted): Clang 17.0.3 (MSVC CLI) for MSVC 17.10.35004.147 (Visual Studio Community 2022 Release - amd64)
[kit] Found Kit (trusted): Clang 17.0.3 (GNU CLI) for MSVC 17.10.35004.147 (Visual Studio Community 2022 Release - amd64)

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Co-authored-by: Garrett Campbell <86264750+gcampbell-msft@users.noreply.github.com>
2024-07-17 14:36:09 +00:00
Andrew Shark b2fd1880cb
Fix typo in configure.md (#3900)
als -> also

Co-authored-by: Garrett Campbell <86264750+gcampbell-msft@users.noreply.github.com>
2024-07-17 10:04:20 -04:00
Andrew Shark e43f28f1ec
Fix link in configure.md (#3899)
The section is called "General options", not "Generic options".
2024-07-17 10:04:01 -04:00
Garrett Campbell bdc9f5f0c4
Add setting to control how we use VS Dev Env (#3892)
* committing state, no progress, just thinking through

* fix how we apply and override devenv to ensure we don't accidentally delete preset environment modifications from user

* check if ninja exists and it's the generator, use that to determine if we should add vs devenv as well

* currently broken, but saving state for adding a setting

* this works well, but I need to add back code that prohibits repeated devenv searching with where.exe

* finalize implementation of the setting for useVsDeveloperEnvironment

* minimize branches

* fix import

* update comments

* fix comment

* remove unnecessary comment

* fallback to better architecture/toolset

* update devenv vars and tests

* fix test for mac

* fix tests

* update changelog

* fix test expand and where.exe env

* update test to explicitly test architecture unit test

---------

Co-authored-by: snehara99 <113148726+snehara99@users.noreply.github.com>
2024-07-16 19:35:40 +00:00
Fatima Qarni 4cdfacde0a
Fix localized file path for schemas (#3906) 2024-07-16 17:32:45 +00:00
Garrett Campbell 2868e27edc add permissions to workflow 2024-07-16 12:12:20 -04:00
snehara99 a63562f0a8
if installDir is a relative path, calculate it relative to the source directory (#3903)
* if installDir is a relative path, I calculate it relative to the source dir

* updated location of checking and updating installDir

* combined with expansion check
2024-07-15 21:14:32 +00:00
Garrett Campbell e263ecd226
fix our depth search for CMakeLists.txt (#3904) 2024-07-15 16:30:13 -04:00
moyo1997 15ad70769f
show build task if preset is set to activebuildpreset (#3898)
* show build task if preset is set to activebuildpreset

* changelog
2024-07-12 10:12:23 -07:00
snehara99 2706fd9aef
localized the additional properties case (#3895) 2024-07-12 15:12:45 +00:00
moyo1997 a8501dd575
fix debug environment config being overwritten (#3894)
* fix debug environment config being overwritten

* changelog
2024-07-12 00:05:52 +00:00