From c64870983f335baa75f49443d12b6a47ec975319 Mon Sep 17 00:00:00 2001 From: Daniel Hickman Date: Fri, 2 Feb 2018 10:35:15 -0800 Subject: [PATCH] getScopedSettingsDelegate for Atom 1.23 See: https://github.com/nteract/hydrogen/pull/1093/files#diff-3e2fce8735e63ba9d764917e356179cc --- lib/figlet.coffee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/figlet.coffee b/lib/figlet.coffee index 1b9499a..c7f14f6 100644 --- a/lib/figlet.coffee +++ b/lib/figlet.coffee @@ -65,7 +65,11 @@ module.exports = # Then, for the remaining string, we'll check whether there's a comment # or not scope = editor.scopeDescriptorForBufferPosition([start.row, 0]) - {commentStartString, commentEndString} = editor.languageMode.commentStartAndEndStringsForScope?(scope) ? editor.getCommentStrings(scope) + {commentStartString, commentEndString} = ( + editor.languageMode.commentStartAndEndStringsForScope?(scope) ? + editor.getCommentStrings?(scope) ? + editor.getScopedSettingsDelegate().getCommentStrings(scope) + ) if commentStartString? commentStartRegexString = escapeRegExp(commentStartString).replace(/(\s+)$/, '')