Skip to content

Commit

Permalink
John's suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-bsaviano committed Jul 12, 2024
1 parent 9437075 commit caa04cd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@
"command": "vscode-objectscript.explorer.project.openOtherServerNs",
"when": "view == ObjectScriptProjectsExplorer && vscode-objectscript.projectsExplorerRootCount > 0",
"group": "navigation"
},
{
"command": "vscode-objectscript.openISCDocument",
"when": "view == workbench.explorer.fileView && vscode-objectscript.connectActive && workspaceFolderCount != 0"
}
],
"view/item/context": [
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
);
return;
}
const doc = await pickDocument(api, "to open");
const doc = await pickDocument(api, "Open a document");
if (!doc) return;
vscode.window.showTextDocument(
DocumentContentProvider.getUri(doc, undefined, undefined, undefined, wsFolder.uri)
Expand Down
4 changes: 1 addition & 3 deletions src/utils/documentPicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,7 @@ export async function pickDocument(api: AtelierAPI, prompt?: string): Promise<st

return new Promise<string>((resolve) => {
const quickPick = vscode.window.createQuickPick<DocumentPickerItem>();
quickPick.title = `Select a document in namespace '${api.ns}' on server '${api.serverId}'${
prompt ? " " + prompt : ""
}`;
quickPick.title = `${prompt ? prompt : "Select a document"} in namespace '${api.ns}' on server '${api.serverId}'`;
quickPick.ignoreFocusOut = true;
quickPick.buttons = [
{ iconPath: sysBtn, tooltip: "Show system documents" },
Expand Down

0 comments on commit caa04cd

Please sign in to comment.