Editor › Find: Loop

When you press enter on the last search result in an editor, by default VS Code loops around to show the first result. Set "editor.find.loop": false to disable this behavior.