Skip to content

Commit

Permalink
Add displayName to providers
Browse files Browse the repository at this point in the history
This was added to the document symbol provider and the document
formatting provider.
  • Loading branch information
remcohaszing committed Sep 18, 2023
1 parent 94b22e1 commit 9b8286a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/languageFeatures.ts
Expand Up @@ -23,6 +23,7 @@ export type WorkerAccessor = WorkerGetter<YAMLWorker>
export function createMarkerDataProvider(getWorker: WorkerAccessor): MarkerDataProvider {
return {
owner: 'yaml',

async provideMarkerData(model) {
const worker = await getWorker(model.uri)
const diagnostics = await worker.doValidation(String(model.uri))
Expand Down Expand Up @@ -96,6 +97,8 @@ export function createDocumentSymbolProvider(
getWorker: WorkerAccessor
): languages.DocumentSymbolProvider {
return {
displayName: 'yaml',

async provideDocumentSymbols(model) {
const resource = model.uri

Expand All @@ -111,6 +114,8 @@ export function createDocumentFormattingEditProvider(
getWorker: WorkerAccessor
): languages.DocumentFormattingEditProvider {
return {
displayName: 'yaml',

async provideDocumentFormattingEdits(model) {
const resource = model.uri

Expand Down

0 comments on commit 9b8286a

Please sign in to comment.