File tree 2 files changed +17
-4
lines changed
2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,21 @@ An extension for managing Python dependencies. At the moment it only supports py
4
4
5
5
![ 2021-02-28 16 40 01] ( https://user-images.githubusercontent.com/667029/109424385-b2d87780-79e3-11eb-85e9-6931063f4210.gif )
6
6
7
+
8
+ ## ❤️ Contributing
9
+
10
+ - Fork and clone repository:
11
+
12
+ ``` shell
13
+ [email protected] :
< your-fork
> /python-dependencies-vscode.git
14
+ cd python-dependencies-vscode
15
+ ```
16
+
17
+ - Run extension using VS Code' s "Run and Debug" menu, select `Run Extension` option
18
+
19
+
20
+
21
+
7
22
## Roadmap
8
23
9
24
- [ ] Add support for updating dependencies
Original file line number Diff line number Diff line change @@ -51,11 +51,9 @@ export const findDependencies = (text: string) => {
51
51
if ( line . startsWith ( "[" ) ) {
52
52
lastSection = line . replace ( / ^ \[ / , "" ) . replace ( / \] $ / , "" ) ;
53
53
} else {
54
+ const poetryDependenciesRe = new RegExp ( "^tool\.poetry\..*dependencies$" )
54
55
if (
55
- [
56
- "tool.poetry.dependencies" ,
57
- "tool.poetry.dev-dependencies" ,
58
- ] . includes ( lastSection )
56
+ poetryDependenciesRe . test ( lastSection )
59
57
) {
60
58
const dep = parseDependency ( line , index ) ;
61
59
You can’t perform that action at this time.
0 commit comments