Skip to content

Commit 591db8c

Browse files
committed
v0.0.17
1 parent 32da212 commit 591db8c

7 files changed

+428
-38
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22

33
---
44

5-
## [v0.0.17](https://github.com/phil1436/ownobjectscriptextension/tree/0.0.17) (2023-?-?)
5+
## [v0.0.17](https://github.com/phil1436/ownobjectscriptextension/tree/0.0.17) (2023-7-17)
66

77
- Bug fixes
88
- Category `Own ObjectScript Comment` renamed to `Own ObjectScript Documentation`
9+
- Method description template changed
10+
- Command `Own ObjectScript Documentation: Open InterSystems Class Documentation` added
11+
- Command `Own ObjectScript Documentation: InterSystems Web Search` added
912

1013
---
1114

MethodDescriptionTemplate.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
2-
"__comment": [
3-
"This is the template for your method Description.",
4-
"Each string in the array will be added in a new line.",
5-
"Field 'MethodDescription' will be the first line of your template and descripes the method.",
6-
"Field 'ParameterDescription' will add for each parameter of the method and descripes the parameter usage.",
7-
"Field 'ReturnDescription' will only be added if the method has a return value.",
8-
"Field 'ExampleClassMethod' will only be added if the method is a classmethod and gives a example for usage of the method.",
9-
"Field 'ExampleMethod' will only be added if the method is a instance method and gives a example for usage of the method.",
10-
"Use spaceholder *classname* for the current class name",
11-
"Use spaceholder *methodname* for the current method name",
12-
"Use spaceholder *parametername* for the parametername (can only be used in the ParameterDescription field) ",
13-
"Use spaceholder *optional* will be replaced by '(optional)' if the current parameter is optional (can only be used in the ParameterDescription field) ",
14-
"Reload the window after editing!"
15-
],
16-
"MethodDescription": ["*methodname*Description"],
17-
"ParameterDescription": [
18-
"<li>*optional**parametername*: *parametername*Description</li>"
19-
],
20-
"ReturnDescription": ["<li><b>returns</b>: </li>"],
21-
"ExampleClassMethod": [
22-
"<EXAMPLE> Do ##class(*classname*).*methodname*()</EXAMPLE>"
23-
],
24-
"ExampleMethod": ["<EXAMPLE> Do instance.*methodname*()</EXAMPLE>"]
2+
"__comment": [
3+
"This is the template for your method Description.",
4+
"Each string in the array will be added in a new line.",
5+
"Field 'MethodDescription' will be the first line of your template and descripes the method.",
6+
"Field 'ParameterDescription' will add for each parameter of the method and descripes the parameter usage.",
7+
"Field 'ReturnDescription' will only be added if the method has a return value.",
8+
"Field 'ExampleClassMethod' will only be added if the method is a classmethod and gives a example for usage of the method.",
9+
"Field 'ExampleMethod' will only be added if the method is a instance method and gives a example for usage of the method.",
10+
"Use spaceholder *classname* for the current class name",
11+
"Use spaceholder *methodname* for the current method name",
12+
"Use spaceholder *parametername* for the parametername (can only be used in the ParameterDescription field) ",
13+
"Use spaceholder *optional* will be replaced by '(optional)' if the current parameter is optional (can only be used in the ParameterDescription field) ",
14+
"Reload the window after editing!"
15+
],
16+
"MethodDescription": ["*methodname*Description <br>"],
17+
"ParameterDescription": [
18+
"<li><i>*optional*</i><b> *parametername*</b>: *parametername*Description</li>"
19+
],
20+
"ReturnDescription": ["<li><b>returns</b>: </li>"],
21+
"ExampleClassMethod": [
22+
"<EXAMPLE> Do ##class(*classname*).*methodname*()</EXAMPLE>"
23+
],
24+
"ExampleMethod": ["<EXAMPLE> Do instance.*methodname*()</EXAMPLE>"]
2525
}

README.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@
2626
---
2727

2828
- [Features](#features)
29+
- [Open InterSystems Class Documentation](#open-intersystems-class-documentation)
2930
- [Add Method Description](#add-method-description)
3031
- [Make Select Statement](#make-select-statement)
31-
- [Create New Wizard](#create-new-wizard-_beta_)
32-
- [Translate Embedded Python](#translate-embedded-python-_beta_)
32+
- [Create New Wizard _BETA_](#create-new-wizard-_beta_)
33+
- [Translate Embedded Python _BETA_](#translate-embedded-python-_beta_)
3334
- [Requirements](#requirements)
3435
- [Installation](#installation)
3536
- [Install from VSCode Marketplace](#install-from-vscode-marketplace)
@@ -53,6 +54,12 @@ This command automatically adds `Set`, `Do` and `Write` to your InterSystems Obj
5354
5455
> Tip: You can use IntelliSense even if you have errors in your code. -->
5556

57+
### `Open InterSystems Class Documentation`
58+
59+
Remebering all your class names and their properties can be difficult. The `Open InterSystems Class Documentation` command makes it easy to access the documentation of any class. Simply place your cursor within a class name and execute the command. The command will automatically open the documentation of the class on the side or in your browser.
60+
61+
<img alt="png" src="https://raw.githubusercontent.com/phil1436/ownobjectscriptextension/master/resources/demoOpenInterSystemsClassDocumentation.gif" width="100%"/>
62+
5663
### `Add Method Description`
5764

5865
Writing comprehensive method descriptions is essential for maintaining code clarity and promoting collaboration. Simply place your cursor within a method and execute the `Add Method Description` command. The command will automatically generate a description template for the method, making it easy to provide meaningful documentation.
@@ -142,8 +149,10 @@ This extension will create a directory named _ownobjectscriptextension-workspace
142149
### Own ObjectScript Documentation
143150

144151
- `Add Method Description`: Adds a description template to your `Method` or `ClassMethod`. See [here](#add-method-description) for more information.
145-
- `Edit Method Description Template`: Opens the _MethodDescriptionTemplate.json_ file so you can edit the method template. Reload Window after editing!
152+
- `Edit Method Description Template`: Opens the _MethodDescriptionTemplate.json_ file so you can edit the method template. **Reload Window after editing!**
146153
- `Add Inline Comments`: Adds a comment in the current Method every specified count of lines without any comment (Default is every 5 lines).
154+
- `Open InterSystems Class Documentation`: Opens the documentation of the current class. See [here](#open-intersystems-class-documentation) for more information.
155+
- `InterSystems Web Search`: Search a question about InterSystems ObjectScript on the web. It will open a new tab in your browser with the search results for your question.
147156

148157
### Own ObjectScript SQL
149158

@@ -175,6 +184,11 @@ Go to `File > Preferences > Settings` and than navigate to `Extensions > OwnObje
175184
- `Ask For Package First`: Set if the extension should ask for the package first (Default: _disabled_).
176185
- `Service: Add Target Config Names`: If enabled a property called `TargetConfigNames` will be added to your service, that represent the business partners inside of the production. (Default: _disabled_).
177186

187+
### Documentation
188+
189+
- `Open In Browser`: If enabled the command `Own ObjectScript Documentation: Open InterSystems Class Documentation` will open the documentation in the browser otherwise it will open in VSCode (Default: _disabled_).
190+
- `Use Duck Duck Go`: If enabled the command `Own ObjectScript Documentation: InterSystems Web Search` will use the searchengine DuckDuckGo otherwise it will use Google (Default: _disabled_).
191+
178192
---
179193

180194
## Color Theme
@@ -193,11 +207,13 @@ The extension will add a new color theme called _InterSystems Real Dark_. You ca
193207

194208
## [Release Notes](https://github.com/phil1436/ownobjectscriptextension/blob/master/CHANGELOG.md)
195209

196-
### [v0.0.16](https://github.com/phil1436/ownobjectscriptextension/tree/0.0.16)
210+
### [v0.0.17](https://github.com/phil1436/ownobjectscriptextension/tree/0.0.17)
197211

198-
- Refactoring
199212
- Bug fixes
200-
- Command `Add Method Description Template` renamed to `Add Method Description`
213+
- Category `Own ObjectScript Comment` renamed to `Own ObjectScript Documentation`
214+
- Method description template changed
215+
- Command `Own ObjectScript Documentation: Open InterSystems Class Documentation` added
216+
- Command `Own ObjectScript Documentation: InterSystems Web Search` added
201217

202218
---
203219

package-lock.json

Lines changed: 154 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)