Skip to content

Commit e2c2541

Browse files
committed
fixes on comments
1 parent 9603427 commit e2c2541

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

src/managers/poetry/main.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { traceInfo } from '../../common/logging';
44
import { showErrorMessage } from '../../common/window.apis';
55
import { getPythonApi } from '../../features/pythonApi';
66
import { NativePythonFinder } from '../common/nativePythonFinder';
7-
import { compareVersions } from '../common/utils';
87
import { PoetryManager } from './poetryManager';
98
import { PoetryPackageManager } from './poetryPackageManager';
109
import { getPoetry, getPoetryVersion } from './poetryUtils';
@@ -25,14 +24,9 @@ export async function registerPoetryFeatures(
2524
return;
2625
}
2726
traceInfo(
28-
'The `shell` command is not available by default in Poetry versions 2.0.0 and above. Therefore all shell activation will be handled by calling `source <path-to-poetry-executable>`. If you face any problems with shell activation, please file an issue at https://github.com/microsoft/vscode-python-environments/issues to help us improve this implementation.',
27+
'The `shell` command is not available by default in Poetry versions 2.0.0 and above. Therefore all shell activation will be handled by calling `source <path-to-activate>`. If you face any problems with shell activation, please file an issue at https://github.com/microsoft/vscode-python-environments/issues to help us improve this implementation. Note the current version of Poetry is {0}.',
28+
version,
2929
);
30-
if (version && compareVersions(version, '2.0.0') >= 0) {
31-
traceInfo('Note: The current version of Poetry is 2.0.0 or higher.');
32-
} else {
33-
traceInfo('Note: The current version of Poetry is lower than 2.0.0.');
34-
}
35-
3630
const envManager = new PoetryManager(nativeFinder, api);
3731
const pkgManager = new PoetryPackageManager(api, outputChannel, envManager);
3832

0 commit comments

Comments
 (0)