Skip to content

Commit 74169b1

Browse files
committed
merge main
2 parents ec6c6a2 + 9aa7fc5 commit 74169b1

File tree

93 files changed

+3373
-1368
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+3373
-1368
lines changed

.github/workflows/cla.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ jobs:
2727
path-to-document: "https://github.com/continuedev/continue/blob/main/CLA.md"
2828
branch: cla-signatures
2929
# Bots and CLAs signed outside of GitHub
30-
allowlist: dependabot[bot],fbricon,panyamkeerthana,Jazzcort,owtaylor,halfline,[email protected],[email protected]
30+
allowlist: dependabot[bot],fbricon,panyamkeerthana,Jazzcort,owtaylor,halfline,[email protected],[email protected],snyk-bot
3131
signed-commit-message: "CLA signed in $pullRequestNo"

.github/workflows/jetbrains-release.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
needs: check_release_name
9696
if: needs.check_release_name.outputs.should_run == 'true' || github.event_name == 'workflow_dispatch'
9797
name: Build Plugin
98-
runs-on: macos-13
98+
runs-on: macos-latest
9999
permissions:
100100
contents: write
101101
pull-requests: write
@@ -294,44 +294,44 @@ jobs:
294294
295295
# Store already-built plugin as an artifact for downloading
296296
- name: Upload artifact
297-
uses: actions/upload-artifact@v4
297+
uses: actions/upload-artifact@v5
298298
with:
299299
name: ${{ steps.artifact.outputs.filename }}
300300
path: ./extensions/intellij/build/distributions/content/*/*
301301

302302
# Upload binaries as artifacts
303303
- name: Upload artifact (darwin-arm64)
304-
uses: actions/upload-artifact@v4
304+
uses: actions/upload-artifact@v5
305305
with:
306306
name: continue-binary-darwin-arm64
307307
path: ./binary/bin/darwin-arm64/
308308

309309
- name: Upload artifact (darwin-x64)
310-
uses: actions/upload-artifact@v4
310+
uses: actions/upload-artifact@v5
311311
with:
312312
name: continue-binary-darwin-x64
313313
path: ./binary/bin/darwin-x64/
314314

315315
- name: Upload artifact (win32-x64)
316-
uses: actions/upload-artifact@v4
316+
uses: actions/upload-artifact@v5
317317
with:
318318
name: continue-binary-win32-x64
319319
path: ./binary/bin/win32-x64/
320320

321321
- name: Upload artifact (win32-arm64)
322-
uses: actions/upload-artifact@v4
322+
uses: actions/upload-artifact@v5
323323
with:
324324
name: continue-binary-win32-arm64
325325
path: ./binary/bin/win32-arm64/
326326

327327
- name: Upload artifact (linux-arm64)
328-
uses: actions/upload-artifact@v4
328+
uses: actions/upload-artifact@v5
329329
with:
330330
name: continue-binary-linux-arm64
331331
path: ./binary/bin/linux-arm64/
332332

333333
- name: Upload artifact (linux-x64)
334-
uses: actions/upload-artifact@v4
334+
uses: actions/upload-artifact@v5
335335
with:
336336
name: continue-binary-linux-x64
337337
path: ./binary/bin/linux-x64/
@@ -358,7 +358,7 @@ jobs:
358358
platform: darwin
359359
arch: x64
360360
npm_config_arch: x64
361-
- os: macos-13
361+
- os: macos-latest
362362
platform: darwin
363363
arch: arm64
364364
npm_config_arch: arm64
@@ -420,7 +420,7 @@ jobs:
420420
421421
- name: Upload logs
422422
if: ${{ always() }}
423-
uses: actions/upload-artifact@v4
423+
uses: actions/upload-artifact@v5
424424
with:
425425
name: core-logs-${{ matrix.platform }}-${{ matrix.arch }}
426426
path: ~/.continue/logs/core.log
@@ -455,7 +455,7 @@ jobs:
455455
# Collect Tests Result of failed tests
456456
- name: Collect Tests Result
457457
if: ${{ failure() }}
458-
uses: actions/upload-artifact@v4
458+
uses: actions/upload-artifact@v5
459459
with:
460460
name: tests-result
461461
path: ${{ github.workspace }}/extensions/intellij/build/reports/tests
@@ -540,7 +540,7 @@ jobs:
540540
# Collect Plugin Verifier Result
541541
- name: Collect Plugin Verifier Result
542542
if: ${{ always() }}
543-
uses: actions/upload-artifact@v4
543+
uses: actions/upload-artifact@v5
544544
with:
545545
name: pluginVerifier-result
546546
path: ${{ github.workspace }}/build/reports/pluginVerifier

.github/workflows/main-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
echo "✅ Successfully downloaded artifact"
102102
103103
- name: Republish as main branch artifact
104-
uses: actions/upload-artifact@v4
104+
uses: actions/upload-artifact@v5
105105
with:
106106
name: vscode-extension-build-${{ matrix.platform }}
107107
path: ./temp-download/*

.github/workflows/main.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ jobs:
7373
platform: alpine
7474
arch: x64
7575
npm_config_arch: x64
76-
- os: macos-13
76+
- os: macos-latest
7777
platform: darwin
7878
arch: x64
7979
npm_config_arch: x64
80-
- os: macos-13
80+
- os: macos-latest
8181
platform: darwin
8282
arch: arm64
8383
npm_config_arch: arm64
@@ -99,7 +99,7 @@ jobs:
9999
github-token: ${{ secrets.GITHUB_TOKEN }}
100100

101101
- name: Upload .vsix artifact
102-
uses: actions/upload-artifact@v4
102+
uses: actions/upload-artifact@v5
103103
with:
104104
name: ${{ matrix.platform }}-${{ matrix.arch }}-vsix
105105
path: "extensions/vscode/*.vsix"

.github/workflows/metrics.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
${{ steps.read-metrics.outputs.metrics_content }}
7070
7171
- name: Upload metrics report as artifact
72-
uses: actions/upload-artifact@v4
72+
uses: actions/upload-artifact@v5
7373
with:
7474
name: issue-metrics-report
7575
path: ./issue_metrics.md

.github/workflows/pr-build-upload-vsix.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ jobs:
3939
github-token: ${{ secrets.GITHUB_TOKEN }}
4040

4141
- name: Upload build artifact
42-
uses: actions/upload-artifact@v4
42+
uses: actions/upload-artifact@v5
4343
with:
4444
name: vscode-extension-build-${{ matrix.platform }}-${{ matrix.arch }}
4545
path: extensions/vscode/build
4646

4747
- name: Upload .vsix artifact
48-
uses: actions/upload-artifact@v4
48+
uses: actions/upload-artifact@v5
4949
with:
5050
name: ${{ matrix.platform }}-${{ matrix.arch }}-vsix
5151
path: "extensions/vscode/*.vsix"

.github/workflows/pr-checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ jobs:
303303
github-token: ${{ secrets.GITHUB_TOKEN }}
304304

305305
- name: Upload build artifact
306-
uses: actions/upload-artifact@v4
306+
uses: actions/upload-artifact@v5
307307
with:
308308
name: vscode-extension-build-Linux
309309
path: extensions/vscode/build

.github/workflows/preview.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ jobs:
5757
platform: alpine
5858
arch: x64
5959
npm_config_arch: x64
60-
- os: macos-13
60+
- os: macos-latest
6161
platform: darwin
6262
arch: x64
6363
npm_config_arch: x64
64-
- os: macos-13
64+
- os: macos-latest
6565
platform: darwin
6666
arch: arm64
6767
npm_config_arch: arm64
@@ -83,7 +83,7 @@ jobs:
8383
github-token: ${{ secrets.GITHUB_TOKEN }}
8484

8585
- name: Upload .vsix artifact
86-
uses: actions/upload-artifact@v4
86+
uses: actions/upload-artifact@v5
8787
with:
8888
name: ${{ matrix.platform }}-${{ matrix.arch }}-vsix
8989
path: "extensions/vscode/*.vsix"

README.md

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,35 +27,29 @@
2727

2828
**Ship faster with Continuous AI**
2929

30-
**Build and run custom agents across your IDE, terminal, and CI**
30+
**The future of coding isn't writing more code. It's delegating the boring parts, so you can build the interesting stuff**
3131

3232
</div>
3333

34-
Get started in [VS Code](https://marketplace.visualstudio.com/items?itemName=Continue.continue), [JetBrains](https://plugins.jetbrains.com/plugin/22707-continue-extension), or [CLI](https://docs.continue.dev/guides/cli)
34+
Get started in [Mission Control](https://hub.continue.dev/agents), [CLI (Headless Mode)](https://docs.continue.dev/cli/quick-start#headless-mode), or [CLI (TUI mode)](https://docs.continue.dev/cli/quick-start#tui-mode)
3535

36-
## Agent
36+
## Background Agents
3737

38-
[Agent](https://docs.continue.dev/ide-extensions/agent/quick-start) to work on development tasks together with AI
38+
Set workflows to run automatically on [PR opens](https://docs.continue.dev/guides/continuous-ai#pattern-2-the-pr-review-agent), [schedules](https://docs.continue.dev/guides/continuous-ai#pattern-1-the-async-triage-bot), or [any event trigger](https://docs.continue.dev/cli/quick-start#headless-mode)
3939

40-
![agent](docs/images/agent.gif)
40+
![Background Agents](docs/images/background-agent.gif)
4141

42-
## Chat
42+
## CLI Agents
4343

44-
[Chat](https://docs.continue.dev/ide-extensions/chat/quick-start) to ask general questions and clarify code sections
44+
Watch workflows execute in real-time and approve decisions step-by-step from your [terminal](https://docs.continue.dev/cli/quick-start#tui-mode)
4545

46-
![chat](docs/images/chat.gif)
46+
![CLI Agents](docs/images/cli-agent.gif)
4747

48-
## Edit
48+
## IDE Agents
4949

50-
[Edit](https://docs.continue.dev/ide-extensions/edit/quick-start) to modify a code section without leaving your current file
50+
Trigger workflows from [VS Code](https://marketplace.visualstudio.com/items?itemName=Continue.continue) or [JetBrains](https://plugins.jetbrains.com/plugin/22707-continue-extension)—let agents handle the refactoring while you keep coding
5151

52-
![edit](docs/images/edit.gif)
53-
54-
## Autocomplete
55-
56-
[Autocomplete](https://docs.continue.dev/ide-extensions/autocomplete/quick-start) to receive inline code suggestions as you type
57-
58-
![autocomplete](docs/images/autocomplete.gif)
52+
![IDE Agents](docs/images/agent.gif)
5953

6054
</div>
6155

core/autocomplete/context/static-context/StaticContextService.ts

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import * as fs from "fs/promises";
21
import path from "path";
32
import { pathToFileURL } from "url";
43
import Parser from "web-tree-sitter";
5-
import { IDE, Position } from "../../..";
4+
import { FileType, IDE, Position } from "../../../";
65
import { localPathOrUriToPath } from "../../../util/pathToUri";
76
import { getFullLanguageName, getQueryForFile } from "../../../util/treeSitter";
87
import {
@@ -353,10 +352,7 @@ export class StaticContextService {
353352
if (foundContents.has(tdLocation.filepath)) {
354353
content = foundContents.get(tdLocation.filepath)!;
355354
} else {
356-
content = await fs.readFile(
357-
localPathOrUriToPath(tdLocation.filepath),
358-
"utf8",
359-
);
355+
content = await this.ide.readFile(tdLocation.filepath);
360356
foundContents.set(tdLocation.filepath, content);
361357
}
362358

@@ -854,24 +850,19 @@ export class StaticContextService {
854850
return skipDirs.includes(dirName) || dirName.startsWith(".");
855851
};
856852

857-
async function scanRecursively(currentPath: string): Promise<void> {
853+
const scanRecursively = async (currentPath: string): Promise<void> => {
858854
try {
859-
const entries = await fs.readdir(currentPath, {
860-
withFileTypes: true,
861-
});
862-
863-
for (const entry of entries) {
864-
const fullPath = localPathOrUriToPath(
865-
path.join(currentPath, entry.name),
866-
);
855+
const currentUri = pathToFileURL(currentPath).toString();
856+
const entries = await this.ide.listDir(currentUri);
857+
for (const [name, fileType] of entries) {
858+
const fullPath = localPathOrUriToPath(path.join(currentPath, name));
867859

868-
if (entry.isDirectory()) {
869-
// Skip common directories that typically don't contain source files
870-
if (!shouldSkipDirectory(entry.name)) {
860+
if (fileType === (2 as FileType.Directory)) {
861+
if (!shouldSkipDirectory(name)) {
871862
await scanRecursively(fullPath);
872863
}
873-
} else if (entry.isFile()) {
874-
const extension = path.extname(entry.name).toLowerCase();
864+
} else if (fileType === (1 as FileType.File)) {
865+
const extension = path.extname(name).toLowerCase();
875866
if (tsExtensions.includes(extension)) {
876867
tsFiles.push(fullPath);
877868
}
@@ -880,7 +871,7 @@ export class StaticContextService {
880871
} catch (error) {
881872
console.error(`Error reading directory ${currentPath}:`, error);
882873
}
883-
}
874+
};
884875

885876
await scanRecursively(dirPath);
886877
return tsFiles;

0 commit comments

Comments
 (0)