Skip to content

Commit 7078ebd

Browse files
author
zhaoge
committed
feat(add comment for DefinitionAdapter and ReferenceAdapter): add comment
1 parent 30996c4 commit 7078ebd

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/languageFeatures.ts

+12-2
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,17 @@ export class CompletionAdapter<T extends BaseSQLWorker>
201201
});
202202
}
203203
}
204-
204+
/**
205+
* The adapter is for the definition of the symbol at the given position and document.
206+
**/
205207
export class DefinitionAdapter<T extends BaseSQLWorker> implements languages.DefinitionProvider {
206208
constructor(
207209
private readonly _worker: WorkerAccessor<T>,
208210
private readonly _defaults: LanguageServiceDefaults
209211
) {}
212+
/**
213+
* Provide the definition of the symbol at the given position and document.
214+
**/
210215
provideDefinition(
211216
model: editor.IReadOnlyModel,
212217
position: Position,
@@ -271,12 +276,17 @@ export class DefinitionAdapter<T extends BaseSQLWorker> implements languages.Def
271276
});
272277
}
273278
}
274-
279+
/**
280+
* The adapter is for the references of the symbol at the given position and document.
281+
**/
275282
export class ReferenceAdapter<T extends BaseSQLWorker> implements languages.ReferenceProvider {
276283
constructor(
277284
private readonly _worker: WorkerAccessor<T>,
278285
private readonly _defaults: LanguageServiceDefaults
279286
) {}
287+
/**
288+
* Provide a set of project-wide references for the given position and document.
289+
**/
280290
provideReferences(
281291
model: editor.IReadOnlyModel,
282292
position: Position,

0 commit comments

Comments
 (0)