Skip to content

Commit f779bf0

Browse files
committed
fix type errors
1 parent 7e1e881 commit f779bf0

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

core/core.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import ignore from "ignore";
2+
import path from "path";
13
import { v4 as uuidv4 } from "uuid";
24
import type { ContextItemId, IDE, IndexingProgressUpdate } from ".";
35
import { CompletionProvider } from "./autocomplete/completionProvider";
@@ -17,6 +19,7 @@ import { ControlPlaneClient } from "./control-plane/client";
1719
import { streamDiffLines } from "./edit/streamDiffLines";
1820
import { CodebaseIndexer, PauseToken } from "./indexing/CodebaseIndexer";
1921
import DocsService from "./indexing/docs/DocsService";
22+
import { defaultIgnoreFile } from "./indexing/ignore.js";
2023
import Ollama from "./llm/llms/Ollama";
2124
import type { FromCoreProtocol, ToCoreProtocol } from "./protocol";
2225
import { GlobalContext } from "./util/GlobalContext";
@@ -29,9 +32,6 @@ import type { IMessenger, Message } from "./util/messenger";
2932
import { editConfigJson, setupInitialDotContinueDirectory } from "./util/paths";
3033
import { Telemetry } from "./util/posthog";
3134
import { TTS } from "./util/tts";
32-
import ignore from "ignore";
33-
import { defaultIgnoreFile } from "./indexing/ignore.js";
34-
import path from "path";
3535

3636
export class Core {
3737
// implements IMessenger<ToCoreProtocol, FromCoreProtocol>
@@ -401,6 +401,7 @@ export class Core {
401401
});
402402
break;
403403
}
404+
// @ts-ignore
404405
yield { content: next.value.content };
405406
next = await gen.next();
406407
}

extensions/vscode/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "continue",
33
"icon": "media/icon.png",
44
"author": "Continue Dev, Inc",
5-
"version": "0.9.227",
5+
"version": "0.9.226",
66
"repository": {
77
"type": "git",
88
"url": "https://github.com/continuedev/continue"

extensions/vscode/src/stubs/remoteConfig.ts

+14-1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,18 @@ export class RemoteConfigSync {
6767
};
6868
}
6969

70+
private canParse(url: string): boolean {
71+
if ((URL as any).canParse) {
72+
return (URL as any).canParse(url);
73+
}
74+
try {
75+
new URL(url);
76+
return true;
77+
} catch (e) {
78+
return false;
79+
}
80+
}
81+
7082
async setup() {
7183
if (
7284
this.userToken === null ||
@@ -75,7 +87,7 @@ export class RemoteConfigSync {
7587
) {
7688
return;
7789
}
78-
if (!URL.canParse(this.remoteConfigServerUrl)) {
90+
if (!this.canParse(this.remoteConfigServerUrl)) {
7991
vscode.window.showErrorMessage(
8092
"The value set for 'remoteConfigServerUrl' is not valid: ",
8193
this.remoteConfigServerUrl,
@@ -92,6 +104,7 @@ export class RemoteConfigSync {
92104

93105
private setInterval() {
94106
if (this.syncInterval !== undefined) {
107+
// @ts-ignore
95108
clearInterval(this.syncInterval);
96109
}
97110
this.syncInterval = setInterval(

0 commit comments

Comments
 (0)