Skip to content

Commit b9ca15a

Browse files
committed
some different fixes
1 parent f9c5603 commit b9ca15a

File tree

6 files changed

+24
-18
lines changed

6 files changed

+24
-18
lines changed

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"tasks": [
1313
{
1414
"type": "npm",
15-
"script": "watch",
15+
"script": "webpack-dev",
1616
"presentation": {
1717
"reveal": "never"
1818
},

.vscodeignore

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
.github/**
2-
.vscode/**
3-
.vscode-test/**
4-
out/
5-
src/
6-
**/*.ts
7-
**/*.map
8-
**/*.cls
9-
.gitignore
10-
tsconfig*.json
11-
**/tslint.json
12-
**/.eslintrc.json
13-
node_modules/
14-
webpack.config.js
1+
**
2+
!dist/
3+
!snippets/
4+
!images/
5+
!syntaxes/
6+
!README.md
7+
!CHANGELOG.md
8+
!*.json
9+
!*.jsonc

package-lock.json

Lines changed: 6 additions & 1 deletion
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
@@ -942,6 +942,7 @@
942942
},
943943
"dependencies": {
944944
"await-notify": "^1.0.1",
945+
"core-js": "^3.6.5",
945946
"glob": "^7.1.6",
946947
"iconv-lite": "^0.6.0",
947948
"mkdirp": "^1.0.4",

src/providers/FileSystemPovider/FileSystemProvider.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { File } from "./File";
77
import { fireOtherStudioAction, OtherStudioAction } from "../../commands/studio";
88
import { StudioOpenDialog } from "../../queries";
99

10+
declare function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout;
11+
1012
export type Entry = File | Directory;
1113

1214
export class FileSystemProvider implements vscode.FileSystemProvider {
@@ -33,6 +35,9 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
3335
public async readDirectory(uri: vscode.Uri): Promise<[string, vscode.FileType][]> {
3436
const parent = await this._lookupAsDirectory(uri);
3537
const api = new AtelierAPI(uri);
38+
if (!api.active) {
39+
return;
40+
}
3641
const sql = `CALL %Library.RoutineMgr_StudioOpenDialog(?,?,?,?,?,?,?)`;
3742
const { query } = url.parse(decodeURIComponent(uri.toString()), true);
3843
const type = query.type && query.type != "" ? query.type.toString() : "all";
@@ -73,7 +78,7 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
7378
})
7479
)
7580
.catch((error) => {
76-
console.error(error);
81+
error && console.error(error);
7782
});
7883
}
7984

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const path = require("path");
44
const config = {
55
target: "node", // vscode extensions run in a Node.js-context 📖 -> https://webpack.js.org/configuration/node/
66

7-
entry: "./src/extension.ts", // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
7+
entry: ["core-js/features/array/flat-map", "./src/extension.ts"], // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
88
output: {
99
// the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
1010
path: path.resolve(__dirname, "dist"),

0 commit comments

Comments
 (0)