We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3130e6 commit 8f087efCopy full SHA for 8f087ef
lib/goToDefinition.js
@@ -49,6 +49,9 @@ export async function getDefinitions(
49
const position = targetPosition || editor.getCursorBufferPosition();
50
51
const provider = providerRegistry.getProviderForEditor(editor);
52
+ if (!provider) {
53
+ return;
54
+ }
55
const result = await provider.getDefinition(editor, position);
56
57
return result && result.definitions;
0 commit comments