Skip to content

Commit

Permalink
Merge pull request #9949 from microsoft/main
Browse files Browse the repository at this point in the history
  • Loading branch information
Colengms authored Oct 4, 2022
2 parents 2855600 + cb5b588 commit 119a06f
Show file tree
Hide file tree
Showing 34 changed files with 1,521 additions and 1,041 deletions.
14 changes: 13 additions & 1 deletion Extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# C/C++ for Visual Studio Code Changelog

## Version 1.13.2: October 5, 2022
### Enhancements
* Enable the inlay hint settings to be set per-workspace folder. [#9782](https://github.com/microsoft/vscode-cpptools/issues/9782)
* Switch from RapidJSON to VS's internal JSON parser.

### Bug Fixes
* Fix "final" breaking formatting. [#6638](https://github.com/microsoft/vscode-cpptools/issues/6638)
* Fix or reduce the occurrence of wordexp getting stuck. [#9688](https://github.com/microsoft/vscode-cpptools/issues/9688)
* Fix IntelliSense crash with range-v3 `ranges::views::addressof`. [#9870](https://github.com/microsoft/vscode-cpptools/issues/9870)
* Fix slow compiler querying. [#9882](https://github.com/microsoft/vscode-cpptools/issues/9882)
* Fix clang-tidy errors related to `__SSE__` defines when gcc is used. [#9898](https://github.com/microsoft/vscode-cpptools/issues/9898)
* Fix issue with parsing SSH configurations that could cause the extension to fail to activate. [#9933](https://github.com/microsoft/vscode-cpptools/pull/9933)

## Version 1.13.1: September 27, 2022
### Enhancements
* Enable hiding the SSH Targets view with the `C_Cpp.sshTargetsView` setting. [#9836](https://github.com/microsoft/vscode-cpptools/issues/9836)
Expand All @@ -13,7 +26,6 @@
* Add diagnostic changes for the issue with wordexp getting stuck. [#9688](https://github.com/microsoft/vscode-cpptools/issues/9688)
* Fix `-std=` being passed to clang-tidy in certain cases . [#9776](https://github.com/microsoft/vscode-cpptools/issues/9776)
* Fix debugger visualization for ArrayItem elements more than 1000. [#9801](https://github.com/microsoft/vscode-cpptools/issues/9801)
* Fix IntelliSense crash with range-v3 `ranges::views::addressof`. [#9870](https://github.com/microsoft/vscode-cpptools/issues/9870)
* Handle `-fexperimental-library` clang argument. [#9888](https://github.com/microsoft/vscode-cpptools/issues/9888)
* Fix compiler querying with multiple -arch. [#9894](https://github.com/microsoft/vscode-cpptools/issues/9894)
* Fix "Failed to read file C:\ProgramData\ssh\ssh_config." in logging . [#9899](https://github.com/microsoft/vscode-cpptools/issues/9899)
Expand Down
927 changes: 750 additions & 177 deletions Extension/ThirdPartyNotices.txt

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion Extension/bin/messages/cs/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3468,5 +3468,12 @@
"při zpracování modulu %sq1 byl zjištěn neočekávaný požadavek IFC.",
"podmínka selhala na řádku %d v %s1: %sq2",
"atomické omezení závisí na sobě",
"Funkce noreturn má návratový typ, který není void."
"Funkce noreturn má návratový typ, který není void.",
"oprava byla provedena vyřazením parametru %sq (v relativním indexu %d).",
"při rekonstrukci entity se zjistil neplatný název identifikátoru IFC %sq.",
"neplatný identifikátor IFC s názvem %sq byl během obnovy entity přeskočen.",
"neplatná hodnota řazení modulu %sq",
"šablona funkce načtená z modulu IFC byla nesprávně parsována jako %nd.",
"nepovedlo se načíst odkaz na entitu IFC v modulu %sq.",
"Řazení indexu IFC = %d1, hodnota = %d2"
]
9 changes: 8 additions & 1 deletion Extension/bin/messages/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3468,5 +3468,12 @@
"Unerwartete IFC-Anforderung beim Verarbeiten des Moduls %sq1",
"Bedingungsfehler in Zeile %d in %s1: %sq2",
"Die atomische Einschränkung hängt von sich selbst ab",
"Die Funktion \"noreturn\" weist den Rückgabetyp \"nicht void\" auf."
"Die Funktion \"noreturn\" weist den Rückgabetyp \"nicht void\" auf.",
"Eine Korrektur wurde vorgenommen, indem der Parameter %sq (beim relativen Index %d) weggelassen wurde",
"Ungültiger IFC-Bezeichnername %sq bei der Rekonstruktion der Entität gefunden",
"Ungültiger IFC-Bezeichnername %sq bei der Rekonstruktion der Entität übersprungen",
"Modul %sq ungültiger Sortierwert",
"Eine aus einem IFC-Modul geladene Funktionsvorlage wurde fälschlicherweise als %nd analysiert",
"Fehler beim Laden eines IFC-Entitätsverweises im Modul \"%sq\"",
"IFC-Indexsortierung = %d1, Wert = %d2"
]
9 changes: 8 additions & 1 deletion Extension/bin/messages/es/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3468,5 +3468,12 @@
"se encontró un requisito IFC inesperado al procesar el módulo %sq1",
"error de condición en la línea %d en %s1: %sq2",
"la restricción atómica depende de sí misma",
"La función \"noreturn\" tiene un tipo de valor devuelto distinto de nulo"
"La función \"noreturn\" tiene un tipo de valor devuelto distinto de nulo",
"se ha quitado el parámetro %sq (en el índice relativo %d) para realizar una corrección",
"se encontró un nombre de identificador IFC no válido %sq durante la reconstrucción de entidades",
"se omitió un nombre de identificador IFC no válido %sq durante la reconstrucción de entidades",
"el módulo %sq es un valor de ordenación no válido",
"una plantilla de función cargada desde un módulo IFC se analizó incorrectamente como %nd",
"no se pudo cargar una referencia de entidad IFC en el módulo %sq",
"Ordenación de índice IFC = %d1, valor = %d2"
]
9 changes: 8 additions & 1 deletion Extension/bin/messages/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3468,5 +3468,12 @@
"une exigence IFC inattendue s’est produite lors du traitement du module %sq1.",
"échec de la condition à la ligne %d dans %s1 : %sq2",
"la contrainte atomique dépend d’elle-même.",
"La fonction 'noreturn' a un type de retour non vide"
"La fonction 'noreturn' a un type de retour non vide",
"une correction a été effectuée en supprimant le paramètre %sq (au %d d’index relatif)",
"nom d’identificateur IFC non valide %sq rencontré lors de la reconstruction de l’entité",
"identificateur IFC non valide nommé %sq ignoré lors de la reconstruction de l’entité",
"le module %sq valeur de tri non valide",
"un modèle de fonction chargé à partir d’un module IFC a été analysé de manière incorrecte en tant que %nd",
"échec du chargement d’une référence d’entité IFC dans le module %sq",
"Tri d’index IFC = %d1, valeur = %d2"
]
9 changes: 8 additions & 1 deletion Extension/bin/messages/it/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3468,5 +3468,12 @@
"Durante l'elaborazione del modulo %sq1 è stato riscontrato un requisito IFC imprevisto.",
"condizione fallita alla riga %d in %s1: %sq2",
"il vincolo atomico dipende da se stesso",
"La funzione 'noreturn' ha un tipo restituito non void"
"La funzione 'noreturn' ha un tipo restituito non void",
"è stata apportata una correzione eliminando il parametro %sq (in corrispondenza dell'indice relativo %d)",
"nome identificatore IFC %sq non valido rilevato durante la ricostruzione dell'entità",
"nome identificatore IFC %sq non valido ignorato durante la ricostruzione dell'entità",
"il modulo %sq valore di ordinamento non valido",
"un modello di funzione caricato da un modulo IFC è stato analizzato erroneamente come %nd",
"non è stato possibile caricare un riferimento all'entità IFC nel modulo %sq",
"Ordinamento indice IFC = %d1, valore = %d2"
]
9 changes: 8 additions & 1 deletion Extension/bin/messages/ja/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3468,5 +3468,12 @@
"モジュール %sq1 の処理中に予期しない IFC 要件が発生しました",
"条件が行 %d で失敗しました (%s1: %sq2)",
"アトミック制約は、それ自体に依存します",
"'noreturn' 関数に void 以外の戻り値の型があります"
"'noreturn' 関数に void 以外の戻り値の型があります",
"パラメーター %sq (相対インデックス %d) を削除することで修正が行われています",
"エンティティの再構築中に無効な IFC 識別子名 %sq が見つかりました",
"エンティティの再構築中に %sq と命名された無効な IFC 識別子がスキップされました",
"モジュール %sq は無効な並べ替え値です",
"IFC モジュールから読み込まれた関数テンプレートが誤って %nd として解析されました",
"モジュール %sq で IFC エンティティ参照を読み込めませんでした",
"IFC インデックスの並べ替え = %d1、値 = %d2"
]
9 changes: 8 additions & 1 deletion Extension/bin/messages/ko/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3468,5 +3468,12 @@
"모듈 %sq1을(를) 처리하는 동안 예기치 않은 IFC 요구 사항이 발생했습니다.",
"%d행(%s1)에서 조건 실패: %sq2",
"원자성 제약 조건은 자체에 따라 달라집니다.",
"'noreturn' 함수에 void가 아닌 반환 형식이 있습니다."
"'noreturn' 함수에 void가 아닌 반환 형식이 있습니다.",
"매개 변수 %sq(상대 인덱스 %d)를 삭제하여 수정했습니다.",
"엔터티를 재구성하는 동안 %sq라는 잘못된 IFC 식별자를 발견했습니다.",
"엔티티를 재구성하는 동안 %sq라는 잘못된 IFC 식별자를 건너뛰었습니다.",
"모듈 %sq 잘못된 정렬 값",
"IFC 모듈에서 로드된 함수 템플릿이 %nd(으)로 잘못 구문 분석되었습니다.",
"모듈 %sq에서 IFC 엔터티 참조를 로드하지 못했습니다.",
"IFC 인덱스 정렬 = %d1, 값 = %d2"
]
9 changes: 8 additions & 1 deletion Extension/bin/messages/pl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3468,5 +3468,12 @@
"napotkano nieoczekiwane wymaganie IFC podczas przetwarzania modułu %sq1",
"warunek nie powiódł się w wierszu %d w %s1: %sq2",
"niepodzielne ograniczenie zależy od samego siebie",
"Funkcja \"noreturn\" ma zwracany typ inny niż void"
"Funkcja \"noreturn\" ma zwracany typ inny niż void",
"wprowadzono poprawkę przez usunięcie parametru %sq (względny indeks %d)",
"napotkano nieprawidłową nazwę identyfikatora IFC %sq podczas odbudowy jednostki",
"podczas odbudowy jednostki pominięto nieprawidłowy identyfikator IFC o nazwie %sq",
"nieprawidłowa wartość sortowania modułu %sq",
"szablon funkcji załadowany z modułu IFC został niepoprawnie przeanalizowany jako %nd",
"nie można załadować odwołania do jednostki IFC w module %sq",
"Sortowanie indeksu IFC = %d1, wartość = %d2"
]
9 changes: 8 additions & 1 deletion Extension/bin/messages/pt-br/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3468,5 +3468,12 @@
"um requisito IFC inesperado foi encontrado durante o processamento do módulo %sq1",
"condição falhou na linha %d em %s1: %sq2",
"restrição atômica depende de si mesma",
"A função 'noreturn' tem um tipo de retorno não nulo"
"A função 'noreturn' tem um tipo de retorno não nulo",
"foi feita uma correção eliminando o parâmetro %sq (no índice relativo %d)",
"nome de identificador IFC inválido %sq encontrado durante a reconstrução da entidade",
"identificador IFC inválido chamado %sq ignorado durante a reconstrução da entidade",
"valor de classificação inválido do módulo %sq",
"um modelo de função carregado de um módulo IFC foi analisado incorretamente como %nd",
"falha ao carregar uma referência de entidade IFC no módulo %sq",
"Classificação do índice IFC = %d1, valor = %d2"
]
9 changes: 8 additions & 1 deletion Extension/bin/messages/ru/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3468,5 +3468,12 @@
"При обработке модуля %sq1 было обнаружено неожиданное требование IFC",
"сбой условия в строке %d в %s1: %sq2",
"атомарное ограничение зависит от самого себя",
"Функция \"noreturn\" имеет не недействительный тип возврата"
"Функция \"noreturn\" имеет не недействительный тип возврата",
"исправление внесено путем удаления параметра %sq (по относительному индексу %d)",
"обнаружено недопустимое имя идентификатора IFC %sq во время реконструкции сущности",
"недопустимое имя идентификатора IFC %sq пропущено во время реконструкции сущности",
"недопустимое значение сортировки модуля %sq",
"шаблон функции, загруженный из модуля IFC, был неправильно проанализирован как %nd",
"не удалось загрузить ссылку на объект IFC в модуль %sq",
"Сортировка индекса IFC = %d1, значение = %d2"
]
9 changes: 8 additions & 1 deletion Extension/bin/messages/tr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3468,5 +3468,12 @@
"%sq1 modülü işlenirken beklenmeyen bir IFC gereksinimiyle karşılaşıldı",
"koşul, %d numaralı satırda (%s1 içinde) başarısız oldu: %sq2",
"atomik kısıtlama kendisine bağımlı",
"'noreturn' işlevi geçersiz olmayan bir dönüş türüne sahiptir"
"'noreturn' işlevi geçersiz olmayan bir dönüş türüne sahiptir",
"%sq parametresi kaldırılarak bir düzeltme yapıldı (%d göreli dizininde)",
"varlık yeniden oluşturma işlemi sırasında geçersiz %sq IFC tanımlayıcı adı ile karşılaşıldı",
"varlık yeniden oluşturma işlemi sırasında geçersiz %sq IFC tanımlayıcı adı atlandı",
"%sq modülü geçersiz sıralama değeri",
"bir IFC modülünden yüklenen bir fonksiyon şablonu hatalı bir şekilde %nd olarak ayrıştırıldı",
"%sq modülünde bir IFC varlık referansı yüklenemedi",
"IFC dizin sıralaması = %d1, değer = %d2"
]
11 changes: 9 additions & 2 deletions Extension/bin/messages/zh-cn/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3464,9 +3464,16 @@
"尚未实现 “requires” 表达式的变量名压缩",
"因为“不可用”属性",
"已尝试使用索引将一个元素从 IFC 分区 %sq 构造到 IFC 分区 %sq",
null,
"分区 %sq 将其条目大小指定为 %d1,正确的大小为 %d2",
"处理模块 %sq1 时遇到意外的 IFC 要求",
"条件失败,行 %d,%s1: %sq2",
"原子约束依赖于自身",
"“noreturn”函数具有非 void 返回类型"
"“noreturn”函数具有非 void 返回类型",
"通过删除参数 %sq (在相对索引 %d 处)进行了更正",
"实体重建期间遇到了无效的 IFC 标识符名称 %sq",
"实体重建期间跳过了名为 %sq 的无效 IFC 标识符",
"模块 %sq 排序值无效",
"从 IFC 模块加载的函数模板被错误地分析为 %nd",
"未能在模块 %sq 中加载 IFC 实体引用",
"IFC 索引排序 = %d1,值 = %d2"
]
9 changes: 8 additions & 1 deletion Extension/bin/messages/zh-tw/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3468,5 +3468,12 @@
"處理模組 %sq1 時發現未預期的 IFC 需求",
"第 %d 行 (在 %s1 中) 條件失敗: %sq2",
"不可部分完成限制式依賴其本身",
"'noreturn' 函數具有非 void 的返回類型"
"'noreturn' 函數具有非 void 的返回類型",
"已置放參數 %sq (相對索引 %d) 進行修正",
"實體重建期間發現無效 IFC 識別碼名稱 %sq",
"實體重建期間略過名稱為 %sq 的無效 IFC 識別碼",
"模組 %sq 無效排序值",
"從 IFC 模組載入的函數範本不正確地剖析為 %nd",
"無法在模組 %sq 中載入 IFC 實體參考",
"IFC 索引排序 = %d1,值 = %d2"
]
16 changes: 8 additions & 8 deletions Extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "cpptools",
"displayName": "C/C++",
"description": "C/C++ IntelliSense, debugging, and code browsing.",
"version": "1.13.1-main",
"version": "1.13.2-main",
"publisher": "ms-vscode",
"icon": "LanguageCCPP_color_128x.png",
"readme": "README.md",
Expand Down Expand Up @@ -2234,43 +2234,43 @@
"type": "boolean",
"default": false,
"markdownDescription": "%c_cpp.configuration.inlayHints.autoDeclarationTypes.enabled.markdownDescription%",
"scope": "application"
"scope": "resource"
},
"C_Cpp.inlayHints.autoDeclarationTypes.showOnLeft": {
"type": "boolean",
"default": false,
"markdownDescription": "%c_cpp.configuration.inlayHints.autoDeclarationTypes.showOnLeft.markdownDescription%",
"scope": "application"
"scope": "resource"
},
"C_Cpp.inlayHints.parameterNames.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": "%c_cpp.configuration.inlayHints.parameterNames.enabled.markdownDescription%",
"scope": "application"
"scope": "resource"
},
"C_Cpp.inlayHints.parameterNames.suppressWhenArgumentContainsName": {
"type": "boolean",
"default": true,
"markdownDescription": "%c_cpp.configuration.inlayHints.parameterNames.suppressWhenArgumentContainsName.markdownDescription%",
"scope": "application"
"scope": "resource"
},
"C_Cpp.inlayHints.parameterNames.hideLeadingUnderscores": {
"type": "boolean",
"default": true,
"markdownDescription": "%c_cpp.configuration.inlayHints.parameterNames.hideLeadingUnderscores.markdownDescription%",
"scope": "application"
"scope": "resource"
},
"C_Cpp.inlayHints.referenceOperator.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": "%c_cpp.configuration.inlayHints.referenceOperator.enabled.markdownDescription%",
"scope": "application"
"scope": "resource"
},
"C_Cpp.inlayHints.referenceOperator.showSpace": {
"type": "boolean",
"default": false,
"markdownDescription": "%c_cpp.configuration.inlayHints.referenceOperator.showSpace.markdownDescription%",
"scope": "application"
"scope": "resource"
},
"C_Cpp.loggingLevel": {
"type": "string",
Expand Down
14 changes: 9 additions & 5 deletions Extension/src/Debugger/configurationProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ class WindowsConfigurationProvider extends DefaultConfigurationProvider {
"ignoreFailures": true
},
{
"description": "${localize("enable.intel.disassembly.flavor", "Set Disassembly Flavor to {0}", "Intel").replace(/\"/g, "\\\"")}",
"description": "${localize("enable.intel.disassembly.flavor", "Set Disassembly Flavor to {0}", "Intel").replace(/\"/g, "\\\"")}",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
Expand Down Expand Up @@ -1210,7 +1210,7 @@ class LinuxConfigurationProvider extends DefaultConfigurationProvider {
"ignoreFailures": true
},
{
"description": "${localize("enable.intel.disassembly.flavor", "Set Disassembly Flavor to {0}", "Intel").replace(/\"/g, "\\\"")}",
"description": "${localize("enable.intel.disassembly.flavor", "Set Disassembly Flavor to {0}", "Intel").replace(/\"/g, "\\\"")}",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
Expand Down Expand Up @@ -1253,10 +1253,14 @@ export class ConfigurationSnippetProvider implements vscode.CompletionItemProvid
// 2. If there are items, the Add Configuration button will append it to the start of the configuration array. This function inserts a comma at the end of the snippet.
public provideCompletionItems(document: vscode.TextDocument, position: vscode.Position, token: vscode.CancellationToken, context: vscode.CompletionContext): Thenable<vscode.CompletionList> {
let items: vscode.CompletionItem[] = this.snippets;

const launch: any = jsonc.parse(document.getText());
let hasLaunchConfigs: boolean = false;
try {
const launch: any = jsonc.parse(document.getText());
hasLaunchConfigs = launch.configurations.length !== 0;
} catch {
}
// Check to see if the array is empty, so any additional inserted snippets will need commas.
if (launch.configurations.length !== 0) {
if (hasLaunchConfigs) {
items = [];

// Make a copy of each snippet since we are adding a comma to the end of the insertText.
Expand Down
Loading

0 comments on commit 119a06f

Please sign in to comment.