Skip to content

Commit

Permalink
Fix a deprecation notice.
Browse files Browse the repository at this point in the history
The `view.set_syntax_file()` API endpoint is deprecated in favor of a
new `view.assign_syntax()` method (and is currently implemented by
calling the new method).

This is not a new thing by any stretch and has been in place since
the first SnAPI versions, but the help for this element was incorrectly
linking to itself as the thing to use, which is not correct.
  • Loading branch information
OdatNurd committed Jul 30, 2020
1 parent a010f8f commit 34b602d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/view.txt
@@ -1,4 +1,4 @@
%hyperhelp title="sublime.View Class" date="2020-07-28"
%hyperhelp title="sublime.View Class" date="2020-07-30"


# view:View Class
Expand Down Expand Up @@ -433,7 +433,7 @@ This class is contained in the |sublime| module.
the lines of `Packages/Python/Python.tmLanguage`. To retrieve the current
syntax, use `view.settings().get('syntax')`.

This function is deprecated; you should use |:view.set_syntax_file:set_syntax_file| instead.
This function is deprecated; you should use |:view.assign_syntax:assign_syntax| instead.


*view.extract_scope*(point)
Expand Down

0 comments on commit 34b602d

Please sign in to comment.