We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25a9803 commit 0c46a63Copy full SHA for 0c46a63
1 file changed
packages/alex/src/core/extension/extension.patch.ts
@@ -34,7 +34,7 @@ MainThreadLanguages.prototype.createReferenceProvider = function (...args: any[]
34
const _provideReferences = provider.provideReferences;
35
provider.provideReferences = function (...args: any[]) {
36
return (_provideReferences.call(this, ...args) as Promise<monaco.languages.Location[]>).then(
37
- (references) => references.filter((reference) => reference.uri.scheme === 'file')
+ (references) => Array.isArray(references) ? references.filter((reference) => reference.uri.scheme === 'file') : []
38
);
39
};
40
return provider;
0 commit comments