Skip to content

Commit 5636765

Browse files
authored
Migrate to official ISC documentation (#1185)
1 parent 9e32935 commit 5636765

19 files changed

+40
-132
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979

8080
## [2.2.0] 31-Oct-2022
8181
- Enhancements
82-
- Add features to ease migration from Studio (see [Migrating from Studio documentation page](https://intersystems-community.github.io/vscode-objectscript/studio/) for details) (#1003)
82+
- Add features to ease migration from Studio (see [Migrating from Studio documentation page](https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO_fromstudio) for details) (#1003)
8383
- Improve CodeLenses (#1007)
8484
- Fixes
8585
- Improve export error logging (#998)
@@ -136,7 +136,7 @@ Minimum VS Code version is now 1.66.0
136136
- Enhancements
137137
- Compile asynchronously to avoid timing out (#890)
138138
- Add `objectscript.explorer.alwaysShowServerCopy` setting to make ObjectScript Explorer always open server-side code, even when local copy exists (#494)
139-
- Move issue reporting instructions from README to [documentation](https://intersystems-community.github.io/vscode-objectscript/feedback/) (#874)
139+
- Move issue reporting instructions from README to [documentation](https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO_reporting) (#874)
140140
- Fixes
141141
- Fix syncing of local CSP files (#886)
142142
- Stop logging `Non-JSON response` messages to Output (#853)
@@ -406,7 +406,7 @@ Minimum VS Code version is now 1.66.0
406406
- Swap the two sides displayed by a compare invoked after local file import conflict. Server copy is now on the left, to match convention elsewhere in VS Code.
407407
- Fix `Import and Compile Current File`.
408408
- Exclude invalid commands from Command Palette.
409-
- New documentation site using [GitHub Pages](https://intersystems-community.github.io/vscode-objectscript/).
409+
- New documentation site using GitHub Pages.
410410
- Add API functions for use by other extensions.
411411
- Upgrade vulnerable dependencies.
412412

README.md

Lines changed: 3 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,17 @@
88

99
# InterSystems ObjectScript extension for VS Code
1010

11-
> **Note:** The best way to install and use this extension is by installing the [InterSystems ObjectScript Extension Pack](https://marketplace.visualstudio.com/items?itemName=intersystems-community.objectscript-pack) and following the [documentation here](https://intersystems-community.github.io/vscode-objectscript/).
11+
> **Note:** The best way to install and use this extension is by installing the [InterSystems ObjectScript Extension Pack](https://marketplace.visualstudio.com/items?itemName=intersystems-community.objectscript-pack) and following the [documentation here](https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO).
1212
1313
[InterSystems®](http://www.intersystems.com) ObjectScript language support for Visual Studio Code, from the [InterSystems Developer Community](https://community.intersystems.com/).
1414

15-
- Documentation on [GitHub Pages](https://intersystems-community.github.io/vscode-objectscript/).
15+
- Documentation on the [InterSystems Documentation site](https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO).
1616

17-
- Guidance on [reporting issues](https://intersystems-community.github.io/vscode-objectscript/feedback/).
17+
- Guidance on [reporting issues](https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO_reporting).
1818

1919
## Features
2020

2121
- InterSystems ObjectScript code highlighting support.
22-
23-
![example](https://raw.githubusercontent.com/intersystems-community/vscode-objectscript/master/images/screenshot.png)
2422
- Debugging ObjectScript code.
2523
- Intellisense support for commands, system functions, and class members.
2624
- Export of existing server sources into a working folder:
@@ -33,8 +31,6 @@
3331
- or, select `ObjectScript: Import and Compile Current File` from Command Palette
3432
- Direct access to edit or view server code in the VS Code Explorer via `isfs` and `isfs-readonly` FileSystemProviders (e.g. using a [multi-root workspace](https://code.visualstudio.com/docs/editor/multi-root-workspaces)). Server-side source control is respected.
3533
- Server Explorer view (ObjectScript: Explorer) with ability to export items to your working folder.
36-
37-
![ServerExplorer](https://raw.githubusercontent.com/intersystems-community/vscode-objectscript/master/images/explorer.png)
3834
- Integration with with [InterSystems Server Manager](https://marketplace.visualstudio.com/items?itemName=intersystems-community.servermanager) for secure storage of connection passwords.
3935

4036
## Installation
@@ -75,42 +71,6 @@ intersystems-community.vscode-objectscript version X.Y.Z-beta.1 activating with
7571

7672
After a subsequent update of the extension from Marketplace you will only have to download and install the new `vscode-objectscript-X.Y.Z-beta.1` VSIX. None of the other steps above are needed again.
7773

78-
## Configure a Connection
79-
80-
To be able to use many features you first need to configure the connection to your IRIS/Caché/Ensemble server(s) in your [VS Code settings](https://code.visualstudio.com/docs/getstarted/settings). If you are unfamiliar with how settings work and how they are edited, use that link.
81-
82-
We recommend you define server connections in the `intersystems.servers` object whose structure is defined by the [InterSystems Server Manager](https://marketplace.visualstudio.com/items?itemName=intersystems-community.servermanager) helper extension.
83-
84-
Install that extension and consult its documentation about its UI and commands for easy setup of connections, plus assistance when editing the JSON definition directly.
85-
86-
For more tips about the `intersystems.servers` object, see the [Notes](#Notes) section below.
87-
88-
### Client-side Editing
89-
90-
A simple workspace -- a local working folder in which you edit InterSystems source files and manage them using client-side source control (e.g. Git) -- will use the `objectscript.conn` settings object to **import** locally-edited code into a namespace on a server, compile it there and run/debug it, and also for initial **export** of an existing codebase (optional). This settings object is usually defined in Workspace Settings, for example in the `.vscode/settings.json` file of your working folder.
91-
92-
A quick way to add `objectscript.conn` to a new working folder is:
93-
94-
1. Open the folder in VS Code.
95-
2. Use the InterSystems icon on the activity bar to switch to **ObjectScript Explorer** view.
96-
3. Click the 'Choose Server and Namespace' button.
97-
4. Respond to the sequence of quickpicks. You can also define a new server at the start of this sequence by using the '+' button.
98-
99-
For more about `objectscript.conn` see the [Notes](#Notes) section below.
100-
101-
### Server-side Editing
102-
103-
To edit code directly in one or more namespaces on one or more servers (local or remote) we recommend creating a workspace definition file (for example _XYZ.code-workspace_) where you specify one or more root folders that directly access namespaces via the `isfs` or `isfs-readonly` URI schemes. The only difference between these two schemes is that any file opened from a folder using the `isfs-readonly` scheme will be set as read-only in VS Code and thus protected against being changed.
104-
105-
1. Start VS Code.
106-
2. If your last-used folder opens, use 'Close Folder' on the 'File' menu ('Code' menu on macOS). Or if what opened was your last-used workspace, use 'Close Workspace'.
107-
3. On VS Code's Explorer view (<kbd>⌘</kbd>/<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>E</kbd>), click the 'Manage Servers' button which is contributed by the Server Manager extension.
108-
4. Find your target server in the tree, or use the '+' button to add a new server.
109-
5. Expand the server and its 'Namespaces' folder, then click on the 'pencil' icon for editing access to the namespace or the 'eye' icon for viewing access. If you want to work with web application files rather than classes and routines, hold down the <kbd>Alt</kbd>/<kbd>Option</kbd> key when clicking the button.
110-
6. Use 'Save Workspace As...' to store your workspace definition in a file with a `.code-workspace` extension.
111-
112-
For more about `isfs` and `isfs-readonly` folder specifications see the [Notes](#Notes) section below.
113-
11474
## Notes
11575

11676
- Connection-related output appears in the 'Output' view while switched to the 'ObjectScript' channel using the drop-down menu on the view titlebar.
@@ -122,82 +82,3 @@ For more about `isfs` and `isfs-readonly` folder specifications see the [Notes](
12282
```SQL
12383
GRANT EXECUTE ON %Library.RoutineMgr_StudioOpenDialog TO xxx
12484
```
125-
126-
### More about `intersystems.servers`
127-
This settings object is useful for both client-side and server-side development.
128-
- An example server definition named 'local':
129-
130-
```json
131-
"intersystems.servers": {
132-
"local": {
133-
"webServer": {
134-
"scheme": "http",
135-
"host": "127.0.0.1",
136-
"port": 52773
137-
},
138-
"description": "My local IRIS",
139-
"username": "me"
140-
}
141-
}
142-
```
143-
144-
- By defining connections in your User Settings they become available for use by any workspace you open in VS Code. Alternatively, define them in workspace-specific settings.
145-
146-
- Setting the `username` property is optional. If omitted it will be prompted for when connecting, then cached for the session.
147-
148-
- Setting a plaintext value for the `password` property is **not** recommended. Instead, install the InterSystems Server Manager extension and use that to store your password securely.
149-
150-
- If no password has been set or stored it will be prompted for when connecting, then cached for the session.
151-
152-
### More about `objectscript.conn`
153-
This settings object is primarily relevant when doing client-side development.
154-
- We recommend that `objectscript.conn` uses its `server` property to point to an entry in `intersystems.servers`. For example:
155-
156-
```json
157-
"objectscript.conn": {
158-
"active": true,
159-
"server": "local",
160-
"ns": "USER"
161-
}
162-
```
163-
164-
- The mandatory `ns` property defines which server namespace you will work with.
165-
166-
- When the `server` property is set, any `username` or `password` properties of `objectscript.conn` are ignored. Instead these values come from the `intersystems.servers` entry.
167-
168-
### More about `isfs` and `isfs-readonly` workspace folders
169-
Server-side development is best done using `isfs` folders. The read-only variant `isfs-readonly` is also useful when doing client-side development, since it enables server-side searching of your codebase.
170-
171-
To modify how your folder behaves, edit the JSON of your workspace definition (_XYZ.code-workspace_ file). Get there by using the 'Edit Settings' option from the context menu of Server Manager's 'Servers' view, or by running the 'Preferences: Open Workspace Settings (JSON)' command from the Command Palette. Edit your `uri` property.
172-
173-
- The `csp` query parameter indicates web application files are to be shown. The uri path optionally specifies which application. The namespace suffix on the server name (preferred syntax) or the `ns` query parameter (deprecated) must specify the same namespace the application is configured to use. In the following example the first folder is for the `/csp/user` web application in the USER namespace of the server named 'local' and the second gives read-only access to all web applications that reside in the %SYS namespace. The second folder also uses the optional `name` property:
174-
```json
175-
{
176-
"uri": "isfs://local:user/csp/user?csp"
177-
},
178-
{
179-
"name": "local:%SYS web files (read-only)",
180-
"uri": "isfs-readonly://local/?ns=%SYS&csp"
181-
}
182-
```
183-
184-
- To see only classes in the Xxx.Yyy package, format the uri like this:
185-
186-
```json
187-
{
188-
"uri": "isfs://local:user/Xxx/Yyy?type=cls"
189-
}
190-
```
191-
192-
- Other query parameters that can be specified include:
193-
- `type=cls` to show only classes, or `type=rtn` to show only routines.
194-
- `flat=1` to flatten the hierarchy.
195-
- `generated=1` to show generated items.
196-
- `system=1` to show system (%) items. Without this parameter these are only shown for the %SYS namespace.
197-
- `filter=filterspec` to use a filter specification formatted in the same way as used in InterSystems Studio's File Open dialog (e.g. `filter=Ensem*.inc`).
198-
199-
## Support and Training
200-
201-
[CaretDev](https://caretdev.com/#products) provides commercial support services. [Request a quote](https://caretdev.com/contact-us/).
202-
203-
On-line course from CaretDev - [Developing with VS Code ObjectScript – Easy Start](https://caretdev.com/courses/).

docs/Configuration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ permalink: /configuration/
55
nav_order: 4
66
---
77

8+
> **Note:** This documentation has been moved to the [InterSystems Documentation site](https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO_config). This page will be removed at a later date.
9+
810
# Configuration
911

1012
VS Code settings enable you to customize various aspects of its behavior. The InterSystems extensions provide settings used to configure VS Code for ObjectScript development.

docs/ExtensionUI.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ permalink: /extensionui/
55
nav_order: 3
66
---
77

8+
> **Note:** This documentation has been moved to the [InterSystems Documentation site](https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO_ui). This page will be removed at a later date.
9+
810
# InterSystems Extensions User Interface
911

1012
The InterSystems extensions add additional capability to the VS Code user interface to support development in ObjectScript. These additions are based on the standard VS Code UI, which is described in the section [User Interface](https://code.visualstudio.com/docs/getstarted/userinterface) in the VS Code documentation.

docs/Installation.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ title: Installation
44
permalink: /installation/
55
nav_order: 2
66
---
7+
8+
> **Note:** This documentation has been moved to the [InterSystems Documentation site](https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO_install). This page will be removed at a later date.
9+
710
# Installation
811

912
## Install VS Code

docs/LowCode.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ permalink: /low-code/
55
nav_order: 11
66
---
77

8+
> **Note:** This documentation has been moved to the [InterSystems Documentation site](https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO_lowcode). This page will be removed at a later date.
9+
810
# Low-Code Editors
911

1012
VS Code contains support for low-code editors via its [Custom Editors API](https://code.visualstudio.com/api/extension-guides/custom-editors). As InterSystems redevelops its suite of low-code editors for Interoperability components, support for integration with this extension will be included. This page lists the currently supported low-code editors and describes how to use them in VS Code.

docs/Projects.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ permalink: /projects/
55
nav_order: 9
66
---
77

8+
> **Note:** This documentation has been moved to the [InterSystems Documentation site](https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO_project). This page will be removed at a later date.
9+
810
# Working with Projects
911

1012
A project is a named set of class definitions, routines, include files, web application files or custom documents. All files in a project must be in the same namespace on the same InterSystems server. Each document can be associated with any number of projects. Each namespace can contain any number of projects.

docs/ReportingIssues.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ permalink: /feedback/
55
nav_order: 8
66
---
77

8+
> **Note:** This documentation has been moved to the [InterSystems Documentation site](https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO_reporting). This page will be removed at a later date.
9+
810
# Reporting Issues
911

10-
[InterSystems ObjectScript for VS Code](https://intersystems-community.github.io/vscode-objectscript/) consists of three collaborating VS Code extensions. This modular architecture also means there are three different GitHub repositories where issues can be created. Fortunately VS Code itself helps with the task. You will need a GitHub account. Here's how:
12+
[InterSystems ObjectScript for VS Code](https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO) consists of three collaborating VS Code extensions. This modular architecture also means there are three different GitHub repositories where issues can be created. Fortunately VS Code itself helps with the task. You will need a GitHub account. Here's how:
1113

1214
1. From the Help menu in VS Code choose 'Report Issue'. Alternatively, open the Command Palette and run `Help: Report Issue...`.
1315

docs/RunDebug.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ title: Running and Debugging
44
permalink: /rundebug/
55
nav_order: 5
66
---
7+
8+
> **Note:** This documentation has been moved to the [InterSystems Documentation site](https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO_debug). This page will be removed at a later date.
9+
710
# Running and Debugging
811

912
The InterSystems ObjectScript Extension provides support for ObjectScript debugging. It takes advantage of the debugging capabilities built into VS Code, so you may find these VS Code documentation resources useful:

docs/ServerSide.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ permalink: /serverside/
55
nav_order: 6
66
---
77

8+
> **Note:** This documentation has been moved to the [InterSystems Documentation site](https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO_ssworkflow). This page will be removed at a later date.
9+
810
# Server-side Editing
911

1012
You can configure the InterSystems ObjectScript extension to edit code directly on the server, using the [multi-root workspaces](https://code.visualstudio.com/docs/editor/multi-root-workspaces) VS Code feature. This type of configuration is useful in cases where source code is stored in a Source Code Management (SCM) product interfaced to the server. For example you might already be using the Source Control menu in InterSystems Studio or Portal, implemented by a source control class that extends `%Studio.SourceControl.Base`.

0 commit comments

Comments
 (0)