Skip to content

Commit 4614cca

Browse files
YanpasKartik Raj
authored andcommitted
Add dev flag to poetry installer (microsoft#5495)
* poetry dev * add news * Update news entry
1 parent f590f9c commit 4614cca

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

news/2 Fixes/5496.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Add dev flag to poetry installer.
2+
(thanks [Yan Pashkovsky](https://github.com/Yanpas))

src/client/common/installer/poetryInstaller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class PoetryInstaller extends ModuleInstaller implements IModuleInstaller
6161
protected async getExecutionInfo(moduleName: string, resource?: Uri): Promise<ExecutionInfo> {
6262
const execPath = this.configurationService.getSettings(resource).poetryPath;
6363
return {
64-
args: ['add', moduleName],
64+
args: ['add', '--dev', moduleName],
6565
execPath
6666
};
6767
}

src/test/common/installer/poetryInstaller.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,6 @@ suite('Module Installer - Poetry', () => {
120120

121121
const info = await poetryInstaller.getExecutionInfo('something', uri);
122122

123-
assert.deepEqual(info, { args: ['add', 'something'], execPath: 'poetry path' });
123+
assert.deepEqual(info, { args: ['add', '--dev', 'something'], execPath: 'poetry path' });
124124
});
125125
});

0 commit comments

Comments
 (0)