mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
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:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user