Skip to content

Commit

Permalink
rebase fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Apr 14, 2023
1 parent 3fe12c8 commit f8d1232
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions packages/graphql-language-service-cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,21 +117,22 @@ if (command === 'server') {
});

const options: { [key: string]: any } = {};
if (argv?.port) {
if (argv.port) {
options.port = argv.port;
}
if (argv?.method) {
if (argv.method) {
options.method = argv.method;
}
if (argv?.configDir) {
if (argv.configDir) {
options.configDir = argv.configDir;
}
// eslint-disable-next-line promise/prefer-await-to-then -- don't know if I can use top level await here
startServer(options).catch(error => {
const logger = new Logger();
logger.error(String(error));
});
} else {
client(command as string, argv as { [key: string]: string });
client(command as string, argv as Record<string, string>);
}

// Exit the process when stream closes from remote end.
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode-graphql/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ async function start() {
}
}

start();
void start();

0 comments on commit f8d1232

Please sign in to comment.