X
Business

Microsoft: VS Code update gets new features with programming language TypeScript 4.0

Microsoft also updates Java for VS Code with performance improvements to its IntelliSense code-competition tool.
Written by Liam Tung, Contributing Writer

Microsoft has released the latest update to its open-source cross-platform code editor Visual Studio Code, bringing changes to formatting, Notebook UX updates, improvements to Source Control views and IntelliSense improvements from TypeScript 4.0.

VS Code version 1.49 works to remove unnecessarily large pull requests by only formatting text that's been modified via a new command, 'Format Modified Lines', and a new setting, 'editor.formatOnSaveMode', which restricts Format on Save to modified lines.

The Notebook UX changes aim to improve the cell execution order label to make it easier to discover. Previously, users couldn't see the execution order label (#) while executing a cell. So the VS Code team has shifted the table below the execute button. 

SEE: Hiring Kit: Python developer (TechRepublic Premium)

VS Code users can also now use two new settings to customize how the cell looks with respect to the location of the tool bar and whether or not the Status bar should be visible. 

With the new August 2020 update, there's an enhanced text diff editor for faster viewing of changes in notebook documents to help users spot what cell content or metadata are changed. 

Another highlighted feature is new filtering support for the Debug Console to improve the visibility of output and conceal irrelevant logging output. Users can also filter out patterns, for example, ones starting with an exclamation mark, or filter entries only to include certain text like 'http'. 

The VS Code JavaScript debugger has gained an improved Auto Attach feature that allows for debugging processes without manually passing an --inspect flag to them. 

"When Auto Attach is turned on, by default VS Code uses its 'smart' mode to debug any Node.js script outside node_modules folders, as well as some common 'runner' tools such as mocha and ts-node," Microsoft notes. 

Following last month's release of version 4.0 of Microsoft's superset of JavaScript, TypeScript, VS Code now ships with TypeScript 4.0.2. 

Additionally, VS Code now supports the @deprecated JSDoc tag in JavaScript and TypeScript files. VS Code adds a strike-through on references to deprecated APIs. Similarly IntelliSense suggestions include a strike-through for deprecated properties. 

Thanks to TypeScript 4.0, VS Code provides IntelliSense code completion and other language features while a large project is still loading. The TypeScript team targeted a process called 'project loading' to improve startup times when bigger projects load in VS Code and other editors. The end result is the availability of partial IntelliSense during project loads. 

"Thanks to TypeScript 4.0, VS Code can offer limited IntelliSense while a large project is still loading. However the IntelliSense provided is limited to using the current file, instead of the entire project," Microsoft explains.  

Features such as suggestions and Go to Definition will work, Microsoft promises, but suggestions are only shown from the current file, and users won't have features like auto-import because it relies on VS Code processing the entire project.

SEE: Microsoft's TypeScript 4.0 programming language arrives: It's a big milestone

Microsoft has also delivered performance improvements in IntelliSense for its set of Java extensions for VS Code by cutting unnecessary client requests to the language server and improving the language server's ability to process these requests.  

Microsoft's analysis found IntelliSense performance is "highly impacted by the number of requests clients send to language server and the language server's capability to process these requests".

In Microsoft's tests, it achieved "over 80% performance improvement" on previous releases of Java for VS Code, but end users may have to wait for a few more updates before they see this type of increase. 

More on Microsoft's Visual Studio Code

  • Google's Flutter 1.20 framework is out: VS Code extension and mobile autofill support  
  • Microsoft: New VS Code update is out – stable builds for Windows on Arm and Surface Pro X  
  • Microsoft VS Code turns 5: How GitHub, open source, Google made it a hit, reveals creator  
  • Programming language Go: Microsoft hands VS Code Go extension to Google's Go team  
  • Microsoft: This new update makes VS Code friendlier for Java programming language jobs  
  • Programming language Python VS Code extension: New update has critical security fix
  • Microsoft's VS Code 1.45 is out: GitHub integration plus JavaScript debugger update
  • Microsoft: Bosque is a new programming language built for AI in the cloud  
  • Microsoft's VS Code Python programming language extension gets this new update  
  • Microsoft: Try VS Code's new Python, C++ programming language tutorials, Docker updates  
  • Microsoft makes new GitHub collaboration tools available to testers  
  • Programming languages: Python and Java VS Code extensions get these new updates  
  • VS Code gets a big update: Plays nice with macOS Gatekeeper plus lots of new features  
  • Microsoft: VS Code for PowerShell 7 arrives with ISE mode  
  • New Microsoft VS Code browser editor update – better Go, Python language, Docker support  
  • Microsoft's VS Code Python programming language extension gets this new update  
  • Microsoft VS Code 1.42 is out: New debug tools for TypeScript, JavaScript, Chrome  
  • ServiceNow reveals VS Code alternative to its own web-based code editor  
  • Microsoft boosts programming language Python's popular VS Code extension  
  • Programming language Python's popular extension for Visual Studio Code revamped  
  • Facebook: Microsoft's Visual Studio Code is now our default development platform
  • JPMorgan's Athena has 35 million lines of Python code, and won't be updated to Python 3 in time TechRepublic
  • Mozilla's radical open-source move helped rewrite rules of tech CNET
  • Editorial standards