-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: escape interpreter, add links to tutorials
- Loading branch information
Showing
11 changed files
with
105 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "build", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": [], | ||
"label": "npm: build", | ||
"detail": "tsup src/extension.ts --external=vscode" | ||
} | ||
] | ||
} | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "build", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": [], | ||
"label": "npm: build", | ||
"detail": "tsup src/extension.ts --external=vscode" | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { type QuickPickItem, ThemeIcon, Uri, env, window } from "vscode"; | ||
|
||
interface CommandPickItem extends QuickPickItem { | ||
handler: () => void; | ||
} | ||
|
||
const TUTORIALS = [ | ||
["Intro", "https://marimo.app/l/c7h6pz", "book"], | ||
["Dataflow", "https://marimo.app/l/grhuve", "repo-forked"], | ||
["UI Elements", "https://marimo.app/l/ia3872", "layout"], | ||
["Markdown", "https://marimo.app/l/pzxdmn", "markdown"], | ||
["Plotting", "https://marimo.app/l/lxp1jk", "graph"], | ||
["SQL", "https://marimo.app/l/7n5flc", "database"], | ||
["Layout", "https://marimo.app/l/14ovyr", "layout-panel-left"], | ||
["File Format", "https://marimo.app/l/8n55fd", "file"], | ||
["Coming from Jupyter", "https://marimo.app/l/z0aerp", "code"], | ||
]; | ||
|
||
export async function tutorialCommands() { | ||
const commands: CommandPickItem[] = TUTORIALS.map(([label, url, icon]) => ({ | ||
label, | ||
description: url, | ||
iconPath: new ThemeIcon(icon), | ||
handler: () => env.openExternal(Uri.parse(url)), | ||
})); | ||
|
||
const result = await window.showQuickPick<CommandPickItem>(commands); | ||
if (result) { | ||
result.handler(); | ||
} | ||
} |
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
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
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