INNER CODE UNIT · TypeScript

Dev

iamcco/coc-flutter · src/commands/dev/index.ts:131

export class Dev extends Dispose {
  private profilerUrl: string | undefined;
  private cmds: Disposable[] = [];
  private daemon: DaemonServer;

  constructor(daemon: DaemonServer) {
    super();
    this.daemon = daemon;
    ['run', 'attach'].forEach((cmd) => {
      const cmdId = `${cmdPrefix}.${cmd}`;
      this.push(commands.registerCommand(cmdId, this[`${cmd}Server`], this));
      this.push(
        (function () {
          setCommandTitle(cmdId, `${cmd} flutter server`);
          return {
            dispose() {
              deleteCommandTitle(cmdId);
            },

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…