-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6fe86ab
commit 2312f53
Showing
5 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { MessageHandler } from '../MessageHandler'; | ||
import * as vscode from 'vscode'; | ||
import * as path from 'path'; | ||
import * as fs from 'fs'; | ||
|
||
export const onEdgeDoubleClick: MessageHandler = async ({ event }) => { | ||
const workspaceRoot = vscode.workspace.workspaceFolders?.[0]?.uri.fsPath || ''; | ||
const tempFilePath = path.join(workspaceRoot, 'temp_table_view.txt'); | ||
|
||
const content = `TODO: open the Table component here. Use the edge id (${event.edgeId}) to get the relevant data`; | ||
|
||
fs.writeFileSync(tempFilePath, content); | ||
|
||
const document = await vscode.workspace.openTextDocument(tempFilePath); | ||
await vscode.window.showTextDocument(document, { preview: false }); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters