We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent beba952 commit 5c63db3Copy full SHA for 5c63db3
src/apiCommands.ts
@@ -5,7 +5,7 @@ import { sendCommand } from './sendCommand'
5
6
export default () => {
7
/** @unique */
8
- const cacheableCommands: Set<typeof passthroughExposedApiCommands[number]> = new Set(['getNodePath', 'getSpanOfEnclosingComment', 'getNodeAtPosition'])
+ const cacheableCommands: Set<(typeof passthroughExposedApiCommands)[number]> = new Set(['getNodePath', 'getSpanOfEnclosingComment', 'getNodeAtPosition'])
9
const operationsCache = new Map<string, { key: string; data }>()
10
const sharedRequest = async (type: TriggerCharacterCommand, { offset, relativeOffset = 0, document, position }: RequestOptions) => {
11
if (position && offset) throw new Error('Only position or offset parameter can be provided')
0 commit comments