diff --git a/CHANGELOG.md b/CHANGELOG.md index 4963a48..614cdeb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 1.0.3 + +### Integration +- New integration command: `abl.getMap` (fsPath) + +## 1.0.2 + +### Fixes +- Fix: Performance issues with Symbol Provider forcing + ## 1.0.1 ### Fixes diff --git a/package.json b/package.json index 3f252e4..fc5f688 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "openedge-zext", "displayName": "OpenEdge ABL (Progress 4GL)", "description": "OpenEdge ABL Extension for VSCode", - "version": "1.0.2", + "version": "1.0.3", "publisher": "ezequielgandolfi", "author": "Ezequiel Gandolfi", "license": "Apache-2.0", diff --git a/src/deploy.ts b/src/deploy.ts index c2345c5..0a1ee19 100644 --- a/src/deploy.ts +++ b/src/deploy.ts @@ -54,7 +54,7 @@ function deploy(workspace: vscode.WorkspaceFolder, filename: string, dirname: st // check if file exists if (!fs.existsSync(filename)) { vscode.window.showErrorMessage(`File ${path.basename(filename)} not found`); - return Promise.resolve(); + return Promise.resolve(null); } let oeConfig = ExtensionConfig.getInstance().getConfig(); @@ -78,6 +78,6 @@ function deploy(workspace: vscode.WorkspaceFolder, filename: string, dirname: st // notification if (tasks.length > 0) vscode.window.showInformationMessage('File ' + path.basename(filename) + ' deployed!'); - resolve(); + resolve(null); }); } diff --git a/src/provider/integration.ts b/src/provider/integration.ts index f039636..ec8c5a9 100644 --- a/src/provider/integration.ts +++ b/src/provider/integration.ts @@ -27,6 +27,7 @@ export class Integration { context.subscriptions.push(vscode.commands.registerCommand('abl.tables', this.tables.bind(this))); context.subscriptions.push(vscode.commands.registerCommand('abl.table', this.table.bind(this))); context.subscriptions.push(vscode.commands.registerCommand('abl.compile', this.compile.bind(this))); + context.subscriptions.push(vscode.commands.registerCommand('abl.getMap', this.fileGetMap.bind(this))); } private currentFileSaveMap(args) { @@ -101,6 +102,14 @@ export class Integration { }); } + private fileGetMap(fsPath: string) { + let document = AblSource.Controller.getInstance().getDocument(vscode.Uri.file(fsPath)); + if (document) { + return IntegrationV1.Generate.map(document); + } + return {}; + } + } namespace IntegrationV1 { diff --git a/src/provider/symbol.ts b/src/provider/symbol.ts index ac804ad..5345956 100644 --- a/src/provider/symbol.ts +++ b/src/provider/symbol.ts @@ -20,7 +20,7 @@ export class Symbol implements vscode.DocumentSymbolProvider { let documentSymbols = this.documentSymbols.bind(this); if (!token.isCancellationRequested) resolve(documentSymbols(doc)); - resolve(); + resolve(null); }); } return;