Skip to content

Commit 9c27c36

Browse files
committed
Update fib gif
1 parent 4b40a1b commit 9c27c36

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

blogs/2025/02/05/nes-fib-logic.gif

Lines changed: 2 additions & 2 deletions
Loading

blogs/2025/02/05/next-edit-suggestions.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Edits are often not made in isolation - there's a logical flow of what edits nee
1818

1919
We're excited to announce the preview of **Copilot Next Edit Suggestions** (aka "Copilot NES"), which is this evolution of Copilot completions.
2020

21-
<!-- TODO: Update to video with voiceover from Olivia -->
2221
<video src="nes-video.mp4" title="Copilot NES video" controls poster="/assets/blogs/2025/02/05/point3d.png"></video>
2322

2423
Based on the edits you're making, Copilot NES both predicts the location of the next edit you'll want to make and what that edit should be. NES helps you stay in the flow, suggesting future changes relevant to your current work, and you can simply `kbstyle(Tab)` to quickly navigate and accept suggestions.
@@ -56,7 +55,7 @@ Copilot NES is your AI companion as you make changes that may cascade throughout
5655
NES helps with small mistakes like typos - maybe you were coding quickly in the zone, and you wrote `conts` instead of `const`:
5756
![NES fixing a typo from "conts" to "const"](nes-typo.gif)
5857

59-
NES can also help with more challenging mistakes in logic, like a return statement that should've used `<=` instead of `>`:
58+
NES can also help with more challenging mistakes in logic, like an inverted ternary expression:
6059
![NES fixing a fibonacci logic mistake](nes-fib-logic.gif)
6160

6261
Our development team has been self-hosting on NES, and one of our engineers remembered one of his first "aha!" moments with NES as we were putting this blog together. He was writing a condition along the lines of `if (something !== 'a' || something !== 'b')`. NES caught that this statement would always evaluate to true (thanks De Morgan's Law!) and suggested replacing `||` with `&&` to make the code valid:

0 commit comments

Comments
 (0)