Fix several problems with the Jump to Definition extensibility API:

- JS impl would always crash on non-JS code, blocking any other provider
from responding
- Provider was not called with the args the docs described
- Other errors in docs
This commit is contained in:
Peter Flynn committed 2014-03-17 23:37:24 -07:00
1 parent da1f4a592d
commit 7b32bb1d54
2 files changed
+12 -9

No files matched your search

@@ -632,7 +632,7 @@ define(function (require, exports, module) {
// Only provide jump-to-definition results when cursor is in JavaScript content
if (session.editor.getModeForSelection() !== "javascript") {
if (!session || session.editor.getModeForSelection() !== "javascript") {
return null;
}