diff --git a/docs/guides/examples.md b/docs/guides/examples.md index 6b58da6d2..8efb11cdf 100644 --- a/docs/guides/examples.md +++ b/docs/guides/examples.md @@ -75,7 +75,7 @@ async function createJsonEditor() { // Create the editor app const editorApp = new EditorApp({ codeResources: { - main: { + modified: { text: jsonContent, uri: codeUri } diff --git a/docs/guides/getting-started.md b/docs/guides/getting-started.md index 4db3b673f..6f7d4861e 100644 --- a/docs/guides/getting-started.md +++ b/docs/guides/getting-started.md @@ -1,24 +1,25 @@ # Getting Started -This guide will walk you through creating your first Monaco Language Client application. We'll build a simple JSON editor with language server support. +This guide will walk you through creating your first Monaco Language Client application. We'll start by building a simple JSON editor with language server support. ## Prerequisites Before you begin, ensure you have: -- Completed the [Installation](../installation.md) steps +- Completed the [Installation](../installation.md) steps in advance - A basic understanding of TypeScript and web development - A running development server (like Vite, webpack dev server, or something similar) +- This project cloned down so you can start up a JSON language server for testing ## Your First Language Client -We'll create a simple JSON editor that connects to a language server via WebSocket. In this example, we'll use Extended Mode. +We'll create a simple JSON editor that connects to a language server via WebSocket. We'll be using Extended Mode in this example. -The steps below will outline the process at large, and then further below we'll break down the relevant sections to explain what each part does. +The steps below will outline the steps, and then further below we'll break down the relevant sections to explain what each part does. -### Step 1: HTML Setup +### HTML Setup -Create a basic HTML file: +Start by creating a basic HTML file to give a place for monaco to setup: ```html @@ -28,21 +29,76 @@ Create a basic HTML file: