diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..9d11bbf --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +prefix=/home/ashishexe/.npm-global diff --git a/.vscode/launch.json b/.vscode/launch.json index 09a694a..f19b45f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,6 +1,26 @@ { "version": "0.2.0", "configurations": [ + { + "name": "(gdb) Attach", + "type": "cppdbg", + "request": "attach", + "program": "enter program name, for example ${workspaceFolder}/a.out", + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Set Disassembly Flavor to Intel", + "text": "-gdb-set disassembly-flavor intel", + "ignoreFailures": true + } + ] + }, + { "name": "Launch Puppeteer Script", "type": "node", @@ -22,6 +42,18 @@ "${workspaceFolder}/dist/**/*.js" ], "preLaunchTask": "${defaultBuildTask}" + }, + { + "name": "Extension Tests", + "type": "extensionHost", + "request": "launch", + "runtimeExecutable": "${execPath}", + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}", + "--extensionTestsPath=${workspaceFolder}/out/test/suite/index" + ], + "outFiles": ["${workspaceFolder}/out/test/**/*.js"], + "preLaunchTask": "npm: compile" } ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 1b17b75..9b5b97b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -104,5 +104,6 @@ "variant": "cpp" }, "C_Cpp.errorSquiggles": "disabled", - "cmake.sourceDirectory": "/home/ashishexe/Documents/GitHub/cph-vscode-extension-leetcode/node_modules/bare-fs" + "cmake.sourceDirectory": "/home/ashishexe/Documents/GitHub/cph-vscode-extension-leetcode/node_modules/bare-fs", + "debug.console": "integratedTerminal" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index b1fe8af..a5c917e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -69,7 +69,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Modifications #4 ### Fixed -- updated the logic for fetchTestCases as some leetcode problem page has input and output under
 class so we have to use 
 as the selector for puppeteer on the other hand some leetcode problems(old problems) has input and output under div.example-block under  tags so I have updated the logic of puppeteer to fetch test cases for all the problems in leetcode no matter new or old
+- updated the logic for fetchTestCases as some leetcode problem page has input and output under pre class so we have to use pre as the selector for puppeteer on the other hand some leetcode problems(old problems) has input and output under div.example-block under pre tags so I have updated the logic of puppeteer to fetch test cases for all the problems in leetcode no matter new or old
 (this thing can change anytime if any time leetcode decided to change the class under which they write input and output)
 
 ### Added 
diff --git a/README.md b/README.md
index 2bda04b..0448c42 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,5 @@
 # LeetCode Helper Extension
-
-
- LeetCode Extension -
- +demonstration video explaining all the features of the extension and how to use them - https://www.youtube.com/watch?v=KXRde3BNKEU ## Table of Contents - [Overview](#overview) @@ -73,9 +69,9 @@ This extension contributes the following settings: - Some edge cases might not be handled correctly. - for testing C++ you may need to parse the variables from input files manually depending on the data type inside the run_test_case function (please refer to this page for better understanding - https://stackoverflow.com/questions/9551014/reading-parsing-text-file-input-c) -- Limited support for languages other than Python and C++. +- Limited support for languages(only python and cpp) - All test are not checked in one go you need to check for each test case individually - +- a clear falied messege might not show if your test case fails ## Release Notes ### 1.0.0 diff --git a/dist/test_cases/solution.py b/dist/test_cases/solution.py index d2ba0e4..50ccbff 100644 --- a/dist/test_cases/solution.py +++ b/dist/test_cases/solution.py @@ -26,4 +26,4 @@ def reverse_words(s: str) -> str: # Example usage # Provide the test case number and function name # Uncomment the below line for testing -run_test_case(1, reverse_words) +run_test_case(2, reverse_words) diff --git a/package.json b/package.json index c00dac5..7ca684f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,12 @@ { "name": "leetcodehelperbyashish", "displayName": "LeetCode Helper by Ashish", + "publisher": "leetcodehelper", "description": "The LeetCode Helper Extension assists developers by fetching test cases and running code in Python or C++ directly within VS Code.", + "repository": { + "type": "git", + "url": "https://github.com/ashishexe/cph-vscode-extension-leetcode" + }, "version": "0.0.1", "engines": { "vscode": "^1.96.0" diff --git a/src/# Code Citations.md b/src/# Code Citations.md deleted file mode 100644 index 595486e..0000000 --- a/src/# Code Citations.md +++ /dev/null @@ -1,61 +0,0 @@ -# Code Citations - -## License: unknown -https://github.com/digitaltoad/dotfiles/tree/e0f95e68a2b20463ade9b19fb876f23a409825ac/vscode/extensions/bajdzis.vscode-database-2.2.0/webViews/views/connect.html - -``` -"> - - - - - - - - - - - - - - - - - -