Skip to content

Commit 934adc4

Browse files
authored
Merge pull request #15 from innoverio/run_result_statusbar
Run result statusbar
2 parents da1c0de + 1e4530e commit 934adc4

14 files changed

+313
-129
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,15 @@ Main features:
1111

1212
Please let us know about any bugs or feature requests through the github issues.
1313

14+
This module is sponsored by [innover.io](https://innover.io/).
15+
1416
## Features at work
1517

16-
### (new) See the model graph
18+
### See the compiled SQL and the run status in the statusbar (new)
19+
20+
![See compilation and run status](./media/definition-model.gif)
21+
22+
### See the model graph
1723

1824
![See the graph and execute parent or children models](./media/graph.gif)
1925

media/runStatus.gif

1.2 MB
Loading

package-lock.json

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
"samuelcolvin.jinjahtml"
148148
],
149149
"dependencies": {
150+
"dayjs": "^1.8.34",
150151
"js-yaml": "^3.14.0"
151152
}
152153
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { commands, Uri } from "vscode";
22

3-
const navigateToSelectedNode = async (url: string) => {
3+
const navigateToFile = async (url: string) => {
44
const uri = Uri.file(url);
55
await commands.executeCommand('vscode.open', uri, { preview: false });
66
};
77

8-
export default navigateToSelectedNode;
8+
export default navigateToFile;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { window } from "vscode";
2+
import navigateToFile from "./navigateToFile";
3+
4+
const navigateToFileWithErrorMessage = async (url: string, errorMessage: string) => {
5+
window.showErrorMessage(errorMessage);
6+
await navigateToFile(url);
7+
};
8+
9+
export default navigateToFileWithErrorMessage;

src/commands/runModel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as path from "path";
2-
import { window, Uri } from "vscode";
2+
import { window } from "vscode";
33
import { NodeTreeItem } from "../treeview_provider/ModelParentTreeviewProvider";
44

55
export enum RunModelType {
@@ -35,7 +35,7 @@ const runTerminal = async (modelName: string, type?: RunModelType) => {
3535
await sleep(500);
3636
if (modelName !== undefined) {
3737
const plusOperatorLeft = type === RunModelType.PARENTS ? '+' : '';
38-
const plusOperatorRight = type === RunModelType.CHILDREN ? '+' : '';;
38+
const plusOperatorRight = type === RunModelType.CHILDREN ? '+' : '';
3939
terminal.sendText(`dbt run --model ${plusOperatorLeft}${modelName}${plusOperatorRight}`);
4040
terminal.show(true);
4141
}

0 commit comments

Comments
 (0)