Visual Studio Development Bookmark and Share   
 index > Visual Studio Extensibility > Making the Javascript Editor access the source code in the database
 

Making the Javascript Editor access the source code in the database

I am building something similar to Server Explorer for Apache CouchDB. One of the things necessary is to be able to edit CouchDB view definitions which in CouchDB are JavaScript functions.

How can I trick Visual Studio into using my object to retrieve and save the content of the JavaScript function but still use the rest of it - I am happy with editor itself and have no intention of writing my own Editor/Language Service, etc. The latter would be much bigger effort than what this project warrants

Michael Feingold  Monday, October 12, 2009 5:59 PM
Hi, Mike
Since I know nothing about the Apache CouchDB, Really sorry for that. Could you elaborate more about your need?
Sounds like you are developing DDEX...
What do mean by "my object to retrieve and save the content of the JavaScript function but still use the rest of it"?
Thanks
Chao
Chao Kuo  Wednesday, October 14, 2009 8:01 AM
Sounds like you are developing DDEX...
Not quiet. It is a designer for CouchDB (a very interesting non-SQl database BTW http://couchdb.apache.org/) But...

coorect me if I am wrong, DDEX is primarily about integration into the VS server explorer. This is something I might get to implementing in the future. For now I am struggling with something I do not see how DDEX can help me with.

In CouchDB views are defined by using javascript functions. I know how extract (read) the source code and I know how to save it back. What I need is to make Visual Studio Javascript Editor present the user with the source code I retrieve for editing and when the user saves the source, save it back to CouchDB. Unless I am missing something here DDEX cannot help me with this - or can it?
Michael Feingold  Wednesday, October 14, 2009 1:19 PM

You can use google to search for other answers

Custom Search

More Threads

• TextTemplating DLL distribution license
• DSL Tools: String[] is an invalid external type?
• SourceSafe Add-in
• How to add button to standard toolbar
• DSL Tools - Custom Designer
• Where is the source code for the Solution Extender sample?
• How to display a custom context menu in a custom node of the Team Explorer
• Correct way to get particular instance of DTE?
• Project is not visible if always show solution explorer is unchecked
• *.map file - refresh service reference