From d259e1dde9b65b71f00dcfe56dfff767d4f72034 Mon Sep 17 00:00:00 2001 From: Paula Date: Wed, 24 Jul 2024 12:59:05 -0700 Subject: [PATCH] Fix some minor bugs (#405) * Update test for the error * fix @microsoft/dynamicproto-js error --- src/extension/debugger/inlineValue/pythonInlineValueProvider.ts | 2 +- src/test/pythonFiles/testVarTypes.py | 2 +- webpack.config.js | 1 - 3 files changed, 2 insertions(+), 3 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 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