Skip to content

Commit 2e0c0d7

Browse files
committed
refactor(vscode): rename chatOutline to chatOutlineEnabled
1 parent 8441371 commit 2e0c0d7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

clients/vscode/src/ContextVariables.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ export class ContextVariables {
9898
this.inlineCompletionTriggerModeValue = value;
9999
}
100100

101-
get chatOutline(): boolean {
101+
get chatOutlineEnabled(): boolean {
102102
return this.chatOutlineValue;
103103
}
104104

105-
set chatOutline(value: boolean) {
106-
commands.executeCommand("setContext", "tabby.chat.outline", value);
105+
set chatOutlineEnabled(value: boolean) {
106+
commands.executeCommand("setContext", "tabby.chatOutlineEnabled", value);
107107
this.chatOutlineValue = value;
108108
}
109109
}

clients/vscode/src/outline/NLOutlinesProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { Config } from "../Config";
1919
import OpenAI from "openai";
2020
import generateNLOutlinesPrompt from "../../assets/prompts/generateNLOutlines.txt";
2121
import editNLOutline from "../../assets/prompts/editNLOutline.txt";
22-
import * as Diff from "diff";
22+
import { diffLines } from "diff";
2323

2424
interface ChatNLOutlinesParams {
2525
location: Location;
@@ -313,7 +313,7 @@ export class NLOutlinesProvider extends EventEmitter<void> implements CodeLensPr
313313
const removed: string[] = [];
314314
const unchanged: string[] = [];
315315

316-
Diff.diffLines(oldCode, newCode).forEach((diff) => {
316+
diffLines(oldCode, newCode).forEach((diff) => {
317317
const lines = diff.value.split("\n").filter((line) => line !== "");
318318
if (diff.added) {
319319
added.push(...lines);

0 commit comments

Comments
 (0)