Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CodeMirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Moritz Aurel Pascal Schubotz
CodeMirror
Commits
313e2386
Commit
313e2386
authored
10 years ago
by
Marijn Haverbeke
Browse files
Options
Downloads
Patches
Plain Diff
[manual] Mention the fact that editor instances are passed to lint functions
Closes #3113
parent
4485ae75
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/manual.html
+2
-2
2 additions, 2 deletions
doc/manual.html
with
2 additions
and
2 deletions
doc/manual.html
+
2
−
2
View file @
313e2386
...
...
@@ -2634,8 +2634,8 @@ editor.setOption("extraKeys", {
to
<code>
true
</code>
, in which
case
<a
href=
"#getHelper"
><code>
getHelper
</code></a>
with
type
<code>
"lint"
</code>
is used to determined a validator
function. Such a function should, when given a document string
and
an options object, return an array of
<code>
{message,
function. Such a function should, when given a document string
,
an options object,
and an editor instance,
return an array of
<code>
{message,
severity, from, to}
</code>
objects representing problems. When
the function has an
<code>
async
</code>
property with a truthy
value, it will be called with an additional second argument,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment