| Summary: | [css] Wrong index computed while hovering over first token in css file | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Michael Rennie <Michael_Rennie> |
| Component: | Client | Assignee: | Michael Rennie <Michael_Rennie> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | curtis.windatt.public |
| Version: | 8.0 | ||
| Target Milestone: | 8.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Consider the following snippet: @Namespace foo url('my.url'); if you hover over the '@Namespace' token you get an exception in the console: Error computing hover tooltip tooltip.js:376 TypeError: Cannot read property 'type' of undefined at Object.internalRegistry.handleServiceError (http://mrennie-target.orion.eclipse.org:9000/orion/pluginregistry.js:1071:29) at Object._messageHandler [as handler] (http://mrennie-target.orion.eclipse.org:9000/orion/pluginregistry.js:392:55) at http://mrennie-target.orion.eclipse.org:9000/orion/pluginregistry.js:1117:33 at Array.some (native) at _messageHandler (http://mrennie-target.orion.eclipse.org:9000/orion/pluginregistry.js:1106:23) The problem is the short-circuit case when the token range is within the very first token.