Skip to content

Commit 6e4f7db

Browse files
committed
formatting (#DH-21980)
1 parent 34873ae commit 6e4f7db

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

src/controllers/PipServerController.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export class PipServerController implements IDisposable {
6262

6363
const pythonExtension = getPythonEnvsExtensionApi();
6464
if (pythonExtension != null) {
65+
console.log('[TESTING]', pythonExtension.exports);
6566
void pythonExtension.activate().then(() => {
6667
pythonExtension.exports.onDidChangePackages(
6768
({ changes }) => {
@@ -106,7 +107,11 @@ export class PipServerController implements IDisposable {
106107
* servers can be managed from the extension.
107108
*/
108109
checkPipInstall = async (): Promise<
109-
| { isAvailable: true; interpreterPath: string; environment: PythonEnvironment }
110+
| {
111+
isAvailable: true;
112+
interpreterPath: string;
113+
environment: PythonEnvironment;
114+
}
110115
| { isAvailable: false; interpreterPath?: never; environment?: never }
111116
> => {
112117
if (!PIP_SERVER_SUPPORTED_PLATFORMS.has(process.platform)) {
@@ -148,7 +153,11 @@ export class PipServerController implements IDisposable {
148153
return { isAvailable: false };
149154
}
150155

151-
return { isAvailable: true, interpreterPath: pythonInterpreterPath, environment: env };
156+
return {
157+
isAvailable: true,
158+
interpreterPath: pythonInterpreterPath,
159+
environment: env,
160+
};
152161
};
153162

154163
/**
@@ -289,7 +298,8 @@ export class PipServerController implements IDisposable {
289298
}
290299

291300
// In case pip env has changed since last server check
292-
const { isAvailable, interpreterPath, environment } = await this.checkPipInstall();
301+
const { isAvailable, interpreterPath, environment } =
302+
await this.checkPipInstall();
293303
this._isPipServerInstalled = isAvailable;
294304

295305
if (!isAvailable) {

0 commit comments

Comments
 (0)