Skip to content

Commit caa04cd

Browse files
committed
John's suggestions
1 parent 9437075 commit caa04cd

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,10 @@
359359
"command": "vscode-objectscript.explorer.project.openOtherServerNs",
360360
"when": "view == ObjectScriptProjectsExplorer && vscode-objectscript.projectsExplorerRootCount > 0",
361361
"group": "navigation"
362+
},
363+
{
364+
"command": "vscode-objectscript.openISCDocument",
365+
"when": "view == workbench.explorer.fileView && vscode-objectscript.connectActive && workspaceFolderCount != 0"
362366
}
363367
],
364368
"view/item/context": [

src/extension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
14251425
);
14261426
return;
14271427
}
1428-
const doc = await pickDocument(api, "to open");
1428+
const doc = await pickDocument(api, "Open a document");
14291429
if (!doc) return;
14301430
vscode.window.showTextDocument(
14311431
DocumentContentProvider.getUri(doc, undefined, undefined, undefined, wsFolder.uri)

src/utils/documentPicker.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,7 @@ export async function pickDocument(api: AtelierAPI, prompt?: string): Promise<st
351351

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

0 commit comments

Comments
 (0)