You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ide-integration/index.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ AI-generated code changes directly within your editor.
27
27
28
28
-**Workspace context:** The CLI automatically gains awareness of your workspace
29
29
to provide more relevant and accurate responses. This context includes:
30
+
30
31
- The **10 most recently accessed files** in your workspace.
31
32
- Your active cursor position.
32
33
- Any text you have selected (up to a 16KB limit; longer selections will be
@@ -228,6 +229,7 @@ If you are using Gemini CLI within a sandbox, be aware of the following:
228
229
229
230
-**Message:**
230
231
`🔴 Disconnected: Failed to connect to IDE companion extension in [IDE Name]. Please ensure the extension is running. To install the extension, run /ide install.`
232
+
231
233
-**Cause:** Gemini CLI could not find the necessary environment variables
232
234
(`GEMINI_CLI_IDE_WORKSPACE_PATH` or `GEMINI_CLI_IDE_SERVER_PORT`) to connect
233
235
to the IDE. This usually means the IDE companion extension is not running or
@@ -270,6 +272,7 @@ to connect using the provided PID.
270
272
271
273
-**Message:**
272
274
`🔴 Disconnected: Directory mismatch. Gemini CLI is running in a different location than the open workspace in [IDE Name]. Please run the CLI from one of the following directories: [List of directories]`
275
+
273
276
-**Cause:** The CLI's current working directory is outside the workspace you
274
277
have open in your IDE.
275
278
-**Solution:**`cd` into the same directory that is open in your IDE and
@@ -284,6 +287,7 @@ to connect using the provided PID.
284
287
285
288
-**Message:**
286
289
`IDE integration is not supported in your current environment. To use this feature, run Gemini CLI in one of these supported IDEs: [List of IDEs]`
290
+
287
291
-**Cause:** You are running Gemini CLI in a terminal or environment that is
288
292
not a supported IDE.
289
293
-**Solution:** Run Gemini CLI from the integrated terminal of a supported
0 commit comments