Skip to content

Commit 6718397

Browse files
authored
Merge pull request #134 from vim-denops/support-cache
👍 Use `context` attribute for cache
2 parents 0805cfb + 9eb8531 commit 6718397

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+70
-61
lines changed

denops_std/anonymous/mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
1+
import type { Denops } from "https://deno.land/x/denops_core@v3.1.0/mod.ts";
22

33
// https://github.com/microsoft/TypeScript/issues/26223#issuecomment-674500430
44
export type TupleOf<T, N extends number> = N extends N

denops_std/anonymous/mod_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
assertEquals,
33
assertRejects,
44
} from "https://deno.land/std@0.149.0/testing/asserts.ts";
5-
import { test } from "https://deno.land/x/denops_core@v3.0.2/test/mod.ts";
5+
import { test } from "https://deno.land/x/denops_core@v3.1.0/test/mod.ts";
66
import * as anonymous from "./mod.ts";
77

88
test({

denops_std/autocmd/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Denops } from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
1+
import { Denops } from "https://deno.land/x/denops_core@v3.1.0/mod.ts";
22
import { AutocmdEvent } from "./types.ts";
33

44
type CommonOptions = {

denops_std/autocmd/common_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { assertEquals } from "https://deno.land/std@0.149.0/testing/asserts.ts";
2-
import { test } from "https://deno.land/x/denops_core@v3.0.2/test/mod.ts";
2+
import { test } from "https://deno.land/x/denops_core@v3.1.0/test/mod.ts";
33
import { globals } from "../variable/mod.ts";
44
import { define, emit, emitAll, list, remove } from "./common.ts";
55

denops_std/autocmd/group.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Denops } from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
1+
import type { Denops } from "https://deno.land/x/denops_core@v3.1.0/mod.ts";
22
import { execute } from "../helper/execute.ts";
33
import { AutocmdEvent } from "./types.ts";
44
import {

denops_std/autocmd/group_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { assertEquals } from "https://deno.land/std@0.149.0/testing/asserts.ts";
2-
import { test } from "https://deno.land/x/denops_core@v3.0.2/test/mod.ts";
2+
import { test } from "https://deno.land/x/denops_core@v3.1.0/test/mod.ts";
33
import { globals } from "../variable/mod.ts";
44
import { group } from "./group.ts";
55

denops_std/batch/batch.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type {
33
Denops,
44
Dispatcher,
55
Meta,
6-
} from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
6+
} from "https://deno.land/x/denops_core@v3.1.0/mod.ts";
77

88
class BatchHelper implements Denops {
99
#denops: Denops;
@@ -32,6 +32,10 @@ class BatchHelper implements Denops {
3232
return this.#denops.meta;
3333
}
3434

35+
get context(): Record<string | number | symbol, unknown> {
36+
return this.#denops.context;
37+
}
38+
3539
get dispatcher(): Dispatcher {
3640
return this.#denops.dispatcher;
3741
}

denops_std/batch/batch_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { assertEquals } from "https://deno.land/std@0.149.0/testing/asserts.ts";
2-
import { test } from "https://deno.land/x/denops_core@v3.0.2/test/mod.ts";
2+
import { test } from "https://deno.land/x/denops_core@v3.1.0/test/mod.ts";
33
import { batch, BatchHelper } from "./batch.ts";
44

55
test({

denops_std/batch/gather.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type {
33
Denops,
44
Dispatcher,
55
Meta,
6-
} from "https://deno.land/x/denops_core@v3.0.2/mod.ts";
6+
} from "https://deno.land/x/denops_core@v3.1.0/mod.ts";
77

88
class GatherHelper implements Denops {
99
#denops: Denops;
@@ -32,6 +32,10 @@ class GatherHelper implements Denops {
3232
return this.#denops.meta;
3333
}
3434

35+
get context(): Record<string | number | symbol, unknown> {
36+
return this.#denops.context;
37+
}
38+
3539
get dispatcher(): Dispatcher {
3640
return this.#denops.dispatcher;
3741
}

denops_std/batch/gather_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
assertEquals,
33
assertRejects,
44
} from "https://deno.land/std@0.149.0/testing/asserts.ts";
5-
import { test } from "https://deno.land/x/denops_core@v3.0.2/test/mod.ts";
5+
import { test } from "https://deno.land/x/denops_core@v3.1.0/test/mod.ts";
66
import { gather, GatherHelper } from "./gather.ts";
77

88
test({

0 commit comments

Comments
 (0)