fix type errors
This commit is contained in:
parent
7e1e88158a
commit
f779bf0bfb
3 changed files with 19 additions and 5 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import ignore from "ignore";
|
||||
import path from "path";
|
||||
import { v4 as uuidv4 } from "uuid";
|
||||
import type { ContextItemId, IDE, IndexingProgressUpdate } from ".";
|
||||
import { CompletionProvider } from "./autocomplete/completionProvider";
|
||||
|
|
@ -17,6 +19,7 @@ import { ControlPlaneClient } from "./control-plane/client";
|
|||
import { streamDiffLines } from "./edit/streamDiffLines";
|
||||
import { CodebaseIndexer, PauseToken } from "./indexing/CodebaseIndexer";
|
||||
import DocsService from "./indexing/docs/DocsService";
|
||||
import { defaultIgnoreFile } from "./indexing/ignore.js";
|
||||
import Ollama from "./llm/llms/Ollama";
|
||||
import type { FromCoreProtocol, ToCoreProtocol } from "./protocol";
|
||||
import { GlobalContext } from "./util/GlobalContext";
|
||||
|
|
@ -29,9 +32,6 @@ import type { IMessenger, Message } from "./util/messenger";
|
|||
import { editConfigJson, setupInitialDotContinueDirectory } from "./util/paths";
|
||||
import { Telemetry } from "./util/posthog";
|
||||
import { TTS } from "./util/tts";
|
||||
import ignore from "ignore";
|
||||
import { defaultIgnoreFile } from "./indexing/ignore.js";
|
||||
import path from "path";
|
||||
|
||||
export class Core {
|
||||
// implements IMessenger<ToCoreProtocol, FromCoreProtocol>
|
||||
|
|
@ -401,6 +401,7 @@ export class Core {
|
|||
});
|
||||
break;
|
||||
}
|
||||
// @ts-ignore
|
||||
yield { content: next.value.content };
|
||||
next = await gen.next();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "continue",
|
||||
"icon": "media/icon.png",
|
||||
"author": "Continue Dev, Inc",
|
||||
"version": "0.9.227",
|
||||
"version": "0.9.226",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/continuedev/continue"
|
||||
|
|
|
|||
|
|
@ -67,6 +67,18 @@ export class RemoteConfigSync {
|
|||
};
|
||||
}
|
||||
|
||||
private canParse(url: string): boolean {
|
||||
if ((URL as any).canParse) {
|
||||
return (URL as any).canParse(url);
|
||||
}
|
||||
try {
|
||||
new URL(url);
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
async setup() {
|
||||
if (
|
||||
this.userToken === null ||
|
||||
|
|
@ -75,7 +87,7 @@ export class RemoteConfigSync {
|
|||
) {
|
||||
return;
|
||||
}
|
||||
if (!URL.canParse(this.remoteConfigServerUrl)) {
|
||||
if (!this.canParse(this.remoteConfigServerUrl)) {
|
||||
vscode.window.showErrorMessage(
|
||||
"The value set for 'remoteConfigServerUrl' is not valid: ",
|
||||
this.remoteConfigServerUrl,
|
||||
|
|
@ -92,6 +104,7 @@ export class RemoteConfigSync {
|
|||
|
||||
private setInterval() {
|
||||
if (this.syncInterval !== undefined) {
|
||||
// @ts-ignore
|
||||
clearInterval(this.syncInterval);
|
||||
}
|
||||
this.syncInterval = setInterval(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue