Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions news/2 Fixes/5496.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Add dev flag to poetry installer.
(thanks [Yan Pashkovsky](https://github.com/Yanpas))
2 changes: 1 addition & 1 deletion src/client/common/installer/poetryInstaller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class PoetryInstaller extends ModuleInstaller implements IModuleInstaller
protected async getExecutionInfo(moduleName: string, resource?: Uri): Promise<ExecutionInfo> {
const execPath = this.configurationService.getSettings(resource).poetryPath;
return {
args: ['add', moduleName],
args: ['add', '--dev', moduleName],
execPath
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/common/installer/poetryInstaller.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,6 @@ suite('Module Installer - Poetry', () => {

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

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