mirror of
https://git.tuxpa.in/a/code-server.git
synced 2025-01-06 08:48:46 +00:00
c384dfb815
* Allow setting marketplace URL * Add zip fill * Comment out CSP for now * Fill zip on client as well Probably will need it for client-side extensions. * Don't use itemUrl (it's undefined) * Remove extension rating * Hide ratings with CSS instead of patching them out * Add hard-coded fallback for service URL * Only use coder-develop for extapi if env is explicitly development * Don't use coder-develop at all for extapi If you need it, you can set SERVICE_URL.
27 lines
694 B
TypeScript
27 lines
694 B
TypeScript
import { IProductConfiguration } from "vs/platform/node/product";
|
|
|
|
const product = {
|
|
nameShort: "code-server",
|
|
nameLong: "code-server",
|
|
dataFolderName: ".code-server",
|
|
extensionsGallery: {
|
|
serviceUrl: global && global.process && global.process.env.SERVICE_URL
|
|
|| process.env.SERVICE_URL
|
|
|| "https://v1.extapi.coder.com",
|
|
},
|
|
extensionExecutionEnvironments: {
|
|
"wayou.vscode-todo-highlight": "worker",
|
|
"vscodevim.vim": "worker",
|
|
"coenraads.bracket-pair-colorizer": "worker",
|
|
},
|
|
fetchUrl: "",
|
|
} as IProductConfiguration;
|
|
|
|
if (process.env['VSCODE_DEV']) {
|
|
product.nameShort += ' Dev';
|
|
product.nameLong += ' Dev';
|
|
product.dataFolderName += '-dev';
|
|
}
|
|
|
|
export default product;
|