Comments (5)
Hi is a first shot at snippets :)
UserSnippets.zip
from utplsql-sqldeveloper.
Thanks @lwasylow . Good idea to provide a category for annotations and another one for expectations. I think it is even doable to maintain this UserSnippets.xml
manually.
I plan to include it in the resource folder and provide a button in the preference dialog for the merge with the user's UserSnippets.xml
. It's not perfect, but not that bad as well.
from utplsql-sqldeveloper.
Good idea. It would be nice if you could provide the snippets. You can create them within SQL Developer. They are stored in UserSnippets.xml
(in %APPDATA%\SQL Developer
on Windows).
Based on that I should be able to provide them as part of the utPLSQL extension. I had a quick look at the oracle.sqldeveloper.snippet
extension. There is no supported way to add additional snippets. There is a method called SnippetAddin.registerSnippet
, but it is protected
. However it should be possible to extend the existing UserSnippets.xml
for predefined group names (e.g. utPLSQL
). The event for the extension could be placed in the Preferences, similar how we currently extend the code templates. This way user defined snippets are modified via explicit user interaction only.
from utplsql-sqldeveloper.
Ideally, utPLSQL framework could include function to provide a list of supported annotations with description and syntax examples.
If the utPLSQL framework provides this information, then the it should be possible to update the snippets based on that. However, choosing the right connection to get this information will be challenging, since the preference dialog does not have a connection context. Of course we could add a context menu on the connection to do the snippet update. The question is if we want to support older utPLSQL versions also. If the answer is yes, then we have to provide the snippets as part of the extension (at least for the older utPLSQL versions).
from utplsql-sqldeveloper.
Yeah it's small enough to maintain manually and to be fair probably easier. Sounds like good plan
I actually like the snippets is like building a Lego now :)
from utplsql-sqldeveloper.
Related Issues (20)
- Change default value of "Show description (if present)" preference HOT 2
- Typo HOT 1
- Can't find libraries HOT 1
- Suggestions for working with legacy codebase with "UT" package? HOT 3
- Empty utPLSQL windows when `Show suites (hierarchical view of tests)?` is unchecked HOT 9
- Test result window not showing up HOT 7
- Multiple spaces are replaced by single spaces in failure message HOT 2
- Add support for disabled reason with utPLSQL v3.1.12 HOT 2
- plans to update to more recent SQL Developer version? HOT 7
- Update code templates using AAA
- No test found HOT 15
- Missing line break after suite annotation in generator skeleton template
- 'Run utPLSQL test' on the test package doesn't display the utPLSQL window. HOT 2
- German translation of "Failures" is inconsistent
- Opportunities for silent rolllout with an SCCM like ACMP ? HOT 2
- Instructions for generating coverage report without access to public internet HOT 3
- Enable one unit test in a bunch of Unit Tests HOT 4
- Start utPLSQL tests with an arbitrary utPLSQL path
- Pressing Create code templates does nothing HOT 2
- Enhancement: Keep Test Code Coverage module list settings between runs HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from utplsql-sqldeveloper.