mirror of
https://git.tuxpa.in/a/code-server.git
synced 2025-01-06 08:48:46 +00:00
85d2225e0c
* Fix loading within the CLI * Remove app * Remove promise handle * Add initial travis file * Add libxkbfile dependency * Add libxkbfile-dev * Add build script * Fix malformed bash statement * Remove yarn from script * Improve build script * Extract upx before usage * Only run upx if on linux * Ensure resource directory exists * Pack runnable binary * Export binary with platform * Improve build process * Install upx before running install script * Update typescript version before running nexe * Add os.release() function for multi-platform support * Update travis.yml to improve deployment * Add on CI * Update to v1.31.0 * Add libsecret * Update build target * Skip cleanup * Fix built-in extensions * Add basics for apps * Create custom DNS server * Fix forking within CLI. Fixes TS language features * Fix filename resolve * Fix default extensions path * Add custom dialog * Store workspace path * Remove outfiles * Cleanup * Always authed outside of CLI * Use location.host for client * Remove useless app interface * Remove debug file for building wordlist * Use chromes tcp host * Update patch * Build browser app before packaging * Replace all css containing file:// URLs, fix webviews * Fix save * Fix mkdir
22 lines
872 B
TypeScript
22 lines
872 B
TypeScript
import { logger } from "@coder/logger";
|
|
import { IDisposable } from "vs/base/common/lifecycle";
|
|
import * as actions from "vs/platform/actions/common/actions";
|
|
import { ToggleDevToolsAction } from "vs/workbench/electron-browser/actions/developerActions";
|
|
|
|
// Intercept appending menu items so we can skip items that won't work.
|
|
const originalAppend = actions.MenuRegistry.appendMenuItem.bind(actions.MenuRegistry);
|
|
actions.MenuRegistry.appendMenuItem = (id: actions.MenuId, item: actions.IMenuItem | actions.ISubmenuItem): IDisposable => {
|
|
if (actions.isIMenuItem(item)) {
|
|
switch (item.command.id) {
|
|
case ToggleDevToolsAction.ID: // There appears to be no way to toggle this programmatically.
|
|
logger.debug(`Skipping unsupported menu item ${item.command.id}`);
|
|
|
|
return {
|
|
dispose: (): void => undefined,
|
|
};
|
|
}
|
|
}
|
|
|
|
return originalAppend(id, item);
|
|
};
|