Skip to content

Commit d3d3236

Browse files
committed
Fix microsoft#60455 - handle canceled local search before remote search
1 parent 6eb6654 commit d3d3236

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/parts/preferences/electron-browser/settingsEditor2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ export class SettingsEditor2 extends BaseEditor {
11761176
return this.localSearchDelayer.trigger(() => {
11771177
if (searchInProgress && !searchInProgress.token.isCancellationRequested) {
11781178
return this.localFilterPreferences(query).then(result => {
1179-
if (!result.exactMatch) {
1179+
if (result && !result.exactMatch) {
11801180
this.remoteSearchThrottle.trigger(() => {
11811181
return searchInProgress && !searchInProgress.token.isCancellationRequested ?
11821182
this.remoteSearchPreferences(query, this.searchInProgress.token) :

0 commit comments

Comments
 (0)