From 3e0d0b6ddcb59a5985e70931a2100941b3f4389e Mon Sep 17 00:00:00 2001 From: Ziwei Wang Date: Wed, 15 Nov 2023 16:16:31 -0500 Subject: [PATCH] Chore: Rename --- server/src/__tests__/semanticTokens.test.ts | 2 +- server/src/{semanticTokensProvider.ts => semanticTokens.ts} | 0 server/src/server.ts | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename server/src/{semanticTokensProvider.ts => semanticTokens.ts} (100%) diff --git a/server/src/__tests__/semanticTokens.test.ts b/server/src/__tests__/semanticTokens.test.ts index c4d69f76..3d19ed53 100644 --- a/server/src/__tests__/semanticTokens.test.ts +++ b/server/src/__tests__/semanticTokens.test.ts @@ -5,7 +5,7 @@ import { analyzer } from '../tree-sitter/analyzer' import { generateParser } from '../tree-sitter/parser' -import { getParsedTokens, TOKEN_LEGEND } from '../semanticTokensProvider' +import { getParsedTokens, TOKEN_LEGEND } from '../semanticTokens' import { FIXTURE_DOCUMENT } from './fixtures/fixtures' const DUMMY_URI = 'dummy_uri' diff --git a/server/src/semanticTokensProvider.ts b/server/src/semanticTokens.ts similarity index 100% rename from server/src/semanticTokensProvider.ts rename to server/src/semanticTokens.ts diff --git a/server/src/server.ts b/server/src/server.ts index 5907d1df..9e20948f 100644 --- a/server/src/server.ts +++ b/server/src/server.ts @@ -31,7 +31,7 @@ import { generateEmbeddedLanguageDocs, getEmbeddedLanguageDocInfosOnPosition } f import { embeddedLanguageDocsManager } from './embedded-languages/documents-manager' import { RequestMethod, type RequestParams, type RequestResult } from './lib/src/types/requests' import { NotificationMethod, type NotificationParams } from './lib/src/types/notifications' -import { getSemanticTokens, legend } from './semanticTokensProvider' +import { getSemanticTokens, legend } from './semanticTokens' // Create a connection for the server. The connection uses Node's IPC as a transport const connection: Connection = createConnection(ProposedFeatures.all) const documents = new TextDocuments(TextDocument)