diff --git a/Extension/CHANGELOG.md b/Extension/CHANGELOG.md index 9bc14b104..aaebd8d06 100644 --- a/Extension/CHANGELOG.md +++ b/Extension/CHANGELOG.md @@ -1,8 +1,18 @@ # C/C++ for Visual Studio Code Changelog -## Version 1.26.0: May 22, 2025 -### Enhancement +## Version 1.26.1: May 22, 2025 +### Bug Fixes +* Fix include completion adding an extra `"` in `insert` mode. [#13615](https://github.com/microsoft/vscode-cpptools/issues/13615) +* Fix a bug with compiler querying of MinGW. [#13622](https://github.com/microsoft/vscode-cpptools/issues/13622) +* Fix a tag parser crash regression. + +## Version 1.26.0: May 21, 2025 +### New Feature +* Improve the context provided for C++ Copilot suggestions. + +### Enhancements * Add support for c++26/2c, gnu++26/2c, and c++23preview configurations. [#12963](https://github.com/microsoft/vscode-cpptools/issues/12963), [#13133](https://github.com/microsoft/vscode-cpptools/issues/13133) +* IntelliSense parser updates. ### Bug Fixes * Fix an invalid IntelliSense error with C++23 escape sequences. [#13338](https://github.com/microsoft/vscode-cpptools/issues/13338) @@ -2543,4 +2553,4 @@ ## Version 0.5.0: April 14, 2016 * Usability and correctness bug fixes. -* Simplify installation experience. \ No newline at end of file +* Simplify installation experience. diff --git a/Extension/bin/linux.clang.arm.json b/Extension/bin/linux.clang.arm.json index 52bd188d4..9cb51ab2c 100644 --- a/Extension/bin/linux.clang.arm.json +++ b/Extension/bin/linux.clang.arm.json @@ -1,14 +1,13 @@ -{ - "defaults": [ - "-D__building_module(x)=0", - "-Dunix=1", - "-D__unix__=1", - "-D__linux__=1", - "-D__arm__=1", - "-D__ARM_32BIT_STATE=1", - "-D__PTRDIFF_TYPE__=int", - "-D__SIZE_TYPE__=unsigned int", - "-D__WCHAR_TYPE__=long int" - ], - "defaults_op": "merge" -} +{ + "defaults": [ + "-Dunix=1", + "-D__unix__=1", + "-D__linux__=1", + "-D__arm__=1", + "-D__ARM_32BIT_STATE=1", + "-D__PTRDIFF_TYPE__=int", + "-D__SIZE_TYPE__=unsigned int", + "-D__WCHAR_TYPE__=long int" + ], + "defaults_op": "merge" +} diff --git a/Extension/bin/linux.clang.arm64.json b/Extension/bin/linux.clang.arm64.json index 00589afb6..eebe976d4 100644 --- a/Extension/bin/linux.clang.arm64.json +++ b/Extension/bin/linux.clang.arm64.json @@ -1,14 +1,13 @@ -{ - "defaults": [ - "-D__building_module(x)=0", - "-Dunix=1", - "-D__unix__=1", - "-D__linux__=1", - "-D__aarch64__=1", - "-D__ARM_64BIT_STATE=1", - "-D__PTRDIFF_TYPE__=long int", - "-D__SIZE_TYPE__=long unsigned int", - "-D__WCHAR_TYPE__=int" - ], - "defaults_op": "merge" -} +{ + "defaults": [ + "-Dunix=1", + "-D__unix__=1", + "-D__linux__=1", + "-D__aarch64__=1", + "-D__ARM_64BIT_STATE=1", + "-D__PTRDIFF_TYPE__=long int", + "-D__SIZE_TYPE__=long unsigned int", + "-D__WCHAR_TYPE__=int" + ], + "defaults_op": "merge" +} diff --git a/Extension/bin/linux.clang.x64.json b/Extension/bin/linux.clang.x64.json index da855d4bd..383389821 100644 --- a/Extension/bin/linux.clang.x64.json +++ b/Extension/bin/linux.clang.x64.json @@ -1,14 +1,13 @@ -{ - "defaults": [ - "-D__building_module(x)=0", - "-Dunix=1", - "-D__unix__=1", - "-D__linux__=1", - "-D__x86_64=1", - "-D__x86_64__=1", - "-D__PTRDIFF_TYPE__=long int", - "-D__SIZE_TYPE__=long unsigned int", - "-D__WCHAR_TYPE__=int" - ], - "defaults_op": "merge" -} +{ + "defaults": [ + "-Dunix=1", + "-D__unix__=1", + "-D__linux__=1", + "-D__x86_64=1", + "-D__x86_64__=1", + "-D__PTRDIFF_TYPE__=long int", + "-D__SIZE_TYPE__=long unsigned int", + "-D__WCHAR_TYPE__=int" + ], + "defaults_op": "merge" +} diff --git a/Extension/bin/linux.clang.x86.json b/Extension/bin/linux.clang.x86.json index 4fb1eead0..2f4e27578 100644 --- a/Extension/bin/linux.clang.x86.json +++ b/Extension/bin/linux.clang.x86.json @@ -1,14 +1,13 @@ -{ - "defaults": [ - "-D__building_module(x)=0", - "-Dunix=1", - "-D__unix__=1", - "-D__linux__=1", - "-D__i386=1", - "-D__i386__=1", - "-D__PTRDIFF_TYPE__=int", - "-D__SIZE_TYPE__=unsigned int", - "-D__WCHAR_TYPE__=long int" - ], - "defaults_op": "merge" -} +{ + "defaults": [ + "-Dunix=1", + "-D__unix__=1", + "-D__linux__=1", + "-D__i386=1", + "-D__i386__=1", + "-D__PTRDIFF_TYPE__=int", + "-D__SIZE_TYPE__=unsigned int", + "-D__WCHAR_TYPE__=long int" + ], + "defaults_op": "merge" +} diff --git a/Extension/bin/macos.clang.arm.json b/Extension/bin/macos.clang.arm.json index 0ea0f569a..3c6484f3c 100644 --- a/Extension/bin/macos.clang.arm.json +++ b/Extension/bin/macos.clang.arm.json @@ -1,13 +1,12 @@ -{ - "defaults": [ - "-D__building_module(x)=0", - "-D__APPLE__=1", - "-D__MACH__=1", - "-D__arm__=1", - "-D__ARM_32BIT_STATE=1", - "-D__PTRDIFF_TYPE__=int", - "-D__SIZE_TYPE__=unsigned int", - "-D__WCHAR_TYPE__=long int" - ], - "defaults_op": "merge" -} +{ + "defaults": [ + "-D__APPLE__=1", + "-D__MACH__=1", + "-D__arm__=1", + "-D__ARM_32BIT_STATE=1", + "-D__PTRDIFF_TYPE__=int", + "-D__SIZE_TYPE__=unsigned int", + "-D__WCHAR_TYPE__=long int" + ], + "defaults_op": "merge" +} diff --git a/Extension/bin/macos.clang.arm64.json b/Extension/bin/macos.clang.arm64.json index 80f3c2975..63c6fe0e2 100644 --- a/Extension/bin/macos.clang.arm64.json +++ b/Extension/bin/macos.clang.arm64.json @@ -1,13 +1,12 @@ -{ - "defaults": [ - "-D__building_module(x)=0", - "-D__APPLE__=1", - "-D__MACH__=1", - "-D__aarch64__=1", - "-D__ARM_64BIT_STATE=1", - "-D__PTRDIFF_TYPE__=long int", - "-D__SIZE_TYPE__=long unsigned int", - "-D__WCHAR_TYPE__=int" - ], - "defaults_op": "merge" -} +{ + "defaults": [ + "-D__APPLE__=1", + "-D__MACH__=1", + "-D__aarch64__=1", + "-D__ARM_64BIT_STATE=1", + "-D__PTRDIFF_TYPE__=long int", + "-D__SIZE_TYPE__=long unsigned int", + "-D__WCHAR_TYPE__=int" + ], + "defaults_op": "merge" +} diff --git a/Extension/bin/macos.clang.x64.json b/Extension/bin/macos.clang.x64.json index 9aa1ba565..1a24ac74e 100644 --- a/Extension/bin/macos.clang.x64.json +++ b/Extension/bin/macos.clang.x64.json @@ -1,13 +1,12 @@ -{ - "defaults": [ - "-D__building_module(x)=0", - "-D__APPLE__=1", - "-D__MACH__=1", - "-D__x86_64=1", - "-D__x86_64__=1", - "-D__PTRDIFF_TYPE__=long int", - "-D__SIZE_TYPE__=long unsigned int", - "-D__WCHAR_TYPE__=int" - ], - "defaults_op": "merge" -} +{ + "defaults": [ + "-D__APPLE__=1", + "-D__MACH__=1", + "-D__x86_64=1", + "-D__x86_64__=1", + "-D__PTRDIFF_TYPE__=long int", + "-D__SIZE_TYPE__=long unsigned int", + "-D__WCHAR_TYPE__=int" + ], + "defaults_op": "merge" +} diff --git a/Extension/bin/macos.clang.x86.json b/Extension/bin/macos.clang.x86.json index a40718d33..173ae66b6 100644 --- a/Extension/bin/macos.clang.x86.json +++ b/Extension/bin/macos.clang.x86.json @@ -1,13 +1,12 @@ -{ - "defaults": [ - "-D__building_module(x)=0", - "-D__APPLE__=1", - "-D__MACH__=1", - "-D__i386=1", - "-D__i386__=1", - "-D__PTRDIFF_TYPE__=int", - "-D__SIZE_TYPE__=unsigned int", - "-D__WCHAR_TYPE__=long int" - ], - "defaults_op": "merge" -} +{ + "defaults": [ + "-D__APPLE__=1", + "-D__MACH__=1", + "-D__i386=1", + "-D__i386__=1", + "-D__PTRDIFF_TYPE__=int", + "-D__SIZE_TYPE__=unsigned int", + "-D__WCHAR_TYPE__=long int" + ], + "defaults_op": "merge" +} diff --git a/Extension/bin/windows.clang.arm.json b/Extension/bin/windows.clang.arm.json index 5f7397c87..2a62f646c 100644 --- a/Extension/bin/windows.clang.arm.json +++ b/Extension/bin/windows.clang.arm.json @@ -1,6 +1,5 @@ -{ - "defaults": [ - "-D__building_module(x)=0" - ], - "defaults_op": "merge" -} +{ + "defaults": [ + ], + "defaults_op": "merge" +} diff --git a/Extension/bin/windows.clang.arm64.json b/Extension/bin/windows.clang.arm64.json index 5f7397c87..2a62f646c 100644 --- a/Extension/bin/windows.clang.arm64.json +++ b/Extension/bin/windows.clang.arm64.json @@ -1,6 +1,5 @@ -{ - "defaults": [ - "-D__building_module(x)=0" - ], - "defaults_op": "merge" -} +{ + "defaults": [ + ], + "defaults_op": "merge" +} diff --git a/Extension/bin/windows.clang.x64.json b/Extension/bin/windows.clang.x64.json index 5f7397c87..2a62f646c 100644 --- a/Extension/bin/windows.clang.x64.json +++ b/Extension/bin/windows.clang.x64.json @@ -1,6 +1,5 @@ -{ - "defaults": [ - "-D__building_module(x)=0" - ], - "defaults_op": "merge" -} +{ + "defaults": [ + ], + "defaults_op": "merge" +} diff --git a/Extension/bin/windows.clang.x86.json b/Extension/bin/windows.clang.x86.json index 5f7397c87..2a62f646c 100644 --- a/Extension/bin/windows.clang.x86.json +++ b/Extension/bin/windows.clang.x86.json @@ -1,6 +1,5 @@ -{ - "defaults": [ - "-D__building_module(x)=0" - ], - "defaults_op": "merge" -} +{ + "defaults": [ + ], + "defaults_op": "merge" +} diff --git a/Extension/i18n/ita/src/LanguageServer/configurations.i18n.json b/Extension/i18n/ita/src/LanguageServer/configurations.i18n.json index c94128dc1..98cad1fc7 100644 --- a/Extension/i18n/ita/src/LanguageServer/configurations.i18n.json +++ b/Extension/i18n/ita/src/LanguageServer/configurations.i18n.json @@ -10,7 +10,7 @@ "unknown.properties.version": "È stato trovato un numero di versione sconosciuto in c_cpp_properties.json. Alcune funzionalità potrebbero non funzionare come previsto.", "update.properties.failed": "Il tentativo di aggiornamento di \"{0}\" non è riuscito. L'accesso in scrittura è disponibile?", "failed.to.parse.properties": "Non è stato possibile analizzare \"{0}\"", - "path.with.spaces": "Il percorso del compilatore con spazi e argomenti non è racchiuso tra virgolette doppie ({0}).", + "path.with.spaces": "Non è possibile trovare il percorso del compilatore contenente spazi. Se l'intenzione era includere argomenti del compilatore, racchiudi il percorso del compilatore tra doppie virgolette ({0})", "cannot.find": "Non è possibile trovare: {0}", "path.is.not.a.file": "Il percorso non è un file: {0}", "wrapped.with.quotes": "Non aggiungere virgolette aggiuntive intorno ai percorsi.", diff --git a/Extension/i18n/trk/package.i18n.json b/Extension/i18n/trk/package.i18n.json index 9b0406680..cd1ca7d8a 100644 --- a/Extension/i18n/trk/package.i18n.json +++ b/Extension/i18n/trk/package.i18n.json @@ -423,7 +423,7 @@ "c_cpp.walkthrough.set.up.title": "C++ Ortamınızı kurun", "c_cpp.walkthrough.activating.description": "C++ Ortamınızın kurulup kurulmadığını belirlemek için C++ uzantısını etkinleştirme.\nUzantı Etkinleştiriliyor...", "c_cpp.walkthrough.no.compilers.windows.description": "Makinenizde C++ uzantısını kullanmak için gerekli olan bir C++ derleyicisi bulamadık. Bir tane yüklemek için sağdaki talimatları izleyin, ardından aşağıdaki “Yeni Derleyicimi bul” seçeneğine tıklayın.\n[Yeni Derleyicimi bul](command:C_Cpp.RescanCompilers?%22walkthrough%22)", - "c_cpp.walkthrough.no.compilers.description": "Makinenizde C++ uzantısını kullanmak için gerekli olan bir C++ derleyicisi bulamadık. Sizin için bir derleyicinin kurulmasını sağlamak için “C++ Derleyicisi Kur”u seçin veya bir derleyiciyi kurmak için sağdaki yönergeleri izleyin ve ardından aşağıdaki “Yeni Derleyicimi Bul”a tıklayın.\n[Bir C++ Derleyicisi yükle](command:C_Cpp.RescanCompilers?%22walkthrough%22)\n[Yeni Derleyicimi bul](command:C_Cpp.RescanCompilers?%22walkthrough%22)", + "c_cpp.walkthrough.no.compilers.description": "Makinenizde C++ uzantısını kullanmak için gerekli olan bir C++ derleyicisi bulamadık. Sizin için bir derleyicinin kurulmasını sağlamak için “C++ Derleyicisi Kur”u seçin veya bir derleyiciyi kurmak için sağdaki yönergeleri izleyin ve ardından aşağıdaki “Yeni Derleyicimi Bul”a tıklayın.\n[Bir C++ Derleyicisi yükle](command:C_Cpp.InstallCompiler?%22walkthrough%22)\n[Yeni Derleyicimi bul](command:C_Cpp.RescanCompilers?%22walkthrough%22)", "c_cpp.walkthrough.compilers.found.description": "C++ uzantısı, bir C++ derleyicisiyle çalışır. Aşağıdaki düğmeyi tıklayarak makinenizde zaten bulunanlardan birini seçin.\n[Varsayılan Derleyicimi seç](command:C_Cpp.SelectIntelliSenseConfiguration?%22walkthrough%22)", "c_cpp.walkthrough.compilers.found.altText": "Varsayılan bir derleyici seçme hızlı seçimini ve kullanıcının makinesinde bulunan ve biri seçili olan derleyicilerin listesini gösteren resim.", "c_cpp.walkthrough.create.cpp.file.title": "C++ dosyası oluşturun", diff --git a/Extension/package.json b/Extension/package.json index 7ebbf3966..4f6c741b4 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.26.0-main", + "version": "1.26.1-main", "publisher": "ms-vscode", "icon": "LanguageCCPP_color_128x.png", "readme": "README.md", @@ -3662,11 +3662,6 @@ }, "default": [] }, - "type": { - "type": "string", - "description": "%c_cpp.debuggers.cppdbg.type.description%", - "default": "cppdbg" - }, "targetArchitecture": { "type": "string", "description": "%c_cpp.debuggers.targetArchitecture.description%", @@ -4611,11 +4606,6 @@ "description": "%c_cpp.debuggers.program.description%", "default": "${workspaceRoot}/a.out" }, - "type": { - "type": "string", - "description": "%c_cpp.debuggers.cppdbg.type.description%", - "default": "cppdbg" - }, "targetArchitecture": { "type": "string", "description": "%c_cpp.debuggers.targetArchitecture.description%", @@ -5426,11 +5416,6 @@ }, "default": [] }, - "type": { - "type": "string", - "description": "%c_cpp.debuggers.cppvsdbg.type.description%", - "default": "cppvsdbg" - }, "cwd": { "type": "string", "description": "%c_cpp.debuggers.cwd.description%", @@ -5640,11 +5625,6 @@ "processId" ], "properties": { - "type": { - "type": "string", - "description": "%c_cpp.debuggers.cppvsdbg.type.description%", - "default": "cppvsdbg" - }, "symbolSearchPath": { "type": "string", "description": "%c_cpp.debuggers.symbolSearchPath.description%", diff --git a/Extension/package.nls.json b/Extension/package.nls.json index bdafcfe89..1d3015361 100644 --- a/Extension/package.nls.json +++ b/Extension/package.nls.json @@ -866,8 +866,6 @@ "c_cpp.debuggers.ignoreFailures.description": "If true, failures from the command should be ignored. Default value is false.", "c_cpp.debuggers.program.description": "Full path to program executable.", "c_cpp.debuggers.args.description": "Command line arguments passed to the program.", - "c_cpp.debuggers.cppdbg.type.description": "The type of the engine. Must be \"cppdbg\".", - "c_cpp.debuggers.cppvsdbg.type.description": "The type of the engine. Must be \"cppvsdbg\".", "c_cpp.debuggers.targetArchitecture.description": "The architecture of the debuggee. This will automatically be detected unless this parameter is set. Allowed values are x86, arm, arm64, mips, x64, amd64, x86_64.", "c_cpp.debuggers.cwd.description": "The working directory of the target.", "c_cpp.debuggers.setupCommands.description": "One or more GDB/LLDB commands to execute in order to setup the underlying debugger. Example: \"setupCommands\": [ { \"text\": \"-enable-pretty-printing\", \"description\": \"Enable GDB pretty printing\", \"ignoreFailures\": true }].", @@ -939,12 +937,27 @@ "c_cpp.debuggers.deploySteps.copyFile.files.description": "Files to be copied. Supports path pattern.", "c_cpp.debuggers.deploySteps.copyFile.targetDir.description": "Target directory.", "c_cpp.debuggers.deploySteps.copyFile.recursive.description": "If true, copies folders recursively.", - "c_cpp.debuggers.deploySteps.copyFile.scpPath.description": "Optional full path to SCP. Assumes SCP is on PATH if not specified", - "c_cpp.debuggers.deploySteps.copyFile.rsyncPath.description": "Optional full path to rsync. Assumes rsync is on PATH if not specified", + "c_cpp.debuggers.deploySteps.copyFile.scpPath.description": { + "message": "Optional full path to SCP. Assumes SCP is on PATH if not specified.", + "comment": [ + "{Locked=\"SCP\"} {Locked=\"PATH\"}" + ] + }, + "c_cpp.debuggers.deploySteps.copyFile.rsyncPath.description": { + "message": "Optional full path to rsync. Assumes rsync is on PATH if not specified.", + "comment": [ + "{Locked=\"rsync\"} {Locked=\"PATH\"}" + ] + }, "c_cpp.debuggers.deploySteps.debug": "If true, skip when starting without debugging. If false, skip when starting debugging. If undefined, never skip.", "c_cpp.debuggers.deploySteps.ssh.description": "SSH command step.", "c_cpp.debuggers.deploySteps.ssh.command.description": "Command to be executed via SSH. The command after '-c' in SSH command.", - "c_cpp.debuggers.deploySteps.ssh.sshPath.description": "Optional full path to SSH. Assumes SSH is on PATH if not specified", + "c_cpp.debuggers.deploySteps.ssh.sshPath.description": { + "message": "Optional full path to SSH. Assumes SSH is on PATH if not specified.", + "comment": [ + "{Locked=\"SSH\"} {Locked=\"PATH\"}" + ] + }, "c_cpp.debuggers.deploySteps.continueOn.description": "An optional finish pattern in output. When this pattern is seen in the output, continue the deploy procedures regardless of whether this step returns.", "c_cpp.debuggers.deploySteps.shell.description": "Shell command step.", "c_cpp.debuggers.deploySteps.shell.command.description": "Shell command to be executed.", diff --git a/Extension/tools/OptionsSchema.json b/Extension/tools/OptionsSchema.json index 77cc7f2d3..1e9308503 100644 --- a/Extension/tools/OptionsSchema.json +++ b/Extension/tools/OptionsSchema.json @@ -614,11 +614,6 @@ }, "default": [] }, - "type": { - "type": "string", - "description": "%c_cpp.debuggers.cppdbg.type.description%", - "default": "cppdbg" - }, "targetArchitecture": { "type": "string", "description": "%c_cpp.debuggers.targetArchitecture.description%", @@ -847,11 +842,6 @@ "description": "%c_cpp.debuggers.program.description%", "default": "${workspaceRoot}/a.out" }, - "type": { - "type": "string", - "description": "%c_cpp.debuggers.cppdbg.type.description%", - "default": "cppdbg" - }, "targetArchitecture": { "type": "string", "description": "%c_cpp.debuggers.targetArchitecture.description%", @@ -984,11 +974,6 @@ }, "default": [] }, - "type": { - "type": "string", - "description": "%c_cpp.debuggers.cppvsdbg.type.description%", - "default": "cppvsdbg" - }, "cwd": { "type": "string", "description": "%c_cpp.debuggers.cwd.description%", @@ -1120,11 +1105,6 @@ "processId" ], "properties": { - "type": { - "type": "string", - "description": "%c_cpp.debuggers.cppvsdbg.type.description%", - "default": "cppvsdbg" - }, "symbolSearchPath": { "type": "string", "description": "%c_cpp.debuggers.symbolSearchPath.description%", @@ -1199,4 +1179,4 @@ } } } -} +} \ No newline at end of file