From 5416e796220500e984b71ab622bc781a16187098 Mon Sep 17 00:00:00 2001 From: Bob Brown Date: Thu, 24 Oct 2024 13:42:43 -0700 Subject: [PATCH 1/2] Values set in settings are not immediately available for use (#12881) --- Extension/src/LanguageServer/client.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Extension/src/LanguageServer/client.ts b/Extension/src/LanguageServer/client.ts index 7d4d81d5ad..e46743815e 100644 --- a/Extension/src/LanguageServer/client.ts +++ b/Extension/src/LanguageServer/client.ts @@ -1046,7 +1046,7 @@ export class DefaultClient implements Client { if (index === paths.length - 1) { action = "disable"; settings.defaultCompilerPath = ""; - await this.configuration.updateCompilerPathIfSet(settings.defaultCompilerPath); + await this.configuration.updateCompilerPathIfSet(""); configurationSelected = true; await this.showPrompt(sender); return ui.ShowConfigureIntelliSenseButton(false, this, ConfigurationType.CompilerPath, "disablePrompt"); @@ -1066,7 +1066,7 @@ export class DefaultClient implements Client { configurationSelected = true; action = "compiler browsed"; settings.defaultCompilerPath = result[0].fsPath; - await this.configuration.updateCompilerPathIfSet(settings.defaultCompilerPath); + await this.configuration.updateCompilerPathIfSet(result[0].fsPath); void SessionState.trustedCompilerFound.set(true); } else { configurationSelected = true; @@ -1084,8 +1084,9 @@ export class DefaultClient implements Client { return ui.ShowConfigureIntelliSenseButton(false, this, ConfigurationType.CompileCommands, showButtonSender); } else { action = "select compiler"; - settings.defaultCompilerPath = util.isCl(paths[index]) ? "cl.exe" : paths[index]; - await this.configuration.updateCompilerPathIfSet(settings.defaultCompilerPath); + const newCompiler: string = util.isCl(paths[index]) ? "cl.exe" : paths[index]; + settings.defaultCompilerPath = newCompiler; + await this.configuration.updateCompilerPathIfSet(newCompiler); void SessionState.trustedCompilerFound.set(true); } } From 8cb1deff7602b844ec35a134fecc2d91ba42c851 Mon Sep 17 00:00:00 2001 From: Sean McManus Date: Thu, 24 Oct 2024 13:58:32 -0700 Subject: [PATCH 2/2] Update changelog for 1.23.0 (#12880) * Update changelog for 1.23.0. --- Extension/CHANGELOG.md | 19 ++++++++++++++++++- Extension/package.json | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Extension/CHANGELOG.md b/Extension/CHANGELOG.md index 8891897fa2..606fb27f54 100644 --- a/Extension/CHANGELOG.md +++ b/Extension/CHANGELOG.md @@ -1,11 +1,28 @@ # C/C++ for Visual Studio Code Changelog +## Version 1.23.0: October 24, 2024 +### Enhancements +* Update to clang-format and clang-tidy 19.1.2. [#12824](https://github.com/microsoft/vscode-cpptools/issues/12824) + +### Bug Fixes +* Fix some translation issues. [#7824](https://github.com/microsoft/vscode-cpptools/issues/7824), [#12439](https://github.com/microsoft/vscode-cpptools/issues/12439), [#12440](https://github.com/microsoft/vscode-cpptools/issues/12440), [#12441](https://github.com/microsoft/vscode-cpptools/issues/12441) +* Fix a bug with 'Select IntelliSense Configuration'. [#12705](https://github.com/microsoft/vscode-cpptools/issues/12705) +* Fix newlines being removed from hover markdown code blocks. [#12794](https://github.com/microsoft/vscode-cpptools/issues/12794) +* Fix clang-format using `-` instead of `--` args. [#12819](https://github.com/microsoft/vscode-cpptools/issues/12819) +* Fix processing of `compile_commands.json` generated by the clang `-MJ` option. [#12837](https://github.com/microsoft/vscode-cpptools/issues/12837) +* Fix handling of `-I` and `-isystem` with the same path. [#12842](https://github.com/microsoft/vscode-cpptools/issues/12842) +* Fix stale colorization due to delays in updating the open file version. [PR #12851](https://github.com/microsoft/vscode-cpptools/pull/12851) +* Fix redundant progressive squiggle updates. [PR #12876](https://github.com/microsoft/vscode-cpptools/pull/12876) +* Fix inactive regions with multi-byte UTF-8 characters. [#12879](https://github.com/microsoft/vscode-cpptools/issues/12879) +* Fix some duplicate requests potentially not getting discarded. +* Fix a random crash in `start_process_and_wait_for_exit`. + ## Version 1.22.10: October 21, 2024 ### Bug Fixes * Fix the 'Extract to Function' feature not working. * Fix the 'Go to Next/Prev Preprocessor Conditional' feature not working. -## Version 1.22.9: October 10, 2024 +## Version 1.22.9: October 14, 2024 ### Performance Improvements * Initialization performance improvements. [#12030](https://github.com/microsoft/vscode-cpptools/issues/12030) - Some processing is parallelized and started earlier (populating the filename cache, discovering files). [#11954](https://github.com/microsoft/vscode-cpptools/issues/11954), [#12169](https://github.com/microsoft/vscode-cpptools/issues/12169) diff --git a/Extension/package.json b/Extension/package.json index cad8ec768c..97e425dcd0 100644 --- a/Extension/package.json +++ b/Extension/package.json @@ -2,7 +2,7 @@ "name": "cpptools", "displayName": "C/C++", "description": "C/C++ IntelliSense, debugging, and code browsing.", - "version": "1.22.9-main", + "version": "1.23.0-main", "publisher": "ms-vscode", "icon": "LanguageCCPP_color_128x.png", "readme": "README.md",