Skip to content

Commit 34007a8

Browse files
authored
Improve objectscript.openClassContracted setting (#905)
1 parent 9d71a22 commit 34007a8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/SettingsReference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The extensions in the InterSystems ObjectScript Extension Pack provide many sett
5656
| `"objectscript.format.functionCase"` | Case for system functions and system variables. | `"upper"`, `"lower"` or `"word"` | `"word"` | Has no effect if the `InterSystems Language Server` extension is installed and enabled. |
5757
| `"objectscript.ignoreInstallServerManager"` | Do not offer to install the [intersystems-community.servermanager](https://marketplace.visualstudio.com/items?itemName=intersystems-community.servermanager) extension. | `boolean` | `false` | |
5858
| `"objectscript.multilineMethodArgs"` | List method arguments on multiple lines, if the server supports it. | `boolean` | `false` | Only supported on IRIS 2019.1.2, 2020.1.1+, 2021.1.0+ and subsequent versions! On all other versions, this setting will have no effect. |
59-
| `"objectscript.openClassContracted"` | Automatically collapse all folding ranges when a class is opened for the first time. | `boolean` | `false` | |
59+
| `"objectscript.openClassContracted"` | Automatically collapse all class member folding ranges when a class is opened for the first time. | `boolean` | `false` | |
6060
| `"objectscript.overwriteServerChanges"` | Overwrite a changed server version without confirmation when importing the local file. | `boolean` | `false` | |
6161
| `"objectscript.serverSideEditing"` | Allow editing code directly on the server after opening it from ObjectScript Explorer. | `boolean` | `false` | |
6262
| `"objectscript.serverSourceControl.disableOtherActionTriggers"` | Prevent server-side source control 'other action' triggers from firing. | `boolean` | `false` | |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@
10691069
"default": false
10701070
},
10711071
"objectscript.openClassContracted": {
1072-
"description": "Automatically collapse all folding ranges when a class is opened for the first time.",
1072+
"description": "Automatically collapse all class member folding ranges when a class is opened for the first time.",
10731073
"type": "boolean",
10741074
"default": false
10751075
},

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
981981
editor.document.languageId === "objectscript-class" &&
982982
!openedClasses.includes(uri)
983983
) {
984-
vscode.commands.executeCommand("editor.foldAll");
984+
vscode.commands.executeCommand("editor.foldLevel1");
985985
openedClasses.push(uri);
986986
}
987987
}),

0 commit comments

Comments
 (0)