Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion Extension/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"editor.defaultFormatter": "vscode.json-language-features",
"editor.tabSize": 4,
"editor.detectIndentation": true,
"files.insertFinalNewline": false
"files.insertFinalNewline": true
},
"[jsonc]": {
"editor.formatOnSave": true,
Expand Down
2 changes: 1 addition & 1 deletion Extension/.yarn-bootstrap/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Extension/.yarn-bootstrap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"devDependencies": {
"yarn": "1.22.22"
}
}
}
2 changes: 1 addition & 1 deletion Extension/bin/messages/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3748,4 +3748,4 @@
"%nd wurde zuvor ohne explizite Enumerationsbasis deklariert",
"Fehlender „typename“ entspricht hier nicht dem Standard.",
"Die abgekürzte Funktionsvorlagensyntax entspricht nicht dem Standard für Deduktionsleitfäden."
]
]
2 changes: 1 addition & 1 deletion Extension/bin/messages/es/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3748,4 +3748,4 @@
"%nd se declaró previamente sin una base explícita de enumeración",
"falta 'typename' no estándar aquí",
"La sintaxis abreviada de las plantillas de funciones no es estándar para las guías de deducción"
]
]
2 changes: 1 addition & 1 deletion Extension/c_cpp_properties.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -300,4 +300,4 @@
"version"
],
"additionalProperties": false
}
}
12 changes: 12 additions & 0 deletions Extension/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,18 @@ gulp.task("translations-import", (done) => {
let id = language.transifexId || language.id;
return gulp.src(path.join(options.location, id, translationProjectName, `${translationExtensionName}.xlf`))
.pipe(nls.prepareJsonFiles())
.pipe(es.map((file, cb) => {
// vscode-nls-dev emits .i18n.json files without a trailing newline. Append one so the
// checked-in files match the repo convention (files.insertFinalNewline for [json]) and
// don't produce churn the next time they're opened and saved in VS Code.
if (file.isBuffer()) {
const contents = file.contents;
if (contents.length > 0 && contents[contents.length - 1] !== 0x0A) {
file.contents = Buffer.concat([contents, Buffer.from("\n")]);
}
}
cb(null, file);
}))
.pipe(gulp.dest(path.join("./i18n", language.folderName)))
.pipe(es.wait()); // This is required or it gives `this.pipeTo.end is not a function`.
}))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
"reinstall.extension.text7": "然后通过 VS Code 中的市场 UI 重新安装。",
"reinstall.extension.text8": "如果 VS Code 无法部署扩展的正确版本,则可以 {0} 并使用 VS Code 中市场 UI 内 \"...\" 菜单下的 \"从 VSIX... 安装\" 选项安装系统的正确 VSIX。",
"download.vsix.link.title": "已从 VS Code 市场网站下载"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
"c_cpp_properties.schema.json.definitions.env": "可以使用 `${变量}` 或 `${env:变量}` 语法在此文件中的任何位置重复使用的自定义变量。",
"c_cpp_properties.schema.json.definitions.version": "配置文件的版本。此属性由扩展托管。请勿更改它。",
"c_cpp_properties.schema.json.definitions.enableConfigurationSquiggles": "控制扩展是否将报告在 `c_cpp_properties.json` 中检测到的错误。"
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/package.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -460,4 +460,4 @@
"c_cpp.configuration.refactoring.includeHeader.never.description": "从不包含头文件。",
"c_cpp.languageModelTools.configuration.displayName": "C/C++ 配置",
"c_cpp.languageModelTools.configuration.userDescription": "活动 C 或 C++ 文件的配置,例如语言标准版本和目标平台。"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
// Do not edit this file. It is machine generated.
{
"ignoring.lines.in.envfile": "忽略 {0} {1} 中不可分析的行: "
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"attach.to.process": "附加到进程",
"select.process.attach": "选择要附加到的进程",
"process.not.selected": "未选择进程。"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"no.process.list": "传输附加无法获取进程列表。",
"failed.to.make.gdb.connection": "无法建立 GDB 连接:“{0}”。",
"failed.to.parse.processes": "无法分析进程:“{0}”。"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
"path.to.pipe.program": "管道程序的完整路径,如 {0}",
"enable.pretty.printing": "为 {0} 启用整齐打印",
"enable.intel.disassembly.flavor": "将反汇编风格设置为 {0}"
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/src/Debugger/configurations.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
"launch.bash.windows": "使用 {0} 在 Windows 上的 Bash 中启动。",
"bash.on.windows.attach": "Windows 上的 Bash 附加",
"remote.attach.bash.windows": "使用 {0} 附加到在 Windows 上的 Bash 中运行的远程进程。"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"debugger.unsupported.properties": "具有以下属性的启动配置无法直接在终端中运行: {0}",
"debugger.fallback.message": "程序输出将改为显示在调试控制台中。",
"debugger.fallback.message2": "若要取消显示此警告,请在启动配置中将 'ignoreRunWithoutDebuggingWarnings' 属性设置为 true。"
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/src/Debugger/extension.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
"yes": "是",
"no": "否",
"ssh.target.delete.confirmation": "是否确定要永久删除“{0}”?"
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/src/Debugger/nativeAttach.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"cancel.processList.spawn": "已取消“{0}”。",
"error.processList.spawn": "“{0}”已退出,代码为“{1}”。",
"failed.processList.spawn": "未能生成“{0}”。"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
// Do not edit this file. It is machine generated.
{
"no.terminal.emulator": "找不到终端仿真器。请将 $TERMINAL 环境变量设置为你选择的终端仿真器,或安装以下程序之一: x-terminal-emulator、gnome-terminal、konsole、xterm。"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
{
"generate.copilot.description": "生成 Copilot 摘要",
"copilot.disclaimer": "AI 生成的内容可能不正确。"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"expands.to": "扩展到:",
"inline.macro": "内联宏",
"inline.macro.not.available": "内联宏在此位置不可用。"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
{
"invalid.identifier.for.rename": "为“重命名符号”操作提供的标识符无效。",
"unable.to.locate.selected.symbol": "找不到所选符号的定义。"
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/src/LanguageServer/client.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@
"handle.extract.new.function": "NewFunction",
"handle.extract.error": "未能提取到函数: {0}",
"invalid.edit": "未能提取到函数。生成了无效的编辑:“{0}”"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"clear.this.problem": "清除此 {0} 问题",
"fix.this.problem": "修复此 {0} 问题",
"show.documentation.for": "显示 {0} 文档"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"multiple.paths.not.allowed": "不允许使用多个路径。",
"multiple.paths.should.be.separate.entries": "多个路径应是数组中的单独条目。",
"paths.are.not.directories": "路径不是目录: {0}"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
// Do not edit this file. It is machine generated.
{
"copilot.relatedfilesprovider.error": "检索结果时出错。原因: {0}"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"build.finished.with.error": "生成已完成,但出现错误。",
"build.finished.with.warnings": "生成已完成,但收到警告。",
"build.finished.successfully": "生成已成功完成。"
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/src/LanguageServer/devcmd.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
"dev.env.for": "{1} 的 {0} 开发人员环境",
"default.env": "{0} 的默认环境",
"host.target": "主机 = {0},目标 = {1}"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
"copilot.hover.excluded": "包含此符号的定义或声明的文件已排除在 Copilot 的使用范围之外。",
"copilot.hover.unavailable.symbol": "Copilot 摘要不可用于此符号。",
"copilot.hover.error": "生成 Copilot 摘要时出错。"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
// Do not edit this file. It is machine generated.
{
"duplicate.multiline.patterns": "检测到重复的多行注释模式。"
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/src/LanguageServer/lmTool.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
{
"copilot.projectcontext.error": "检索项目上下文时出错。原因: {0}",
"copilot.cppcontext.error": "检索 #cpp 上下文时出错。"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
// Do not edit this file. It is machine generated.
{
"c.cpp.symbolscope.separator": "{0},{1}"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
"files.confirmed": "已确认 {0} 个文件,共 {1} 个文件。{2}",
"c.cpp.peek.references": "C/C++ 速览引用",
"some.references.may.be.missing": "[警告] 某些引用可能丢失,因为在 {0} 启动时,工作区分析不完整。"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
// Do not edit this file. It is machine generated.
{
"goto.reference": "转到引用"
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/src/LanguageServer/settings.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
// Do not edit this file. It is machine generated.
{
"editorconfig.default.behavior": "代码格式设置使用 .editorconfig 中的设置,而不是 .clang-format 中的设置。有关详细信息,请参阅文档以了解 'C_Cpp.formatting' 设置的 'default' 值。"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
// Do not edit this file. It is machine generated.
{
"c.cpp.configurations": "C/C++ 配置"
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/src/LanguageServer/ui.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@
"none": "无",
"disable.configuration.provider": "禁用活动配置提供程序(如果适用)。",
"select.workspace": "选择工作区文件夹…"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"active.ssh.target.selection.cancelled": "已取消活动 SSH 目标选择。",
"add.new.ssh.target": "{0} 添加新的 SSH 目标...",
"select.ssh.target": "选择 SSH 目标"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
// Do not edit this file. It is machine generated.
{
"ssh.target.active.description": "[活动]"
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/src/SSH/commandInteractors.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
// Do not edit this file. It is machine generated.
{
"failed.to.connect": "未能连接到 {0}"
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/src/SSH/commands.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"local.forward.local.missing": "localForwards 中需要 \"port\" 或 \"localSocket\"",
"local.forward.remote.conflict": "在 localForwards 中,不能同时使用 \"host\" 或 \"hostPort\" 指定 \"remoteSocket\"",
"local.forward.remote.missing": "localForwards 中需要 \"host\" 和 \"hostPort\" 或 \"remoteSocket\""
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/src/SSH/sshCommandRunner.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
"ssh.continuing.command.canceled": "已取消任务 \"{0}\",但基础命令可能不会终止。请手动进行检查。",
"ssh.process.failed": "\"{0}\" 进程失败: {1}",
"ssh.wrote.data.to.terminal": "\"{0}\" 已将数据写入终端: \"{1}\"。"
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/src/SSH/sshHosts.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"failed.to.parse.SSH.config": "无法分析 SSH 配置文件 {0}: {1}",
"failed.to.read.file": "未能读取文件 {0}。",
"failed.to.write.file": "无法写入文件 {0}。"
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/src/common.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
"warning.debugging.not.tested": "警告: 尚未为此平台测试调试。",
"reload.workspace.for.changes": "重新加载工作区以使设置更改生效。",
"reload.string": "重新加载"
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/src/cppTools.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
// Do not edit this file. It is machine generated.
{
"provider.registered": "已注册自定义配置提供程序“{0}”"
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/src/expand.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"env.var.not.found": "找不到环境变量 {0}",
"commands.not.supported": "字符串: {0} 不支持命令。",
"exception.executing.command": "执行字符串: {1} {2} 的命令 {0} 时出现异常。"
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/src/logger.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"c.cpp.ssh.channel": "{0}: SSH",
"c.cpp.debug.protocol": "C/C++ 调试协议",
"c.cpp.warnings": "C/C++ 配置警告"
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/src/main.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"ignore.button": "忽略",
"vsix.platform.incompatible": "已安装的 C/C++ 扩展与系统不匹配。",
"vsix.platform.mismatching": "已安装的 C/C++ 扩展与系统兼容,但与系统不匹配。"
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/src/nativeStrings.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -419,4 +419,4 @@
"help_allow_missing_lsp_config": "即使指定的 --lsp-config 文件不存在,也允许服务器启动。",
"initialize_failed_during_engine_setup": "引擎设置期间初始化失败。",
"important_label": "重要说明:"
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/src/platform.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"unknown.os.platform": "OS 平台未知",
"missing.plist.productversion": "无法从 SystemVersion.plist 获取 ProduceVersion",
"missing.darwin.systemversion.file": "未能在 {0} 中找到 SystemVersion.plist。"
}
}
2 changes: 1 addition & 1 deletion Extension/i18n/chs/ui/settings.html.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@
"recursiveIncludes.priority.description": "递归包含路径的优先级。如果设置为 {0},则将在系统包含路径之前搜索递归包含路径。如果设置为 {1},则将在系统包含路径之后搜索递归包含路径。",
"recursiveIncludes.order": "递归包括: 顺序",
"recursiveIncludes.order.description": "搜索递归包含路径下子目录的顺序。"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
"walkthrough.linux.build.and.debug.active.file": "构建和调试活动文件",
"walkthrough.linux.after.running": "首次运行和调试 C++ 文件后,你将注意到项目 {0} 的文件夹内有两个新文件: {1} 和 {2}。",
"walkthrough.linux.for.more.complex": "对于更复杂的生成和调试场景,可以在 {0} 和 {1} 中自定义生成任务和调试配置。例如,如果在从命令行生成时通常会将参数传递给编译器,则可以使用 {3} 属性以在 {2} 中指定这些参数。同样,可以定义要传递给程序的参数,以在 {4} 中进行调试。"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
"walkthrough.mac.build.and.debug.active.file": "构建和调试活动文件",
"walkthrough.mac.after.running": "首次运行和调试 C++ 文件后,你将注意到项目 {0} 的文件夹内有两个新文件: {1} 和 {2}。",
"walkthrough.mac.for.more.complex": "对于更复杂的生成和调试场景,可以在 {0} 和 {1} 中自定义生成任务和调试配置。例如,如果在从命令行生成时通常会将参数传递给编译器,则可以使用 {3} 属性以在 {2} 中指定这些参数。同样,可以定义要传递给程序的参数,以在 {4} 中进行调试。"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
"walkthrough.windows.build.and.debug.active.file": "构建和调试活动文件",
"walkthrough.windows.after.running": "首次运行和调试 C++ 文件后,你将注意到项目 {0} 的文件夹内有两个新文件: {1} 和 {2}。",
"walkthrough.windows.for.more.complex": "对于更复杂的生成和调试场景,可以在 {0} 和 {1} 中自定义生成任务和调试配置。例如,如果在从命令行生成时通常会将参数传递给编译器,则可以使用 {3} 属性以在 {2} 中指定这些参数。同样,可以定义要传递给程序的参数,以在 {4} 中进行调试。"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
"walkthrough.close.vscode": "关闭 VS Code 的当前实例。",
"walkthrough.open.command.prompt": "通过在 Windows“开始”菜单中键入 {1} 来打开 {0},然后选择 {2}。",
"walkthrough.windows.press.f5": "在命令提示符中键入 {0},然后按 Enter。这应会重新启动同一工作区中的 VS Code,并将你带回此演练。"
}
}
Loading
Loading