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

484 Коммитов

Автор SHA1 Сообщение Дата
Garrett Campbell f47c79f5e0
Add expansion, inheritance, include tests (#4137)
* Move the presets tests to integration tests.

These tests aren't true 'unit' tests by definition, so moving them to
integration.
Also, added include and CMakePresets/CMakeUserPresets tests.

* add inheritance and expansion and override tests

* fix formatting of test file

* fix linter issues

* fix lint issues

* fix path

* make tests better across platform

* fix lint
2024-11-06 14:34:12 +00:00
Garrett Campbell 781a5a6e9b
Retire Options Moved notification (#4145) 2024-11-06 11:33:38 +00:00
Raymond Zhao c3a5713a69
fix: re-classify configureOnOpen setting (#4150)
* fix: re-classify configureOnOpen setting

* remove tags

---------

Co-authored-by: Garrett Campbell <gcampbell@microsoft.com>
2024-10-31 18:32:08 +00:00
Garrett Campbell 46f2d16e31
Refactor and improve test infrastructure, starting with automated version validation tests (#4126)
* renamed to end-to-end-tests and moved backend unit tests to unit-tests folder

* create folder for kits code, refactor imports to use @cmt and @test

* move variants into the kits folder

* refactor into better folder structure, still more to go

* Initial refactor making presets validation unit testing possible.

This seems to work well so far, I have v1-v3 presets tested, with some
more refactors regarding error reporting to come. However, the
design/infrastructure refactor seems to be allowing us to unit test
validation.

* implemented Presets version validation automated testing

* Added version testing for presets v1-9.

This adds testing for our version validation for all Presets versions
currently supported.
It creates presets on the fly and ensures that we correctly get errors,
or don't, depending on the setup and what fields are present with what
versions.

* fix workflows

* Ensure that we correctly initialize the presetsParser class

* refactor imports

* refactor imports

* more import fixes

* imports in projectStatus

* missed one

* workflow imports

* added comment about definite assignment

* add comments

* fix launch file to make sure breakpoints happen

* fix syntax error
2024-10-21 11:02:35 -07:00
DeltaRazero e765b1e85f
Use product icons instead of 'hardcoded' icons (#3737)
* Use product icons instead of 'hardcoded' icons

- Add a product icon font instead of icons that are unchangable by product icon themes
- Add a script using FontForge scripting API for generating product icon font for future use
- Remove redundant icons that are already part of codicons

* Revert accidental addition of 'languages' contribution entry
2024-10-17 18:31:11 +00:00
Sandro Pedrett 9327d3c9ef
Add support to configure default ActiveProject (#3730)
* Implemented defaultActiveProject configuration to select default project during initialization (#1078)

* Updated docu

* Removed unused comment

* Fixed lint issues

* Fixed review findings

* Improved description of new defaultActiveFolder configuration

* Updated changelog

---------

Co-authored-by: Garrett Campbell <86264750+gcampbell-msft@users.noreply.github.com>
2024-10-10 19:58:14 +00:00
Lin Hsu ed37b19f51
Add command substitutions `launchTargetName` and `getLaunchTargetName` (#3979)
Co-authored-by: Garrett Campbell <86264750+gcampbell-msft@users.noreply.github.com>
2024-10-07 08:01:40 -04:00
dependabot[bot] 49e4e3151d
Bump webpack from 5.76.0 to 5.94.0 (#4029)
Bumps [webpack](https://github.com/webpack/webpack) from 5.76.0 to 5.94.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.76.0...v5.94.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Garrett Campbell <86264750+gcampbell-msft@users.noreply.github.com>
2024-10-02 06:55:13 -04:00
Garrett Campbell 3305ff22fc
Ensure signing/packaging works as expected (#4088)
* test out signing js and packaging it without messing up sign

* yarn compile-production

* temp image override

* confirmed, this fixes signing
2024-09-20 13:01:34 -04:00
Garrett Campbell 36276c952e
xml2js cg (#4069)
* xml2js cg

* update tests as well

* try update partial

* switch kit?

* ninja is added to path so it should work, still investigating

* update action version with same tool versions

* changes to test

* test output

* more testing

* test macos-13

* remove logging

* remove logging

* try explicit macos-14

* go back to macos-13

* remove static version of vscode

* need to use 13

* comment
2024-09-17 05:40:09 -04:00
Garrett Campbell d860f0859d
update node version, @vsce/vsce, and fix build errors from node updat… (#4055)
* update node version, @vsce/vsce, and fix build errors from node update, add improved signing

* update node in ci builds

* update vscode engine

* fix copy

* don't sign vsix with VsixSha2 anymore

* update changelog
2024-09-11 06:19:52 -04: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 4dc3817666
ensure we take deep copy of presets for presetsPlusIncluded (#3939) 2024-07-26 12:47:49 -04: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
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
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
snehara99 c892b185e9
Add "Unspecified" Build Type and Use by Default (Kits Only) (#3879)
* add unspecified build type and remove CMAKE_BUILD_TYPE prop when it's used

* reverted commenting out debugger

* let debugger stop on error again

* updated changelog

* updated the docs with the new option

* updated default kit build type

* fix failing tests

---------

Co-authored-by: Garrett Campbell <86264750+gcampbell-msft@users.noreply.github.com>
2024-07-11 19:05:59 +00:00
Jonathan Phippen 32a07ffaf0
Fixed spelling in Delete Build Dir On Clean Configure description (#3893) 2024-07-11 13:38:53 -04:00
Garrett Campbell 2ea06810a7
remove from pre-release (#3861) 2024-07-02 15:26:52 -04:00
Andreea Isac 39f372b904
Add setting for deleting whole build dir when clean configuring (#3783)
* Add setting for deleting whole build dir when clean configuring

* Remove unnecessary tag in new setting in package.json

* Add changelog entry. Remove unnecessary | null from new boolean setting.

---------

Co-authored-by: Garrett Campbell <86264750+gcampbell-msft@users.noreply.github.com>
2024-06-24 13:10:18 -04:00
Bob Brown 423aa3b366
Update telemetry API to latest version. (#3843) 2024-06-21 22:03:40 +00:00
vinocher-bc 734ffcbaba
Tree view for tests using test suite delimiter (#3759)
* Implement treeview for tests using test suite delimiter

* Support regular expressions for delimiters

* Improve UI string

* Improve UI string

* Address CR comments

* Fix spacing

* make sure to pass entry point through

---------

Co-authored-by: Garrett Campbell <gcampbell@microsoft.com>
Co-authored-by: Garrett Campbell <86264750+gcampbell-msft@users.noreply.github.com>
2024-06-21 16:57:32 -04:00
Garrett Campbell 044560ae1a
update braces dependency (#3839) 2024-06-17 13:57:15 -04:00
Garrett Campbell a2642d399a
colorization support in pre-release (#3794)
* colorization support in pre-release

* update changelog
2024-05-29 10:40:08 -04:00
Andreea Isac 6f6f76a622
Fix UI for settings override of package presets (#3770)
* Fix UI for settings override of package presets

* Fix linter errors
2024-05-20 13:44:35 -07:00
Garrett Campbell 18386efff2
Remove colorization until we get quick info done. (#3751)
* remove colorization for now

* update keywords
2024-05-10 15:30:25 -04:00
Orkun Tokdemir 22880b373f
Style: Clean-up (#3744)
* Remove redundant whitespace characters and exports

Co-authored-by: Garrett Campbell <86264750+gcampbell-msft@users.noreply.github.com>
2024-05-10 09:11:19 -04:00
Garrett Campbell 6124d26a89
Update CMake Tools Initial experience [exp] (#3732)
* save progress

* add glob for cmakelists.txt

* keep some changes from 3703

* add changelog and some minor fixes

* put glob in right location

* leave globbing for cmakelists for other PR

* update based on learnings

* fix indentation of comments

* add back glob method

* fix formatting

* rm
2024-05-09 21:04:59 +00:00
Garrett Campbell 7793728890
fix cmake-tools-schema (#3720)
* fix cmake-tools-schema

* fix schema version reference

* fix yaml validation

* update changelog
2024-04-24 16:09:21 -04:00
Orkun Tokdemir 1ed22b7b09
Add `onSelectedConfigurationChanged` api (#3671)
* Add onSelectedKitChanged api

* needs package.json changes once api is shipped

* update the package.json

* Fix `notifyOnSelectedConfigurationChanged()` order

When `notifyOnSelectedConfigurationChanged()` is executed before
`setFolderActiveKit()`, `cmake.buildKit` returns the previous selected
kit. That's why `notifyOnSelectedConfigurationChanged()` should run
after `setFolderActiveKit()`.

---------

Co-authored-by: Garrett Campbell <gcampbell@microsoft.com>
Co-authored-by: Garrett Campbell <86264750+gcampbell-msft@users.noreply.github.com>
2024-04-19 14:14:54 +00:00
Garrett Campbell 25698e0d30
Phase 1 Partial - Colorization + share (#3679)
* add syntax files, add languages, grammars, to package.json

copy over stuff to play with later

got the grammars working with the other stuff commented out

cleaned up, not tested

remove stuff

I don't think we really need to have a unique ID, we should tell people to only install our extension

remove unnecessary method

update our syntaxes from what we do in VS

test pipeline

update cgmanifest

temporarly force cg

test different version

use .3 version

update notice, it includes textmate reference

manually add kitware/cmake reference to NOTICE

fix trigger

fix pipeline name

get repo

make sure we checkout the repos

powershell

inline

reference variables correctly

testing for differences, CHANGE LATER

updating textmate

see if we're getting the right git diff

test with explicit path

update dates

write output

try to properly access variables

use embeddedbot

put emails and username in variables

switch when I update config

orgurl

add logging

update auth

update docs

testing out PR tool

remove 'description' option

add console.log statements for testing

map system token

run index.ts for both grammars and quickinfo, put paths into variables, condition based on parameters

fix trigger

access variables correctly

access variables correctly

only run job if one of the share steps is enabled

fix job name

test without prefix

remove difference

remove snippets keyword until we actually add this

remove stray miscopy

remove powershell

* small update

* ignore tools directory when packaging

* don't build the tools directory when building and testing the extension

* exclude tools for webpack?

* revert webpack

* try webpack fix again

* try another fix

* revert

* we need to remote the NOTICE for testing earlier so yarn doesn't fail

* rename notices.txt to get around yarn issue

* update changelog
2024-04-18 19:57:11 +00:00
hippo91 73ac9596be
1451 open build folder (#3620)
* Adds the appendBuildDirectoryToWorkspace method

* Append the build directory at the end of workspace folders

* Adds entry in CHANGELOG

* Takes into account code review remarks

* Merging features and improvements sections in CHANGELOG

* FIxes lint errors

---------

Co-authored-by: Guillaume Peillex <guillaume.peillex@cea.fr>
2024-04-02 14:06:53 +00:00
Garrett Campbell cf2ab14638
update scopes (#3626) 2024-03-12 13:40:56 +00:00
Garrett Campbell d72dd28243
remove un-implemented command (#3627)
* remove un-implemented command

* update changelog
2024-03-11 16:56:48 -04:00
Fatima Qarni 91b0e8b858
Add option to disable kit scan by default (#3585)
* Adds option to disable kit scan by default

* Remove unused comment

* remove newline

* cleanup from comments

* remove string

* fix string and changelog

* move to 1.18

---------

Co-authored-by: Garrett Campbell <86264750+gcampbell-msft@users.noreply.github.com>
2024-03-08 15:24:19 -05:00
Garrett Campbell 2d7a6145f9
Add support for CMakePresets.json v7 and v8 (#3609)
* Add most of what is needed for v7 and v8 support

Still need to update the schema.

* fix merge conflict

* add schemas for presets v7 and v8, update package.json

* update changelog
2024-03-06 15:13:31 -05:00
Garrett Campbell 4e4e9f7ee4
fix loc string reference (#3618)
* fix loc string reference

* replace all strings
2024-02-29 14:21:37 -05:00
snehara99 969ad346ef
fixed some inherit bugs for statusbar visibility (#3579)
* fixed some inherit bugs for statusbar visibility

* update changelog
2024-02-09 14:28:49 -05:00
Andreea Isac aa46849ef6
Presets V6 support (package and workflow) (#3548)
* Draft incomplete - does not compile

* Remaining functionality, needs more cleanup and testing

* More bug fixes, not much cleanup

* More bug fixes and stabilization

* fix indentation issues, unused variables, etc.

* Implement first round of code review feedback

* Fix more subtle and complex merge conflicts

* Fix linter issues

* Forgot to dispose of package event subscription

* PR review round two

* Incomplete status bar support for V6 presets. Don't clear output when in workflow mode, regardless of cleanOutputBeforeBuild setting. More cleanup.

* Finish status bar UI support for package and workflow presets

* Add validation of presets structure (applies to all). Fix some bugs.

* Skip expanding strings when not necessary. Remember more presets associations in the workspace state when reseting configure preset. More cleanup.

---------

Co-authored-by: Garrett Campbell <gcampbell@microsoft.com>
2024-01-30 15:21:46 -08:00
Garrett Campbell b486c5a369
Add a setting to enable/disable the Test Explorer Integration (#3545)
* Add initial setting and use in runCTest

There is still work to be done to ensure that we cover all
cases/scenarios and code locations to ensure that our integration with
the test explorer doesn't happen based on this setting

* Hide commands, handle TestController state.

Hide the commands based on the Test Explorer when the testExplorer
integration is disabled. Ensure the TestController gets disposed when
the setting is dynamically changed.

* attempt to refresh the tests when re-enabling integration

* add changelog

* only dispose if needed
2024-01-23 19:43:51 +00:00
moyo1997 2bdf3bf239
add pinned cmake commands view (#3542)
* add pinned cmake commands view
Co-authored-by: snehara99 <113148726+snehara99@users.noreply.github.com>
2024-01-23 18:40:20 +00:00
snehara99 a8ba2f8fff
added inherit option and inheritDefault setting (#3547)
* added inherit option and inheritDefault setting

* fixed docs wording
2024-01-23 12:31:59 -05:00
Garrett Campbell 0e48ef9867
Allow overriding of CMakePresets cache variables and arguments (#3537)
* Update the already available settings to use in presets.

Turns out, we already have configure, build, buildTool, and test
args/envs that can override. I modified the code to use these in
presets. Also, I added a small sentence to the settings descriptions to
notify users that when using CMake Presets, they are designed for
overrides, not general configuration.

* pending further discussion, use general environment for all

* add temporary override string for presets to environment setting description

* don't remove configureSettings

* add text to specify that configureSettings isn't for presets scenario

* Add tentative treeview UI and output message for configure

Still need to do build/test/etc, and likely improve the strings
themselves.

* add output lines, improvement on the string to come, testing for location

* don't output message when we're using cache

* add handlers that update the nodes when a test or build setting is modified

* slight refactor and add * to status bar

* add button that only appears when overrides present that allows opening those settings

* share some code

* fix localize calls

* update tsconfig.json

* update eslint

* slightly reword the settings

* fix buildTool args

* avoid duplication

* ensure we only return -3 when testPreset isn't defined

* fix imports

* changelog and docs

* refactor to avoid circular dependency

* missed one

* fix imports
2024-01-19 20:52:13 +00:00
Garrett Campbell 0c3de560bd
Update the api.ts for the getActiveFolderPath method. (#3528)
* Update the api.ts for the getActiveFolderPath method.

This will need to also update and pull down the 1.1 version of the API.
Changes coming.

* update changelog, give credit

* update version of api class

* use major versions for enum

* update version

* match version since we are back-compat
2024-01-19 17:05:24 +00:00
Garrett Campbell 566268f425
add option to disable asking if we should still build when not all do… (#3527)
* add option to disable asking if we should still build when not all documents are saved

* changelog

---------

Co-authored-by: snehara99 <113148726+snehara99@users.noreply.github.com>
2024-01-18 21:06:45 +00:00
Luca 6b87c05a1e
to avoid infinite loops, avoid regex.exec in while loops, replace thmm with matchAll (#3535) 2024-01-17 14:43:27 -08:00
snehara99 72420c659d
Dev/snehara/fix settings description keys (#3523)
* updated key reference

* fixed changelog update
2024-01-04 10:31:24 -05:00
Garrett Campbell 0864696a67
Improve when configure with debugger popup appears and allow disabling. (#3496)
* Make popup only show up when necessary and reasonable.

Modify the return value of the configure method so that we can better
evaluate whether we should be showing the "Configure failed. Configure
with debugger?" popup.

* add ability to not show again and have it controlled by a setting

* fix tests

* more test fixes

* more testing fixes

* more testing fixes

* more testing fixes

* another fix attempt

* semantic error

* revert slightly to investigate

* test

* test fix

* test

* test

* only return the result for the command API

* fix test

* try deep equal in driver-test

* update changelog

---------

Co-authored-by: snehara99 <113148726+snehara99@users.noreply.github.com>
2024-01-02 07:58:24 +00:00
Garrett Campbell efa3840472
test updating test-electron version (#3492) 2023-12-13 15:25:28 -05:00
Garrett Campbell ebf1d23978
fix axios (#3455) 2023-11-17 21:33:15 +00:00