From a0425a58f03693dfd0243d78c1477b36d207a9b6 Mon Sep 17 00:00:00 2001 From: Paula Camargo Date: Wed, 24 Jul 2024 10:02:34 -0700 Subject: [PATCH 1/2] Update test for the error --- src/extension/debugger/inlineValue/pythonInlineValueProvider.ts | 2 +- src/test/pythonFiles/testVarTypes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension/debugger/inlineValue/pythonInlineValueProvider.ts b/src/extension/debugger/inlineValue/pythonInlineValueProvider.ts index 21399fe9..aac0d2e9 100644 --- a/src/extension/debugger/inlineValue/pythonInlineValueProvider.ts +++ b/src/extension/debugger/inlineValue/pythonInlineValueProvider.ts @@ -123,7 +123,7 @@ function removeCharsOutsideBraces(code: string): string { while ((tempMatch = insideBracesRegex.exec(content)) !== null) { result += tempMatch[0]; } - const processedContent = result || content; + const processedContent = result; return match[0] + processedContent + match[0]; }); diff --git a/src/test/pythonFiles/testVarTypes.py b/src/test/pythonFiles/testVarTypes.py index 6544ebed..bef79c8a 100644 --- a/src/test/pythonFiles/testVarTypes.py +++ b/src/test/pythonFiles/testVarTypes.py @@ -1,5 +1,5 @@ var1, var2 = 7, 6 -var3 = "hola" +var3 = "var1" var4 = {"a": 1, "b": 2} var5 = [1, 2, 3] var6 = var1 + var2 From 05dc7232fa991690197dbd02ac4a7eab49f0f9fa Mon Sep 17 00:00:00 2001 From: Paula Camargo Date: Wed, 24 Jul 2024 11:55:45 -0700 Subject: [PATCH 2/2] fix @microsoft/dynamicproto-js error --- webpack.config.js | 1 - 1 file changed, 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index cac8f20b..5f815e0f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -38,7 +38,6 @@ const extensionConfig = { '@opentelemetry/instrumentation': 'commonjs @opentelemetry/instrumentation', // ignored because we don't ship instrumentation '@azure/opentelemetry-instrumentation-azure-sdk': 'commonjs @azure/opentelemetry-instrumentation-azure-sdk', // ignored because we don't ship instrumentation '@azure/functions-core': '@azure/functions-core', // ignored because we don't ship instrumentation - '@microsoft/dynamicproto-js': '@microsoft/dynamicproto-js', // ignored because we don't ship instrumentation }, resolve: { // support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader