Big refactors and fixes

* Query regen
* Fix anchor completion
* Dependency fixes
* Changelog update
This commit is contained in:
Zef Hemel
2023-07-02 11:25:32 +02:00
committed by GitHub
parent fee2c5928e
commit 7c825348b2
74 changed files with 935 additions and 567 deletions
+1
View File
@@ -43,6 +43,7 @@ export type PublishEvent = {
};
export type CompleteEvent = {
pageName: string;
linePrefix: string;
pos: number;
};
+6
View File
@@ -0,0 +1,6 @@
declare global {
function nativeFetch(
input: RequestInfo | URL,
init?: RequestInit,
): Promise<Response>;
}
+2
View File
@@ -13,6 +13,8 @@ export function sandboxFetch(
}
export function monkeyPatchFetch() {
// @ts-ignore: monkey patching fetch
globalThis.nativeFetch = globalThis.fetch;
// @ts-ignore: monkey patching fetch
globalThis.fetch = async function (
url: string,
+4
View File
@@ -129,6 +129,10 @@ export function vimEx(exCommand: string): Promise<any> {
return syscall("editor.vimEx", exCommand);
}
export function syncSpace(): Promise<number> {
return syscall("editor.syncSpace");
}
// Folding
export function fold() {