Skip to content
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

[ez] Redirect users to our issues creation page when submitting feedback #1362

Merged
merged 2 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions vscode-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@
"dark": "./static/share-dark.svg"
}
},
{
"command": "vscode-aiconfig.submitFeedback",
"title": "Submit Feedback",
"category": "AIConfig",
"icon": {
"light": "./static/bug.svg",
"dark": "./static/bug-dark.svg"
}
},
{
"command": "vscode-aiconfig.customModelRegistryPath",
"title": "Set Custom Model Registry File Path",
Expand Down Expand Up @@ -185,6 +194,11 @@
"command": "vscode-aiconfig.share",
"when": "resourcePath =~ /.*(\\.aiconfig\\.json|\\.aiconfig\\.yaml|\\.aiconfig\\.yml|\\.aiconfig)$/",
"group": "navigation"
},
{
"command": "vscode-aiconfig.submitFeedback",
"when": "resourcePath =~ /.*(\\.aiconfig\\.json|\\.aiconfig\\.yaml|\\.aiconfig\\.yml|\\.aiconfig)$/",
"group": "navigation"
}
],
"file/newFile": [
Expand Down
12 changes: 12 additions & 0 deletions vscode-extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,18 @@ export async function activate(context: vscode.ExtensionContext) {
);
context.subscriptions.push(shareModelParserCommand);

const submitUserFeedbackCommand = vscode.commands.registerCommand(
COMMANDS.SUBMIT_FEEDBACK,
() => {
// TODO: Add issue template forms to standardize feedback that we submit
// Can include info like device OS, extension version, aiconfig.log content, pip list, etc
vscode.env.openExternal(
vscode.Uri.parse("https://github.com/lastmile-ai/aiconfig/issues/new")
);
}
);
context.subscriptions.push(submitUserFeedbackCommand);

const customModelParserCommand = vscode.commands.registerCommand(
COMMANDS.CUSTOM_MODEL_REGISTRY_PATH,
async () => {
Expand Down
1 change: 1 addition & 0 deletions vscode-extension/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const COMMANDS = {
RESTART_ACTIVE_EDITOR_SERVER: `${EXTENSION_NAME}.restartActiveEditorServer`,
SET_API_KEYS: `${EXTENSION_NAME}.setApiKeys`,
SHARE: `${EXTENSION_NAME}.share`,
SUBMIT_FEEDBACK: `${EXTENSION_NAME}.submitFeedback`,
};

export const SUPPORTED_FILE_EXTENSIONS = [".json", ".yaml", ".yml"];
Expand Down
1 change: 1 addition & 0 deletions vscode-extension/static/bug-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions vscode-extension/static/bug.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.