Big refactors and fixes
* Query regen * Fix anchor completion * Dependency fixes * Changelog update
This commit is contained in:
@@ -43,6 +43,7 @@ export type PublishEvent = {
|
||||
};
|
||||
|
||||
export type CompleteEvent = {
|
||||
pageName: string;
|
||||
linePrefix: string;
|
||||
pos: number;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
declare global {
|
||||
function nativeFetch(
|
||||
input: RequestInfo | URL,
|
||||
init?: RequestInit,
|
||||
): Promise<Response>;
|
||||
}
|
||||
@@ -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,
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user