From f3da8c74a62a8ca59e9cc3b80db3ffac63e8dd9b Mon Sep 17 00:00:00 2001 From: Erick Shepherd Date: Mon, 6 Apr 2020 20:10:13 -0400 Subject: [PATCH] Added error code W504 and removed a deprecated Brackets API call. Added linter error code W504 and removed a deprecated Brackets API call to EditorManager.registerJumpToDefProvider. --- constants.js | 3 ++- main.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/constants.js b/constants.js index c4ec71c..378ccca 100644 --- a/constants.js +++ b/constants.js @@ -20,6 +20,7 @@ define(function (require, exports, module) { "F702", "F703", "F704", "F705", "F706", "F707", "F811", "F812", "F821", "F822", "F823", "F831", "F841", "W191", "W291", "W292", "W293", "W391", - "W503", "W601", "W602", "W603", "W604", "W605"] + "W503", "W504", "W601", "W602", "W603", "W604", + "W605"] }; }); diff --git a/main.js b/main.js index 4ee8dd6..33833b6 100644 --- a/main.js +++ b/main.js @@ -240,7 +240,7 @@ define(function (require, exports, module) { // Thus, passing method to EditorManager. CodeHintManager.registerHintProvider(python_hints, ["python"], 9); EditorManager.registerInlineDocsProvider(python_docs); - EditorManager.registerJumpToDefProvider(python_goto); + // EditorManager.registerJumpToDefProvider(python_goto); CodeInspection.register("python", { name: 'Python lint', scanFileAsync: python_lint.scanFileAsync