Skip to content

Commit 506c682

Browse files
authored
Merge branch 'master' into docs-configuration
2 parents 584707e + 4c90f79 commit 506c682

23 files changed

+1084
-345
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Change Log
22

3+
## [1.4.1] 14-Jan-2022
4+
- Fixes
5+
- Version 1.4.0 is failing to activate (#827)
6+
7+
## [1.4.0] 14-Jan-2022
8+
- Enhancements
9+
- Make `Ctrl / Cmd+T` lookup (Open Symbol by Name) check all servers connected to a multi-root workspace (#815)
10+
- Improve exporting (#818)
11+
- Improve client-side DFI workflow (#808)
12+
- Improve behavior when no Source Control class is enabled (#171)
13+
- Fixes
14+
- Displace incorrectly-published pre-release version.
15+
- Point to correct line when debugging through code with multi-line method arguments (#804)
16+
- Show menu options from correct namespace for `Studio Actions` in ObjectScript Explorer (#812)
17+
- Fix `Attempted Edit` Studio Action handling (#781)
18+
- Properly return options for the Server Command menu for isfs-readonly files (#811)
19+
- Remove `vscode-objectscript-output` language from selector (#805)
20+
321
## [1.2.2] 07-Dec-2021
422
- Fixes
523
- Exporting not working with new version 1.2.1 (#799)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
- Export of existing server sources into a working folder:
2525
- open Command Palette (<kbd>F1</kbd> or <kbd>⌘</kbd>/<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>)
2626
- start typing 'ObjectScript'
27-
- choose `ObjectScript: Export Sources`
27+
- choose `ObjectScript: Export Code from Server`
2828
- press <kbd>Enter</kbd>
2929
- Save and compile a class:
3030
- press <kbd>⌘</kbd>/<kbd>Ctrl</kbd>+<kbd>F7</kbd>
@@ -56,8 +56,8 @@ To unlock these features (optional):
5656

5757
1. Download and install a beta version from GitHub. This is necessary because Marketplace does not allow publication of extensions that use proposed APIs.
5858
- Go to https://github.com/intersystems-community/vscode-objectscript/releases
59-
- Locate the beta immediately above the release you installed from Marketplace. For instance, if you installed `1.2.2`, look for `1.2.3-beta.1`. This will be functionally identical to the Marketplace version apart from being able to use proposed APIs.
60-
- Download the VSIX file (for example `vscode-objectscript-1.2.3-beta.1.vsix`) and install it. One way to install a VSIX is to drag it from your download folder and drop it onto the list of extensions in the Extensions view of VS Code.
59+
- Locate the beta immediately above the release you installed from Marketplace. For instance, if you installed `1.4.1`, look for `1.4.2-beta.1`. This will be functionally identical to the Marketplace version apart from being able to use proposed APIs.
60+
- Download the VSIX file (for example `vscode-objectscript-1.4.2-beta.1.vsix`) and install it. One way to install a VSIX is to drag it from your download folder and drop it onto the list of extensions in the Extensions view of VS Code.
6161

6262
2. From [Command Palette](https://code.visualstudio.com/docs/getstarted/tips-and-tricks#_command-palette) choose `Preferences: Configure Runtime Arguments`.
6363
3. In the argv.json file that opens, add this line (required for both Stable and Insiders versions of VS Code):

docs/RunDebug.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ The InterSystems ObjectScript Extension provides support for ObjectScript debugg
1111
- [Debugging Intro Video](https://code.visualstudio.com/docs/introvideos/debugging)
1212
- [Debugging User Guide](https://code.visualstudio.com/docs/editor/debugging)
1313

14+
Also, InterSystems Learning Services has produced [a short video](https://learning.intersystems.com/course/view.php?id=1795&ssoPass=1) which walks through the steps in this documentation page that you may find useful.
15+
1416
## Debug Configurations
1517

1618
In order to run or debug an ObjectScript class or routine or attach to a running process, you must create a debug configuration. Some other languages default to running the currently active file, but to run ObjectScript, you must specify the routine or ClassMethod to use or the running process to attach to.

docs/SettingsReference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The extensions in the InterSystems ObjectScript Extension Pack provide many sett
4545
| `"objectscript.export.atelier"` | Export source code as Atelier did it, with packages as subfolders. | `boolean` | `true` | |
4646
| `"objectscript.export.category"` | Category of source code to export: `CLS` = classes; `RTN` = routines; `CSP` = csp files; `OTH` = other. Default is `*` = all. | `string` or `object` | `"*"` | |
4747
| `"objectscript.export.dontExportIfNoChanges"` | Do not rewrite the local file if the content is identical to what came from the server. | `boolean` | `false` | |
48-
| `"objectscript.export.filter"` | SQL filter to limit what to export. | `string` | `""` | |
48+
| `"objectscript.export.filter"` | SQL filter to limit what to export. | `string` | `""` | The filter is applied to document names using the [LIKE predicate](https://irisdocs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=RSQL_like) (i.e. `Name LIKE '%filter%'`). |
4949
| `"objectscript.export.folder"` | Folder for exported source code within workspace. | `string` | `"src"` | |
5050
| `"objectscript.export.generated"` | Export generated source code files, such as INTs generated from classes. | `boolean` | `false` | |
5151
| `"objectscript.export.map"` | Map file names before export, with regexp pattern as a key and replacement as a value. | `object` | `{}` | For example, `{ \"%(.*)\": \"_$1\" }` to make % classes or routines use underscore prefix instead. |

package-lock.json

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

package.json

Lines changed: 49 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-objectscript",
33
"displayName": "InterSystems ObjectScript",
44
"description": "InterSystems ObjectScript language support for Visual Studio Code",
5-
"version": "1.2.3-SNAPSHOT",
5+
"version": "1.4.2-SNAPSHOT",
66
"icon": "images/logo.png",
77
"aiKey": "9cd75d51-697c-406c-a929-2bcf46e97c64",
88
"categories": [
@@ -52,7 +52,8 @@
5252
"enableProposedApi": true,
5353
"enabledApiProposals": [
5454
"fileSearchProvider",
55-
"textSearchProvider"
55+
"textSearchProvider",
56+
"outputChannelLanguage"
5657
],
5758
"activationEvents": [
5859
"onDebug",
@@ -72,6 +73,7 @@
7273
"onCommand:vscode-objectscript.hideExplorerForWorkspace",
7374
"onCommand:vscode-objectscript.showExplorerForWorkspace",
7475
"onLanguage:objectscript",
76+
"onLanguage:objectscript-int",
7577
"onLanguage:objectscript-class",
7678
"onLanguage:objectscript-macros",
7779
"onLanguage:xml",
@@ -233,6 +235,10 @@
233235
{
234236
"command": "vscode-objectscript.showClassDocumentationPreview",
235237
"when": "editorLangId == objectscript-class"
238+
},
239+
{
240+
"command": "vscode-objectscript.exportCurrentFile",
241+
"when": "resourceScheme == objectscript && vscode-objectscript.connectActive"
236242
}
237243
],
238244
"view/title": [
@@ -333,6 +339,11 @@
333339
"command": "vscode-objectscript.compileOnly",
334340
"when": "editorLangId =~ /^objectscript/ && vscode-objectscript.connectActive",
335341
"group": "objectscript@7"
342+
},
343+
{
344+
"command": "vscode-objectscript.exportCurrentFile",
345+
"when": "resourceScheme == objectscript && vscode-objectscript.connectActive",
346+
"group": "objectscript@8"
336347
}
337348
],
338349
"editor/title": [
@@ -406,7 +417,15 @@
406417
"ObjectScript"
407418
],
408419
"extensions": [
409-
".mac",
420+
".mac"
421+
]
422+
},
423+
{
424+
"id": "objectscript-int",
425+
"aliases": [
426+
"ObjectScript INT"
427+
],
428+
"extensions": [
410429
".int"
411430
]
412431
},
@@ -440,10 +459,7 @@
440459
},
441460
{
442461
"id": "vscode-objectscript-output",
443-
"aliases": [],
444-
"mimetypes": [
445-
"text/x-code-output"
446-
]
462+
"aliases": []
447463
}
448464
],
449465
"grammars": [
@@ -457,6 +473,11 @@
457473
"text.js": "js"
458474
}
459475
},
476+
{
477+
"language": "objectscript-int",
478+
"scopeName": "source.objectscript",
479+
"path": "syntaxes/objectscript.tmLanguage.json"
480+
},
460481
{
461482
"language": "objectscript-class",
462483
"scopeName": "source.objectscript_class",
@@ -481,6 +502,11 @@
481502
"language": "objectscript-csp",
482503
"scopeName": "source.objectscript_csp",
483504
"path": "syntaxes/objectscript-csp.tmLanguage.json"
505+
},
506+
{
507+
"language": "vscode-objectscript-output",
508+
"scopeName": "source.vscode_objectscript_output",
509+
"path": "syntaxes/vscode-objectscript-output.tmLanguage.json"
484510
}
485511
],
486512
"snippets": [
@@ -491,13 +517,17 @@
491517
{
492518
"language": "objectscript",
493519
"path": "./snippets/objectscript.json"
520+
},
521+
{
522+
"language": "objectscript-int",
523+
"path": "./snippets/objectscript-int.json"
494524
}
495525
],
496526
"commands": [
497527
{
498528
"category": "ObjectScript",
499529
"command": "vscode-objectscript.export",
500-
"title": "Export Sources",
530+
"title": "Export Code from Server",
501531
"enablement": "!isWeb"
502532
},
503533
{
@@ -695,6 +725,12 @@
695725
"title": "Show Class Documentation Preview",
696726
"enablement": "!isWeb",
697727
"icon": "$(open-preview)"
728+
},
729+
{
730+
"category": "ObjectScript",
731+
"command": "vscode-objectscript.exportCurrentFile",
732+
"title": "Export Current File from Server",
733+
"enablement": "!isWeb"
698734
}
699735
],
700736
"keybindings": [
@@ -895,7 +931,7 @@
895931
"type": "boolean"
896932
},
897933
"filter": {
898-
"description": "SQL filter to limit what to export.",
934+
"markdownDescription": "SQL filter to limit what to export. The filter is applied to document names using the [LIKE predicate](https://irisdocs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=RSQL_like) (i.e. `Name LIKE '%filter%'`).",
899935
"type": "string"
900936
},
901937
"category": {
@@ -1032,6 +1068,9 @@
10321068
{
10331069
"language": "objectscript"
10341070
},
1071+
{
1072+
"language": "objectscript-int"
1073+
},
10351074
{
10361075
"language": "objectscript-class"
10371076
}
@@ -1174,7 +1213,7 @@
11741213
"glob": "^7.1.6",
11751214
"iconv-lite": "^0.6.0",
11761215
"mkdirp": "^1.0.4",
1177-
"node-fetch": "3.0.0",
1216+
"node-fetch-cjs": "3.1.1",
11781217
"vscode-cache": "^0.3.0",
11791218
"vscode-debugadapter": "^1.41.0",
11801219
"vscode-debugprotocol": "^1.41.0",

0 commit comments

Comments
 (0)