[JBoss JIRA] (ERT-344) JSON schema references are not being resolved [EBZ#489452]
by Friendly Jira Robot (JIRA)
[ https://issues.jboss.org/browse/ERT-344?page=com.atlassian.jira.plugin.sy... ]
Friendly Jira Robot resolved ERT-344.
-------------------------------------
Resolution: Done
> JSON schema references are not being resolved [EBZ#489452]
> ----------------------------------------------------------
>
> Key: ERT-344
> URL: https://issues.jboss.org/browse/ERT-344
> Project: Eclipse Release Train
> Issue Type: Task
> Components: WTP Source Editing
> Reporter: Friendly Jira Robot
> Labels: 3.8.1, bzira, wst.json
> Fix For: Neon.1 (4.6)
>
>
> I hooked up the swagger schema (http://json.schemastore.org/swagger-2.0) to the schema extension and have been assessing content assist in the editor. At this point, only the top level properties are being returned as proposals, indicating this function is a probably a work in progress, which is fine. One problem I see is that JSON references are not being resolved:
> Currently, there are JSONObjects with name/value pairs that look like this:
> {"$ref":"#/definitions/info"}
> {"$ref":"#/definitions/paths"}
> ..etc
> It'll be good if the model can contain the resolved references for content assist/validation purposes. I'd like to raise this as a requirement if it hasn't already been captured.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 9 months
[JBoss JIRA] (ERT-345) Template "new package.json" should be available only for package.json file [EBZ#494185]
by Friendly Jira Robot (JIRA)
Friendly Jira Robot created ERT-345:
---------------------------------------
Summary: Template "new package.json" should be available only for package.json file [EBZ#494185]
Key: ERT-345
URL: https://issues.jboss.org/browse/ERT-345
Project: Eclipse Release Train
Issue Type: Task
Components: WTP Source Editing
Reporter: Friendly Jira Robot
Fix For: Neon.1 (4.6)
When you open completion for any JSON file, you have a template "new package.json".
I understand that it's a cool feature for package.json, but it's a little strange for other JSON file.
I think this template should be moved to org.eclipse.wst.json.npm.ui plugin
(not sure it's easy to do that).
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 9 months
[JBoss JIRA] (ERT-342) Breakpoints doesn't hit if create Project from existing source. [EBZ#439778]
by Friendly Jira Robot (JIRA)
Friendly Jira Robot created ERT-342:
---------------------------------------
Summary: Breakpoints doesn't hit if create Project from existing source. [EBZ#439778]
Key: ERT-342
URL: https://issues.jboss.org/browse/ERT-342
Project: Eclipse Release Train
Issue Type: Task
Components: JSDT
Reporter: Friendly Jira Robot
I created JavaScript project (Name: Sample) using "Create Project from existing source" Let see in "C:\TestProject" which contains test.js script.
Now i opened test.js and added some breakpoint in that script, now when I'm running the script breakpoint is Not Hitting.
*****************Investigation********************
org.eclipse.wst.jsdt.debug.internal.core.model.ScriptResolutionManager there is a function guessScriptMatches(ScriptReference script, IPath path).
JavaDoc of this function: "Guesses if the paths are considered equal by walking backward from the last segment of the paths and counting the matching segments. The paths are guessed to be equal iff any two or more segments match in order."
So in My case because Project name and physical folder name are different. That why only file name is matching, but this function is checking for at least 2 segment to match, so it returns false and caller function will not add JavaScriptDebugTarget for this script.
******************** Solution Proposal*********************
We can check if current script is inside root folder of project then if one segment matches we'll return true, for other case it will remain check for at least two segment to match
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 9 months