Skip to content

Commit

Permalink
feat: use preview instead of display for status (denoland#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk authored Feb 18, 2021
1 parent df0b20a commit 504579e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions client/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { pickInitWorkspace } from "./initialize_project";
import { cache as cacheReq } from "./lsp_extensions";
import { WelcomePanel } from "./welcome";

import * as vscode from "vscode";

import {
commands,
ExtensionContext,
Expand Down Expand Up @@ -99,11 +101,9 @@ export function status(
_context: ExtensionContext,
_client: LanguageClient,
): Callback {
return async () => {
const document = await workspace.openTextDocument(
Uri.parse("deno:/status.md"),
);
return window.showTextDocument(document, ViewColumn.Two, true);
return () => {
const uri = Uri.parse("deno:/status.md");
return vscode.commands.executeCommand("markdown.showPreviewToSide", uri);
};
}

Expand Down

0 comments on commit 504579e

Please sign in to comment.