📝 show welcome markdown file
This commit is contained in:
parent
9c94cd801b
commit
d39e4e41dd
5 changed files with 61 additions and 2 deletions
34
core/test.ts
Normal file
34
core/test.ts
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
import { open } from "sqlite";
|
||||
import sqlite3 from "sqlite3";
|
||||
|
||||
async function test() {
|
||||
const db = await open({
|
||||
filename:
|
||||
"/Users/natesesti/Library/Application Support/Code - Insiders/User/globalStorage/state.vscdb",
|
||||
driver: sqlite3.Database,
|
||||
});
|
||||
|
||||
const rows = await db.all(
|
||||
"SELECT * FROM ItemTable WHERE key = 'workbench.auxiliarybar.pinnedPanels'"
|
||||
);
|
||||
|
||||
const pinnedPanels = rows[0].value === "" ? [] : JSON.parse(rows[0].value);
|
||||
|
||||
if (
|
||||
!pinnedPanels.find(
|
||||
(panel: any) => panel.id === "workbench.view.extension.continue"
|
||||
)
|
||||
) {
|
||||
pinnedPanels.push({
|
||||
id: "workbench.view.extension.continue",
|
||||
pinned: true,
|
||||
order: 15,
|
||||
});
|
||||
await db.run(
|
||||
`UPDATE ItemTable SET value = ? WHERE key = 'workbench.auxiliarybar.pinnedPanels'`,
|
||||
JSON.stringify(pinnedPanels)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default test;
|
||||
BIN
extensions/vscode/media/sidebar.gif
Normal file
BIN
extensions/vscode/media/sidebar.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 755 KiB |
|
|
@ -1 +0,0 @@
|
|||
# Welcome to Continue
|
||||
17
extensions/vscode/media/welcome.md
Normal file
17
extensions/vscode/media/welcome.md
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# 👋 Welcome to Continue
|
||||
|
||||
## ❗️ Before you get started
|
||||
|
||||
Continue is currently in the left sidebar, but we recommend moving it to the right. This way it won't cover your file explorer. You can move it back at any time.
|
||||
|
||||

|
||||
|
||||
## 🔑 Most important shortcuts
|
||||
|
||||
<kbd>Cmd/Ctrl</kbd> + <kbd>M</kbd> = Select code
|
||||
|
||||
<kbd>Cmd/Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>M</kbd> = Select code for follow-up
|
||||
|
||||
<kbd>Cmd/Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>L</kbd> = Quick edit
|
||||
|
||||
<kbd>Cmd/Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>R</kbd> = Automatically debug terminal
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import { getTsConfigPath } from "core/util/paths";
|
||||
import { getTsConfigPath, migrate } from "core/util/paths";
|
||||
import * as fs from "fs";
|
||||
import path from "path";
|
||||
import { v4 } from "uuid";
|
||||
|
|
@ -119,6 +119,15 @@ export async function activateExtension(context: vscode.ExtensionContext) {
|
|||
startProxy();
|
||||
vsCodeIndexCodebase(ideProtocolClient.getWorkspaceDirectories());
|
||||
|
||||
migrate("showWelcome", () => {
|
||||
vscode.commands.executeCommand(
|
||||
"markdown.showPreview",
|
||||
vscode.Uri.file(
|
||||
path.join(getExtensionUri().fsPath, "media", "welcome.md")
|
||||
)
|
||||
);
|
||||
});
|
||||
|
||||
// (async () => {
|
||||
// const defaultDocsPages = [
|
||||
// ["Socket.IO", "https://python-socketio.readthedocs.io/en/stable"],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue