Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fx win reg locator #1837

Draft
wants to merge 642 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
642 commits
Select commit Hold shift + click to select a range
a1fac81
If active editor opened is outside the editor, activate the first wor…
Nov 10, 2023
47552a3
Install requirements before toml (#22468)
karthiknadig Nov 13, 2023
fbfa126
Add 3.12 to conda version list (#22470)
karthiknadig Nov 13, 2023
7a4de92
Use `WorkspaceFolder.name` in addition to workspace folder's basename…
Nov 13, 2023
e27185a
Use worker threads for fetching Windows Registry interpreters (#22479)
Nov 16, 2023
9298b2c
Bump dessant/lock-threads from 4 to 5 (#22474)
dependabot[bot] Nov 17, 2023
ef983f4
Bump `vscode-tas-client` and fix tests (#22493)
karthiknadig Nov 18, 2023
3c552f9
Show warning and allow user to turn off smart send for deprecated Pyt…
anthonykim1 Nov 18, 2023
f6e1338
Use worker threads for fetching conda environments and interpreter re…
Nov 19, 2023
eb96141
Use shell integration to denote success/failure (#22487)
anthonykim1 Nov 21, 2023
9a5363c
Resolve test suite discovery import errors due to path ordering (#22454)
shanesaravia Nov 27, 2023
1639753
switch to conditional error message on check for UUID and port during…
eleanorjboyd Nov 27, 2023
261ae66
Improvement: Pass along python interpreter to jedi-language-server (#…
johnhany97 Nov 28, 2023
3efb54f
White space after REPL prompt (#22549)
anthonykim1 Nov 28, 2023
caa50dc
Fix shell integration decoration for windows pwsh (#22560)
anthonykim1 Nov 29, 2023
db6e15e
Do not throw if initializing deactivate script fails (#22566)
Nov 29, 2023
61fcf3a
Properly build deactivate commands for powershell (#22570)
Nov 29, 2023
e1b54d0
fix no test id provided for pytest run (#22569)
eleanorjboyd Nov 29, 2023
bffc9b3
Fix shell integration decoration bug for Windows pwsh (#22572)
anthonykim1 Nov 30, 2023
5302d0e
Revert unsuccessful REPL decoration fix and disable for windows (#22578)
anthonykim1 Nov 30, 2023
a0cddbd
bump-release-2023.22 (#22587)
eleanorjboyd Dec 4, 2023
8a8c00d
bump-dev-version-2023.23 (#22588)
eleanorjboyd Dec 4, 2023
13047b8
Revert "Remove old code for folder support in interpreter path settin…
Dec 12, 2023
b5f5d0d
Fix localization failure for pre-release (#22639)
Dec 13, 2023
d3fe64c
More fixes to pre-release (#22640)
Dec 13, 2023
6084fe8
More fixes to pre-release (#22641)
Dec 13, 2023
31abb36
Remove experimental tag from createEnvironment.contentButton setting …
luabud Dec 13, 2023
52b95e2
Add to release plan steps with point release steps (#22645)
eleanorjboyd Dec 13, 2023
a5ab3b8
Add localization check to CI (#22646)
Dec 14, 2023
a05dee8
add logging for when testing is already running and causes new runs t…
eleanorjboyd Dec 15, 2023
c085b35
Bump importlib-metadata from 6.7.0 to 7.0.0 (#22585)
dependabot[bot] Dec 16, 2023
98aa955
Bump actions/setup-python from 4 to 5 in /.github/actions/lint (#22601)
dependabot[bot] Dec 16, 2023
cedde44
Bump actions/upload-artifact from 3 to 4 (#22657)
dependabot[bot] Dec 17, 2023
2f0fa40
Bump github/codeql-action from 2 to 3 (#22651)
dependabot[bot] Dec 17, 2023
81c17e5
Add permissions to triage-info-needed.yml (#22663)
karthiknadig Dec 17, 2023
f2b0b7f
support multi-level nested classes pytest (#22681)
eleanorjboyd Dec 19, 2023
26641e9
Bump typing-extensions from 4.8.0 to 4.9.0 (#22622)
dependabot[bot] Dec 20, 2023
ac2a972
Bump actions/setup-python from 4 to 5 (#22603)
dependabot[bot] Dec 20, 2023
89b8052
unittest: switch to using top dir since test ids are relative to it (…
eleanorjboyd Jan 3, 2024
d5103a8
Bump microvenv from 2023.5 to 2023.5.post1 (#22685)
dependabot[bot] Jan 3, 2024
97154eb
Bump importlib-metadata from 7.0.0 to 7.0.1 (#22697)
dependabot[bot] Jan 3, 2024
e27119b
Bring back REPL shell integration decoration for Mac and Linux (#22714)
anthonykim1 Jan 4, 2024
84ef0ee
Fix for issue with environment path and Jedi (#22713)
karthiknadig Jan 4, 2024
3e75937
Remove debugger (#22502)
paulacamargo25 Jan 9, 2024
d7be806
Relax major version check for pre-releases (#22734)
karthiknadig Jan 10, 2024
d5a8141
Fix version for pre-release (#22737)
karthiknadig Jan 10, 2024
127457d
Set debug as deprecated (#22738)
paulacamargo25 Jan 10, 2024
63cf263
use abspath for top_level_dir for build_test_tree (#22740)
eleanorjboyd Jan 11, 2024
2f3102f
Add create environment to select interpreter (#22746)
karthiknadig Jan 16, 2024
b09848c
Bump follow-redirects from 1.15.3 to 1.15.4 (#22731)
dependabot[bot] Jan 17, 2024
baea7a1
Remove star from recommended (#22759)
karthiknadig Jan 17, 2024
6f0b841
Rename `utils` to `pvsc_utils` to prevent shadowing (#22760)
karthiknadig Jan 17, 2024
c09de84
Bump jakebailey/pyright-action from 1 to 2 (#22762)
dependabot[bot] Jan 18, 2024
1eaf5a3
Show name for conda environments created in the workspace (#22701)
PopoDev Jan 19, 2024
d10b2f7
Allow run recent command for REPL using shell integration (#22720)
anthonykim1 Jan 22, 2024
fb70ef6
Remove unsupported proposed APIs enablement from `package.json` (#22787)
karthiknadig Jan 25, 2024
5f9ff88
Bump peter-evans/create-or-update-comment from 3 to 4 (#22791)
dependabot[bot] Jan 26, 2024
67ac41c
Bump peter-evans/find-comment from 2 to 3 (#22790)
dependabot[bot] Jan 26, 2024
c8c07a0
changes to support pytest 8 (#22799)
eleanorjboyd Jan 29, 2024
1b53c2c
Bump-release-2024.2 (#22801)
anthonykim1 Jan 29, 2024
c5593f8
Revert "Bump-release-2024.2" (#22802)
eleanorjboyd Jan 29, 2024
ceac048
bump release 2024.0 (#22804)
eleanorjboyd Jan 29, 2024
6e8c56c
Bump dev version 2024.1 (#22805)
anthonykim1 Jan 29, 2024
13a6727
include multiple pytest versions in PR check (#22813)
eleanorjboyd Jan 31, 2024
1626c46
Do not run commands to check whether shell integration is working (#2…
Feb 5, 2024
8aaa70e
Fix venv activation for cshell (#22852)
Feb 5, 2024
20c1a10
Log when running Python file (#22851)
Feb 5, 2024
c0bf1b7
Improve time taken to trigger language server startup once extension …
Feb 5, 2024
d674a17
Fix Run Recent Command Caching Issue (#22867)
anthonykim1 Feb 7, 2024
4030717
Use terminal data write event to figure out whether shell integration…
Feb 7, 2024
c4c05a6
update tree comparison for tests to be order independent for children…
eleanorjboyd Feb 8, 2024
8496dfe
Remove experimental flag for create env prompt (#22892)
cwebster-99 Feb 9, 2024
b0c34e3
Add UnicodeDecodeError catching (#22873)
aydar-kamaltdinov Feb 9, 2024
5174d5c
Improve shell integration reliability for zsh (#22891)
Feb 10, 2024
5f971ae
Prepend `PATH` both at shell integration and process creation (#22905)
Feb 13, 2024
2dc158e
Log options being passed when using environment collection APIs (#22907)
Feb 13, 2024
6838ccf
Do not activate microvenv if terminal.activateEnvironment is set to f…
Feb 13, 2024
7be33eb
Add more shell integration sequences to check for (#22911)
Feb 13, 2024
83cf53b
Add "isMeasurement" for LANGUAGE_SERVER_TRIGGER_DURATION (#22912)
Feb 13, 2024
2159238
Bump actions/setup-python from 4 to 5 in /.github/actions/build-vsix …
dependabot[bot] Feb 13, 2024
84734a8
Updating installed extensions section of README.md (#22893)
cwebster-99 Feb 13, 2024
aff0b05
Use python debugger in testing (#22903)
paulacamargo25 Feb 14, 2024
a60fbd5
Add GDPR tags for new Pylance properties (#22922)
luabud Feb 16, 2024
e53651d
Prevent first Python command being lost (#22902)
anthonykim1 Feb 16, 2024
75ed73e
Fix Bug with Pytest when using symlinked workspaces (#22885)
eleanorjboyd Feb 20, 2024
bae7d40
Update vscode-tas-client version (#22876)
luabud Feb 20, 2024
178a0b2
Fix bug with symlink for pytest execution (#22952)
eleanorjboyd Feb 21, 2024
ba94553
Modify telemetry to contain trigger time as property (#22941)
Feb 21, 2024
4fca030
Adding GDPR tag for isFirstSession (#22955)
cwebster-99 Feb 22, 2024
fa75337
Fix duplicated environments in interpreter list (#22964)
Feb 26, 2024
e6c859d
Add more validation checks when accessing envs from cache (#22966)
Feb 26, 2024
7e35060
Reactivate terminals if `.env` file changes (#22969)
Feb 26, 2024
39e2bee
skip tests, pytest upstream regression (#22974)
eleanorjboyd Feb 26, 2024
ade2c37
Bump release 2024.2 (#22972)
anthonykim1 Feb 26, 2024
d5e9850
Update version main branch to pre release (#22976)
anthonykim1 Feb 27, 2024
f1d7799
Update release_plan.md (#22973)
eleanorjboyd Feb 27, 2024
d0a07de
Log best effort versions calculated for an environment (#22980)
Feb 27, 2024
724415d
Log environment collection activity at info level (#22990)
Feb 28, 2024
eff0b3b
Remove old Pylance-related code (#22985)
debonte Feb 29, 2024
608effb
Remove sync file operation to unblock ext host (#22997)
DonJayamanne Feb 29, 2024
8d4de77
Remove verbose logging which is not used (#23001)
Feb 29, 2024
999f7e7
chore: add APIScan field (#23007)
rzhao271 Mar 1, 2024
50f4b7b
Make `environments.known` API faster (#23010)
Mar 1, 2024
c330ff9
Do not use readSync everytime telemetry is sent (#23011)
Mar 1, 2024
27783ce
Rename `pythonFiles` to `python_files` (#22921)
karthiknadig Mar 1, 2024
e45fe13
fixes bug which stops duplicate pytest args (#23024)
eleanorjboyd Mar 4, 2024
c548414
Updating devcontainer.json and README.md (#22984)
cwebster-99 Mar 4, 2024
0d1cfe8
Fix backed up command and false exit code (#23025)
anthonykim1 Mar 4, 2024
3609f28
Do not use worker threads to launching binaries (#23030)
Mar 6, 2024
209d6bd
Add `server_side_request` to `telemetry\pylance.ts` (#23031)
debonte Mar 7, 2024
7ea5584
Add linting rules for ruff (#22741)
brettcannon Mar 12, 2024
e931bed
Move to Ruff for formatting (#23060)
brettcannon Mar 12, 2024
47a1876
Ignore reformatting commits in `git blame` (#23063)
brettcannon Mar 13, 2024
3775c93
Use new report issue command api (#23033)
paulacamargo25 Mar 13, 2024
ff4c688
Take Smart Send Out of Experiment (#23067)
anthonykim1 Mar 14, 2024
b8d6a2c
Include windows registry perf improvement in `pythonDiscoveryUsingWor…
Mar 14, 2024
f624331
Clear duplicated environments from storage (#23076)
Mar 14, 2024
028398e
Smart Send default value should be true (#23074)
anthonykim1 Mar 14, 2024
cd3ea27
Add support for Hatch environments (#22779)
flying-sheep Mar 15, 2024
01e5cbd
Respect `VIRTUAL_ENV_PROMPT` when calculating PS1 (#23080)
Mar 15, 2024
62dc85b
If type identifier for an environment is not registered, infer type f…
Mar 17, 2024
6f84e30
Double quote value returned by `${command:python.interpreterPath}` if…
Mar 17, 2024
34d1f02
Engineering - cleanup TSA pipeline template parameter (#23087)
lszomoru Mar 18, 2024
e9cd888
Upgrade to latest prerelease LSP 3.18 (python) (#23081)
debonte Mar 18, 2024
b9109cf
Select pyenv environment based on folder `.python-version` file (#23094)
Mar 18, 2024
4209277
Use random sampling for sending Python environments API telemetry (#2…
Mar 20, 2024
d599bcd
Auto select pipenv and poetry environments created for a workspace (#…
Mar 21, 2024
225fce3
Updates to walkthrough (#23107)
cwebster-99 Mar 22, 2024
bfb02bb
Address localization bug in walkthrough (#23112)
cwebster-99 Mar 22, 2024
b00c390
Add workaround for hatch environment discovery on Windows (#23129)
Mar 26, 2024
233dcc8
Fix Pyenv auto-selection on MacOS (#23132)
anthonykim1 Mar 26, 2024
f298222
Change default value of env settings (#23144)
luabud Mar 28, 2024
7c04ef2
Resolve test suite execution import errors due to path ordering (#23099)
shanesaravia Mar 29, 2024
d8a5c46
Update release_plan.md (#23149)
eleanorjboyd Mar 29, 2024
c5a383b
revert symlink changes which switched to using argMap for testing arg…
eleanorjboyd Apr 1, 2024
d5ec67d
Update version for release candidate (#23158)
karthiknadig Apr 1, 2024
e3ff798
revert arg map change to remove from stable release (#23160)
eleanorjboyd Apr 1, 2024
9ecdf8b
Update main to next pre-release (#23161)
karthiknadig Apr 1, 2024
8b4b267
Ensure that we check `.venv` dir not `.venv` file (#22954)
karthiknadig Apr 2, 2024
933d269
Fix python path for install checker (#23165)
karthiknadig Apr 2, 2024
9db8b39
Fix check install bug when running global python (#23166)
karthiknadig Apr 2, 2024
3be3401
Bump importlib-metadata from 7.0.1 to 7.1.0 (#23106)
dependabot[bot] Apr 3, 2024
4f5b347
Use editable install only when `project` and `build-system` are prese…
karthiknadig Apr 3, 2024
e387e70
Add `homebrew` path to `conda` search list (#23171)
karthiknadig Apr 3, 2024
7cad63b
Revert "revert arg map change to remove from stable release (#23160)"…
eleanorjboyd Apr 3, 2024
eed0c3b
Fix duplicated venv prompt (#23201)
anthonykim1 Apr 8, 2024
69a54cf
Fix activated Conda Envs vars in Jupyter Ext API (#23212)
DonJayamanne Apr 9, 2024
ccde3ae
Add missing jedi requirements file to VSIX (#23220)
karthiknadig Apr 10, 2024
85ae999
Bump typing-extensions from 4.9.0 to 4.11.0 (#23198)
dependabot[bot] Apr 10, 2024
b55e460
Bump packaging from 23.2 to 24.0 (#23046)
dependabot[bot] Apr 10, 2024
fc49f2b
Use `nox` for python dependency installs (#23210)
karthiknadig Apr 12, 2024
0f6606c
Switch to using named pipes for test communication (#22390)
karthiknadig Apr 16, 2024
f32f3b8
Adopting Python Walkthrough edits (#23214)
cwebster-99 Apr 16, 2024
1f8e98a
Use python debugger api (#23211)
paulacamargo25 Apr 16, 2024
a54173d
fix to support classes with parameterized tests inside (#23238)
eleanorjboyd Apr 17, 2024
9baedf7
Trigger env creation prompt on `pip install` in terminal with global …
karthiknadig Apr 17, 2024
5b7a62a
Add cred scan suppression for dist utils (#23251)
karthiknadig Apr 17, 2024
6f45918
Try a different pattern for the path (#23252)
karthiknadig Apr 17, 2024
8a62ddb
Try another path pattern (#23254)
karthiknadig Apr 17, 2024
48a1025
chore: use full names for CredScan false positives (#23255)
rzhao271 Apr 17, 2024
f86dcb1
Fix for unittest with `testscenarios` (#23230)
karthiknadig Apr 18, 2024
1869fb8
Add module version telemetry (#23263)
rchiodo Apr 19, 2024
1b2bd68
Remove some unused files (#23256)
karthiknadig Apr 19, 2024
577e64c
support symlinks in parents of the root of the workspace (#23257)
eleanorjboyd Apr 19, 2024
6aaca06
Apply feedback for the create env trigger prompts (#23258)
karthiknadig Apr 22, 2024
51cf852
Debug cancelation (#23262)
eleanorjboyd Apr 22, 2024
26d5132
Add more command patterns for pip trigger (#23273)
karthiknadig Apr 22, 2024
4b32dd4
Cleanup `.nox` environments after build (#23274)
karthiknadig Apr 22, 2024
c04fa70
Fix the YML for azure build (#23275)
karthiknadig Apr 22, 2024
77e44cf
Revert "Debug cancelation (#23262)" (#23301)
eleanorjboyd Apr 26, 2024
3d1e224
support configuring experiments in workspace settings (#23267)
DetachHead Apr 29, 2024
432b696
bump release 2024.6 (#23310)
eleanorjboyd Apr 30, 2024
1f1d748
bump to dev version 2024.7 (#23312)
eleanorjboyd Apr 30, 2024
5f7d971
Fix Pyenv for Codespaces (#23315)
anthonykim1 May 1, 2024
46f73d9
Fix typo on GDPR tag (#23316)
luabud May 1, 2024
12940e3
Update release_plan.md (#23296)
eleanorjboyd May 2, 2024
5dde2e1
Add native locator for finding pythons (#23208)
karthiknadig May 3, 2024
cb371cc
Add `python.nativeLocator` experimental setting (#23324)
karthiknadig May 3, 2024
376e6f1
Add more Windows based locators (#23325)
karthiknadig May 3, 2024
d619a45
Add logging over JSON-RPC (#23326)
karthiknadig May 3, 2024
4b73208
Fix compilation error and use PathBuf::from (#23339)
DonJayamanne May 6, 2024
1b0c881
Conda and Known Python Tests (#23349)
DonJayamanne May 7, 2024
8ead7e2
Fix get-pip download where `tags` may not be available (#23353)
karthiknadig May 7, 2024
211ca29
Fix get-pip download where `tags` may not be available (#23353) (#23354)
karthiknadig May 7, 2024
179df88
Fix typo in windows locator (#23355)
DonJayamanne May 7, 2024
e53f79e
Support for pyenv locator (#23356)
DonJayamanne May 7, 2024
f484fb2
Use enum for category (#23357)
DonJayamanne May 7, 2024
a8c4728
Adopt native pyenv locator in TS land (#23359)
DonJayamanne May 7, 2024
43bbd16
Add sysPrefixPath to native locator (#23360)
DonJayamanne May 7, 2024
9f4b690
Fix discovery of native conda locator (#23361)
DonJayamanne May 7, 2024
33dfe29
Ensure all messages are JSON rpc payloads (#23362)
DonJayamanne May 7, 2024
2d383e0
Add native homebrew locator on mac (#23363)
DonJayamanne May 7, 2024
bc01bcb
Homebrew only on unix and not windows (#23364)
DonJayamanne May 7, 2024
569ca65
Show PyPi link in requirements (#23288)
LouisGobert May 7, 2024
a2f167e
Better py env version extraction (#23368)
DonJayamanne May 7, 2024
204309e
Remove unwanted test feature (#23371)
DonJayamanne May 8, 2024
c890ce8
Support for pyenv virtual-env in native locator (#23372)
DonJayamanne May 8, 2024
91d23ef
Extract conda version where possible in native locator (#23374)
DonJayamanne May 8, 2024
3e20701
Compute regex once in native locator (#23375)
DonJayamanne May 8, 2024
d72f6ee
Strip 'envs' prefix from conda env name (#23377)
DonJayamanne May 8, 2024
ba2af57
Update python env properties sent back to TS layer (#23378)
DonJayamanne May 8, 2024
6be64ec
Add support for pipenv environments (#23379)
DonJayamanne May 8, 2024
66afcf7
Fixes to detection of conda version on windows (#23380)
DonJayamanne May 8, 2024
3a9c04a
Tweek pyenv version detection on windows (#23383)
DonJayamanne May 8, 2024
0f1a001
Support virtualenvwrapper in nativelocator (#23388)
DonJayamanne May 8, 2024
234d188
virtualenvwrapper support in ts layer of native locator (#23390)
DonJayamanne May 8, 2024
946d371
dont execute to console from the IW input box (#23389)
amunger May 8, 2024
92b44f0
Tweaks to how native finder is spawned and logging (#23387)
karthiknadig May 8, 2024
9e3475c
Drop jsonrpc connection after all messages are handled (#23391)
DonJayamanne May 9, 2024
17dadb0
Use PathBufs to avoid regular conversions (#23393)
DonJayamanne May 9, 2024
8993be7
Use structs instead of loose json in native test (#23394)
DonJayamanne May 9, 2024
d99e74e
Fixes `KeyError: 'params'` when running tests (#23397)
andybbruno May 9, 2024
49945b0
Support venv, virtualEnv in global folders (#23395)
DonJayamanne May 9, 2024
427047b
End the passthrough stream instead of ending (#23399)
DonJayamanne May 9, 2024
8aa71ac
Refactor locators to implement a specific trait (#23404)
DonJayamanne May 10, 2024
4188fec
Use logger formatter to send log msgs via json rpc (#23405)
DonJayamanne May 10, 2024
70512b5
Remove duplicate environment finder event handlers (#23406)
DonJayamanne May 10, 2024
af18e55
Remove duplicates from reported envs & refactor locators (#23407)
DonJayamanne May 10, 2024
b15a3c4
Replace locator enum with struct (#23412)
DonJayamanne May 13, 2024
ed2e1aa
Look for Python (PythonCore) in windows registry (#23414)
DonJayamanne May 13, 2024
9b0c423
Fix extraction of Python version for Conda environments (#23415)
DonJayamanne May 13, 2024
efef383
Fixes to comparing of Python environments (#23417)
DonJayamanne May 13, 2024
614aae6
Revised native conda locator (#23416)
DonJayamanne May 13, 2024
d24f9e7
Fix winreg locator & add conda registry locator on windows (#23422)
DonJayamanne May 14, 2024
2684143
Updates to the native windows store locator (#23426)
DonJayamanne May 14, 2024
3da19c4
Add more logging and some tweaks (#23425)
karthiknadig May 14, 2024
156f22c
Remove sysPrefixPath from native locator (#23427)
DonJayamanne May 14, 2024
a91346b
Resolve bug with session not being a parent of tests while building t…
eleanorjboyd May 14, 2024
312d9ef
add sys config scripts path to test execution path (#23418)
eleanorjboyd May 14, 2024
ed61651
Update release plan (#23431)
paulacamargo25 May 14, 2024
d057346
Search for conda envs in known locations (#23428)
DonJayamanne May 15, 2024
ad7611b
Ignore native locator tests folder (#23436)
DonJayamanne May 15, 2024
889ec9d
Add support for Native locator (#23435)
DonJayamanne May 15, 2024
6997f7b
Add Interactive REPL Experiment (#23235)
anthonykim1 May 16, 2024
0a88ed3
fix parameterized test duplicate function different classes (#23439)
eleanorjboyd May 16, 2024
5a1b295
Activate base conda envs using 'name', add env_path for homebrew (#23…
DonJayamanne May 16, 2024
b4dcd52
Ensure resolvers accept data from native locators (#23444)
DonJayamanne May 16, 2024
e4ef0e4
Updates to python locator (#23446)
DonJayamanne May 20, 2024
deae60a
Build rust python finder for CI and produce a package (#23465)
karthiknadig May 22, 2024
7066f82
Capture count of envs collected (#23471)
DonJayamanne May 23, 2024
594c9c0
Ensure Windows Store takes precedence over Registry and fix Conda loc…
DonJayamanne May 24, 2024
d2187e5
Adding detail to create environment pip install prompt (#23470)
cwebster-99 May 24, 2024
75cc52b
Allow execute on enter and Intellisense for native REPL with notebook…
anthonykim1 May 24, 2024
55fd22c
Allow reopening of native REPL after closing (#23478)
anthonykim1 May 24, 2024
891c7a4
Fix telemetry annotations (#23481)
lramos15 May 24, 2024
2fe49ea
Ensure native locator is included in the VSIX when built (#23476)
karthiknadig May 24, 2024
da9caf0
Add flags to optimize binary size (#23483)
karthiknadig May 24, 2024
2b35e50
Wip
DonJayamanne May 25, 2024
1109496
Updates with logging
DonJayamanne May 25, 2024
24cf60d
Ooops
DonJayamanne May 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions .config/CredScanSuppressions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"tool": "Credential Scanner",
"suppressions": [
{
"file": [
"file:///mnt/vss/_work/1/a/extension/extension/.nox/install_python_libs/lib/python3.8/site-packages/setuptools/_distutils/command%5Cregister.py",
"file:///mnt/vss/_work/1/b/extension/extension/.nox/install_python_libs/lib/python3.8/site-packages/setuptools/_distutils/command%5Cregister.py"
],
"_justification": "These are not real passwords. For documentation purposes only."
}
]
}
18 changes: 18 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM mcr.microsoft.com/devcontainers/typescript-node:18-bookworm

RUN apt-get install -y wget bzip2

# Run in silent mode and save downloaded script as anaconda.sh.
# Run with /bin/bash and run in silent mode to /opt/conda.
# Also get rid of installation script after finishing.
RUN wget --quiet https://repo.anaconda.com/archive/Anaconda3-2023.07-1-Linux-x86_64.sh -O ~/anaconda.sh && \
/bin/bash ~/anaconda.sh -b -p /opt/conda && \
rm ~/anaconda.sh

ENV PATH="/opt/conda/bin:$PATH"

# Sudo apt update needs to run in order for installation of fish to work .
RUN sudo apt update && \
sudo apt install fish -y


30 changes: 30 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// For format details, see https://aka.ms/devcontainer.json.
{
"name": "VS Code Python Dev Container",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"build": {
"dockerfile": "./Dockerfile",
"context": ".."
},
"customizations": {
"vscode": {
"extensions": [
"charliermarsh.ruff",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.debugpy"
]
}
},
// Commands to execute on container creation,start.
"postCreateCommand": "bash scripts/postCreateCommand.sh",
"onCreateCommand": "bash scripts/onCreateCommand.sh",

"containerEnv": {
"CI_PYTHON_PATH": "/workspaces/vscode-python/.venv/bin/python"
}

}
18 changes: 3 additions & 15 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
pythonExtensionApi/out/

# The following files were grandfathered out of eslint. They can be removed as time permits.

src/test/analysisEngineTest.ts
Expand Down Expand Up @@ -48,8 +50,6 @@ src/test/testing/common/services/configSettingService.unit.test.ts

src/test/common/exitCIAfterTestReporter.ts

src/test/common/net/fileDownloader.unit.test.ts
src/test/common/net/httpClient.unit.test.ts

src/test/common/terminals/activator/index.unit.test.ts
src/test/common/terminals/activator/base.unit.test.ts
Expand All @@ -76,7 +76,6 @@ src/test/common/platform/filesystem.test.ts

src/test/common/utils/cacheUtils.unit.test.ts
src/test/common/utils/decorators.unit.test.ts
src/test/common/utils/localize.functional.test.ts
src/test/common/utils/version.unit.test.ts

src/test/common/configSettings/configSettings.unit.test.ts
Expand Down Expand Up @@ -106,9 +105,8 @@ src/test/common/process/proc.unit.test.ts
src/test/common/interpreterPathService.unit.test.ts


src/test/pythonFiles/formatting/dummy.ts
src/test/python_files/formatting/dummy.ts

src/test/debugger/extension/banner.unit.test.ts
src/test/debugger/extension/adapter/adapter.test.ts
src/test/debugger/extension/adapter/outdatedDebuggerPrompt.unit.test.ts
src/test/debugger/extension/adapter/factory.unit.test.ts
Expand All @@ -124,7 +122,6 @@ src/test/telemetry/index.unit.test.ts
src/test/telemetry/envFileTelemetry.unit.test.ts

src/test/application/diagnostics/checks/macPythonInterpreter.unit.test.ts
src/test/application/diagnostics/checks/pythonPathDeprecated.unit.test.ts
src/test/application/diagnostics/checks/pythonInterpreter.unit.test.ts
src/test/application/diagnostics/checks/invalidLaunchJsonDebugger.unit.test.ts
src/test/application/diagnostics/checks/powerShellActivation.unit.test.ts
Expand All @@ -139,7 +136,6 @@ src/test/performance/load.perf.test.ts

src/client/interpreter/configuration/interpreterSelector/commands/base.ts
src/client/interpreter/configuration/interpreterSelector/commands/resetInterpreter.ts
src/client/interpreter/configuration/interpreterSelector/commands/setShebangInterpreter.ts
src/client/interpreter/configuration/pythonPathUpdaterServiceFactory.ts
src/client/interpreter/configuration/services/globalUpdaterService.ts
src/client/interpreter/configuration/services/workspaceUpdaterService.ts
Expand All @@ -148,7 +144,6 @@ src/client/interpreter/helpers.ts
src/client/interpreter/virtualEnvs/condaInheritEnvPrompt.ts
src/client/interpreter/display/index.ts

src/client/api.ts
src/client/extension.ts
src/client/sourceMapSupport.ts
src/client/startupTelemetry.ts
Expand Down Expand Up @@ -178,12 +173,9 @@ src/client/testing/common/runner.ts

src/client/common/helpers.ts
src/client/common/net/browser.ts
src/client/common/net/fileDownloader.ts
src/client/common/net/httpClient.ts
src/client/common/net/socket/socketCallbackHandler.ts
src/client/common/net/socket/socketServer.ts
src/client/common/net/socket/SocketStream.ts
src/client/common/asyncDisposableRegistry.ts
src/client/common/editor.ts
src/client/common/contextKey.ts
src/client/common/experiments/telemetry.ts
Expand All @@ -208,10 +200,6 @@ src/client/common/terminal/shellDetectors/vscEnvironmentShellDetector.ts
src/client/common/terminal/shellDetectors/terminalNameShellDetector.ts
src/client/common/terminal/shellDetectors/settingsShellDetector.ts
src/client/common/terminal/shellDetectors/baseShellDetector.ts
src/client/common/terminal/environmentActivationProviders/baseActivationProvider.ts
src/client/common/terminal/environmentActivationProviders/commandPrompt.ts
src/client/common/terminal/environmentActivationProviders/bash.ts
src/client/common/terminal/environmentActivationProviders/pyenvActivationProvider.ts
src/client/common/utils/decorators.ts
src/client/common/utils/enum.ts
src/client/common/utils/platform.ts
Expand Down
15 changes: 15 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Prettier
2b6a8f2d439fe9d5e66665ea46d8b690ac9b2c39
649156a09ccdc51c0d20f7cd44540f1918f9347b
4f774d94bf4fbf87bb417b2b2b8e79e334eb3536
61b179b2092050709e3c373a6738abad8ce581c4
c33617b0b98daeb4d72040b48c5850b476d6256c
db8e1e2460e9754ec0672d958789382b6d15c5aa
08bc9ad3bee5b19f02fa756fbc53ab32f1b39920
# Black
a58eeffd1b64498e2afe5f11597888dfd1c8699c
5cd8f539f4d2086b718c8f11f823c0ac12fc2c49
9ec9e9eaebb25adc6d942ac19d4d6c128abb987f
c4af91e090057d20d7a633b3afa45eaa13ece76f
# Ruff
e931bed3efbede7b05113316506958ecd7506777
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ contact_links:
- name: 'Jupyter'
url: https://github.com/microsoft/vscode-jupyter/issues
about: 'For issues relating to the Jupyter extension (including the interactive window)'
- name: 'Debugpy'
url: https://github.com/microsoft/debugpy/issues
about: 'For issues relating to the debugpy debugger'
- name: 'Python Debugger'
url: https://github.com/microsoft/vscode-python-debugger/issues
about: 'For issues relating to the Python debugger'
- name: Help/Support
url: https://github.com/microsoft/vscode-python/discussions/categories/q-a
about: 'Having trouble with the extension? Need help getting something to work?'
62 changes: 33 additions & 29 deletions .github/actions/build-vsix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,70 +11,74 @@ inputs:
artifact_name:
description: 'Name to give the artifact containing the VSIX'
required: true
cargo_target:
description: 'Cargo build target for the native build'
required: true
vsix_target:
description: 'vsix build target for the native build'
required: true

runs:
using: 'composite'
steps:
- name: Install Node
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node_version }}
cache: 'npm'

- name: Rust Tool Chain setup
uses: dtolnay/rust-toolchain@stable

# Jedi LS depends on dataclasses which is not in the stdlib in Python 3.7.
- name: Use Python 3.7 for JediLSP
uses: actions/setup-python@v2
- name: Use Python 3.8 for JediLSP
uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: 3.8
cache: 'pip'
cache-dependency-path: |
requirements.txt
build/debugger-install-requirements.txt
pythonFiles/jedilsp_requirements/requirements.txt
python_files/jedilsp_requirements/requirements.txt

- name: Upgrade Pip
run: python -m pip install -U pip
shell: bash

# For faster/better builds of sdists.
- name: Install build pre-requisite
run: python -m pip install wheel
run: python -m pip install wheel nox
shell: bash

- name: Install Python dependencies
uses: brettcannon/pip-secure-install@v1
with:
options: '-t ./pythonFiles/lib/python --implementation py'
- name: Install Python Extension dependencies (jedi, etc.)
run: nox --session install_python_libs
shell: bash

- name: Install debugpy
run: |
python -m pip --disable-pip-version-check install -r build/debugger-install-requirements.txt
python ./pythonFiles/install_debugpy.py
- name: Add Rustup target
run: rustup target add ${{ inputs.cargo_target }}
shell: bash

- name: Install Jedi LSP
uses: brettcannon/pip-secure-install@v1
with:
requirements-file: './pythonFiles/jedilsp_requirements/requirements.txt'
options: '-t ./pythonFiles/lib/jedilsp --implementation py --platform any --abi none'
- name: Build Native Binaries
run: nox --session native_build
shell: bash
env:
CARGO_TARGET: ${{ inputs.cargo_target }}

- name: Run npm ci
run: npm ci --prefer-offline
shell: bash

# Use the GITHUB_RUN_ID environment variable to update the build number.
# GITHUB_RUN_ID is a unique number for each run within a repository.
# This number does not change if you re-run the workflow run.
- name: Update extension build number
run: npm run updateBuildNumber -- --buildNumber $GITHUB_RUN_ID
shell: bash

- name: Update optional extension dependencies
run: npm run addExtensionPackDependencies
shell: bash

- name: Build Webpack
run: |
npx gulp clean
npx gulp prePublishBundle
shell: bash

- name: Build VSIX
run: npm run package
run: npx vsce package --target ${{ inputs.vsix_target }} --out ms-python-insiders.vsix --pre-release
shell: bash

- name: Rename VSIX
Expand All @@ -83,7 +87,7 @@ runs:
shell: bash

- name: Upload VSIX
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.artifact_name }}
path: ${{ inputs.vsix_name }}
Expand Down
13 changes: 7 additions & 6 deletions .github/actions/lint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ runs:
using: 'composite'
steps:
- name: Install Node
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node_version }}
cache: 'npm'
Expand All @@ -36,14 +36,15 @@ runs:
shell: bash

- name: Install Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: 'pip'

- name: Check Python format
- name: Run Ruff
run: |
python -m pip install -U black
python -m black . --check
working-directory: pythonFiles
python -m pip install -U ruff
python -m ruff check .
python -m ruff format --check
working-directory: python_files
shell: bash
9 changes: 1 addition & 8 deletions .github/actions/smoke-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ runs:
cache-dependency-path: |
build/test-requirements.txt
requirements.txt
build/smoke-test-requirements.txt

- name: Install dependencies (npm ci)
run: npm ci --prefer-offline
Expand All @@ -35,17 +34,11 @@ runs:
- name: Install Python requirements
uses: brettcannon/pip-secure-install@v1
with:
options: '-t ./pythonFiles/lib/python --implementation py'
options: '-t ./python_files/lib/python --implementation py'

- name: pip install system test requirements
run: |
python -m pip install --upgrade -r build/test-requirements.txt
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --implementation py --no-deps --upgrade --pre debugpy
shell: bash

- name: pip install smoke test requirements
run: |
python -m pip install --upgrade -r build/smoke-test-requirements.txt
shell: bash

# Bits from the VSIX are reused by smokeTest.ts to speed things up.
Expand Down
22 changes: 21 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,27 @@ updates:
labels:
- 'no-changelog'

- package-ecosystem: 'github-actions'
directory: .github/actions/build-vsix
schedule:
interval: daily
labels:
- 'no-changelog'

- package-ecosystem: 'github-actions'
directory: .github/actions/lint
schedule:
interval: daily
labels:
- 'no-changelog'

- package-ecosystem: 'github-actions'
directory: .github/actions/smoke-test
schedule:
interval: daily
labels:
- 'no-changelog'

# Not skipping the news for some Python dependencies in case it's actually useful to communicate to users.
- package-ecosystem: 'pip'
directory: /
Expand All @@ -16,7 +37,6 @@ updates:
- dependency-name: prospector # Due to Python 2.7 and #14477.
- dependency-name: pytest # Due to Python 2.7 and #13776.
- dependency-name: py # Due to Python 2.7.
- dependency-name: isort
- dependency-name: jedi-language-server
labels:
- 'no-changelog'
Expand Down
Loading
Loading