Skip to content

Commit

Permalink
Update deps (TypeScript, grpc-js & others) (#725)
Browse files Browse the repository at this point in the history
* Update deps

* Fix linting

* Don't transform proto-loader imports to fix the build

* Fix linting

* Update npm-package deps

* Lock down vscode types
  • Loading branch information
badsyntax authored Oct 3, 2020
1 parent c24d56c commit 528ae7d
Show file tree
Hide file tree
Showing 9 changed files with 2,607 additions and 2,754 deletions.
3,018 changes: 1,531 additions & 1,487 deletions extension/package-lock.json

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"lint:prettier": "prettier --check \"**/*.{ts,js,json,svg,md,yml}\"",
"lint:eslint": "eslint . --ext .js,.ts",
"lint:fix": "npm run lint:fix:prettier && npm run lint:eslint -- --fix",
"lint:fix:prettier": "prettier --write '**/*.{json,svg,md,yml}'",
"lint:fix:prettier": "prettier --write '**/*.{ts,js,json,svg,md,yml}'",
"compile": "rollup -c rollup.config.js",
"compile:test": "tsc -p ./",
"install:ext": "code --install-extension vscode-gradle-0.0.0.vsix --force",
Expand All @@ -732,40 +732,40 @@
"prepare": "npm run snyk-protect"
},
"devDependencies": {
"@grpc/grpc-js": "^1.1.3",
"@rollup/plugin-commonjs": "^15.0.0",
"@grpc/grpc-js": "^1.1.7",
"@rollup/plugin-commonjs": "^15.1.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-typescript": "^5.0.2",
"@rollup/plugin-typescript": "^6.0.0",
"@types/fs-extra": "^9.0.1",
"@types/glob": "^7.1.3",
"@types/google-protobuf": "^3.7.3",
"@types/mocha": "^8.0.2",
"@types/mocha": "^8.0.3",
"@types/node": "^12.12.39",
"@types/sinon": "^9.0.4",
"@types/vscode": "^1.45.0",
"@typescript-eslint/eslint-plugin": "^3.10.1",
"@typescript-eslint/parser": "^3.10.1",
"eslint": "^7.6.0",
"eslint-config-prettier": "^6.11.0",
"@types/sinon": "^9.0.7",
"@types/vscode": "1.45.0",
"@typescript-eslint/eslint-plugin": "^4.3.0",
"@typescript-eslint/parser": "^4.3.0",
"eslint": "^7.10.0",
"eslint-config-prettier": "^6.12.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-sonarjs": "^0.5.0",
"fs-extra": "^9.0.1",
"get-port": "^5.1.1",
"google-protobuf": "^3.12.4",
"google-protobuf": "^3.13.0",
"grpc-tools": "^1.9.1",
"minimatch": "^3.0.4",
"mocha": "^8.1.1",
"prettier": "^2.0.5",
"rollup": "^2.25.0",
"rollup-plugin-terser": "^7.0.0",
"sinon": "^9.0.3",
"snyk": "^1.366.2",
"mocha": "^8.1.3",
"prettier": "^2.1.2",
"rollup": "^2.28.2",
"rollup-plugin-terser": "^7.0.2",
"sinon": "^9.1.0",
"snyk": "^1.406.0",
"string-argv": "^0.3.1",
"tree-kill": "^1.2.2",
"ts-protoc-gen": "^0.13.0",
"typescript": "^3.9.7",
"vsce": "^1.77.0",
"typescript": "^4.0.3",
"vsce": "^1.81.0",
"vscode-test": "^1.4.0"
},
"snyk": true
Expand Down
18 changes: 9 additions & 9 deletions extension/resources/dark/loading.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions extension/resources/light/loading.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions extension/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ export default [
plugins: outputPlugins,
},
plugins: [
resolve({ preferBuiltins: true }),
typescript({ module: 'ES2015', outDir: 'dist', declaration: true }),
commonjs({ ignore: ['encoding', 'google-auth-library'] }),
commonjs({
ignore: ['encoding', 'google-auth-library', '@grpc/proto-loader'],
}),
json(),
resolve({ preferBuiltins: true }),
],
},
];
2 changes: 1 addition & 1 deletion extension/src/decorators/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface DebounceReducer<T> {
(previousValue: T, ...args: any[]): T;
}

export function debounce<T>(delay: number): Function {
export function debounce(delay: number): Function {
return createDecorator((fn, key) => {
const timerKey = `$debounce$${key}`;
return function (this: any, ...args: any[]): void {
Expand Down
16 changes: 4 additions & 12 deletions extension/src/views/gradleDaemons/GradleDaemonTreeItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const daemonStatusEnumMapByValue: StatusEnumMapByValue = Object.assign(
);

export class GradleDaemonTreeItem extends vscode.TreeItem {
private status: string;
constructor(
private readonly context: vscode.ExtensionContext,
public readonly label: string,
Expand All @@ -30,19 +31,10 @@ export class GradleDaemonTreeItem extends vscode.TreeItem {
path.join('resources', 'dark', iconName)
),
};
this.status = daemonStatusEnumMapByValue[daemonInfo.getStatus()];
this.description = this.status;
this.contextValue = this.status.toLowerCase();
}

public get tooltip(): string {
return `${this.status} - ${this.daemonInfo.getInfo()}`;
}

private get status(): string {
return daemonStatusEnumMapByValue[this.daemonInfo.getStatus()];
}

public get description(): string {
return this.status;
this.tooltip = `${this.status} - ${daemonInfo.getInfo()}`;
}

public get pid(): string {
Expand Down
Loading

0 comments on commit 528ae7d

Please sign in to comment.