Built-In Namespace _global_
Field Attributes | Field Name and Description |
---|---|
Keeps a record of the 'invocation' object for a rendered command.
|
|
This is an override of the normal addEventListener to allow it to
keep listeners synch'd with the current binding overrides whether or not they get added before or
after the actual binding overrides have been retrieved from the preference store.
|
|
Appends the given paths together, ensuring no extra slashes appear in the paths
|
|
The CSS class name for the class icon
|
|
Ensures that core linting rules are not left out because of an eslintrc file being used
|
|
Creates a new content assist manager for the given text view
|
|
Creates an override for the binding of a particular Command or Text Action.
|
|
Perform any pre-parse actions
|
|
Perform any reset actions
|
|
Formats the origin into a readable string that can fit in content assist.
|
|
The CSS class name for the function icon
|
|
Return an {Object} containing all active environments in the given ast based on eslint env and global settings
|
|
returns the binding that the given id should be overridden with (or null if no override exists).
|
|
Return the best contentType match to the given filename or null if no match.
|
|
Returns a completion proposal for the given type object or
null |
|
Creates a new TernServer
|
|
Create a new LinkedMode
|
|
Matches a comment delimiter (*) as the start of the line, and traverses up the lines to confirm if
it is a multi-line comment by matching the start of a block comment.
|
|
Creates a new instance of the metrics service
|
|
The CSS class name for the object icon
|
|
function called when a comment is recorded
|
|
Function called when recording a token
|
|
orion.shell.CompletionStatus.PARTIAL
the current text matches a subset of the initial characters of a valid
argument value (ie.- a value in the midst of being typed)
the current text matches a subset of the initial characters of a valid
argument value (ie.- a value in the midst of being typed)
|
|
Outlines the comment node from the given property name.
|
|
Outlines the errors array (if present)
|
|
Turns an object into outline elements
|
|
Outlines the standard rnage array
|
|
Outlines the tokens array (if present)
|
|
Returns the pixel value of the given CSS attribute
|
|
Checks if the given file name is a possible match to the given logical name
|
|
Copies all of the configuration entries from the given configuration object into the one that
will be passed to Tern
|
|
Create a new instance
|
|
Creates a new ProblemsFileModel
|
|
Create a new ProblemsFileRenderer
|
|
Create a new ProblemsModel
|
|
Create a new instance of the ProblemRenderer
|
|
Resolves the
|
|
Tries to find the project context based on where we are in the source tree
|
|
Generates an explorer showing the sites on each site service.
|
|
description
|
|
Creates a new TernServer
|
|
Tooltip support for text views
show() - Opens the tooltip
update() - Updates the content of the open tooltip
onHover() - Checks if the x,y coordinates are outside the current tooltip area and updates the tooltip if necessary
hide() - Closes the tooltip
isVisible() - Returns whether the tooltip is currently showing
The methods above ask for a tooltipInfo object, which must contain a callback function getTooltipInfo()
This function must return an info object with the following contents:
Info {
Contents {string, html element, annotation array, etc.
|
Method Attributes | Method Name and Description |
---|---|
_update(input)
|
|
constructor(start, end, title)
|
|
createElement(type, text, padding)
|
|
error()
wraps logging in case we have the worker support turned on
|
|
get(namespace, key, options)
Gets one or more preferences from the node specified by
namespace . |
|
Returns the list of dependent properties
|
|
getCalleeSignature(astnode)
Returns a signature string describing the parent call expression of the given node.
|
|
Returns the preference attribute ```dependsOn```
|
|
Get the file client;
|
|
getJSON(editorContext, fileName)
Returns the JSON object of the backing text from the editor context
|
|
Returns an editable copy of the ruleset to pass into verify() based on values set in the config settings
|
|
getValidators(loc, contentType)
Returns the filtered list of validators that aply to the given location and content type
|
|
handleClosingBracket(closingChar)
When the user types a closing bracket we should skip auto-paired brackets and reduce indenting if
we are on a new line.
|
|
handler(event)
|
|
handleResult(result)
|
|
hasFile(path, file)
Returns if Tern knows about the file
|
|
hide()
Hides the current tooltip (if it's showing)
|
|
initialize(loc, contentType)
Allows providers that implement this function to pre-initisalize their state, etc, before being called later to actually perform validation
|
|
insensitive(str)
|
|
isValidTextPosition(x, y)
Return whether the given x/y pixel position, relative to the document, is inside of document text.
|
|
Returns a boolean indicating whether the tooltip is currently visible
|
|
libKnown(libName)
Checks if the library with the given name is known to Tern or the computed environment
|
|
listener()
|
|
log()
wraps logging in case we have the worker support turned on
|
|
nud()
|
|
onchange(e)
|
|
onClickThen(doIt)
|
|
onconnect(evnt)
Worker callback when a shared worker starts up
|
|
onerror(evnt)
Worker callback when an error occurs
|
|
onHover(tooltipInfo, x, y)
Checks the x,y location and updates the tooltip contents or hides the tooltip as appropriate
|
|
onload()
|
|
onmessage(evnt)
Worker callback when a message is sent to the worker
|
|
put(namespace, data, options)
Sets multiple preferences in the node specified by
namespace . |
|
registerExtensions(provider)
Registers all of the plugin extensions for .tern-project file support
|
|
remove(namespace, key, options)
Removes one or more preferences in the node specified by
namespace . |
|
show(tooltipInfo, target, locked, giveFocus)
Show the tooltip using the given target information
|
|
skip()
|
|
statusReporter(message, isError)
|
|
update(tooltipInfo, noContent)
Updates the information in an already visible tooltip
|
Field Detail
_registerRenderedCommand
Keeps a record of the 'invocation' object for a rendered command. The invocation contains
a lot of information about the rendered item (including the DOM element created to show it). This is currently
used to update the menu item's key binding info if its binding changes.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/commandRegistry.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/commandRegistry.js>.
addEventListener
This is an override of the normal addEventListener to allow it to
keep listeners synch'd with the current binding overrides whether or not they get added before or
after the actual binding overrides have been retrieved from the preference store.
Once the overrides preference is loaded any currently registered listeners are informed of the current
binding overrides. Subsequent listeners are also informed when they get added.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/commandRegistry.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/commandRegistry.js>.
{String}
appendPath
Appends the given paths together, ensuring no extra slashes appear in the paths
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/ternPlugins/eslint.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/ternPlugins/eslint.js>.
- Since:
- 14.0
{String}
CLASS_IMAGE
The CSS class name for the class icon
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/signatures.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/signatures.js>.
- Since:
- 14.0
configureCoreRules
Ensures that core linting rules are not left out because of an eslintrc file being used
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/validator.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/validator.js>.
- Since:
- 14.0
ContentAssist
Creates a new content assist manager for the given text view
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/contentAssist.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/contentAssist.js>.
createBindingOverride
Creates an override for the binding of a particular Command or Text Action.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/commandRegistry.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/commandRegistry.js>.
doPreParse
Perform any pre-parse actions
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/ternPlugins/resolver.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/ternPlugins/resolver.js>.
- Since:
- 15.0
doReset
Perform any reset actions
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/ternPlugins/resolver.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/ternPlugins/resolver.js>.
- Since:
- 15.0
formatOrigin
Formats the origin into a readable string that can fit in content assist.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/contentAssist/ternAssist.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/contentAssist/ternAssist.js>.
{String}
FUNCTION_IMAGE
The CSS class name for the function icon
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/signatures.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/signatures.js>.
- Since:
- 14.0
getActiveEnvironments
Return an {Object} containing all active environments in the given ast based on eslint env and global settings
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/ternPlugins/jsdoc.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/ternPlugins/jsdoc.js>.
getBindingOverride
returns the binding that the given id should be overridden with (or null if no override exists). Note that
this method is only valid for Commands, not Text Actions,
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/commandRegistry.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/commandRegistry.js>.
getFilenameContentType
Return the best contentType match to the given filename or null if no match. Filename pattern checked first, then extension
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/contentTypes.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/contentTypes.js>.
getProposalForType
Returns a completion proposal for the given type object or
null if no proposal should be added
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/ternPlugins/jsdoc.js>.
{TernServer}
JavaScript
Creates a new TernServer
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/api/javaScript.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/api/javaScript.js>.
- Since:
- 11.0
LinkedMode
Create a new LinkedMode
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/linkedMode.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/linkedMode.js>.
match
Matches a comment delimiter (*) as the start of the line, and traverses up the lines to confirm if
it is a multi-line comment by matching the start of a block comment. If so, continue the
multi-line comment in the next line. Any text that follows after the caret is moved to the newly
added comment delimiter.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/actions.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/actions.js>.
{Metrics}
Metrics
Creates a new instance of the metrics service
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/metrics.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/metrics.js>.
- Since:
- 12.0
{String}
OBJECT_IMAGE
The CSS class name for the object icon
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/signatures.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/signatures.js>.
- Since:
- 14.0
onComment
function called when a comment is recorded
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/orionAcorn.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/orionAcorn.js>.
onToken
Function called when recording a token
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/orionAcorn.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/orionAcorn.js>.
orion.shell.CompletionStatus.PARTIAL
the current text matches a subset of the initial characters of a valid
argument value (ie.- a value in the midst of being typed)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/shell/Shell.js>.
outlineComments
Outlines the comment node from the given property name. One of 'comments', 'leadingComments' or 'trailngComments'
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/astOutliner.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/astOutliner.js>.
outlineErrors
Outlines the errors array (if present)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/astOutliner.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/astOutliner.js>.
outlineObject
Turns an object into outline elements
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/astOutliner.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/astOutliner.js>.
outlineRange
Outlines the standard rnage array
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/astOutliner.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/astOutliner.js>.
outlineTokens
Outlines the tokens array (if present)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/astOutliner.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/astOutliner.js>.
pixelValueOf
Returns the pixel value of the given CSS attribute
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/webui/littlelib.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/webui/littlelib.js>.
{bool}
possibleMatch
Checks if the given file name is a possible match to the given logical name
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/ternPlugins/resolver.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/ternPlugins/resolver.js>.
{?}
prepareConfig
Copies all of the configuration entries from the given configuration object into the one that
will be passed to Tern
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/validator.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/validator.js>.
- Since:
- 14.0
{ProblemsExplorer}
ProblemsExplorer
Create a new instance
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/problems/problemsExplorer.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/problems/problemsExplorer.js>.
{ProblemsFileModel}
ProblemsFileModel
Creates a new ProblemsFileModel
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/problems/problemsExplorer.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/problems/problemsExplorer.js>.
{ProblemsFileRenderer}
ProblemsFileRenderer
Create a new ProblemsFileRenderer
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/problems/problemsExplorer.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/problems/problemsExplorer.js>.
{ProblemsModel}
ProblemsModel
Create a new ProblemsModel
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/problems/problemsExplorer.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/problems/problemsExplorer.js>.
{ProblemsRenderer}
ProblemsRenderer
Create a new instance of the ProblemRenderer
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/problems/problemsExplorer.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/problems/problemsExplorer.js>.
{Boolean}
resolvePath
Resolves the
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/ternPlugins/eslint.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/ternPlugins/eslint.js>.
- Since:
- 14.0
{?}
resolveProject
Tries to find the project context based on where we are in the source tree
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/javascriptProject.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/javascriptProject.js>.
- Since:
- 14.0
SiteServicesExplorer
Generates an explorer showing the sites on each site service.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/sites/sitesExplorer.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/sites/sitesExplorer.js>.
SitesRenderer
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/sites/sitesExplorer.js>.
SiteTreeModel
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/sites/sitesExplorer.js>.
{TernProjectValidator}
TernProjectValidator
description
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/support/ternproject/ternProjectValidator.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/support/ternproject/ternProjectValidator.js>.
- Since:
- 15.0
{TernServer}
TernServer
Creates a new TernServer
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/api/ternServer.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/api/ternServer.js>.
Tooltip
Tooltip support for text views
show() - Opens the tooltip
update() - Updates the content of the open tooltip
onHover() - Checks if the x,y coordinates are outside the current tooltip area and updates the tooltip if necessary
hide() - Closes the tooltip
isVisible() - Returns whether the tooltip is currently showing
The methods above ask for a tooltipInfo object, which must contain a callback function getTooltipInfo()
This function must return an info object with the following contents:
Info {
Contents {string, html element, annotation array, etc.} Contents to display, if undefined, the hover service will be asked for content
Context {source, offset, offsetStart, offsetEnd}} Information used to modify the tooltip position or contents
Position {String} One of left, right, top, bottom used to position the tooltip relative to the anchor area
AnchorArea {top, left, width, height} rectangle defining the source of the tooltip and where to position relative to
TooltipArea {top, left, width, height} rectangle to define the tooltip's exact placement rather than a relative position to the anchor
TooltipOffsetX {Number} Hint to move the tooltip position horizontally
TooltipOffsetY {Number} Hint to move the tooltip position vertically
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
Method Detail
_update(input)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/pluginregistry.js>.
- Parameters:
- input
closeFunction()
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/commandRegistry.js>.
constructor(start, end, title)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/annotations.js>.
- Parameters:
- start
- end
- title
createElement(type, text, padding)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/requireErrorHandler.js>.
- Parameters:
- type
- text
- padding
createErrorPane()
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/requireErrorHandler.js>.
createRefreshButton(y)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/requireErrorHandler.js>.
- Parameters:
- y
error()
wraps logging in case we have the worker support turned on
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/logger.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/logger.js>.
- Since:
- 7.0
get(namespace, key, options)
Gets one or more preferences from the node specified by
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/preferences.js>.
namespace
.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/preferences.js>.
- Parameters:
- {String} namespace
- A slash-delimited path to the preference node to get
- {String|Array|Object} key Optional, Default: undefined
- the key, or array of keys, or an object specifying the default
values of the keys to get. An empty array or object will return an empty object. Pass in
null
orundefined
- options
- the options object
- Returns:
- A promise that will resolve when the preferences has been retrivied. The promise result is an object with key-value mappings.
{Array.}
getAttributeDefinitions()
Returns the list of dependent properties
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/metatype.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/metatype.js>.
- Since:
- 13.0
- Returns:
- {Array.
} The id of the preference this one depends on
{String}
getCalleeSignature(astnode)
Returns a signature string describing the parent call expression of the given node. astnode must be
a function expression or arrow expression. astnode.parent must be available. Will return
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/signatures.js>.
null
otherwise.
If call expression's first argument is a string under 30 chars, it will be included in the signature.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/signatures.js>.
- Parameters:
- {Object} astnode
- The AST node to parse and compute the signature from
- Returns:
- {String} returns a signature string or
null
{String}
getDependsOn()
Returns the preference attribute ```dependsOn```
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/metatype.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/metatype.js>.
- Since:
- 13.0
- Returns:
- {String} The id of the preference this one depends on
{orion.FileClient}
getFileClient()
Get the file client;
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/searchClient.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/searchClient.js>.
- Returns:
- {orion.FileClient} returns a file client
{?}
getJSON(editorContext, fileName)
Returns the JSON object of the backing text from the editor context
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/jsonAstManager.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/jsonAstManager.js>.
- Parameters:
- {orion.editor.EditorContext} editorContext
- The backing editor context
- {String} fileName
- The name of the file to get the JSON for
- Returns:
- {?} The JSON object or null
{Object}
getRuleSet()
Returns an editable copy of the ruleset to pass into verify() based on values set in the config settings
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.webtools/web/webtools/cssResultManager.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.webtools/web/webtools/cssResultManager.js>.
- Returns:
- {Object} An editable copy of the ruleset based on the config settings
{Deferred}
getValidators(loc, contentType)
Returns the filtered list of validators that aply to the given location and content type
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/syntaxchecker.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/syntaxchecker.js>.
- Since:
- 12.0
- Returns:
- {Deferred} The deferred to resolve the array of applicable validators
handleClosingBracket(closingChar)
When the user types a closing bracket we should skip auto-paired brackets and reduce indenting if
we are on a new line.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/actions.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/actions.js>.
- Parameters:
- closingChar
- {String} the closing bracket character
- Returns:
- returns
true
to skip printing the closing bracket, false to print it
handler(event)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/sites/siteMappingsTable.js>.
- Parameters:
- event
handleResult(result)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/editorCommands.js>.
- Parameters:
- result
{Boolean}
hasFile(path, file)
Returns if Tern knows about the file
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/ternPlugins/eslint.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/ternPlugins/eslint.js>.
- Parameters:
- {String} path
- The full or relative path to the file
- {File} file
- the original file we are trying to find the relative path to
- Since:
- 14.0
- Returns:
- {Boolean} True if Tern knows about the file, false otherwise
hide()
Hides the current tooltip (if it's showing)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
initialize(loc, contentType)
Allows providers that implement this function to pre-initisalize their state, etc, before being called later to actually perform validation
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/syntaxchecker.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/syntaxchecker.js>.
- Parameters:
- {String} loc
- The location path to initialize from
- {Object} contentType
- The optional content type
- Since:
- 12.0
insensitive(str)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/keyAssist.js>.
- Parameters:
- str
isValidTextPosition(x, y)
Return whether the given x/y pixel position, relative to the document, is inside of document text.
This tests both whether the y position is below the text lines of the document as we as whether the
x position is within the text of the line.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/textView.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/textView.js>.
- Parameters:
- x
- {Number} [x] the x pixel position
- y
- {Number} [y] the line pixel position
- Returns:
- returns {Boolean} true if the pixel position is over text content
{boolean}
isVisible()
Returns a boolean indicating whether the tooltip is currently visible
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
- Returns:
- {boolean} 'true' iff the tooltip is currently visible
{bool}
libKnown(libName)
Checks if the library with the given name is known to Tern or the computed environment
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/ternPlugins/eslint.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/ternPlugins/eslint.js>.
- Parameters:
- {string} libName
- The name of the library
- Returns:
- {bool} True if the library name if known, false otherwise
listener()
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.git/web/orion/git/widgets/gitCommitList.js>.
log()
wraps logging in case we have the worker support turned on
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/logger.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/logger.js>.
- Since:
- 7.0
nud()
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/jslintworker.js>.
onchange(e)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/widgets/themes/ThemeBuilder.js>.
- Parameters:
- e
onClickThen(doIt)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/commands.js>.
- Parameters:
- doIt
onconnect(evnt)
Worker callback when a shared worker starts up
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/ternWorkerCore.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/ternWorkerCore.js>.
- Parameters:
- evnt
onerror(evnt)
Worker callback when an error occurs
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/ternWorkerCore.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/ternWorkerCore.js>.
- Parameters:
- evnt
onHover(tooltipInfo, x, y)
Checks the x,y location and updates the tooltip contents or hides the tooltip as appropriate
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
- Parameters:
- tooltipInfo
- a function that will return the parameters need to update the information (see _processInfo())
- x
- coordinates of the mouse event
- y
- coordinates of the mouse event
onload()
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/markdownView.js>.
onmessage(evnt)
Worker callback when a message is sent to the worker
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/ternWorkerCore.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/ternWorkerCore.js>.
- Parameters:
- evnt
put(namespace, data, options)
Sets multiple preferences in the node specified by
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/preferences.js>.
namespace
.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/preferences.js>.
- Parameters:
- {String} namespace
- A slash-delimited path to the preference node to update
- data
- An object with key-value pairs to update. Any other key/value pairs in the node will not be affected unless the
options
clear
is set. - options
- the options object
- Returns:
- A promise that will resolve when the preferences has been updated.
registerExtensions(provider)
Registers all of the plugin extensions for .tern-project file support
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/support/eslint/eslintSupport.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/support/eslint/eslintSupport.js>.
- Parameters:
- {PluginProvider} provider
- The provider to add the extensions to
remove(namespace, key, options)
Removes one or more preferences in the node specified by
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/preferences.js>.
namespace
.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/preferences.js>.
- Parameters:
- {String} namespace
- A slash-delimited path to the preference node to update
- {String|Array|Object} key Optional, Default: undefined
- the key, or array of keys, or an object specifying the
the keys to remove. An empty array or object will remove nothing. Pass in
null
orundefined
to remove all the preferences of the specified node. - options
- the options object
- Returns:
- A promise that will resolve when the preferences has been updated.
show(tooltipInfo, target, locked, giveFocus)
Show the tooltip using the given target information
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
- Parameters:
- tooltipInfo
- a function that will return the tooltip contents (see _processInfo())
- target
- The target through which the info is obtained
- locked
- If true locks the tooltip (never hides unless 'hide' is called)
- giveFocus
- If true forces the focus onto the tooltip (used for F2 processing)
skip()
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/textModel.js>.
statusReporter(message, isError)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/compare/compareView.js>.
- Parameters:
- message
- isError
update(tooltipInfo, noContent)
Updates the information in an already visible tooltip
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
- Parameters:
- tooltipInfo
- a function that will return the parameters need to update the information (see _processInfo())
- noContent
- If true makes no attempt to gather new info and just updates the tooltip's position