Skip to content

Commit 8518a6b

Browse files
authored
Update to the RC (#1557)
1 parent a0d25e0 commit 8518a6b

File tree

4 files changed

+96
-44
lines changed

4 files changed

+96
-44
lines changed

CHANGELOG.md

Lines changed: 81 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## 2018.4.0-beta (23 Mar 2018)
3+
## 2018.4.0-rc (30 Apr 2018)
44

55
Thanks to the following projects which we fully rely on to provide some of
66
our features:
@@ -16,18 +16,38 @@ his help on [our issue tracker](https://github.com/Microsoft/vscode-python)!
1616

1717
### Enhancements
1818

19+
1. Enable debugging of Jinja templates in the experimental debugger.
20+
This is made possible with the addition of the `jinja` setting in the `launch.json` file as follows:
21+
```json
22+
"request": "launch or attach",
23+
...
24+
"jinja": true
25+
```
26+
([#1206](https://github.com/Microsoft/vscode-python/issues/1206))
27+
1. Remove empty spaces from the selected text of the active editor when executing in a terminal.
28+
([#1207](https://github.com/Microsoft/vscode-python/issues/1207))
1929
1. Add prelimnary support for remote debugging using the experimental debugger.
20-
Attach to a Python program started using the command `python -m ptvsd --server --port 9091 --file pythonFile.py` ([#1229](https://github.com/Microsoft/vscode-python/issues/1229))
30+
Attach to a Python program started using the command `python -m ptvsd --server --port 9091 --file pythonFile.py`
31+
([#1229](https://github.com/Microsoft/vscode-python/issues/1229))
2132
1. Add support for [logpoints](https://code.visualstudio.com/docs/editor/debugging#_logpoints) in the experimental debugger.
22-
([#1306](https://github.com/Microsoft/vscode-python/issues/1306))
33+
([#1306](https://github.com/Microsoft/vscode-python/issues/1306))
2334
1. Set focus to the terminal upon creation of a terminal using the `Python: Create Terminal` command.
24-
([#1315](https://github.com/Microsoft/vscode-python/issues/1315))
35+
([#1315](https://github.com/Microsoft/vscode-python/issues/1315))
36+
1. Save the python file before running it in the terminal using the command/menu `Run Python File in Terminal`.
37+
([#1316](https://github.com/Microsoft/vscode-python/issues/1316))
2538
1. Added support for source references (remote debugging without having the source code locally) in the experimental debugger.
26-
([#1333](https://github.com/Microsoft/vscode-python/issues/1333))
39+
([#1333](https://github.com/Microsoft/vscode-python/issues/1333))
40+
1. Add `Ctrl+Enter` keyboard shortcut for `Run Selection/Line in Python Terminal`.
41+
([#1349](https://github.com/Microsoft/vscode-python/issues/1349))
2742
1. Settings configured within the `debugOptions` property of `launch.json` for the old debugger are now defined as individual (boolean) properties in the new experimental debugger (e.g. `"debugOptions": ["RedirectOutput"]` becomes `"redirectOutput": true`).
28-
([#1395](https://github.com/Microsoft/vscode-python/issues/1395))
29-
1. Intergrate Jedi 0.12. See https://github.com/davidhalter/jedi/issues/1063#issuecomment-381417297 for details. ([#1400](https://github.com/Microsoft/vscode-python/issues/1400))
30-
1. Add prelimnary support for remote debugging using the experimental debugger. ([#907](https://github.com/Microsoft/vscode-python/issues/907))
43+
([#1395](https://github.com/Microsoft/vscode-python/issues/1395))
44+
1. Intergrate Jedi 0.12. See https://github.com/davidhalter/jedi/issues/1063#issuecomment-381417297 for details.
45+
([#1400](https://github.com/Microsoft/vscode-python/issues/1400))
46+
1. Enable Jinja template debugging as a default behaivour when using the Watson debug configuration for debugging of Watson applications.
47+
([#1480](https://github.com/Microsoft/vscode-python/issues/1480))
48+
1. Enable Jinja template debugging as a default behavior when debugging Pyramid applications.
49+
([#1492](https://github.com/Microsoft/vscode-python/issues/1492))
50+
1. Add prelimnary support for remote debugging using the experimental debugger.
3151
Attach to a Python program after having imported `ptvsd` and enabling the debugger to attach as follows:
3252
```python
3353
import ptvsd
@@ -37,56 +57,83 @@ Attach to a Python program started using the command `python -m ptvsd --server -
3757
* `ptvsd.break_into_debugger()` to break into the attached debugger.
3858
* `ptvsd.wait_for_attach(timeout)` to cause the program to wait untill a debugger attaches.
3959
* `ptvsd.is_attached()` to determine whether a debugger is attached to the program.
60+
([#907](https://github.com/Microsoft/vscode-python/issues/907))
4061

4162
### Fixes
4263

43-
1. Use an existing method to identify the active interpreter. ([#1015](https://github.com/Microsoft/vscode-python/issues/1015))
44-
1. Fix go to definition functionality across files. ([#1033](https://github.com/Microsoft/vscode-python/issues/1033))
64+
1. Use an existing method to identify the active interpreter.
65+
([#1015](https://github.com/Microsoft/vscode-python/issues/1015))
66+
1. Fix `go to definition` functionality across files.
67+
([#1033](https://github.com/Microsoft/vscode-python/issues/1033))
4568
1. IntelliSense under Python 2 for inherited attributes works again (thanks to an upgraded Jedi).
46-
([#1072](https://github.com/Microsoft/vscode-python/issues/1072))
69+
([#1072](https://github.com/Microsoft/vscode-python/issues/1072))
4770
1. Reverted change that ended up considering symlinked interpreters as duplicate interpreter.
48-
([#1192](https://github.com/Microsoft/vscode-python/issues/1192))
71+
([#1192](https://github.com/Microsoft/vscode-python/issues/1192))
4972
1. Display errors returned by the PipEnv command when identifying the corresonding environment.
50-
([#1254](https://github.com/Microsoft/vscode-python/issues/1254))
73+
([#1254](https://github.com/Microsoft/vscode-python/issues/1254))
5174
1. When `editor.formatOnType` is on, don't add a space for `*args` or `**kwargs`
52-
([#1257](https://github.com/Microsoft/vscode-python/issues/1257))
75+
([#1257](https://github.com/Microsoft/vscode-python/issues/1257))
5376
1. When `editor.formatOnType` is on, don't add a space between a string type specifier and the string literal
54-
([#1257](https://github.com/Microsoft/vscode-python/issues/1257))
77+
([#1257](https://github.com/Microsoft/vscode-python/issues/1257))
78+
1. Reduce the frequency within which the memory usage of the language server is checked, also ensure memory usage is not checked unless language server functionality is used.
79+
([#1277](https://github.com/Microsoft/vscode-python/issues/1277))
5580
1. Ensure interpreter file exists on the file system before including into list of interpreters.
56-
([#1305](https://github.com/Microsoft/vscode-python/issues/1305))
81+
([#1305](https://github.com/Microsoft/vscode-python/issues/1305))
5782
1. Do not have the formatter consider single-quoted string multiline even if it is not terminated.
58-
([#1364](https://github.com/Microsoft/vscode-python/issues/1364))
83+
([#1364](https://github.com/Microsoft/vscode-python/issues/1364))
5984
1. IntelliSense works in module-level `if` statements (thanks to Jedi 0.12.0 upgrade).
60-
([#142](https://github.com/Microsoft/vscode-python/issues/142))
85+
([#142](https://github.com/Microsoft/vscode-python/issues/142))
86+
1. Clicking the codelens `Run Test` on a test class should run that specific test class instead of all tests in the file.
87+
([#1472](https://github.com/Microsoft/vscode-python/issues/1472))
88+
1. Clicking the codelens `Run Test` on a test class or method should run that specific test instead of all tests in the file.
89+
([#1473](https://github.com/Microsoft/vscode-python/issues/1473))
90+
1. Check whether the selected python interpreter is valid before starting the language server. Failing to do so could result in the extension failing to load.
91+
([#1487](https://github.com/Microsoft/vscode-python/issues/1487))
92+
1. Fixes the issue where Conda environments created using the latest version of Anaconda are not activated in Powershell.
93+
([#1520](https://github.com/Microsoft/vscode-python/issues/1520))
94+
1. Increase the delay for the activation of environments in Powershell terminals.
95+
([#1533](https://github.com/Microsoft/vscode-python/issues/1533))
96+
1. Fix activation of environments with spaces in the python path when using Powershell.
97+
([#1534](https://github.com/Microsoft/vscode-python/issues/1534))
98+
1. Ensure Flask application is launched with multi-threading disabled, when run in the CI tests.
99+
([#1535](https://github.com/Microsoft/vscode-python/issues/1535))
61100
1. IntelliSense works appropriately when a project contains multiple files with the same name (thanks to Jedi 0.12.0 update).
62-
([#178](https://github.com/Microsoft/vscode-python/issues/178))
101+
([#178](https://github.com/Microsoft/vscode-python/issues/178))
102+
1. Add blank lines to separate blocks of indented code (function defs, classes, and the like) so as to ensure the code can be run within a Python interactive prompt.
103+
([#259](https://github.com/Microsoft/vscode-python/issues/259))
63104
1. Provide type details appropriate for the iterable in a `for` loop when the line has a `# type` comment.
64-
([#338](https://github.com/Microsoft/vscode-python/issues/338))
105+
([#338](https://github.com/Microsoft/vscode-python/issues/338))
65106
1. Parameter hints following an f-string work again.
66-
([#344](https://github.com/Microsoft/vscode-python/issues/344))
107+
([#344](https://github.com/Microsoft/vscode-python/issues/344))
67108
1. When `editor.formatOnType` is on, don't indent after a single-line statement block
68-
([#726](https://github.com/Microsoft/vscode-python/issues/726))
109+
([#726](https://github.com/Microsoft/vscode-python/issues/726))
110+
1. Fix debugging of Pyramid applications on Windows.
111+
([#737](https://github.com/Microsoft/vscode-python/issues/737))
69112

70113
### Code Health
71114

72-
1. Improved developer experience of the Python Extension on Windows. ([#1216](https://github.com/Microsoft/vscode-python/issues/1216))
115+
1. Improved developer experience of the Python Extension on Windows.
116+
([#1216](https://github.com/Microsoft/vscode-python/issues/1216))
73117
1. Parallelize jobs (unit tests) on CI server.
74-
([#1247](https://github.com/Microsoft/vscode-python/issues/1247))
75-
1. Run CI tests against the release version and master branch of PTVSD (experimental debugger), allowing tests to fail against the mastre branch of PTVSD.
76-
([#1253](https://github.com/Microsoft/vscode-python/issues/1253))
118+
([#1247](https://github.com/Microsoft/vscode-python/issues/1247))
119+
1. Run CI tests against the release version and master branch of PTVSD (experimental debugger), allowing tests to fail against the master branch of PTVSD.
120+
([#1253](https://github.com/Microsoft/vscode-python/issues/1253))
77121
1. Only trigger the extension for `file` and `untitled` in preparation for
78-
[Visual Studio Live Share](https://aka.ms/vsls)
79-
(thanks to [Jonathan Carter](https://github.com/lostintangent))
80-
([#1298](https://github.com/Microsoft/vscode-python/issues/1298))
122+
[Visual Studio Live Share](https://aka.ms/vsls)
123+
(thanks to [Jonathan Carter](https://github.com/lostintangent))
124+
([#1298](https://github.com/Microsoft/vscode-python/issues/1298))
81125
1. Ensure all unit tests run on Travis use the right Python interpreter.
82-
([#1318](https://github.com/Microsoft/vscode-python/issues/1318))
126+
([#1318](https://github.com/Microsoft/vscode-python/issues/1318))
83127
1. Pin all production dependencies.
84-
([#1374](https://github.com/Microsoft/vscode-python/issues/1374))
128+
([#1374](https://github.com/Microsoft/vscode-python/issues/1374))
85129
1. Add support for [hit count breakpoints](https://code.visualstudio.com/docs/editor/debugging#_advanced-breakpoint-topics) in the experimental debugger.
86-
([#1409](https://github.com/Microsoft/vscode-python/issues/1409))
130+
([#1409](https://github.com/Microsoft/vscode-python/issues/1409))
87131
1. Ensure custom environment variables defined in `.env` file are passed onto the `pipenv` command.
88-
([#1428](https://github.com/Microsoft/vscode-python/issues/1428))
89-
132+
([#1428](https://github.com/Microsoft/vscode-python/issues/1428))
133+
1. Remove unwanted python packages no longer used in unit tests.
134+
([#1494](https://github.com/Microsoft/vscode-python/issues/1494))
135+
1. Register language server functionality in the extension against specific resource types supporting the python language.
136+
([#1530](https://github.com/Microsoft/vscode-python/issues/1530))
90137

91138

92139
## 2018.3.1 (29 Mar 2018)

news/1 Enhancements/1206.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Enable debugging of Jinja templates in the experimental debugger.
22
This is made possible with the addition of the `jinja` setting in the `launch.json` file as follows:
33
```json
4-
"request": "launch or attach",
5-
...
6-
"jinja": true
4+
"request": "launch or attach",
5+
...
6+
"jinja": true
77
```

news/announce.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212

1313

1414
FILENAME_RE = re.compile(r"(?P<issue>\d+)(?P<nonce>-\S+)?\.md")
15-
ISSUE_URL = "https://github.com/Microsoft/vscode-python/issues/{issue}"
16-
ENTRY_TEMPLATE = "1. {entry} ([#{issue}]({issue_url}))"
17-
SECTION_DEPTH = "###"
1815

1916

2017
def NewsEntry(issue_number, description, path):
@@ -68,8 +65,16 @@ def gather(directory):
6865

6966
def entry_markdown(entry):
7067
"""Generate the Markdown for the specified entry."""
71-
issue_url = ISSUE_URL.format(issue=entry.issue_number)
72-
return ENTRY_TEMPLATE.format(entry=entry.description,
68+
enumerated_item = "1. "
69+
indent = ' ' * len(enumerated_item)
70+
issue_url = f'https://github.com/Microsoft/vscode-python/issues/{entry.issue_number}'
71+
issue_md = f'([#{entry.issue_number}]({issue_url}))'
72+
entry_lines = entry.description.strip().splitlines()
73+
formatted_lines = [f'{enumerated_item}{entry_lines[0]}']
74+
formatted_lines.extend(f'{indent}{line}' for line in entry_lines[1:])
75+
formatted_lines.append(f'{indent}{issue_md}')
76+
return '\n'.join(formatted_lines)
77+
return ENTRY_TEMPLATE.format(entry=entry.description.strip(),
7378
issue=entry.issue_number,
7479
issue_url=issue_url)
7580

@@ -78,7 +83,7 @@ def changelog_markdown(data):
7883
"""Generate the Markdown for the release."""
7984
changelog = []
8085
for section, entries in data:
81-
changelog.append(f"{SECTION_DEPTH} {section.title}")
86+
changelog.append(f"### {section.title}")
8287
changelog.append("")
8388
changelog.extend(map(entry_markdown, entries))
8489
changelog.append("")

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "python",
33
"displayName": "Python",
44
"description": "Linting, Debugging (multi-threaded, remote), Intellisense, code formatting, refactoring, unit tests, snippets, and more.",
5-
"version": "2018.4.0-beta",
5+
"version": "2018.4.0-rc",
66
"publisher": "ms-python",
77
"author": {
88
"name": "Microsoft Corporation"

0 commit comments

Comments
 (0)