Created
May 11, 2023 09:37
-
-
Save Apurer/8cd4314e35db49150b816d260bd50af2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"enabledApiProposals": [ | |
"inlineCompletionsAdditions" | |
], | |
"name": "code-helper", | |
"displayName": "Code Helper", | |
"description": "Sample showing how to implement an inline completion provider", | |
"version": "0.0.1", | |
"publisher": "apurer", | |
"repository": "https://github.com/Microsoft/vscode-extension-samples", | |
"engines": { | |
"vscode": "^1.67.0" | |
}, | |
"categories": [ | |
"Other" | |
], | |
"activationEvents": [ | |
"*" | |
], | |
"main": "./out/extension.js", | |
"contributes": { | |
"commands": [ | |
{ | |
"command": "extension.inline-completion-settings", | |
"title": "My Inline Completion Demo Settings" | |
} | |
], | |
"menus": { | |
"editor/inlineCompletions/actions": [ | |
{ | |
"command": "extension.inline-completion-settings" | |
} | |
] | |
}, | |
"configuration": { // Add this section | |
"title": "Code Helper", | |
"properties": { | |
"codeHelper.maxToGenerate": { | |
"type": "integer", | |
"default": 128, | |
"description": "Maximum number of tokens to generate.", | |
"minimum": 1, | |
"maximum": 256 | |
}, | |
"codeHelper.temperature": { | |
"type": "number", | |
"default": 0.6, | |
"description": "Temperature for the model.", | |
"minimum": 0, | |
"maximum": 1 | |
}, | |
"codeHelper.modelName": { | |
"type": "string", | |
"default": "default_model", | |
"description": "Name of the used model.", | |
"enum": ["model1", "model2", "model3"] // Replace with your list of model names | |
} | |
} | |
} | |
}, | |
"scripts": { | |
"vscode:prepublish": "npm run compile", | |
"compile": "tsc -p ./", | |
"lint": "eslint \"src/**/*.ts\"", | |
"watch": "tsc -watch -p ./", | |
"download-api": "vscode-dts dev", | |
"postinstall": "npm run download-api" | |
}, | |
"devDependencies": { | |
"@types/axios": "^0.14.0", | |
"@types/node": "^16.18.26", | |
"@types/node-fetch": "^2.6.3", | |
"@types/vscode": "^1.67.0", | |
"@typescript-eslint/eslint-plugin": "^5.42.0", | |
"@typescript-eslint/parser": "^5.42.0", | |
"eslint": "^8.26.0", | |
"typescript": "^5.0.2", | |
"vscode-dts": "^0.3.3" | |
}, | |
"dependencies": { | |
"axios": "^1.4.0", | |
"fetch-blob": "^3.2.0", | |
"formdata-polyfill": "^4.0.10", | |
"node-fetch": "^3.3.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment