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

2099 Коммитов

Автор SHA1 Сообщение Дата
KoeMai 19e64ae12f
Fix problem #1067 - RUNTIME_OUTPUT_DIRECTORY (#1088)
* Fix problem #1067 - RUNTIME_OUTPUT_DIRECTORY

The artifact paths could be relative or absolute. The path type depends on the RUNTIME_OUTPUT_DIRECTORY.
2020-02-24 09:27:31 -08:00
csigs 6adc289df3
Localization - Translated Strings (#1086) 2020-02-20 09:30:24 -08:00
csigs 4e41f406a5
Localization - Translated Strings (#1077) 2020-02-15 22:17:22 -08:00
Bob Brown (DEVDIV) d946c9ac8d Update IntelliSense configuration based on target selected 2020-02-15 18:13:20 -08:00
Bob Brown a0d4bd570f
Restore user prompt to scan for kits (#1071) 2020-02-12 14:48:20 -08:00
Mikhail Po e4e3280b82
Show "Collapse all" command on project outline view (#1066) 2020-02-12 14:45:07 -08:00
Bob Brown ae75ef79d2
Don't show CMake server status for fileApi/legacy modes (#1070) 2020-02-12 10:44:49 -08:00
csigs 7448d01752
Localization - Translated Strings (#1068) 2020-02-12 10:03:21 -08:00
Zingam 0e8bf1360f
Disabled TSLint warnings on FSWatcher.close() (#1022) 2020-02-11 16:01:54 -08:00
Andreea Isac 9d445fb3f6 Merge branch 'develop' of https://github.com/microsoft/vscode-cmake-tools into develop 2020-02-11 10:48:33 -08:00
csigs 8217235c10
Localization - Translated Strings (#1058) 2020-02-10 15:50:51 -08:00
Zingam 5120c1fc17
Fixed a typo in 'debugger.test.ts' (#1054) 2020-02-10 12:04:04 -08:00
Andreea Isac 491002a469
ServerAPI fallback logic when FileAPI not supported (#1051)
* ServerAPI fallback logic when FileAPI not supported.

* Update CHANGELOG.md

* Remove fileapi fix entry because the main feature ships with this same release
2020-02-07 12:04:52 -08:00
Andreea Isac f7841bc5f4 Merge branch 'develop' of https://github.com/microsoft/vscode-cmake-tools into develop 2020-02-07 11:09:41 -08:00
csigs 73a0e22131
Localization - Translated Strings (#1050) 2020-02-07 09:57:30 -08:00
Andreea Isac 1f64f5dd74
Update CHANGELOG.md for CMake Tools #1.3 release (#1048)
* Update CHANGELOG.md for CMake Tools #1.3 release

* Add ' for variable name
2020-02-06 12:47:31 -08:00
Andreea Isac c7d85766a5
Merge pull request #1047 from microsoft/dev/andris/cmake_tools/github_issue_1036
Fix GitHub issue 1036: debug command variables throw exception
2020-02-06 12:22:41 -08:00
Andreea Isac c869101a7a Merge branch 'develop' of https://github.com/microsoft/vscode-cmake-tools into develop 2020-02-06 12:19:32 -08:00
Andreea Isac 38541ba116 Merge branch 'dev/andris/cmake_tools/github_issue_1036' of https://github.com/microsoft/vscode-cmake-tools into dev/andris/cmake_tools/github_issue_1036 2020-02-06 12:09:35 -08:00
Andreea Isac bf43c93e77 Fix space 2020-02-06 12:09:21 -08:00
Andreea Isac dbd104416d
Merge branch 'develop' into dev/andris/cmake_tools/github_issue_1036 2020-02-06 12:05:45 -08:00
Andreea Isac 6e3dac9134 Fix GitHub issue 1036: debug command variables throw exception 2020-02-06 11:21:15 -08:00
Bob Brown e3710894a6
Add support for ${workspaceFolderBasename} (#1044) 2020-02-04 14:55:11 -08:00
csigs 4f7dae96f9
Localization - Translated Strings (#1043) 2020-02-04 09:34:25 -08:00
Andreea Isac 8d93f643fa Merge branch 'develop' of https://github.com/microsoft/vscode-cmake-tools into develop 2020-02-03 16:02:30 -08:00
xisui-MSFT 6ccd3057bb
Added command to hide launch and debug commands and debug button (#1035) 2020-02-03 14:47:20 -08:00
Andreea Isac 57480afb13
Record improvements and bug fixes for CMake Tools Release 1.3.0 in CHANGELOG.md (#1037) 2020-01-31 11:51:16 -08:00
Andreea Isac e25380b2b3
Fix vulnerability reported for serialized-javascript (#1038) 2020-01-31 10:55:45 -08:00
Andreea Isac b0a2a7f7d5 Merge branch 'develop' of https://github.com/microsoft/vscode-cmake-tools into develop 2020-01-31 10:01:06 -08:00
Eugene Morozov 5c96734893
Mark all tests as 'notrun' in case of build failure when runnign CTest (#980) 2020-01-30 11:00:42 -08:00
xisui-MSFT c3b51a99d6
Change the name of unspecified kit back to __unspec__ (#1033) 2020-01-30 09:30:08 -08:00
csigs b8f005f825
Localization - Translated Strings (#1034) 2020-01-30 09:23:50 -08:00
Bob Brown 34f588281f
clear the output for "install" if the setting dictates (#1030) 2020-01-29 10:24:22 -08:00
Bob Brown 848cc80e70
file-api tweaks (#1029) 2020-01-28 16:43:56 -08:00
Bob Brown 68f949a1df
Print the value of sourceDirectory when it is invalid (#1028) 2020-01-28 14:18:53 -08:00
csigs e4e2eca268 Localization - Translated Strings (#1027) 2020-01-28 09:13:20 -08:00
Andreea Isac 89b08a811f Merge branch 'develop' of https://github.com/microsoft/vscode-cmake-tools into develop 2020-01-27 14:46:05 -08:00
KoeMai 0b55e5bea9 cmake-file-api(7) (#720)
* Replace workspace path read from vscode to constructor variable

- The workspace is read from vscode, this makes it hard to refactor
  cms-driver to test compiler integration on a lower level.
  The workspace needed to be set by a higher level, to make low level driver
  independent of vscode ui and data structures.

- Make non public function protected.

* Replaced pickGenerator by variable for generator

The cms client normally started a pick call in the UI.
This modification moves the questions infront of the start.
This removes the required callback from cms client.

* Clean up CMake Build Start Problem UI interaction

The CMake Driver has many dependencies to UI. This
modification moves the dependencies from CMakeDriver into
cmake-tools. This allows to test the driver without UI interaction.

- Move quickstart and missing source dir warning
- Remove not required configuration setting `autoRestartBuild`
  I was not able to bring the driver into a state where two
  builds run in parallel. The `CMakePreconditionProblemSolver`
  never signals `busy` CMake.
- Change visability of some do methods in cms-driver.

* Fix working path getter

* Fix parallel clean and configure on driver level

The parallel execution of cmake configure is allowed by the driver. This modification will
forbid a parallel configuration.

* Move selection of prefered generator

The prefered generators are extracted by the cmake drive from configuration,
kit files or settings. This modification moves the aggregation of different
prefered generator out of the driver into the cmake tools.
This allows to defines exact preferred generators for testing (no hidden
dependency). The driver only checks the prefered generator list,
if there is more then one then the first existing generator is selected.

- Fix wrong preferred generator definition in test
- Extend debug information

* Remove toolset dependency in cms-client

The CMS Server client had a dependency to configuration reader to
read the toolset. For my this is a inconsistent information. Only
the toolset was from config file but not the platform.

* Add cms driver test for linux

* Fix problem with invalid preferred generator

* Add tests for reconfiguration and generator switch

* Harmonize cleanConfigure with configure in driver.

* Remove Workspace state dependency from driver

This modification reduces the dependency of the cmake driver layer to the  workspace context. This modification allows to setup low level CMake driver tests, so that the driver code could be tested with different cmake versions.
The UI parts can then tested with a driver mock, or by system tests.

- Replace DirectoryContext by ConfigurationReader
- Moved access to DirectoryContext state by setter funcions (setVarianOptions). This allows to set variant in a consistent way.
- Reduces fakes from tests

* Clean up and fix variant naming

* Extract cmake flags generation out of configure method for readability

* Stabilize tests and reformat code

* Set timeout for teardown of driver

* Fix some errors

* Restructure drivers

* Move cmake server client driver part

* Add first parts of cmake file api implementation

* Clean up cmake file api code

* Add workaround for preconfigured projects

Added a workaround to get the preconfigured generator and
its settings from cache file.

* Implement target listing and restructure code

- Fix test for switching kit files
- Implement target map for configurations
- Add workaround for recover already configured cmake projects
- Add  file api helpers and interface

* Fix wrong generator configuration in tests and assign default value of generator in driver.

* Fix problems on generator errors or missing query response

- CI: Add cmake to search path
- Fix FileAPI driver compatibility on missing generator
- Fix FileAPI driver problem with missing reply file
- Add test for configuration behavior on configuration error of cmake

* Generate api query files on start of cmake configuration

The generation of the api query files should although be done when
a "unspecified kit" is used. This requires to create the file on each
configuration, not only on init of a new build directory or an clean up
before build.

* CI loads wrong cmake version

* Fix cmake version problem for unix global

* Try to fix travis mac os problem with bad executable

* Restructure codemodel api

This modification extracts the code model from
the UI elements (tree view) and compile information into a code model API.
It is necessary to implement two driver variants
- CMake Server CodeModel
- CMake FileAPI Code Model

The code model support is detected by a special driver family
(`CMakeCodeModelDriver`), which provides a property for
`onCodeModelChanged`.

The driver api contains one required information from
cmake code model for generation of cpptool compiler information and
for the cmake tree view.

* Implement code model parts for the tree view.

- Inherit from `CMakeCodeModelDriver`  instead of `CMakeDriver`
- Implement FileAPI translation functions for Extension Driver_API

* Add first implementation for cpptool required compile information

- Replace cmake server depencencies by driver_api
- Extend API py missing language information
- Extend CMake FileAPI interface for CompileGroups
- Implement required convert functions

* Fix access on map from undefined object

* Add missing "all" target and "install" target and fix problems on switch between MsBuild and ninja

* Fix some path resolving problems in code model

* Fix cmake tree view - open file and missing headers

* Fix/harmonize cms-driver and cmfileapi-driver tests

- Fix `Test generator switch`
  Now it is a more realistic test case. This test used the same
  driver methods like the pre-configured cmake build folder test.
  This makes it difficult to detect pre-configured build folders. The
  cmake-tool class(extension front-end) use a different way to
  switch the kits on a running cmake driver instance used.
- Add cmake configuration fail test to cms-driver.

* Fix problem with invalid active kit

* Add driver code model interface

- Create driver code model interfac
  The cms client class has a code model. This code model is defined
  by the cmake cmake-server(7). The cmake-tools-extension needs
  a code model, which does not have to be identical to the cmake server.
  For more flexibility in future, a separate model is created.
  The first version contains all information required for the extension
  (e.g. for cpptools, code model tree) and is based on
  the cmake-server(7) model.

- Separate code mode driver support from CMS driver version

* Add first code model test and fix typos and a small bug

* Fix unix build by separate test for single configuration generators

* Fix node.js version problem with streamfilter

* Add tests for project and target information

* Fix linux build and reformat code model tests

* Extend tests for shared library and utilities

- Add tests for interface parts of cpptools
- Add tests for utilities parts of tree view
- Extend CMake test Project by required calls

* Fix missing isGenerated in cms-client

* Fix wrong library filename

* Fix MacOS build and disable windows test for mingw (#775)

* Fix regex

* Update codemodel driver interface .documentation

* Clean up tests and add sysroot test

Clean up
- Add helper for code model generation
- Restructure test
- Fix spelling

Add missing sysroot test

* Fix instable tests

- Different CMake versions generate different code model outputs.
- macOS test fails. I am unable to test the problem,
  but it seems the sysroot variable is required to build on macOS.

* Remove test filter

* Refactor test suite generation for driver test

This modification allows reusing driver tests for all driver types.
The tests check information and behavior to be according to the
driver interface. We know then that the CMake tools frontend
see the same behavior from the driver.

* Added execution of driver tests to FileAPI Driver

* Clean up description and reformat code

* Update driver creation with new configuration setting

* Implement sysroot mapping for FileApi

* Fix lint and style

* Review comments

- Move setting description
- Replace cmake version for CI tests
- Move convertion of  `useCMakeServer` to `cmakeCommunicationMode`
- Create missing interface types
- Search for newest index file

* Insert review comments

- Update setting behavior for automatic mode
- Fix spelling
- Remove not required query content
- Add version check for code model and cache (index file has no version)

* Fix merge conflicts

* Change code model load behavior on init of driver

* Insert localization to warnings.
2020-01-27 12:20:47 -08:00
csigs 3ded66a373 Localization - Translated Strings (#1026) 2020-01-27 08:50:15 -08:00
Zingam 90d006e930 'Scan for Kits' option to Kits' QuickPick (#937) 2020-01-24 13:30:11 -08:00
Zingam 990c52dc58 Refactor CMakeServerClient.sendRequest() to improve consistency (#949)
Co-authored-by: Bob Brown <bobbrow@users.noreply.github.com>
2020-01-24 11:29:35 -08:00
Bob Brown 407b3e2fc5
Allow temporary override of active folder (#1021) 2020-01-24 11:27:53 -08:00
Zingam eba7051022 Detection of bundled CMake in Visual Studio (#942) 2020-01-24 11:03:56 -08:00
csigs fa44e83328 Localization - Translated Strings (#1020) 2020-01-24 10:01:58 -08:00
Bob Brown 4006a887c9
Don't fail if CMakeLists.txt was appended to sourceDirectory (#1016) 2020-01-22 19:33:18 -08:00
xisui-MSFT b1fe911afd Added folder named to some messages (#1018) 2020-01-22 19:32:44 -08:00
Bob Brown 4752c100ee
Update changelog and version for 1.3.0 (#1017) 2020-01-22 12:57:10 -08:00
Bob Brown fa33911841
Support additional IntelliSenseModes (#1002) 2020-01-22 11:24:49 -08:00
Bob Brown a87f736b4b
proc.execute exceptions are not handled as expected (#1000) 2020-01-22 11:02:37 -08:00
Bob Brown bfa6a904c7
Filter out duplicate targets from the target selector (#992)
* Filter out duplicate targets from the target selector

* remove duplicates for launch targets
2020-01-22 11:02:08 -08:00