Elffuss BraidHub

kikocis/continue public

Merge pull request #6086 from continuedev/dallin/prettier-fix

Run Prettier
Changesetdc2ca87101a3bec53c2d1a04f7a8605ae4832847d711876747e636ce9b2c17cf
AuthorAdarsh Iyer <76015889+adarshramiyer@users.noreply.github.com> · 2025-06-11 18:30 -07:00
CommitterGitHub <noreply@github.com> · 2025-06-11 18:30 -07:00
Parents1edb336bdb82, ba721b895179

Browse the files at this changeset

15 files changed

modified .github/workflows/submit-github-dependency-graph.yml +13 −13
@@ -2,7 +2,7 @@
22
33 on:
44 push:
5- branches: ['main']
5+ branches: ["main"]
66
77 permissions:
88 contents: write
@@ -11,15 +11,15 @@
1111 dependency-submission:
1212 runs-on: ubuntu-latest
1313 steps:
14- - name: Checkout sources
15- uses: actions/checkout@v4
16- - name: Setup Java
17- uses: actions/setup-java@v4
18- with:
19- distribution: 'temurin'
20- java-version: 17
21- - name: Generate and submit dependency graph
22- uses: gradle/actions/dependency-submission@v4
23- with:
24- # The gradle project is not in the root of the repository.
25- build-root-directory: extensions/intellij
14+ - name: Checkout sources
15+ uses: actions/checkout@v4
16+ - name: Setup Java
17+ uses: actions/setup-java@v4
18+ with:
19+ distribution: "temurin"
20+ java-version: 17
21+ - name: Generate and submit dependency graph
22+ uses: gradle/actions/dependency-submission@v4
23+ with:
24+ # The gradle project is not in the root of the repository.
25+ build-root-directory: extensions/intellij
modified core/data/log.test.ts +11 −8
@@ -20,17 +20,17 @@
2020 };
2121
2222 const TEST_AGENT_INTERACTION_EVENT: DevDataLogEvent = {
23- name: 'chatInteraction',
23+ name: "chatInteraction",
2424 data: {
2525 prompt: "Hello, world!",
2626 completion: "Hello, world!",
2727 modelProvider: "openai",
2828 modelTitle: "gpt-4",
2929 sessionId: "1234",
30- tools: ['test-tool1']
30+ tools: ["test-tool1"],
3131 },
32-}
33-
32+};
33+
3434 const SCHEMA = "0.2.0";
3535
3636 describe("DataLogger", () => {
@@ -171,22 +171,25 @@
171171 expect(fileContent).toContain('"eventName":"tokensGenerated"');
172172 });
173173
174- it('should write agent interaction data to local file', async () => {
174+ it("should write agent interaction data to local file", async () => {
175175 // Call the method to log data locally
176176 await dataLogger.logLocalData(TEST_AGENT_INTERACTION_EVENT);
177177
178178 // Verify the file was created
179- const filepath = getDevDataFilePath(TEST_AGENT_INTERACTION_EVENT.name, SCHEMA);
179+ const filepath = getDevDataFilePath(
180+ TEST_AGENT_INTERACTION_EVENT.name,
181+ SCHEMA,
182+ );
180183 expect(fs.existsSync(filepath)).toBe(true);
181184
182185 // Read file contents and verify
183186 const fileContent = fs.readFileSync(filepath, "utf8");
184- console.log('debug1 filecontent', fileContent)
187+ console.log("debug1 filecontent", fileContent);
185188 expect(fileContent).toContain('"eventName":"chatInteraction"');
186189 expect(fileContent).toContain('"prompt":"Hello, world!"');
187190 expect(fileContent).toContain('"completion":"Hello, world!"');
188191 expect(fileContent).toContain('"tools":["test-tool1"]');
189- })
192+ });
190193 });
191194
192195 describe("logDevData", () => {
modified core/llm/llamaTokenizer.mjs +0 −0

Not shown: the file is larger than the hub shows, or this page holds as much as it shows. View the file.

modified core/llm/llamaTokenizerWorkerPool.mjs +5 −5
@@ -2,14 +2,14 @@
22 import llamaTokenizer from "./llamaTokenizer.mjs";
33
44 function encode(segment) {
5- return llamaTokenizer.encode(segment);
5+ return llamaTokenizer.encode(segment);
66 }
77
88 function decode(tokens) {
9- return llamaTokenizer.decode(tokens);
9+ return llamaTokenizer.decode(tokens);
1010 }
1111
1212 workerpool.worker({
13- decode,
14- encode,
15-});
No newline at the end of the file
13+ decode,
14+ encode,
15+});
modified core/llm/tiktokenWorkerPool.mjs +5 −5
@@ -4,14 +4,14 @@
44 const tiktokenEncoding = _encodingForModel("gpt-4");
55
66 function encode(text) {
7- return tiktokenEncoding.encode(text, "all", []);
7+ return tiktokenEncoding.encode(text, "all", []);
88 }
99
1010 function decode(tokens) {
11- return tiktokenEncoding.decode(tokens);
11+ return tiktokenEncoding.decode(tokens);
1212 }
1313
1414 workerpool.worker({
15- decode,
16- encode,
17-});
No newline at the end of the file
15+ decode,
16+ encode,
17+});
modified docs/docs/customize/deep-dives/autocomplete.mdx +3 −2
@@ -135,12 +135,13 @@
135135 ### Is there a shortcut to accept one line at a time?
136136
137137 This is a built-in feature of VS Code, but it's just a bit hidden. Follow these settings to reassign the keyboard shortcuts in VS Code:
138+
138139 1. Press `Ctrl+Shift+P`, type the command: `Preferences: Open Keyboard Shortcuts`, and enter the keyboard shortcuts settings page.
139140 2. Search for `editor.action.inlineSuggest.acceptNextLine`.
140141 3. Set the key binding to `Tab`.
141142 4. Set the trigger condition (when) to `inlineSuggestionVisible && !editorReadonly`.
142-This will make multi-line completion (including continue and from VS Code built-in or other plugin snippets) still work, and you will see multi-line completion. However, Tab will only fill in one line at a time. Any unnecessary code can be canceled with `Esc`.
143-If you need to apply all the code, just press `Tab` multiple times.
143+ This will make multi-line completion (including continue and from VS Code built-in or other plugin snippets) still work, and you will see multi-line completion. However, Tab will only fill in one line at a time. Any unnecessary code can be canceled with `Esc`.
144+ If you need to apply all the code, just press `Tab` multiple times.
144145
145146 ### How to turn off autocomplete
146147
modified docs/docs/customize/model-providers/more/openvino_model_server.mdx +1 −2
@@ -4,7 +4,7 @@
44 [**OpenVINO™ Mode Server**](https://github.com/openvinotoolkit/model_server) is scalable inference server for models optimized with OpenVINO™ for Intel CPU, iGPU, GPU and NPU.
55 :::
66
7-OpenVINO™ Mode Server supports text generation via OpenAI Chat Completions API. Simply select OpenAI provider to point `apiBase` to running OVMS instance. Refer [to this demo](https://docs.openvino.ai/2025/model-server/ovms_demos_code_completion_vsc.html) on official OVMS documentation to easily set up your own local server.
7+OpenVINO™ Mode Server supports text generation via OpenAI Chat Completions API. Simply select OpenAI provider to point `apiBase` to running OVMS instance. Refer [to this demo](https://docs.openvino.ai/2025/model-server/ovms_demos_code_completion_vsc.html) on official OVMS documentation to easily set up your own local server.
88
99 Example configuration once OVMS is launched:
1010
@@ -27,4 +27,3 @@
2727 roles:
2828 - autocomplete
2929 ```
30-
modified docs/docs/customize/tutorials/llama3.1.mdx +1 −1
@@ -153,7 +153,7 @@
153153
154154 SambaNova Cloud provides world record Llama3.1 70B/405B serving.
155155
156-1. Create an account [here](http://cloud.sambanova.ai?utm_source=continue&utm_medium=external&utm_campaign=cloud_signup )
156+1. Create an account [here](http://cloud.sambanova.ai?utm_source=continue&utm_medium=external&utm_campaign=cloud_signup)
157157 2. Copy your API key
158158 3. Update your Continue config file like this:
159159
modified docs/docs/customize/tutorials/set-up-codestral.mdx +0 −1
@@ -60,4 +60,3 @@
6060 </Tabs>
6161
6262 5. If you run into any issues or have any questions, please join our Discord and post in the `#help` channel [here](https://discord.gg/EfJEfdFnDQ)
63-
modified docs/docs/getting-started/overview.mdx +6 −5
@@ -36,13 +36,14 @@
3636
3737 <TabItem value="edit" label="Edit">
3838
39- [Edit](../edit/how-to-use-it.md#how-to-use-it) is a convenient way to modify code without leaving your current file
39+[Edit](../edit/how-to-use-it.md#how-to-use-it) is a convenient way to modify code without leaving your current file
4040
41- ![edit](/img/edit.gif)
41+![edit](/img/edit.gif)
4242
43- <Admonition type="info" title="Learn more" icon="📚">
44- Learn more about [Edit](../edit/how-to-use-it.md#how-to-use-it)
45- </Admonition>
43+{" "}
44+<Admonition type="info" title="Learn more" icon="📚">
45+ Learn more about [Edit](../edit/how-to-use-it.md#how-to-use-it)
46+</Admonition>
4647
4748 </TabItem>
4849
modified docs/docs/troubleshooting.mdx +1 −1
@@ -120,7 +120,7 @@
120120
121121 You may also set `requestOptions.caBundlePath` to an array of paths to multiple certificates.
122122
123-***Windows VS Code Users***: Installing the [win-ca](https://marketplace.visualstudio.com/items?itemName=ukoloff.win-ca) extension should also correct this issue.
123+**_Windows VS Code Users_**: Installing the [win-ca](https://marketplace.visualstudio.com/items?itemName=ukoloff.win-ca) extension should also correct this issue.
124124
125125 #### VS Code Proxy Settings
126126
modified gui/src/redux/thunks/streamNormalInput.ts +1 −1
@@ -82,7 +82,7 @@
8282 modelProvider: selectedChatModel.underlyingProviderName,
8383 modelTitle: selectedChatModel.title,
8484 sessionId: state.session.id,
85- ...(state.session.mode === 'agent' && {
85+ ...(state.session.mode === "agent" && {
8686 tools: activeTools.map((tool) => tool.function.name),
8787 }),
8888 },
modified manual-testing-sandbox/test.html +26 −28
@@ -1,30 +1,28 @@
1-<!DOCTYPE html>
1+<!doctype html>
22 <html lang="en">
3+ <head>
4+ <meta charset="UTF-8" />
5+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+ <title>Sample Page</title>
7+ <link rel="stylesheet" href="test.css" />
8+ </head>
39
4-<head>
5- <meta charset="UTF-8">
6- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7- <title>Sample Page</title>
8- <link rel="stylesheet" href="test.css">
9-</head>
10-
11-<body>
12- <header>
13- <h1>Welcome to the Sample Page</h1>
14- <nav>
15- <a href="#home">Home</a>
16- <a href="#about">About</a>
17- <a href="#contact">Contact</a>
18- </nav>
19- </header>
20- <div class="container">
21- <p>This is a sample paragraph.</p>
22- <ol>
23- <li>Item 1</li>
24- <li>Item 2</li>
25- <li>Item 3</li>
26- </ol>
27- </div>
28-</body>
29-
30-</html>
No newline at the end of the file
10+ <body>
11+ <header>
12+ <h1>Welcome to the Sample Page</h1>
13+ <nav>
14+ <a href="#home">Home</a>
15+ <a href="#about">About</a>
16+ <a href="#contact">Contact</a>
17+ </nav>
18+ </header>
19+ <div class="container">
20+ <p>This is a sample paragraph.</p>
21+ <ol>
22+ <li>Item 1</li>
23+ <li>Item 2</li>
24+ <li>Item 3</li>
25+ </ol>
26+ </div>
27+ </body>
28+</html>
modified packages/config-yaml/src/schemas/data/chatInteraction/index.ts +1 −1
@@ -7,5 +7,5 @@
77 prompt: z.string(),
88 completion: z.string(),
99 sessionId: z.string(),
10- tools: z.array(z.string()).optional()
10+ tools: z.array(z.string()).optional(),
1111 });
modified packages/config-yaml/src/schemas/data/chatInteraction/v0.2.0.ts +1 −1
@@ -16,7 +16,7 @@
1616 modelTitle: true,
1717 modelProvider: true,
1818 sessionId: true,
19- tools: true
19+ tools: true,
2020 });
2121
2222 export const chatInteractionEventSchema_0_2_0_noCode =