-
Notifications
You must be signed in to change notification settings - Fork 23
Reorganizing + fixing hubl auto detection #295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
5e5bf1b
ed8a47f
3e3e448
ad3ae16
3b8c81e
c47f70e
de9debe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -279,10 +279,6 @@ | |
| "command": "hubspot.config.renameAccount", | ||
| "title": "Rename account" | ||
| }, | ||
| { | ||
| "command": "hubspot.notifications.showFeedbackRequest", | ||
| "title": "Show feedback request" | ||
| }, | ||
| { | ||
| "command": "hubspot.modals.openFeedbackPanel", | ||
| "title": "Open feedback panel" | ||
|
|
@@ -296,21 +292,9 @@ | |
| "title": "Show personal access key info", | ||
| "icon": "$(link-external)" | ||
| }, | ||
| { | ||
| "command": "hubspot.remoteFs.refresh", | ||
| "title": "Cached Refresh" | ||
| }, | ||
| { | ||
| "command": "hubspot.remoteFs.hardRefresh", | ||
| "title": "Refresh" | ||
| }, | ||
| { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These commands can be deleted from here. This project uses a pattern where we have "events" and "commands".
Anything that is purely an event, does not need to be configured here in the package.json file. I cleaned up everything in here that was defined as a command, has a "when: false" clause, and is not referenced anywhere else in the package.json file (i.e. menu options or something else). |
||
| "command": "hubspot.remoteFs.invalidateCache", | ||
| "title": "Invalidate Cache" | ||
| }, | ||
| { | ||
| "command": "hubspot.remoteFs.startWatch", | ||
| "title": "Start Watch" | ||
| "title": "test: Refresh" | ||
| }, | ||
| { | ||
| "command": "hubspot.remoteFs.endWatch", | ||
|
|
@@ -485,10 +469,6 @@ | |
| "command": "hubspot.config.deleteAccount", | ||
| "when": "false" | ||
| }, | ||
| { | ||
| "command": "hubspot.notifications.showFeedbackRequest", | ||
| "when": "false" | ||
| }, | ||
| { | ||
| "command": "hubspot.modals.openFeedbackPanel", | ||
| "when": "false" | ||
|
|
@@ -500,18 +480,6 @@ | |
| { | ||
| "command": "hubspot.account.viewPersonalAccessKey", | ||
| "when": "false" | ||
| }, | ||
| { | ||
| "command": "hubspot.remoteFs.refresh", | ||
| "when": "false" | ||
| }, | ||
| { | ||
| "command": "hubspot.remoteFs.invalidateCache", | ||
| "when": "false" | ||
| }, | ||
| { | ||
| "command": "hubspot.remoteFs.startWatch", | ||
| "when": "false" | ||
| } | ||
| ] | ||
| }, | ||
|
|
@@ -603,7 +571,6 @@ | |
| "devDependencies": { | ||
| "@types/debounce": "^1.2.1", | ||
| "@types/findup-sync": "^4.0.2", | ||
| "@types/js-yaml": "^4.0.5", | ||
| "@types/node": "^15.12.4", | ||
| "@types/node-fetch": "^2.6.3", | ||
| "@types/semver": "^7.3.8", | ||
|
|
@@ -617,7 +584,6 @@ | |
| "ts-loader": "^9.2.3", | ||
| "ts-node": "^10.9.1", | ||
| "typescript": "^4.3.4", | ||
| "un-eval": "^1.2.0", | ||
| "webpack": "^5.102.1", | ||
| "webpack-cli": "^4.7.2", | ||
| "webpack-node-externals": "^3.0.0" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import { commands, ExtensionContext } from 'vscode'; | ||
|
|
||
| import { installHsCli, updateHsCliToLatestVersion } from '../lib/terminal'; | ||
| import { COMMANDS } from '../lib/constants'; | ||
|
|
||
| export const registerCommands = (context: ExtensionContext) => { | ||
| context.subscriptions.push( | ||
| commands.registerCommand(COMMANDS.HUBSPOT_CLI.INSTALL, installHsCli) | ||
| ); | ||
|
|
||
| context.subscriptions.push( | ||
| commands.registerCommand( | ||
| COMMANDS.HUBSPOT_CLI.UPDATE, | ||
| updateHsCliToLatestVersion | ||
| ) | ||
| ); | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be good to update the repo to use yarn since everything else we own does
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call. I'll do that in a separate pr since I already have too many changes bundled into this one