Skip to content

Commit 99bee89

Browse files
jmcpherswesm
authored andcommitted
Merged PR posit-dev/positron-python#107: Send environment type to Positron as runtime source
Merge pull request #107 from posit-dev/feature/runtime-source-metadata Send environment type to Positron as runtime source -------------------- Commit message for posit-dev/positron-python@357299a: send environment type to Positron as runtime source Authored-by: Jonathan McPherson <[email protected]> Signed-off-by: Jonathan McPherson <[email protected]>
1 parent d1ce317 commit 99bee89

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

extensions/positron-python/positron-dts/positron.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,9 @@ declare module 'positron' {
303303
/** The version of the runtime itself (e.g. kernel or extension version) as a string; e.g. "0.1" */
304304
runtimeVersion: string;
305305

306+
/** The runtime's source or origin; e.g. PyEnv, System, Homebrew, Conda, etc. */
307+
runtimeSource: string;
308+
306309
/** The free-form, user-friendly name of the language this runtime can execute; e.g. "R" */
307310
languageName: string;
308311

extensions/positron-python/src/client/activation/jedi/positronLanguageRuntimes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ export class PositronJediLanguageServerProxy implements ILanguageServerProxy {
230230
runtimeId,
231231
runtimeName: displayName,
232232
runtimeVersion: this.extensionVersion ?? '0.0.0',
233+
runtimeSource: interpreter.envType,
233234
languageName: kernelSpec.language,
234235
languageId: PYTHON_LANGUAGE,
235236
languageVersion: pythonVersion ?? '0.0.0',

0 commit comments

Comments
 (0)