Skip to content

Commit

Permalink
Consolidate "info" under pythonEnvironments/info/. (#12383)
Browse files Browse the repository at this point in the history
This change is part of the series of changes related to factoring out an isolated Python environments "component" (specifically the "discovery" subcomponent).  This change only moves files around.
  • Loading branch information
ericsnowcurrently authored Jun 17, 2020
1 parent 71390fb commit 5b55c59
Show file tree
Hide file tree
Showing 189 changed files with 195 additions and 195 deletions.
2 changes: 1 addition & 1 deletion src/client/activation/activationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { swallowExceptions } from '../common/utils/decorators';
import { noop } from '../common/utils/misc';
import { IInterpreterService } from '../interpreter/contracts';
import { IServiceContainer } from '../ioc/types';
import { PythonInterpreter } from '../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../pythonEnvironments/info';
import { sendTelemetryEvent } from '../telemetry';
import { EventName } from '../telemetry/constants';
import { Commands } from './languageServer/constants';
Expand Down
2 changes: 1 addition & 1 deletion src/client/activation/common/activatorBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { traceDecorators } from '../../common/logger';
import { IFileSystem } from '../../common/platform/types';
import { IConfigurationService, Resource } from '../../common/types';
import { EXTENSION_ROOT_DIR } from '../../constants';
import { PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../pythonEnvironments/info';
import {
ILanguageServerActivator,
ILanguageServerDownloader,
Expand Down
2 changes: 1 addition & 1 deletion src/client/activation/common/analysisOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { traceDecorators } from '../../common/logger';
import { IOutputChannel, Resource } from '../../common/types';
import { debounceSync } from '../../common/utils/decorators';
import { IEnvironmentVariablesProvider } from '../../common/variables/types';
import { PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../pythonEnvironments/info';
import { ILanguageServerAnalysisOptions, ILanguageServerOutputChannel } from '../types';

@injectable()
Expand Down
2 changes: 1 addition & 1 deletion src/client/activation/jedi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { PythonReferenceProvider } from '../providers/referenceProvider';
import { PythonRenameProvider } from '../providers/renameProvider';
import { PythonSignatureProvider } from '../providers/signatureProvider';
import { JediSymbolProvider } from '../providers/symbolProvider';
import { PythonInterpreter } from '../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../pythonEnvironments/info';
import { ITestManagementService } from '../testing/types';
import { BlockFormatProviders } from '../typeFormatters/blockFormatProvider';
import { OnTypeFormattingDispatcher } from '../typeFormatters/dispatcher';
Expand Down
2 changes: 1 addition & 1 deletion src/client/activation/languageServer/analysisOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { traceDecorators, traceError } from '../../common/logger';
import { IConfigurationService, IExtensionContext, IPathUtils, Resource } from '../../common/types';
import { debounceSync } from '../../common/utils/decorators';
import { IEnvironmentVariablesProvider } from '../../common/variables/types';
import { PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../pythonEnvironments/info';
import { LanguageServerAnalysisOptionsBase } from '../common/analysisOptions';
import { ILanguageServerFolderService, ILanguageServerOutputChannel } from '../types';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { EXTENSION_ROOT_DIR, PYTHON_LANGUAGE } from '../../common/constants';
import { IConfigurationService, Resource } from '../../common/types';
import { IEnvironmentVariablesProvider } from '../../common/variables/types';
import { IEnvironmentActivationService } from '../../interpreter/activation/types';
import { PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../pythonEnvironments/info';
import { ILanguageClientFactory, ILanguageServerFolderService, IPlatformData } from '../types';

// tslint:disable:no-require-imports no-require-imports no-var-requires max-classes-per-file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { createDeferred, Deferred, sleep } from '../../common/utils/async';
import { swallowExceptions } from '../../common/utils/decorators';
import { noop } from '../../common/utils/misc';
import { LanguageServerSymbolProvider } from '../../providers/symbolProvider';
import { PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../pythonEnvironments/info';
import { captureTelemetry, sendTelemetryEvent } from '../../telemetry';
import { EventName } from '../../telemetry/constants';
import { ITestManagementService } from '../../testing/types';
Expand Down
2 changes: 1 addition & 1 deletion src/client/activation/languageServer/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from '../../common/types';
import { debounceSync } from '../../common/utils/decorators';
import { IServiceContainer } from '../../ioc/types';
import { PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../pythonEnvironments/info';
import { captureTelemetry } from '../../telemetry';
import { EventName } from '../../telemetry/constants';
import { LanguageClientMiddleware } from '../languageClientMiddleware';
Expand Down
2 changes: 1 addition & 1 deletion src/client/activation/node/languageClientFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { LanguageClient, LanguageClientOptions, ServerOptions, TransportKind } f
import { EXTENSION_ROOT_DIR, PYTHON_LANGUAGE } from '../../common/constants';
import { IFileSystem } from '../../common/platform/types';
import { Resource } from '../../common/types';
import { PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../pythonEnvironments/info';
import { ILanguageClientFactory, ILanguageServerFolderService } from '../types';
import { FileBasedCancellationStrategy } from './cancellationUtils';

Expand Down
2 changes: 1 addition & 1 deletion src/client/activation/node/languageServerProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { createDeferred, Deferred, sleep } from '../../common/utils/async';
import { swallowExceptions } from '../../common/utils/decorators';
import { noop } from '../../common/utils/misc';
import { LanguageServerSymbolProvider } from '../../providers/symbolProvider';
import { PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../pythonEnvironments/info';
import { captureTelemetry, sendTelemetryEvent } from '../../telemetry';
import { EventName } from '../../telemetry/constants';
import { ITestManagementService } from '../../testing/types';
Expand Down
2 changes: 1 addition & 1 deletion src/client/activation/node/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from '../../common/types';
import { debounceSync } from '../../common/utils/decorators';
import { IServiceContainer } from '../../ioc/types';
import { PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../pythonEnvironments/info';
import { captureTelemetry } from '../../telemetry';
import { EventName } from '../../telemetry/constants';
import { LanguageClientMiddleware } from '../languageClientMiddleware';
Expand Down
2 changes: 1 addition & 1 deletion src/client/activation/none/activator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
WorkspaceEdit
} from 'vscode';
import { Resource } from '../../common/types';
import { PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../pythonEnvironments/info';
import { ILanguageServerActivator } from '../types';

/**
Expand Down
2 changes: 1 addition & 1 deletion src/client/activation/refCountedLanguageServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {

import { Resource } from '../common/types';
import { noop } from '../common/utils/misc';
import { PythonInterpreter } from '../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../pythonEnvironments/info';
import { ILanguageServerActivator, LanguageServerType } from './types';

export class RefCountedLanguageServer implements ILanguageServerActivator {
Expand Down
2 changes: 1 addition & 1 deletion src/client/activation/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
import { LanguageClient, LanguageClientOptions } from 'vscode-languageclient';
import { NugetPackage } from '../common/nuget/types';
import { IDisposable, IOutputChannel, LanguageServerDownloadChannels, Resource } from '../common/types';
import { PythonInterpreter } from '../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../pythonEnvironments/info';

export const IExtensionActivationManager = Symbol('IExtensionActivationManager');
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
} from '../../../common/types';
import { IInterpreterHelper, IInterpreterService } from '../../../interpreter/contracts';
import { IServiceContainer } from '../../../ioc/types';
import { InterpreterType } from '../../../pythonEnvironments/discovery/types';
import { InterpreterType } from '../../../pythonEnvironments/info';
import { BaseDiagnostic, BaseDiagnosticsService } from '../base';
import { IDiagnosticsCommandFactory } from '../commands/types';
import { DiagnosticCodes } from '../constants';
Expand Down
2 changes: 1 addition & 1 deletion src/client/common/installer/channelManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { inject, injectable } from 'inversify';
import { Uri } from 'vscode';
import { IInterpreterService } from '../../interpreter/contracts';
import { IServiceContainer } from '../../ioc/types';
import { InterpreterType } from '../../pythonEnvironments/discovery/types';
import { InterpreterType } from '../../pythonEnvironments/info';
import { IApplicationShell } from '../application/types';
import { IPlatformService } from '../platform/types';
import { Product } from '../types';
Expand Down
2 changes: 1 addition & 1 deletion src/client/common/installer/moduleInstaller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as path from 'path';
import { CancellationToken, OutputChannel, ProgressLocation, ProgressOptions } from 'vscode';
import { IInterpreterService } from '../../interpreter/contracts';
import { IServiceContainer } from '../../ioc/types';
import { InterpreterType } from '../../pythonEnvironments/discovery/types';
import { InterpreterType } from '../../pythonEnvironments/info';
import { sendTelemetryEvent } from '../../telemetry';
import { EventName } from '../../telemetry/constants';
import { IApplicationShell } from '../application/types';
Expand Down
2 changes: 1 addition & 1 deletion src/client/common/installer/pipEnvInstaller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { inject, injectable } from 'inversify';
import { IInterpreterLocatorService, PIPENV_SERVICE } from '../../interpreter/contracts';
import { IServiceContainer } from '../../ioc/types';
import { InterpreterType } from '../../pythonEnvironments/discovery/types';
import { InterpreterType } from '../../pythonEnvironments/info';
import { ExecutionInfo } from '../types';
import { isResource } from '../utils/misc';
import { ModuleInstaller } from './moduleInstaller';
Expand Down
2 changes: 1 addition & 1 deletion src/client/common/installer/productInstaller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Telemetry } from '../../datascience/constants';
import { IInterpreterService } from '../../interpreter/contracts';
import { IServiceContainer } from '../../ioc/types';
import { LinterId } from '../../linters/types';
import { PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../pythonEnvironments/info';
import { sendTelemetryEvent } from '../../telemetry';
import { EventName } from '../../telemetry/constants';
import { IApplicationShell, ICommandManager, IWorkspaceService } from '../application/types';
Expand Down
2 changes: 1 addition & 1 deletion src/client/common/installer/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

import { CancellationToken, Uri } from 'vscode';
import { PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../pythonEnvironments/info';
import { Product, ProductType, Resource } from '../types';

export type InterpreterUri = Resource | PythonInterpreter;
Expand Down
4 changes: 2 additions & 2 deletions src/client/common/process/pythonDaemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

import { ChildProcess } from 'child_process';
import { MessageConnection, RequestType, RequestType0 } from 'vscode-jsonrpc';
import { InterpreterInformation } from '../../pythonEnvironments/discovery/types';
import { PythonExecInfo } from '../../pythonEnvironments/exec';
import { extractInterpreterInfo } from '../../pythonEnvironments/info';
import { InterpreterInformation } from '../../pythonEnvironments/info';
import { extractInterpreterInfo } from '../../pythonEnvironments/info/interpreter';
import { traceWarning } from '../logger';
import { BasePythonDaemon } from './baseDaemon';
import { PythonEnvInfo } from './internal/scripts';
Expand Down
2 changes: 1 addition & 1 deletion src/client/common/process/pythonDaemonPool.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

import { InterpreterInformation } from '../../pythonEnvironments/discovery/types';
import { PythonExecInfo } from '../../pythonEnvironments/exec';
import { InterpreterInformation } from '../../pythonEnvironments/info';
import { IDisposableRegistry } from '../types';
import { sleep } from '../utils/async';
import { noop } from '../utils/misc';
Expand Down
4 changes: 2 additions & 2 deletions src/client/common/process/pythonEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Licensed under the MIT License.

import { CondaEnvironmentInfo } from '../../pythonEnvironments/discovery/locators/services/conda';
import { InterpreterInformation } from '../../pythonEnvironments/discovery/types';
import { getPythonExecInfo, PythonExecInfo } from '../../pythonEnvironments/exec';
import { extractInterpreterInfo } from '../../pythonEnvironments/info';
import { InterpreterInformation } from '../../pythonEnvironments/info';
import { extractInterpreterInfo } from '../../pythonEnvironments/info/interpreter';
import { traceError, traceInfo } from '../logger';
import { IFileSystem } from '../platform/types';
import * as internalPython from './internal/python';
Expand Down
2 changes: 1 addition & 1 deletion src/client/common/process/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { Observable } from 'rxjs/Observable';
import { CancellationToken, Uri } from 'vscode';

import { Newable } from '../../ioc/types';
import { InterpreterInformation, PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonExecInfo } from '../../pythonEnvironments/exec';
import { InterpreterInformation, PythonInterpreter } from '../../pythonEnvironments/info';
import { ExecutionInfo, IDisposable } from '../types';
import { EnvironmentVariables } from '../variables/types';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
IPipEnvService,
PIPENV_SERVICE
} from '../../../interpreter/contracts';
import { InterpreterType } from '../../../pythonEnvironments/discovery/types';
import { InterpreterType } from '../../../pythonEnvironments/info';
import { IWorkspaceService } from '../../application/types';
import { IFileSystem } from '../../platform/types';
import { ITerminalActivationCommandProvider, TerminalShellType } from '../types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { inject, injectable } from 'inversify';
import { Uri } from 'vscode';
import { IInterpreterService } from '../../../interpreter/contracts';
import { IServiceContainer } from '../../../ioc/types';
import { InterpreterType } from '../../../pythonEnvironments/discovery/types';
import { InterpreterType } from '../../../pythonEnvironments/info';
import { ITerminalActivationCommandProvider, TerminalShellType } from '../types';

@injectable()
Expand Down
2 changes: 1 addition & 1 deletion src/client/common/terminal/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { inject, injectable } from 'inversify';
import { Uri } from 'vscode';
import { IInterpreterService } from '../../interpreter/contracts';
import { IServiceContainer } from '../../ioc/types';
import { PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../pythonEnvironments/info';
import { IWorkspaceService } from '../application/types';
import { IFileSystem } from '../platform/types';
import { isUri } from '../utils/misc';
Expand Down
2 changes: 1 addition & 1 deletion src/client/common/terminal/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { inject, injectable, multiInject, named } from 'inversify';
import { Terminal, Uri } from 'vscode';
import { ICondaService, IInterpreterService } from '../../interpreter/contracts';
import { InterpreterType, PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { InterpreterType, PythonInterpreter } from '../../pythonEnvironments/info';
import { sendTelemetryEvent } from '../../telemetry';
import { EventName } from '../../telemetry/constants';
import { ITerminalManager } from '../application/types';
Expand Down
2 changes: 1 addition & 1 deletion src/client/common/terminal/syncTerminalService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { inject } from 'inversify';
import { CancellationToken, Disposable, Event } from 'vscode';
import { IInterpreterService } from '../../interpreter/contracts';
import { PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../pythonEnvironments/info';
import { Cancellation } from '../cancellation';
import { traceVerbose } from '../logger';
import { IFileSystem, TemporaryFile } from '../platform/types';
Expand Down
2 changes: 1 addition & 1 deletion src/client/common/terminal/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'use strict';

import { CancellationToken, Event, Terminal, Uri } from 'vscode';
import { PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../pythonEnvironments/info';
import { IEventNamePropertyMapping } from '../../telemetry/index';
import { IDisposable, Resource } from '../types';

Expand Down
2 changes: 1 addition & 1 deletion src/client/datascience/baseJupyterSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { traceError, traceInfo, traceWarning } from '../common/logger';
import { waitForPromise } from '../common/utils/async';
import * as localize from '../common/utils/localize';
import { noop } from '../common/utils/misc';
import { PythonInterpreter } from '../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../pythonEnvironments/info';
import { sendTelemetryEvent } from '../telemetry';
import { Telemetry } from './constants';
import { JupyterKernelPromiseFailedError } from './jupyter/kernels/jupyterKernelPromiseFailedError';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { traceWarning } from '../../common/logger';
import { IPythonExecutionFactory } from '../../common/process/types';
import { IInstaller, InstallerResponse, Product } from '../../common/types';
import { Common, DataScience } from '../../common/utils/localize';
import { PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../pythonEnvironments/info';
import { sendTelemetryEvent } from '../../telemetry';
import { Telemetry } from '../constants';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { createDeferred, Deferred, sleep, waitForPromise } from '../../../common
import { noop } from '../../../common/utils/misc';
import { HiddenFileFormatString } from '../../../constants';
import { IInterpreterService } from '../../../interpreter/contracts';
import { PythonInterpreter } from '../../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../../pythonEnvironments/info';
import { sendTelemetryWhenDone } from '../../../telemetry';
import { Identifiers, Settings, Telemetry } from '../../constants';
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { createDeferred, Deferred } from '../../common/utils/async';
import * as localize from '../../common/utils/localize';
import { isUntitledFile, noop } from '../../common/utils/misc';
import { StopWatch } from '../../common/utils/stopWatch';
import { PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../pythonEnvironments/info';
import { captureTelemetry, sendTelemetryEvent } from '../../telemetry';
import { generateCellRangesFromDocument } from '../cellFactory';
import { CellMatcher } from '../cellMatcher';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
NotifyIPyWidgeWidgetVersionNotSupportedAction
} from '../../../datascience-ui/interactive-common/redux/reducers/types';
import { Resource } from '../../common/types';
import { PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../pythonEnvironments/info';
import { NativeKeyboardCommandTelemetry, NativeMouseCommandTelemetry } from '../constants';
import { WidgetScriptSource } from '../ipywidgets/types';
import { LiveKernelModel } from '../jupyter/kernels/types';
Expand Down
2 changes: 1 addition & 1 deletion src/client/datascience/interactive-ipynb/nativeEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { createDeferred, Deferred } from '../../common/utils/async';
import * as localize from '../../common/utils/localize';
import { StopWatch } from '../../common/utils/stopWatch';
import { EXTENSION_ROOT_DIR } from '../../constants';
import { PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../pythonEnvironments/info';
import { captureTelemetry, sendTelemetryEvent } from '../../telemetry';
import { Commands, EditorContexts, Identifiers, Telemetry } from '../constants';
import { InteractiveBase } from '../interactive-common/interactiveBase';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { traceError } from '../../common/logger';
import { IFileSystem } from '../../common/platform/types';
import { GLOBAL_MEMENTO, ICryptoUtils, IExtensionContext, IMemento, WORKSPACE_MEMENTO } from '../../common/types';
import { isUntitledFile, noop } from '../../common/utils/misc';
import { PythonInterpreter } from '../../pythonEnvironments/discovery/types';
import { PythonInterpreter } from '../../pythonEnvironments/info';
import { Identifiers, KnownNotebookLanguages, Telemetry } from '../constants';
import { IEditorContentChange, NotebookModelChange } from '../interactive-common/interactiveWindowTypes';
import { InvalidNotebookFileError } from '../jupyter/invalidNotebookFileError';
Expand Down
Loading

0 comments on commit 5b55c59

Please sign in to comment.