Skip to content

Commit 57f3982

Browse files
committed
Merge remote-tracking branch 'upstream/master'
* upstream/master: Debug specific unittest test ends up running all failed tests (#671) Fix unhandled promise rejections (#702) 🐛 Fixes #700 replace back slashes in fie paths with forward slashes (#707) Validate file execution handler (#698) Update contributing guide (#687) Formatting on Enter (#649) Start the 2018.2.0 alpha (#685) Prep for 2018.1 final (#683) Speed up interpreter locators (#676) Create a release candidate (#663) Activation of terminal using conda activate and fixes to powershell script execution (#665) Register linter commands (#653) Preserve focus when sending text to a terminal (#651) Work around VSC issue with formatting on save #624 (#635) Korean translation (#540) Improving getting started instructions in README and minor updates to contributors guide (#605) Bump to a beta version for some testing (#630) Activate extension when command 'Create Terminal' is invoked (#632)
2 parents 5c8addf + 732af14 commit 57f3982

File tree

87 files changed

+2836
-7114
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+2836
-7114
lines changed

CHANGELOG.md

+53
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,58 @@
11
# Changelog
22

3+
## 2018.2.0
4+
5+
XXX
6+
7+
## 2018.1.0 (01 Feb 2018)
8+
9+
### Thanks
10+
11+
Thanks to everyone who contributed to this release, including
12+
the following people who contributed code:
13+
14+
* [jpfarias](https://github.com/jpfarias)
15+
* [Hongbo He](https://github.com/graycarl)
16+
* [JohnstonCode](https://github.com/JohnstonCode)
17+
* [Yuichi Nukiyama](https://github.com/YuichiNukiyama)
18+
* [MichaelSuen](https://github.com/MichaelSuen-thePointer)
19+
20+
### Fixed issues
21+
22+
* Support cached interpreter locations for faster interpreter selection ([#666](https://github.com/Microsoft/vscode-python/issues/259))
23+
* Sending a block of code with multiple global-level scopes now works ([#259](https://github.com/Microsoft/vscode-python/issues/259))
24+
* Automatic activation of virtual or conda environment in terminal when executing Python code/file ([#383](https://github.com/Microsoft/vscode-python/issues/383))
25+
* Introduce a `Python: Create Terminal` to create a terminal that activates the selected virtual/conda environment ([#622](https://github.com/Microsoft/vscode-python/issues/622))
26+
* Add a `ko-kr` translation ([#540](https://github.com/Microsoft/vscode-python/pull/540))
27+
* Add a `ru` translation ([#411](https://github.com/Microsoft/vscode-python/pull/411))
28+
* Performance improvements to detection of virtual environments in current workspace ([#372](https://github.com/Microsoft/vscode-python/issues/372))
29+
* Correctly detect 64-bit python ([#414](https://github.com/Microsoft/vscode-python/issues/414))
30+
* Display parameter information while typing ([#70](https://github.com/Microsoft/vscode-python/issues/70))
31+
* Use `localhost` instead of `0.0.0.0` when starting debug servers ([#205](https://github.com/Microsoft/vscode-python/issues/205))
32+
* Ability to configure host name of debug server ([#227](https://github.com/Microsoft/vscode-python/issues/227))
33+
* Use environment variable PYTHONPATH defined in `.env` for intellisense and code navigation ([#316](https://github.com/Microsoft/vscode-python/issues/316))
34+
* Support path variable when debugging ([#436](https://github.com/Microsoft/vscode-python/issues/436))
35+
* Ensure virtual environments can be created in `.env` directory ([#435](https://github.com/Microsoft/vscode-python/issues/435), [#482](https://github.com/Microsoft/vscode-python/issues/482), [#486](https://github.com/Microsoft/vscode-python/issues/486))
36+
* Reload environment variables from `.env` without having to restart VS Code ([#183](https://github.com/Microsoft/vscode-python/issues/183))
37+
* Support debugging of Pyramid framework on Windows ([#519](https://github.com/Microsoft/vscode-python/issues/519))
38+
* Code snippet for `pubd` ([#545](https://github.com/Microsoft/vscode-python/issues/545))
39+
* Code clean up ([#353](https://github.com/Microsoft/vscode-python/issues/353), [#352](https://github.com/Microsoft/vscode-python/issues/352), [#354](https://github.com/Microsoft/vscode-python/issues/354), [#456](https://github.com/Microsoft/vscode-python/issues/456), [#491](https://github.com/Microsoft/vscode-python/issues/491), [#228](https://github.com/Microsoft/vscode-python/issues/228), [#549](https://github.com/Microsoft/vscode-python/issues/545), [#594](https://github.com/Microsoft/vscode-python/issues/594), [#617](https://github.com/Microsoft/vscode-python/issues/617), [#556](https://github.com/Microsoft/vscode-python/issues/556))
40+
* Move to `yarn` from `npm` ([#421](https://github.com/Microsoft/vscode-python/issues/421))
41+
* Add code coverage for extension itself ([#464](https://github.com/Microsoft/vscode-python/issues/464))
42+
* Releasing [insiders build](https://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix) of the extension and uploading to cloud storage ([#429](https://github.com/Microsoft/vscode-python/issues/429))
43+
* Japanese translation ([#434](https://github.com/Microsoft/vscode-python/pull/434))
44+
* Russian translation ([#411](https://github.com/Microsoft/vscode-python/pull/411))
45+
* Support paths with spaces when generating tags with `Build Workspace Symbols` ([#44](https://github.com/Microsoft/vscode-python/issues/44))
46+
* Add ability to configure the linters ([#572](https://github.com/Microsoft/vscode-python/issues/572))
47+
* Add default set of rules for Pylint ([#554](https://github.com/Microsoft/vscode-python/issues/554))
48+
* Prompt to install formatter if not available ([#524](https://github.com/Microsoft/vscode-python/issues/524))
49+
* work around `editor.formatOnSave` failing when taking more then 750ms ([#124](https://github.com/Microsoft/vscode-python/issues/124), [#590](https://github.com/Microsoft/vscode-python/issues/590), [#624](https://github.com/Microsoft/vscode-python/issues/624), [#427](https://github.com/Microsoft/vscode-python/issues/427), [#492](https://github.com/Microsoft/vscode-python/issues/492))
50+
* Function argument completion no longer automatically includes the default argument ([#522](https://github.com/Microsoft/vscode-python/issues/522))
51+
* When sending a selection to the terminal, keep the focus in the editor window ([#60](https://github.com/Microsoft/vscode-python/issues/60))
52+
* Install packages for non-environment Pythons as `--user` installs ([#527](https://github.com/Microsoft/vscode-python/issues/527))
53+
* No longer suggest the system Python install on macOS when running `Select Interpreter` as it's too outdated (e.g. lacks `pip`) ([#440](https://github.com/Microsoft/vscode-python/issues/440))
54+
* Fix potential hang from Intellisense ([#423](https://github.com/Microsoft/vscode-python/issues/423))
55+
356
## Version 0.9.1 (19 December 2017)
457

558
* Fixes the compatibility issue with the [Visual Studio Code Tools for AI](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.vscode-ai) [#432](https://github.com/Microsoft/vscode-python/issues/432)

CONTRIBUTING.md

+26-34
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Prerequisites
66

7-
1. Node.js (>= 8.9.1, < 9.0.0)
7+
1. Node.js (>= 8.9.1, < 9.0.0), and [Yarn](https://yarnpkg.com/lang/en/docs/install/)
88
2. Python 2.7 or later (required only for testing the extension and running unit tests)
99
3. Windows, OS X or Linux
1010
4. Visual Studio Code
@@ -20,6 +20,8 @@ cd vscode-python
2020
yarn install
2121
```
2222

23+
You may see warnings that ```The engine "vscode" appears to be invalid.```, you can ignore these.
24+
2325
### Incremental Build
2426

2527
Run the `Compile` and `Hygiene` build Tasks from the [Command Palette](https://code.visualstudio.com/docs/editor/tasks) (short cut `CTRL+SHIFT+B` or `⇧⌘B`)
@@ -91,7 +93,7 @@ for a release are tracked in a
9193
[milestone](https://github.com/Microsoft/vscode-python/milestones)
9294
(which is actively updated as plans change).
9395

94-
The overall schedule for a release is to code freeze for on the last
96+
The overall schedule for a release is to feature freeze for on the last
9597
Monday of the month to coincide with Visual Studio Code's code freeze.
9698
We then aim to release later that week so the latest version of the
9799
extension is already live by the time Visual Studio Code launches
@@ -102,16 +104,10 @@ between scheduled releases as necessary.
102104
All development is actively done in the `master` branch of the
103105
repository. It is what allows us to have an
104106
[insiders build](#insiders-build) which is expected to be stable at
105-
all times. We do keep the previous release as a branch in case the
107+
all times. We do keep the most recent release as a branch in case the
106108
need for a bugfix release arises. But once a new release is made we
107-
convert the older branch into a tag and delete the branch as
108-
Visual Studio Code's automatic updating makes keeping old versions
109-
around unnecessary.
110-
111-
Since we try to spend about 25% of our development time fixing bugs
112-
and removing technical debt, the week of a release is mostly spent
113-
focusing on that topic. That way we don't ignore the health of the
114-
code base by accidentally focusing on new features exclusively.
109+
delete the older release branch (all releases are appropriately
110+
tagged, so history is lost).
115111

116112
### Issue triaging
117113

@@ -140,21 +136,17 @@ lexicographically sort from earliest stage to latest stage). The
140136
suffix term for each label then specifies what is currently blocking
141137
the issue from being closed.
142138

143-
* `1-`
144-
* [`decision`](https://github.com/Microsoft/vscode-python/labels/awaiting%201-decision):
145-
The issue is a feature enhancement request and a decision has not
146-
been made as to whether we would accept a pull request
147-
implementing the enhancement
148-
* [`more info`](https://github.com/Microsoft/vscode-python/labels/awaiting%201-more%20info):
149-
We need more information from the OP (original poster)
150-
* [`verification`](https://github.com/Microsoft/vscode-python/labels/awaiting%201-verification):
151-
We need to verify that the issue can be replicated
139+
* [`1-decision`](https://github.com/Microsoft/vscode-python/labels/awaiting%201-decision):
140+
The issue is a feature enhancement request and a decision has not
141+
been made as to whether we would accept a pull request
142+
implementing the enhancement
143+
* [`1-more info`](https://github.com/Microsoft/vscode-python/labels/awaiting%201-more%20info):
144+
We need more information from the OP (original poster)
145+
* [`1-verification`](https://github.com/Microsoft/vscode-python/labels/awaiting%201-verification):
146+
We need to verify that the issue is reproducible
152147
* [`2-PR`](https://github.com/Microsoft/vscode-python/labels/awaiting%202-PR):
153148
The issue is valid and is now awaiting a fix to be created and
154149
merged into the `master` branch
155-
* [`4-validation`](https://github.com/Microsoft/vscode-python/labels/awaiting%204-validation):
156-
A pull request has been merged and resolution of the issue should be
157-
independently validated
158150

159151
#### Closed issues
160152

@@ -166,22 +158,21 @@ it should have an appropriate `closed-` label.
166158

167159
1. Check that there is an issue corresponding to what the pull request
168160
is attempting to address
169-
* If an issue exists, make sure it has reached the stage of being
170-
labeled `awaiting 2-PR`
161+
* If an issue exists, make sure it has reached the stage of
162+
`awaiting 2-PR`
171163
* If no issue exists, open one and wait for it to reach the
172164
`awaiting 2-PR` stage before submitting the pull request
173-
1. Open the pull request, mentioning the appropriate issue(s) in the
165+
1. Create the pull request, mentioning the appropriate issue(s) in the
174166
pull request message body
175167
* The pull request is expected to have appropriate unit tests
176168
* The pull request must pass its CI run before merging will be
177169
considered
178-
* Code coverage is expected to not worsen
170+
* Code coverage is expected to (at minimum) not worsen
179171
1. Make sure all status checks are green (e.g. CLA check, CI, etc.)
180172
1. Address any review comments
181173
1. [Maintainers only] Merge the pull request
182174
1. [Maintainers only] Update affected issues to be:
183175
1. Closed (with an appropriate `closed-` label)
184-
1. The stage is set to `awaiting 4-validation`
185176
1. The issue(s) are attached to the current milestone
186177
1. Register OSS usage
187178
1. Email CELA about any 3rd-party usage changes
@@ -192,11 +183,12 @@ Starting in 2018, the extension switched to
192183
[calendar versioning](http://calver.org/) since the extension
193184
auto-updates and thus there is no need to track its version
194185
number for backwards-compatibility. As such, the major version
195-
is the current year, the minor version is the current month, and
196-
the micro version is how many releases there have been that month in
197-
the year (starting at 0). For example, the first release in July 2018
198-
would be `2018.7.0`, the second release that month would be
199-
`2018.7.1`, etc.
186+
is the current year, the minor version is the month when feature
187+
freeze was reached, and the micro version is how many releases there
188+
have been since that feature freeze (starting at 0). For example
189+
the release made when we reach feature freeze in July 2018
190+
would be `2018.7.0`, and if a second release was necessary to fix a
191+
critical bug it would be `2018.7.1`.
200192

201193
## Insiders Build
202194

@@ -212,7 +204,7 @@ file, please follow the instructions on
212204
[this page](https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix)
213205
to install the extension.
214206

215-
The insiders build of the extension ...:
207+
The insiders build of the extension:
216208

217209
* Will be replaced with new releases published onto the
218210
[VS Code Marketplace](https://marketplace.visualstudio.com/VSCode).

0 commit comments

Comments
 (0)