burn-e99 / mybatis-lang-support Goto Github PK
View Code? Open in Web Editor NEWAdds support for mybatis xml in Java projects, helping alleviate typos.
License: Mozilla Public License 2.0
Adds support for mybatis xml in Java projects, helping alleviate typos.
License: Mozilla Public License 2.0
If a caret issue is found within a CDATA block, we can safely ignore it.
Example:
<![CDATA[ <> ]]>
When a reference is not found in the current file, we currently only suggest the first SQL id namespace we find. We should suggest all possible namespace options.
Namespaces can be shared between files, downgrade to warning and make sure all namespaces are checked before showing an error on refids without a namespace
The extension should see if the desired id is defined somewhere in the project, and if it is, suggest the namespaces as quickfixes.
Check for and provide error/quickfix for the following issues:
<>
<>
Example that is causing an error to not appear:
AND COLNAME5 >= <include refid="Example.testNumber"/>
The description for the & issue has the & duplicated
If opens a general multi-module maven project, this alarm will be always displayed.
User should be able to Ctrl+click a valid SQL id in dao/mybatis Java files. This should take the user to the desired SQL statement
The extension should provide a command (activated by Ctrl+Shift+P) to fix all quick fixable issues.
Suggestion should be the current file. Suggestion should only show up when the refid does exist on the local namespace but no namespace is provided.
Extension should verify that none of the resultMaps have duplicated ids.
</case> <- this should have an error, but does not
<case>
</case>
</case> <- this should have an error and does
Make a note in the readme specifying that this extension is intended to be used on ibatis/mybatis projects using useStatementNamespaces="true"
http://java.ociweb.com/mark/programming/iBATIS.html#MappedStatements
Create a new setting to indicate what type of mapper the workspace is using (sqlMap VS mapper)
I want to be able to Ctrl+Click on a resultMap="blah" and be linked to the resultMap with said id.
File should not get error put on it when it has no namespace
Diagnostic errors/warnings should ignore commented out code
This extension is designed to enforce good coding practices, but in legacy apps, this will result in lots of errors on include refid tags that do not have a namespace included.
Create a setting to downgrade this error to a warning for legacy apps.
& is an illegal character in xml, but is a legal SQL character (bitwise AND). Add error checking around this character.
< and > are showing as errors in
<,>,<=,>= need to be ignored inside xml strings
Provide an action to export a sql statement (select, update, delete, insert) from mybatis to raw sql
When parsing the ids and namespaces out of files, comments need to be ignored
User should be able to tab complete namespaces and refids.
<foreach>
<foreach>
</foreach>
<foreach>
</foreach>
</foreach> <-- ERROR HERE
File has a mix of normal and self closed property tags, but some of the self closed tags are showing the propertyMissingClosing error
The error should state the namespace instead of saying this file's namespace.
There should be an additional quickfix option added to the caret issue that suggests fixing it with the following (example is for NEQ, instead of doing <>
<![CDATA[ <> ]]>
The user should get errors when the desired SQL statement does not exist in the projects mappers
resultMap can be self closing, but the extension is not treating it as such
<result in <resultMap is complaining about a missing closing. It should not be looking only at <result and should instead look at the full tag name <resultMap
When the namespace has duplicate ids, but none of these duplicates are in the file that the namespace is shared in, the errors are showing on the first line of the file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.