From 7a9e56510d2351e744a587b898dec80771677edf Mon Sep 17 00:00:00 2001 From: Christof Marti Date: Thu, 28 Jan 2021 08:55:51 +0100 Subject: [PATCH] Not requiring NPM for typings (fixes #115228) --- .../browser/editor/vs_code_editor_walkthrough.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/vs/workbench/contrib/welcome/walkThrough/browser/editor/vs_code_editor_walkthrough.ts b/src/vs/workbench/contrib/welcome/walkThrough/browser/editor/vs_code_editor_walkthrough.ts index ba2db38fbdc..3cfe0655f15 100644 --- a/src/vs/workbench/contrib/welcome/walkThrough/browser/editor/vs_code_editor_walkthrough.ts +++ b/src/vs/workbench/contrib/welcome/walkThrough/browser/editor/vs_code_editor_walkthrough.ts @@ -38,17 +38,14 @@ That is the tip of the iceberg for multi-cursor editing. Have a look at the sele ### IntelliSense -Visual Studio Code comes with the powerful IntelliSense for JavaScript and TypeScript pre-installed. In the below example, position the text cursor in front of the error underline, right after the dot and press kb(editor.action.triggerSuggest) to invoke IntelliSense. Notice how the suggestion comes from the Request API. +Visual Studio Code comes with the powerful IntelliSense for JavaScript and TypeScript pre-installed. In the below example, position the text cursor right after the dot and press kb(editor.action.triggerSuggest) to invoke IntelliSense. Notice how the suggestions come from the Canvas API. |||js -const express = require('express'); -const app = express(); +const canvas = document.querySelector('canvas'); +const context = canvas.getContext('2d'); -app.get('/', (req, res) => { - res.send(|Hello \${req.}|); -}); - -app.listen(3000); +context.strokeStyle = 'blue'; +context. ||| >**Tip:** while we ship JavaScript and TypeScript support out of the box other languages can be upgraded with better IntelliSense through one of the many [extensions](command:workbench.extensions.action.showPopularExtensions). -- GitLab