Skip to content

Commit f072392

Browse files
authored
Merge branch 'main' into bobbrow/enableLSTests
2 parents 13357d0 + b3110d8 commit f072392

35 files changed

Lines changed: 1270 additions & 35 deletions

Extension/i18n/chs/c_cpp_properties.schema.json.i18n.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.limitSymbolsToIncludedHeaders": "设为 `true` 以仅处理直接或间接包含为标头的文件,设为 `false` 则处理指定包含路径下的所有文件。",
2323
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.databaseFilename": "所生成的符号数据库的路径。如果指定了相对路径,则它将相对于工作区的默认存储位置。",
2424
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.path": "用于索引和分析工作区符号的路径列表(供“转到定义”、“查找所有引用”等使用)。默认情况下,在这些路径上进行搜索为递归搜索。指定 `*` 以指示非递归搜索。例如,`${workspaceFolder}` 将搜索所有子目录,而 `${workspaceFolder}/*` 将不进行搜索。",
25-
"c_cpp_properties.schema.json.definitions.configurations.items.properties.recursiveIncludes.properties.reduce": "设置为 `always` 可始终将提供给 IntelliSense 的递归包含路径数减少到仅限当前由 #include 语句引用的路径。这需要首先分析文件以确定包含哪些标头。设置为 `never` 可将所有递归包含路径提供给 IntelliSense。当涉及到大量递归包含路径时,减少递归包含路径的数量可能会提高 IntelliSense 性能。如果不减少递归包含路径的数量,则可以通过避免需要分析文件以确定要提供的包含路径来提高 IntelliSense 性能。`default` 值目前会减少提供给 IntelliSense 的递归包含路径数。",
2625
"c_cpp_properties.schema.json.definitions.configurations.items.properties.recursiveIncludes.properties.priority": "递归包含路径的优先级。如果设置为 `beforeSystemIncludes`,则会在系统包含路径之前搜索递归包含路径。如果设置为 `afterSystemIncludes` ,则会在系统包含路径后搜索递归包含路径。`beforeSystemIncludes` 将更密切地反映编译器的搜索顺序,而 `afterSystemIncludes` 则可能导致性能提升。",
2726
"c_cpp_properties.schema.json.definitions.configurations.items.properties.recursiveIncludes.properties.order": "搜索递归包含的子目录的顺序。",
2827
"c_cpp_properties.schema.json.definitions.configurations.items.properties.customConfigurationVariables": "可通过命令`${cpptools:activeConfigCustomVariable}` 查询的自定义变量,用于 `launch.json` 或 `tasks.json`. 中的输入变量。",

Extension/i18n/chs/package.i18n.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"c_cpp.configuration.codeAnalysis.clangTidy.headerFilter.markdownDescription": "与要从中输出诊断的标头名称匹配的 POSIX 扩展正则表达式 (ERE)。始终显示来自每个翻译单元的主文件的诊断。支持 `${workspaceFolder}` 变量(如果不存在 `.clang-tidy` 文件,则该变量将用作默认回退值)。如果此选项不是 `null` (空),则将替代 `.clang-tidy` 文件中的 `HeaderFilterRegex` 选项(如果有)。",
8686
"c_cpp.configuration.codeAnalysis.clangTidy.args.markdownDescription": "要传递给 `clang-tidy` 的其他命令行参数。这些优先于等效的 `C_Cpp.codeAnalysis.clangTidy.*` 设置。",
8787
"c_cpp.configuration.codeAnalysis.clangTidy.useBuildPath.markdownDescription": "如果设置了 `true` 和 `compileCommands`,则 `-p=<build-path>` 参数将传递给 `clang-tidy`,而不是在 `--` 之后传递生成参数。如果未设置环境变量以便可以找到系统包含项,则此操作可能不起作用。",
88-
"c_cpp.configuration.codeAnalysis.clangTidy.checks.enabled.markdownDescription": "已启用的 `clang-tidy` 检查列表。这些值将追加到 `.clang-tidy` 文件中的 `Checks` 或 `#C_Cpp.codeAnalysis.clangTidy.config#` (如果有)。除非显式禁用,否则始终使用默认检查 `clang-analyzer-core.*`。",
88+
"c_cpp.configuration.codeAnalysis.clangTidy.checks.enabled.markdownDescription": "已启用的 `clang-tidy` 检查列表。这些值将追加到 `.clang-tidy` 文件中的 `Checks` 或 `#C_Cpp.codeAnalysis.clangTidy.config#` (如果有)。除非显式禁用,否则将始终启用默认检查 `clang-analyzer-core.*`。",
8989
"c_cpp.configuration.codeAnalysis.clangTidy.checks.disabled.markdownDescription": "已禁用的 `clang-tidy` 检查列表。该值将追加到 `.clang-tidy` 文件中的 `Checks` 或 `#C_Cpp.codeAnalysis.clangTidy.config#` (如果有)。",
9090
"c_cpp.configuration.formatting.description": "配置格式设置引擎。",
9191
"c_cpp.configuration.formatting.clangFormat.markdownDescription": "`clang-format` 将用于格式代码。",

Extension/i18n/chs/src/nativeStrings.i18n.json

Lines changed: 97 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,5 +319,101 @@
319319
"file_not_found_in_path2": "在 compile_commands.json 文件中找不到 \"{0}\"。此文件将改用文件夹“{1}”中的 c_cpp_properties.json 中包含的 \"includePath\"",
320320
"copilot_hover_link": "生成 Copilot 摘要",
321321
"browse_path_not_found": "无法为不存在的文件夹 {0} 中的文件编制索引",
322-
"license_terms": "C/C++ 扩展只能用于 Microsoft Visual Studio、Visual Studio for Mac、Visual Studio Code、Azure DevOps、Team Foundation Server 以及后续的 Microsoft 产品和服务,以开发和测试您的应用程序。"
322+
"license_terms": "C/C++ 扩展只能用于 Microsoft Visual Studio、Visual Studio for Mac、Visual Studio Code、Azure DevOps、Team Foundation Server 以及后续的 Microsoft 产品和服务,以开发和测试您的应用程序。",
323+
"help_title": "Microsoft C++ 语言服务器",
324+
"help_usage": "使用情况: {0} [选项]",
325+
"help_options_header": "选项:",
326+
"help_help": "显示此帮助消息并退出。",
327+
"help_version": "显示版本信息并退出。",
328+
"help_accept_eula": "永久接受最终用户许可协议(EULA)。",
329+
"help_stderr": "不将 stderr 重定向到 /dev/null (对调试有用)。",
330+
"help_login": "启动交互式登录(需要 GitHub Copilot 订阅)。",
331+
"help_force_login": "即使已完成身份验证,也强制启动登录流程。",
332+
"help_allow_plaintext": "如果安全密钥链不可用,允许以明文存储凭据。",
333+
"help_log_dir": "指定日志文件的目录(默认值: 系统临时目录)。",
334+
"help_log_level": "将日志详细级别从 0 (仅错误)设置为 9 (详细)。",
335+
"help_lsp_config": "将参数指定为绝对路径,或相对于工作区根目录或其 .github 文件夹的路径。",
336+
"help_disable_telemetry": "禁用发送遥测数据。",
337+
"auth_device_flow_prompt": "若要通过 GitHub 进行身份验证,请复制代码 {0},然后访问 {1}。正在等待授权...",
338+
"auth_timed_out": "等待授权超时。",
339+
"auth_success": "已成功通过 GitHub 身份验证。",
340+
"auth_save_failed": "GitHub 身份验证成功,但无法保存令牌。",
341+
"auth_keyring_error": "Keyring 错误: {0}",
342+
"auth_keyring_locked": "keyring 集合已锁定。请解锁或重启 gnome-keyring-daemon。",
343+
"auth_keyring_unavailable": "没有可用的 keyring 服务。安装并启动 gnome-keyring: sudo apt install gnome-keyring",
344+
"auth_try_plaintext": "或通过传递 --login --allow-plaintext-secret-storage 允许明文存储。",
345+
"auth_expired": "设备代码已过期。请重试。",
346+
"auth_denied": "用户拒绝了授权。",
347+
"auth_unexpected_error": "轮询期间发生意外错误: {0}",
348+
"auth_login_failed": "GitHub 登录失败。尝试从命令行使用 --login 运行以登录。",
349+
"auth_eula_required": "必须接受 EULA 才能继续。请使用 --accept-eula 运行。",
350+
"auth_already_authenticated": "已通过 GitHub 身份验证。使用 --force-login 重新进行身份验证。",
351+
"config_unsupported_version": "初始化失败: 配置版本不受支持。仅支持版本 1。",
352+
"config_file_not_found": "初始化失败: 未找到配置文件“{0}”。",
353+
"config_parse_failed": "初始化失败: 无法解析配置文件“{0}”。请验证 JSON 格式。错误: {1}",
354+
"config_repo_path_invalid": "初始化失败: \"repositoryPath\" 未配置或无效。",
355+
"config_missing_source": "初始化失败: 必须配置 \"compileCommands\"\"cppProperties\"",
356+
"config_dual_source": "初始化失败: 不能同时配置 \"compileCommands\"\"cppProperties\"",
357+
"config_compile_commands_not_found": "初始化失败: 未找到 \"compileCommands\" 路径:“{0}”。",
358+
"config_cpp_properties_not_found": "初始化失败: 未找到 \"cppProperties\" 路径:“{0}”。",
359+
"config_cpp_properties_parse_failed": "初始化失败: 无法解析 \"cppProperties\" 指定的文件:“{0}”。请验证 JSON 格式。错误: {1}",
360+
"config_cpp_properties_schema_invalid": "初始化失败: 无法从 \"cppProperties\" 文件读取配置:“{0}”。请验证架构。",
361+
"config_no_configurations": "初始化失败:“{0}”不包含有效的 \"configurations\" 数组。",
362+
"config_configuration_not_found": "初始化失败: 在 \"cppProperties\" 文件中找不到配置“{0}”:“{1}”。",
363+
"config_paths_cache_missing": "初始化失败: 缺少 LSP 配置路径缓存。",
364+
"curl_not_found": "未找到 libcurl ({0})。身份验证和遥测需要 libcurl。",
365+
"curl_install_macos": "macOS 默认应已提供 libcurl。如果缺失,请通过以下命令安装: brew install curl",
366+
"curl_install_linux": "安装 libcurl: sudo apt install libcurl4 (Debian/Ubuntu)或 sudo dnf install libcurl (Fedora/RHEL)。",
367+
"curl_symbols_missing": "已加载 libcurl,但缺少必需的符号。这可能表示 libcurl 版本太旧或不兼容。没有兼容的 libcurl,语言服务器无法运行。",
368+
"keytar_not_found": "未找到 libsecret-1.so.0 ({0})。安全凭据存储需要 libsecret。安装 libsecret: sudo apt install libsecret-1-0 (Debian/Ubuntu)或 sudo dnf install libsecret (Fedora/RHEL)。",
369+
"keytar_symbols_missing": "已加载 libsecret,但缺少必需的符号。没有兼容的 libsecret,语言服务器无法运行。",
370+
"telemetry_disable_failed": "禁用遥测失败。",
371+
"lsp_method_not_found": "未找到方法: {0}",
372+
"intellisense_same_canonical_path": "无法为与现有文件具有相同规范化路径的文件处理 IntelliSense。URI: {0},规范化路径: {1}",
373+
"status_initializing": "正在初始化",
374+
"status_initializing_with_n_of_m": "正在初始化({0}/{1})",
375+
"status_initializing_with_n_of_m_and_text": "正在初始化({0}/{1}): {2}",
376+
"status_initializing_with_text": "正在初始化 {0}",
377+
"status_initializing_projects": "正在初始化项目",
378+
"status_initializing_projects_with_n_of_m": "正在初始化项目({0}/{1})",
379+
"status_initializing_projects_with_n_of_m_and_text": "正在初始化项目({0}/{1}): {2}",
380+
"status_initializing_projects_with_text": "正在初始化项目 {0}",
381+
"status_checking_for_outdated_files": "正在检查过期文件",
382+
"status_checking_for_outdated_files_with_n_of_m": "正在检查过期文件({0}/{1})",
383+
"status_checking_for_outdated_files_with_n_of_m_and_text": "正在检查过期文件({0}/{1}): {2}",
384+
"status_checking_for_outdated_files_with_text": "正在检查过期文件 {0}",
385+
"status_parsing_files": "正在解析文件",
386+
"status_parsing_files_with_n_of_m": "正在解析文件({0}/{1})",
387+
"status_parsing_files_with_n_of_m_and_text": "正在解析文件({0}/{1}): {2}",
388+
"status_parsing_files_with_text": "正在解析文件 {0}",
389+
"status_parsing_includes": "正在解析包含的文件",
390+
"status_parsing_includes_with_n_of_m": "正在解析包含的文件({0}/{1})",
391+
"status_parsing_includes_with_n_of_m_and_text": "正在解析包含的文件({0}/{1}): {2}",
392+
"status_parsing_includes_with_text": "正在解析包含的文件 {0}",
393+
"status_scanning_includes": "正在扫描 #includes 以查找更多文件",
394+
"status_scanning_includes_with_n_of_m": "正在扫描 #includes 以查找更多文件({0}/{1})",
395+
"status_scanning_includes_with_n_of_m_and_text": "正在扫描 #includes 以查找更多文件({0}/{1}): {2}",
396+
"status_scanning_includes_with_text": "正在扫描 #includes 以查找更多文件 {0} {1}",
397+
"status_updating_external_dependencies": "就绪(正在更新外部依赖项)",
398+
"status_updating_external_dependencies_with_n_of_m": "就绪(正在更新外部依赖项)({0}/{1})",
399+
"status_updating_external_dependencies_with_n_of_m_and_text": "就绪(正在更新外部依赖项)({0}/{1}): {2}",
400+
"status_updating_external_dependencies_with_text": "就绪(正在更新外部依赖项){0}",
401+
"status_optimizing_database": "就绪(正在优化数据库)",
402+
"status_optimizing_database_with_n_of_m": "就绪(正在优化数据库)({0}/{1})",
403+
"status_optimizing_database_with_n_of_m_and_text": "就绪(正在优化数据库)({0}/{1}): {2}",
404+
"status_optimizing_database_with_text": "就绪(正在优化数据库){0}",
405+
"status_creating_indexes": "正在创建索引",
406+
"status_creating_indexes_with_n_of_m": "正在创建索引({0}/{1})",
407+
"status_creating_indexes_with_n_of_m_and_text": "正在创建索引({0}/{1}): {2}",
408+
"status_creating_indexes_with_text": "正在创建索引 {0}",
409+
"status_evaluating_file": "正在评估",
410+
"status_evaluating_file_with_n_of_m": "正在计算({0}/{1})",
411+
"status_evaluating_file_with_n_of_m_and_text": "正在计算({0}/{1}): {2}",
412+
"status_evaluating_file_with_text": "正在计算 {0}",
413+
"status_indexing_files": "正在为文件编制索引",
414+
"status_indexing_files_with_n_of_m": "正在为文件编制索引({0} of {1})",
415+
"status_indexing_files_with_n_of_m_and_text": "正在为文件编制索引({0}/{1}): {2}",
416+
"status_indexing_files_with_text": "正在为文件编制索引 {0}",
417+
"help_allow_missing_lsp_config": "即使指定的 --lsp-config 文件不存在,也允许服务器启动。",
418+
"initialize_failed_during_engine_setup": "引擎设置期间初始化失败。"
323419
}

Extension/i18n/cht/c_cpp_properties.schema.json.i18n.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.limitSymbolsToIncludedHeaders": "設為 `true`,就會只處理直接或間接以標頭形式包含的檔案。設為 `false`,則會處理位於指定 include 路徑下的所有檔案。",
2323
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.databaseFilename": "產生的符號資料庫路徑。如果指定了相對路徑,就會是相對於工作區預設儲存位置的路徑。",
2424
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.path": "用來為工作區符號進行索引編製與剖析的路徑清單 (供 [移至定義]、[尋找所有參考] 等使用)。根據預設,會以遞迴方式搜尋這些路徑。指定 `*` 表示非遞迴搜尋。例如,`${workspaceFolder}` 將在所有子目錄中搜尋,`${workspaceFolder}/*` 則不會。",
25-
"c_cpp_properties.schema.json.definitions.configurations.items.properties.recursiveIncludes.properties.reduce": "設定為 `always`,可使 IntelliSense 始終僅提供目前由 #include 陳述式參考的遞迴包含路徑。這需要先剖析檔案,以確定包含哪些標頭。設定為 `never` 以將所有遞迴包含路徑提供給 IntelliSense。當涉及非常大量的遞迴包含路徑時,減少遞迴包含路徑數目可能會改善 IntelliSense 的效能。不減少遞迴包含路徑的數量,可避免需要剖析檔案以決定要提供哪些包含路徑,從而 IntelliSense 效能。目前的 `default` 值會減少 IntelliSense 提供的遞迴包含路徑數量。",
2625
"c_cpp_properties.schema.json.definitions.configurations.items.properties.recursiveIncludes.properties.priority": "遞迴包含路徑的優先順序。如果設定為 `beforeSystemIncludes`,則會在系統包含路徑之前搜尋遞迴包含路徑。如果設定為 `afterSystemIncludes`,系統會在包含路徑之後搜尋遞迴包含路徑。`beforeSystemIncludes` 會更密切地反映編譯器的搜尋順序,而 `afterSystemIncludes` 可能會改善效能。",
2726
"c_cpp_properties.schema.json.definitions.configurations.items.properties.recursiveIncludes.properties.order": "搜尋遞迴包含之子目錄的順序。",
2827
"c_cpp_properties.schema.json.definitions.configurations.items.properties.customConfigurationVariables": "可透過命令 `${cpptools:activeConfigCustomVariable}` 查詢的自訂變數,用於 `launch.json` 或 `tasks.json` 的輸入變數。",

Extension/i18n/cht/package.i18n.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"c_cpp.configuration.codeAnalysis.clangTidy.headerFilter.markdownDescription": "符合輸出診斷來源之標頭名稱的 POSIX 擴充規則運算式 (ERE)。來自每個編譯單位之主要檔案的診斷將一律顯示。支援 `${workspaceFolder}` 變數 (如果沒有 `.clang-tidy` 檔案,則作為預設後援值)。若此選項並非 `null` (空白),則會覆寫 `.clang-tidy` 檔案中的 `HeaderFilterRegex` 選項 (如果有的話)。",
8686
"c_cpp.configuration.codeAnalysis.clangTidy.args.markdownDescription": "要傳遞給 `clang-tidy` 的其他命令列引數。這些命令列引數會比對等的 `C_Cpp.codeAnalysis.clangTidy.*` 設定優先考慮。",
8787
"c_cpp.configuration.codeAnalysis.clangTidy.useBuildPath.markdownDescription": "如果設定了 `true` 和 `compileCommands`,則 `-p=<build-path>` 引數會傳遞至 `clang-tidy`,而非在 `--` 之後傳遞組建引數。若未設定環境變數以找到系統包含的環境變數,可能無法運作。",
88-
"c_cpp.configuration.codeAnalysis.clangTidy.checks.enabled.markdownDescription": "已啟用的 `clang-tidy` 檢查清單。值會附加到 `.clang-tidy` 檔案中的 `Checks` 或 `#C_Cpp.codeAnalysis.clangTidy.config#` (如果有的話)。除非明確地停用,否則一律使用預設檢查 `clang-analyzer-core.*`。",
88+
"c_cpp.configuration.codeAnalysis.clangTidy.checks.enabled.markdownDescription": "已啟用的 `clang-tidy` 檢查清單。這些值會附加至 `.clang-tidy` 檔案中的 `Checks` 或 `#C_Cpp.codeAnalysis.clangTidy.config#` (如果有的話)。除非明確停用,否則一律使用預設檢查 `clang-analyzer-core.*`。",
8989
"c_cpp.configuration.codeAnalysis.clangTidy.checks.disabled.markdownDescription": "已停用的 `clang-tidy` 檢查清單。值會附加到 `.clang-tidy` 檔案中的 `Checks` 或 `#C_Cpp.codeAnalysis.clangTidy.config#` (如果有的話)。",
9090
"c_cpp.configuration.formatting.description": "選擇格式設定引擎。",
9191
"c_cpp.configuration.formatting.clangFormat.markdownDescription": "將使用 `clang-format` 來格式化程式碼。",

0 commit comments

Comments
 (0)