@halcyontech/vscode-ibmi-types 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ export interface ILELibrarySettings {
7
7
  }
8
8
  export declare namespace CompileTools {
9
9
  function register(context: vscode.ExtensionContext): void;
10
- function runAction(instance: Instance, uri: vscode.Uri, customAction?: Action, method?: DeploymentMethod): Promise<void>;
10
+ function runAction(instance: Instance, uri: vscode.Uri, customAction?: Action, method?: DeploymentMethod): Promise<boolean>;
11
11
  /**
12
12
  * Execute a command
13
13
  */
package/api/CustomUI.d.ts CHANGED
@@ -1,4 +1,7 @@
1
1
  import vscode from 'vscode';
2
+ declare type PanelOptions = {
3
+ fullWidth?: boolean;
4
+ };
2
5
  export interface Page<T> {
3
6
  panel: vscode.WebviewPanel;
4
7
  data?: T;
@@ -46,6 +49,7 @@ export declare class Section {
46
49
  addField(field: Field): this;
47
50
  }
48
51
  export declare class CustomUI extends Section {
52
+ private options?;
49
53
  /**
50
54
  * If no callback is provided, a Promise will be returned.
51
55
  * If the page is already opened, it grabs the focus and return no Promise (as it's alreay handled by the first call).
@@ -55,6 +59,7 @@ export declare class CustomUI extends Section {
55
59
  * @returns a Promise<Page<T>> if no callback is provided
56
60
  */
57
61
  loadPage<T>(title: string, callback?: (page: Page<T>) => void): Promise<Page<T>> | undefined;
62
+ setOptions(options: PanelOptions): this;
58
63
  private createPage;
59
64
  private getHTML;
60
65
  }
@@ -101,3 +106,4 @@ export declare class Field {
101
106
  private renderLabel;
102
107
  private renderDescription;
103
108
  }
109
+ export {};
package/api/Storage.d.ts CHANGED
@@ -56,6 +56,8 @@ export declare class GlobalStorage extends Storage {
56
56
  };
57
57
  setServerSettingsCache(name: string, serverSettings: CachedServerSettings): Promise<void>;
58
58
  deleteServerSettingsCache(name: string): Promise<void>;
59
+ getPreviousSearchTerms(): string[];
60
+ setPreviousSearchTerms(previousSearchTerms: string[]): Promise<void>;
59
61
  }
60
62
  export declare class ConnectionStorage extends Storage {
61
63
  private connectionName;
@@ -0,0 +1,29 @@
1
+ import { FileError } from "../../typings";
2
+ export declare enum RecordType {
3
+ TIMESTAMP = "TIMESTAMP",
4
+ PROCESSOR = "PROCESSOR",
5
+ FILE_ID = "FILEID",
6
+ FILE_ID_CONT = "FILEIDCONT",
7
+ FILE_END = "FILEEND",
8
+ ERROR_INFORMATION = "ERROR",
9
+ EXPANSION = "EXPANSION",
10
+ PROGRAM = "PROGRAM",
11
+ MAP_DEFINE = "MAPDEFINE",
12
+ MAP_START = "MAPSTART",
13
+ MAP_END = "MAPEND",
14
+ FEEDBACK_CODE = "FEEDBACK"
15
+ }
16
+ export interface FileId {
17
+ version: number;
18
+ sourceId: number;
19
+ line: number;
20
+ length: number;
21
+ filename: string;
22
+ sourcefileTimestamp: number;
23
+ tempFlag: number;
24
+ }
25
+ export declare function formatName(input: string): string;
26
+ export declare function formatIFS(path: string): string;
27
+ export declare function parseErrors(lines: string[]): Map<string, FileError[]>;
28
+ export declare function getLinesByRecodType(lines: string[], recordType: RecordType, sourceFileId?: number): string[];
29
+ export declare function getSourcePath(lines: string[], fileId: number): string;
@@ -0,0 +1,9 @@
1
+ import { FileError } from '../../../typings';
2
+ export declare namespace NewHandler {
3
+ /**
4
+ * Returns object of files and their errors
5
+ * @param lines file contents
6
+ * @returns Errors object
7
+ */
8
+ function parse(lines: string[]): Map<string, FileError[]>;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { FileError } from '../../../typings';
2
+ export declare namespace OldHandler {
3
+ /**
4
+ * Returns object of files and their errors
5
+ * @param lines file contents
6
+ * @returns Errors object
7
+ */
8
+ function parse(lines: string[]): Map<string, FileError[]>;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halcyontech/vscode-ibmi-types",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Types for vscode-ibmi",
5
5
  "typings": "./typings.d.ts",
6
6
  "scripts": {
package/typings.d.ts CHANGED
@@ -1,11 +1,10 @@
1
1
  /// <reference types="node" />
2
2
  import { Ignore } from 'ignore';
3
- import { TreeItem, TreeItemCollapsibleState, WorkspaceFolder } from "vscode";
3
+ import { ProviderResult, TreeItem, TreeItemCollapsibleState, WorkspaceFolder } from "vscode";
4
4
  import { ConnectionConfiguration } from './api/Configuration';
5
5
  import { CustomUI } from "./api/CustomUI";
6
6
  import Instance from "./api/Instance";
7
7
  import { Tools } from "./api/Tools";
8
- import { ProviderResult } from './api/import/git';
9
8
  import { DeployTools } from "./api/local/deployTools";
10
9
  export interface CodeForIBMi {
11
10
  instance: Instance;
@@ -64,7 +63,7 @@ export interface ConnectionData {
64
63
  port: number;
65
64
  username: string;
66
65
  password?: string;
67
- privateKey: string | null;
66
+ privateKeyPath?: string;
68
67
  keepaliveInterval?: number;
69
68
  }
70
69
  export interface Server {