@@ -19,7 +19,7 @@ interface IEnvironmentAPI {
19
19
* python binary in a multi-root scenario. If resource is `undefined` then the API
20
20
* returns what ever is set for the workspace.
21
21
*
22
- * @param resource : Uri of a file or workspace
22
+ * @param resource : Uri of a file or workspace folder.
23
23
*/
24
24
getActiveEnvironment ( resource ?: Resource ) : Promise < ResolvedEnvironment | undefined > ;
25
25
/**
@@ -31,8 +31,7 @@ interface IEnvironmentAPI {
31
31
* Sets the active environment path for the python extension for the resource. Configuration target
32
32
* will always be the workspace folder.
33
33
* @param environment : Full path to environment folder or python executable for the environment. Can also pass the environment itself.
34
- * @param resource : [optional] Uri of a file ro workspace to scope to a particular workspace
35
- * folder.
34
+ * @param resource : [optional] File or workspace to scope to a particular workspace folder.
36
35
*/
37
36
setActiveEnvironment ( environment : Environment | UniquePathType , resource ?: Resource ) : Promise < void > ;
38
37
/**
@@ -45,8 +44,6 @@ interface IEnvironmentLocatorAPI {
45
44
/**
46
45
* Carries environments found by the extension at the time of fetching the property. To get complete list
47
46
* `await` on promise returned by {@link waitOnRefresh()}.
48
- *
49
- * Only returns an environment if the final type, name and environment path is known.
50
47
*/
51
48
environments : readonly Environment [ ] | undefined ;
52
49
/**
@@ -77,7 +74,7 @@ interface IEnvironmentLocatorAPI {
77
74
}
78
75
79
76
/**
80
- * Details about the environment. Note the type, name and environment path is known .
77
+ * Details about the environment. Note the environment path, type and name never changes over time .
81
78
*/
82
79
export interface Environment {
83
80
pathID : UniquePathType ;
@@ -99,12 +96,12 @@ export interface Environment {
99
96
sysPrefix : string | undefined ;
100
97
} ;
101
98
/**
102
- * Carries details if it is an environment, otherwise `undefined` in case of global interpreters or something else .
99
+ * Carries details if it is an environment, otherwise `undefined` in case of global interpreters and others .
103
100
*/
104
101
environment :
105
102
| {
106
103
/**
107
- * Type of the environment. This never changes over time.
104
+ * Type of the environment.
108
105
*/
109
106
type : EnvType ;
110
107
/**
@@ -114,20 +111,20 @@ export interface Environment {
114
111
/**
115
112
* Path to the environment folder.
116
113
*/
117
- folderPath : string ;
114
+ path : string ;
118
115
/**
119
116
* Any specific workspace folder this environment is created for.
120
117
*/
121
- workspaceFolder : Uri | undefined ;
118
+ workspaceFolderPath : string | undefined ;
122
119
/**
123
- * Tools/Plugins which created the environment or where it came from in the order .
120
+ * Tools/Plugins which created the environment or where it came from.
124
121
* First value corresponds to the primary source, which never changes over time.
125
122
*/
126
123
source : EnvSource [ ] ;
127
124
}
128
125
| undefined ;
129
126
/**
130
- * Carries Python version information.
127
+ * Carries Python version information known at this moment .
131
128
*/
132
129
version : StandardVersionInfo & {
133
130
/**
0 commit comments