diff --git a/lib/vscode/src/vs/server/common/cookie.ts b/lib/vscode/src/vs/server/common/cookie.ts new file mode 100644 index 000000000..88b3f108f --- /dev/null +++ b/lib/vscode/src/vs/server/common/cookie.ts @@ -0,0 +1,3 @@ +export enum Cookie { + Key = "key", +} \ No newline at end of file diff --git a/lib/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.ts b/lib/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.ts index d241c5fb9..8059abc99 100644 --- a/lib/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.ts +++ b/lib/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.ts @@ -40,6 +40,7 @@ import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegis import { IsWebContext } from 'vs/platform/contextkey/common/contextkeys'; import { ICommandService } from 'vs/platform/commands/common/commands'; import { ILogService } from 'vs/platform/log/common/log'; +import { Cookie } from 'vs/server/common/cookie'; export abstract class MenubarControl extends Disposable { diff --git a/src/node/routes/login.ts b/src/node/routes/login.ts index b89470aea..a8835f750 100644 --- a/src/node/routes/login.ts +++ b/src/node/routes/login.ts @@ -3,14 +3,11 @@ import { promises as fs } from "fs" import { RateLimiter as Limiter } from "limiter" import * as path from "path" import safeCompare from "safe-compare" +import { Cookie } from "../../../lib/vscode/src/vs/server/common/cookie" import { rootPath } from "../constants" import { authenticated, getCookieDomain, redirect, replaceTemplates } from "../http" import { hash, humanPath } from "../util" -export enum Cookie { - Key = "key", -} - // RateLimiter wraps around the limiter library for logins. // It allows 2 logins every minute and 12 logins every hour. class RateLimiter {