prettier update

This commit is contained in:
Dallin Romney 2025-06-11 18:01:41 -07:00
parent cb71da7e0c
commit 86ec2928f3
15 changed files with 544 additions and 508 deletions

View file

@ -2,7 +2,7 @@ name: Submit Gradle Dependency Graph For Dependabot
on:
push:
branches: ['main']
branches: ["main"]
permissions:
contents: write
@ -11,15 +11,15 @@ jobs:
dependency-submission:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v4
with:
# The gradle project is not in the root of the repository.
build-root-directory: extensions/intellij
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v4
with:
# The gradle project is not in the root of the repository.
build-root-directory: extensions/intellij

View file

@ -20,17 +20,17 @@ const TEST_EVENT: DevDataLogEvent = {
};
const TEST_AGENT_INTERACTION_EVENT: DevDataLogEvent = {
name: 'chatInteraction',
name: "chatInteraction",
data: {
prompt: "Hello, world!",
completion: "Hello, world!",
modelProvider: "openai",
modelTitle: "gpt-4",
sessionId: "1234",
tools: ['test-tool1']
tools: ["test-tool1"],
},
}
};
const SCHEMA = "0.2.0";
describe("DataLogger", () => {
@ -171,22 +171,25 @@ describe("DataLogger", () => {
expect(fileContent).toContain('"eventName":"tokensGenerated"');
});
it('should write agent interaction data to local file', async () => {
it("should write agent interaction data to local file", async () => {
// Call the method to log data locally
await dataLogger.logLocalData(TEST_AGENT_INTERACTION_EVENT);
// Verify the file was created
const filepath = getDevDataFilePath(TEST_AGENT_INTERACTION_EVENT.name, SCHEMA);
const filepath = getDevDataFilePath(
TEST_AGENT_INTERACTION_EVENT.name,
SCHEMA,
);
expect(fs.existsSync(filepath)).toBe(true);
// Read file contents and verify
const fileContent = fs.readFileSync(filepath, "utf8");
console.log('debug1 filecontent', fileContent)
console.log("debug1 filecontent", fileContent);
expect(fileContent).toContain('"eventName":"chatInteraction"');
expect(fileContent).toContain('"prompt":"Hello, world!"');
expect(fileContent).toContain('"completion":"Hello, world!"');
expect(fileContent).toContain('"tools":["test-tool1"]');
})
});
});
describe("logDevData", () => {

File diff suppressed because one or more lines are too long

View file

@ -2,14 +2,14 @@ import workerpool from "workerpool";
import llamaTokenizer from "./llamaTokenizer.mjs";
function encode(segment) {
return llamaTokenizer.encode(segment);
return llamaTokenizer.encode(segment);
}
function decode(tokens) {
return llamaTokenizer.decode(tokens);
return llamaTokenizer.decode(tokens);
}
workerpool.worker({
decode,
encode,
});
decode,
encode,
});

View file

@ -4,14 +4,14 @@ import { encodingForModel as _encodingForModel } from "js-tiktoken";
const tiktokenEncoding = _encodingForModel("gpt-4");
function encode(text) {
return tiktokenEncoding.encode(text, "all", []);
return tiktokenEncoding.encode(text, "all", []);
}
function decode(tokens) {
return tiktokenEncoding.decode(tokens);
return tiktokenEncoding.decode(tokens);
}
workerpool.worker({
decode,
encode,
});
decode,
encode,
});

View file

@ -135,12 +135,13 @@ Yes, in VS Code, if you don't want to be shown suggestions automatically you can
### Is there a shortcut to accept one line at a time?
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:
1. Press `Ctrl+Shift+P`, type the command: `Preferences: Open Keyboard Shortcuts`, and enter the keyboard shortcuts settings page.
2. Search for `editor.action.inlineSuggest.acceptNextLine`.
3. Set the key binding to `Tab`.
4. Set the trigger condition (when) to `inlineSuggestionVisible && !editorReadonly`.
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`.
If you need to apply all the code, just press `Tab` multiple times.
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`.
If you need to apply all the code, just press `Tab` multiple times.
### How to turn off autocomplete

View file

@ -4,7 +4,7 @@
[**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.
:::
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.
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.
Example configuration once OVMS is launched:
@ -27,4 +27,3 @@ models:
roles:
- autocomplete
```

View file

@ -153,7 +153,7 @@ Replicate makes it easy to host and run open-source AI with an API.
SambaNova Cloud provides world record Llama3.1 70B/405B serving.
1. Create an account [here](http://cloud.sambanova.ai?utm_source=continue&utm_medium=external&utm_campaign=cloud_signup )
1. Create an account [here](http://cloud.sambanova.ai?utm_source=continue&utm_medium=external&utm_campaign=cloud_signup)
2. Copy your API key
3. Update your Continue config file like this:

View file

@ -60,4 +60,3 @@ import TabItem from "@theme/TabItem";
</Tabs>
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)

View file

@ -36,13 +36,14 @@ To quickly understand what you can do with Continue, check out each tab below.
<TabItem value="edit" label="Edit">
[Edit](../edit/how-to-use-it.md#how-to-use-it) is a convenient way to modify code without leaving your current file
[Edit](../edit/how-to-use-it.md#how-to-use-it) is a convenient way to modify code without leaving your current file
![edit](/img/edit.gif)
![edit](/img/edit.gif)
<Admonition type="info" title="Learn more" icon="📚">
Learn more about [Edit](../edit/how-to-use-it.md#how-to-use-it)
</Admonition>
{" "}
<Admonition type="info" title="Learn more" icon="📚">
Learn more about [Edit](../edit/how-to-use-it.md#how-to-use-it)
</Admonition>
</TabItem>

View file

@ -120,7 +120,7 @@ If you're seeing a `fetch failed` error and your network requires custom certifi
You may also set `requestOptions.caBundlePath` to an array of paths to multiple certificates.
***Windows VS Code Users***: Installing the [win-ca](https://marketplace.visualstudio.com/items?itemName=ukoloff.win-ca) extension should also correct this issue.
**_Windows VS Code Users_**: Installing the [win-ca](https://marketplace.visualstudio.com/items?itemName=ukoloff.win-ca) extension should also correct this issue.
#### VS Code Proxy Settings

View file

@ -82,7 +82,7 @@ export const streamNormalInput = createAsyncThunk<
modelProvider: selectedChatModel.underlyingProviderName,
modelTitle: selectedChatModel.title,
sessionId: state.session.id,
...(state.session.mode === 'agent' && {
...(state.session.mode === "agent" && {
tools: activeTools.map((tool) => tool.function.name),
}),
},

View file

@ -1,30 +1,28 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sample Page</title>
<link rel="stylesheet" href="test.css" />
</head>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sample Page</title>
<link rel="stylesheet" href="test.css">
</head>
<body>
<header>
<h1>Welcome to the Sample Page</h1>
<nav>
<a href="#home">Home</a>
<a href="#about">About</a>
<a href="#contact">Contact</a>
</nav>
</header>
<div class="container">
<p>This is a sample paragraph.</p>
<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
</div>
</body>
</html>
<body>
<header>
<h1>Welcome to the Sample Page</h1>
<nav>
<a href="#home">Home</a>
<a href="#about">About</a>
<a href="#contact">Contact</a>
</nav>
</header>
<div class="container">
<p>This is a sample paragraph.</p>
<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
</div>
</body>
</html>

View file

@ -7,5 +7,5 @@ export const chatInteractionEventAllSchema = baseDevDataAllSchema.extend({
prompt: z.string(),
completion: z.string(),
sessionId: z.string(),
tools: z.array(z.string()).optional()
tools: z.array(z.string()).optional(),
});

View file

@ -16,7 +16,7 @@ export const chatInteractionEventSchema_0_2_0 =
modelTitle: true,
modelProvider: true,
sessionId: true,
tools: true
tools: true,
});
export const chatInteractionEventSchema_0_2_0_noCode =