Archived
1
0

plugin.ts: Make application endpoint paths absolute

This commit is contained in:
Anmol Sethi
2020-11-03 21:42:21 -05:00
parent 139a28e0ea
commit 687094802e
5 changed files with 20 additions and 13 deletions

View File

@ -21,7 +21,8 @@ describe("plugin", () => {
version: "4.0.0",
description: "This app does XYZ.",
iconPath: "/icon.svg",
iconPath: "/test-plugin/test-app/icon.svg",
path: "/test-plugin/test-app",
plugin: {
name: "test-plugin",
@ -30,7 +31,7 @@ describe("plugin", () => {
displayName: "Test Plugin",
description: "Plugin used in code-server tests.",
path: "/test-plugin",
routerPath: "/test-plugin",
},
},
],

View File

@ -1,5 +1,6 @@
out/index.js: src/index.ts
yarn build
# Typescript always emits, even on errors.
yarn build || rm out/index.js
node_modules: package.json yarn.lock
yarn

View File

@ -3,7 +3,7 @@ import * as fspath from "path"
import * as pluginapi from "../../../typings/pluginapi"
export const displayName = "Test Plugin"
export const path = "/test-plugin"
export const routerPath = "/test-plugin"
export const description = "Plugin used in code-server tests."
export function init(config: pluginapi.PluginConfig) {
@ -24,6 +24,7 @@ export function applications(): pluginapi.Application[] {
name: "Test App",
version: "4.0.0",
iconPath: "/icon.svg",
path: "/test-app",
description: "This app does XYZ.",
},