diff --git a/CHANGELOG.md b/CHANGELOG.md index 13e4da6..11b976e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## version 2.17.6 + +- 最新的题通过后没有百分比运行信息 + ## version 2.17.5 - 修复 c++ 调试 断点问题 diff --git a/package.json b/package.json index 6a2921a..a3c021d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-leetcode-problem-rating", "displayName": "LeetCode", "description": "%main.description%", - "version": "2.17.5", + "version": "2.17.6", "author": "ccagml", "publisher": "ccagml", "license": "MIT", diff --git a/src/rpc/factory/api/submitApi.ts b/src/rpc/factory/api/submitApi.ts index 4aed67c..50225cf 100644 --- a/src/rpc/factory/api/submitApi.ts +++ b/src/rpc/factory/api/submitApi.ts @@ -101,7 +101,7 @@ class SubmitApi extends ApiBase { result.runtime_percentile.toFixed(2), result.lang ); - else return reply.warn("Failed to get runtime percentile."); + if (result.memory && result.memory_percentile) that.printLine( log_obj, @@ -111,7 +111,6 @@ class SubmitApi extends ApiBase { result.lang, result.memory ); - else return reply.warn("Failed to get memory percentile."); })(); } else { result.testcase = result.testcase.slice(1, -1).replace(/\\n/g, "\n");