Skip to content

Commit

Permalink
feat: trim input phase name
Browse files Browse the repository at this point in the history
  • Loading branch information
sockmaster27 committed Feb 14, 2024
1 parent 0186b2e commit 4fb707b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/handlers/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,12 +544,12 @@ export function cmdDoc(context: vscode.ExtensionContext, launchOptions: LaunchOp
*/
export function showAst(client: LanguageClient) {
return async function handler() {
const phase = await vscode.window.showInputBox({
const phaseInput = await vscode.window.showInputBox({
prompt: 'Enter the phase to show the AST for',
placeHolder: 'Phase',
})
console.log(phase)
if (phase === undefined) {
const phase = phaseInput?.trim()
if (phase === undefined || phase.length === 0) {
return
}

Expand Down

0 comments on commit 4fb707b

Please sign in to comment.