{"id":2475,"date":"2018-07-18T10:10:24","date_gmt":"2018-07-18T18:10:24","guid":{"rendered":"http:\/\/blogs.msdn.microsoft.com\/pythonengineering\/?p=2475"},"modified":"2019-02-17T15:26:57","modified_gmt":"2019-02-17T22:26:57","slug":"python-in-visual-studio-code-june-july-2018-release","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/python\/python-in-visual-studio-code-june-july-2018-release\/","title":{"rendered":"Python in Visual Studio Code &#8211; June &amp; July 2018 Release"},"content":{"rendered":"<p>We are pleased to announce that the June &amp; July 2018 releases of the Python Extension for Visual Studio Code is now available from the marketplace and the gallery. You can <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-python.python\">download the Python extension<\/a> from the marketplace, or install it directly from the <a href=\"https:\/\/code.visualstudio.com\/docs\/editor\/extension-gallery\">extension gallery within Visual Studio Code<\/a>. You can learn more about <a href=\"https:\/\/code.visualstudio.com\/docs\/languages\/python\">Python support in Visual Studio Code<\/a> in the VS Code documentation.<\/p>\n<p>Between these two releases we have <a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues?q=milestone%3A%22May+2018%22+is%3Aclosed\">closed a total of 156 issues<\/a> including introducing a new experimental language server and gevent support in our experimental debugger.<\/p>\n<h2>Preview of Python language server<\/h2>\n<p>We are pleased to make available an opt-in preview of the <a href=\"http:\/\/blogs.msdn.microsoft.com\/pythonengineering\/2018\/07\/18\/introducing-the-python-language-server\/\">Microsoft Python Language Server<\/a> in Visual Studio Code. The language server is the IntelliSense engine from Visual Studio that implements the\u00a0<a href=\"https:\/\/microsoft.github.io\/language-server-protocol\/\">language server protocol<\/a>, and brings the following benefits to Visual Studio Code developers.<\/p>\n<ul>\n<li>Syntax errors as you type in code:<\/li>\n<\/ul>\n<p style=\"padding-left: 60px\"><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/12\/2019\/02\/error_intellisense.png\"><img decoding=\"async\" class=\"alignnone wp-image-2605\" src=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2018\/07\/error_intellisense-2.png\" alt=\"\" width=\"612\" height=\"109\" \/><\/a><\/p>\n<ul>\n<li>Warnings when modules are not found:<\/li>\n<\/ul>\n<p style=\"padding-left: 60px\"><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/12\/2019\/02\/missing_library_intellisense.png\"><img decoding=\"async\" class=\"alignnone wp-image-2595\" src=\"https:\/\/devblogs.microsoft.com\/python\/wp-content\/uploads\/sites\/12\/2018\/07\/missing_library_intellisense-2.png\" alt=\"\" width=\"747\" height=\"102\" \/><\/a><\/p>\n<ul>\n<li>Using Typeshed files to fill in missing completions for modules<\/li>\n<li>Improved performance for analyzing your workspace and presenting completions<\/li>\n<li>Ability to detect syntax errors on your entire workspace, rather than just the current file.<\/li>\n<li>Faster startup times<\/li>\n<li>Faster imports<\/li>\n<li>Better handling for a number of language constructs<\/li>\n<\/ul>\n<p>To try out the new language server, go to File &gt; Preferences &gt; Settings and add the following option:<\/p>\n<pre>\"python.jediEnabled\": false<\/pre>\n<p>This will trigger a notification asking you to reload Visual Studio Code. Upon reload it will begin downloading the language server for your operating system. Our <a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/2177\">meta issue<\/a> for the language server goes into more details of the install process as well as provides an FAQ for troubleshooting issues.<\/p>\n<p>After some time using the language server you will see a prompt to fill out a survey, so please let us know how it works for you.<\/p>\n<h2>gevent launch configuration for debugging<\/h2>\n<p>Contributed by <a href=\"https:\/\/github.com\/underyx\">Bence Nagy<\/a> at the PyCon US 2018 sprints, the experimental debugger now supports a gevent launch configuration for code that has been monkey-patched by gevent. A predefined debugging template named &#8220;Python Experimental: Gevent&#8221; is available, as well as adding the setting <code>\"gevent\": true<\/code> to any launch configuration.<\/p>\n<h2>Various Fixes and Enhancements<\/h2>\n<p>We have also added small enhancements and fixed issues requested by users that should improve your experience working with Python in Visual Studio Code. The full list of improvements is listed in our <a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/blob\/master\/CHANGELOG.md\">changelog<\/a>, some notable improvements are:<\/p>\n<ul>\n<li>Changed the keyboard shortcut for <code>Run Selection\/Line in Python Terminal<\/code> to <code>Shift+Enter<\/code>. (<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/1875\">#1875<\/a>)<\/li>\n<li>Changed the keyboard shortcut for <code>Run Selection\/Line in Python Terminal<\/code> to not interfere with the Find\/Replace dialog box. (<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/2068\">#2068<\/a>)<\/li>\n<li>Added a setting to control automatic test discovery on save, <code>python.unitTest.autoTestDiscoverOnSaveEnabled<\/code>. (thanks <a href=\"http:\/\/github.com\/lingyv-li\/\">Lingyu Li<\/a>) (<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/1037\">#1037<\/a>)<\/li>\n<li>Ensured navigation to definitions follows imports and is transparent to decoration. (thanks <a href=\"https:\/\/github.com\/PeterJCLaw\">Peter Law<\/a>) (<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/1638\">#1638<\/a>)<\/li>\n<li>Fix to display all interpreters in the interpreter list when a workspace contains a <code>Pipfile<\/code>. (<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/1800\">#1800<\/a>)<\/li>\n<li>Automatically add path mappings for remote debugging when attaching to the localhost. (<a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/issues\/1829\">#1829<\/a>)<\/li>\n<li>Add support for the <code>\"source.organizeImports\"<\/code> setting for <code>\"editor.codeActionsOnSave\"<\/code> (thanks <a href=\"https:\/\/github.com\/n6g7\">Nathan Gaberel<\/a>)<\/li>\n<\/ul>\n<p>Be sure to <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-python.python\">download the Python extension<\/a> for VS Code now to try out the above improvements. If you run into any issues be sure to file an issue on the <a href=\"https:\/\/github.com\/Microsoft\/vscode-python\/milestone\/3\">Python VS Code GitHub<\/a> page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are pleased to announce that the June &#038; July 2018 releases of the Python Extension for Visual Studio Code is now available from the marketplace and the gallery. Between these two releases we have closed a total of 156 issues including introducing a new experimental language server and gevent support in our experimental debugger.<\/p>\n","protected":false},"author":386,"featured_media":6823,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-2475","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio-code"],"acf":[],"blog_post_summary":"<p>We are pleased to announce that the June &#038; July 2018 releases of the Python Extension for Visual Studio Code is now available from the marketplace and the gallery. Between these two releases we have closed a total of 156 issues including introducing a new experimental language server and gevent support in our experimental debugger.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/posts\/2475","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/users\/386"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/comments?post=2475"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/posts\/2475\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/media\/6823"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/media?parent=2475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/categories?post=2475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/python\/wp-json\/wp\/v2\/tags?post=2475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}