mirror of
https://github.com/coder/code-server.git
synced 2026-05-28 07:59:34 +00:00
Integrate update notifications into VS Code
This commit is contained in:
@@ -16,6 +16,11 @@ export class AppHttpProvider extends HttpProvider {
|
||||
return { redirect: "/login", query: { to: route.fullPath } }
|
||||
}
|
||||
|
||||
this.ensureMethod(request)
|
||||
if (route.requestPath !== "/index.html") {
|
||||
throw new HttpError("Not found", HttpCode.NotFound)
|
||||
}
|
||||
|
||||
// Run an existing app, but if it doesn't exist go ahead and start it.
|
||||
let app = this.api.getRunningApplication(route.base)
|
||||
let sessionId = app && app.sessionId
|
||||
@@ -38,8 +43,4 @@ export class AppHttpProvider extends HttpProvider {
|
||||
response.content = response.content.replace(/{{APP_NAME}}/, name)
|
||||
return this.replaceTemplates(route, response, sessionId)
|
||||
}
|
||||
|
||||
public async handleWebSocket(): Promise<true> {
|
||||
throw new HttpError("Not found", HttpCode.NotFound)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user