Skip to content

Commit

Permalink
Merge pull request #1611 from codefori/typescript/ifsBrowser
Browse files Browse the repository at this point in the history
Converted IFS browser to TypeScript
  • Loading branch information
sebjulliand authored Nov 18, 2023
2 parents ec8a4dc + e4cadb6 commit cc745aa
Show file tree
Hide file tree
Showing 6 changed files with 680 additions and 783 deletions.
56 changes: 56 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,18 @@
"category": "IBM i",
"icon": "$(refresh)"
},
{
"command": "code-for-ibmi.refreshIFSBrowserItem",
"enablement": "code-for-ibmi:connected",
"title": "Refresh IFS List item",
"category": "IBM i"
},
{
"command": "code-for-ibmi.revealInIFSBrowser",
"enablement": "code-for-ibmi:connected",
"title": "Reveal IFS Browser Item",
"category": "IBM i"
},
{
"command": "code-for-ibmi.changeWorkingDirectory",
"enablement": "code-for-ibmi:connected",
Expand Down Expand Up @@ -1813,6 +1825,50 @@
{
"command": "code-for-ibmi.refreshObjectBrowserItem",
"when": "never"
},
{
"command": "code-for-ibmi.refreshIFSBrowser",
"when": "never"
},
{
"command": "code-for-ibmi.revealInIFSBrowser",
"when": "never"
},
{
"command": "code-for-ibmi.deleteIFS",
"when": "never"
},
{
"command": "code-for-ibmi.moveIFS",
"when": "never"
},
{
"command": "code-for-ibmi.copyIFS",
"when": "never"
},
{
"command": "code-for-ibmi.downloadStreamfile",
"when": "never"
},
{
"command": "code-for-ibmi.moveIFSShortcutDown",
"when": "never"
},
{
"command": "code-for-ibmi.moveIFSShortcutUp",
"when": "never"
},
{
"command": "code-for-ibmi.moveIFSShortcutToTop",
"when": "never"
},
{
"command": "code-for-ibmi.moveIFSShortcutToBottom",
"when": "never"
},
{
"command": "code-for-ibmi.removeIFSShortcut",
"when": "never"
}
],
"view/title": [
Expand Down
6 changes: 3 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { ObjectBrowserProvider } from "./views/ConnectionBrowser";
import { LibraryListProvider } from "./views/LibraryListView";
import { ProfilesView } from "./views/ProfilesView";
import { HelpView } from "./views/helpView";
import IFSBrowser from "./views/ifsBrowser";
import { initializeIFSBrowser } from "./views/ifsBrowser";
import { initializeObjectBrowser } from "./views/objectBrowser";

export async function activate(context: ExtensionContext): Promise<CodeForIBMi> {
Expand All @@ -42,9 +42,9 @@ export async function activate(context: ExtensionContext): Promise<CodeForIBMi>
commands.executeCommand(`setContext`, `code-for-ibmi:hasPreviousConnection`, lastConnections.length > 0);
};

new IFSBrowser(context);
initializeObjectBrowser(context)

initializeIFSBrowser(context);

context.subscriptions.push(
window.registerTreeDataProvider(
`connectionBrowser`,
Expand Down
2 changes: 1 addition & 1 deletion src/locale/ids/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const fr: Locale = {
'ifsBrowser.createStreamfile.prompt': `Nom du nouveau fichier`,
'ifsBrowser.createStreamfile.infoMessage': `Création du fichier {0}.`,
'ifsBrowser.createStreamfile.errorMessage': `Erreur lors de la création du fichier! {0}`,
'ifsBrowser.uploadStreamfile.uploadedFiles': `Uploader des fichiers.`,
'ifsBrowser.uploadStreamfile.uploadedFiles': `Les fichiers ont été uploadés.`,
'ifsBrowser.uploadStreamfile.errorMessage': `Erreur lors de l'upload des fichiers! {0}`,
'ifsBrowser.uploadStreamfile.noFilesSelected': `Aucun fichier sélectionné.`,
'ifsBrowser.deleteIFS.rootNotAllowed': `Impossible de supprimer la racine (/) depuis l'Explorateur IFS.`,
Expand Down
2 changes: 1 addition & 1 deletion src/typings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export interface IFSFile {
name: string
path: string
size?: number
modified?: Date | string
modified?: Date
owner?: string
}

Expand Down
Loading

0 comments on commit cc745aa

Please sign in to comment.