diff --git a/editors/vscode/src/commands/syntaxTree.ts b/editors/vscode/src/commands/syntaxTree.ts index 061eecf9c270..17763a1cc2f5 100644 --- a/editors/vscode/src/commands/syntaxTree.ts +++ b/editors/vscode/src/commands/syntaxTree.ts @@ -143,9 +143,9 @@ export function syntaxTree(session: Session): Command { return async () => { const document = await workspace.openTextDocument(provider.uri); provider.eventEmitter.fire(provider.uri); - void await window.showTextDocument(document, { + void (await window.showTextDocument(document, { viewColumn: ViewColumn.Two, preserveFocus: true, - }); + })); }; } diff --git a/website/playground/src/utils.ts b/website/playground/src/utils.ts index 8ac538daca28..932dbf16c32d 100644 --- a/website/playground/src/utils.ts +++ b/website/playground/src/utils.ts @@ -58,13 +58,13 @@ export function usePlaygroundState( searchParams.get("lineWidth") ?? defaultRomeConfig.lineWidth, ), indentStyle: - ( - searchParams.get("indentStyle") as IndentStyle - ) ?? defaultRomeConfig.indentStyle, + (searchParams.get( + "indentStyle", + ) as IndentStyle) ?? defaultRomeConfig.indentStyle, quoteStyle: - ( - searchParams.get("quoteStyle") as QuoteStyle - ) ?? defaultRomeConfig.quoteStyle, + (searchParams.get( + "quoteStyle", + ) as QuoteStyle) ?? defaultRomeConfig.quoteStyle, indentWidth: parseInt( searchParams.get("indentWidth") ?? defaultRomeConfig.indentWidth, ), @@ -74,9 +74,9 @@ export function usePlaygroundState( ) === "true" || defaultRomeConfig.isTypeScript, isJsx: searchParams.get("jsx") === "true" || defaultRomeConfig.isJsx, sourceType: - ( - searchParams.get("sourceType") as SourceType - ) ?? defaultRomeConfig.sourceType, + (searchParams.get( + "sourceType", + ) as SourceType) ?? defaultRomeConfig.sourceType, cursorPosition: 0, }); const [playgroundState, setPlaygroundState] = useState(initState());