Skip to content

Commit

Permalink
prettier/eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
machty committed Jan 12, 2024
1 parent 381b4b8 commit 264c89b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
13 changes: 0 additions & 13 deletions packages/core/src/language-server/binding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
SymbolInformation,
TextDocuments,
TextDocumentSyncKind,
InitializeParams as BaseInitializeParams,
CodeActionTriggerKind,
CodeActionKind,
} from 'vscode-languageserver';
Expand Down Expand Up @@ -75,18 +74,6 @@ export type BindingArgs = {
pool: LanguageServerPool;
};

interface FormattingAndPreferences {
format?: ts.FormatCodeSettings;
preferences?: ts.UserPreferences;
}

interface InitializeParams extends BaseInitializeParams {
initializationOptions?: {
typescript?: FormattingAndPreferences;
javascript?: FormattingAndPreferences;
};
}

export function bindLanguageServerPool({ connection, pool, openDocuments }: BindingArgs): void {
connection.onInitialize(() => {
return { capabilities };
Expand Down
6 changes: 0 additions & 6 deletions packages/core/src/language-server/glint-language-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import {
tagsForDiagnostic,
} from './util/protocol.js';
import { GetIRResult } from './messages.cjs';
import type { TsUserConfigLang } from './config-manager.js';
import MappingTree from '../transform/template/mapping-tree.js';
import { getTagDocumentation, plain } from './util/previewer.js';

Expand Down Expand Up @@ -490,11 +489,6 @@ export default class GlintLanguageServer {
return [];
}

public getLanguageType(uri: string): TsUserConfigLang {
let file = uriToFilePath(uri);
return this.glintConfig.environment.isTypedScript(file) ? 'typescript' : 'javascript';
}

public organizeImports(
uri: string,
formatOptions: ts.FormatCodeSettings = {},
Expand Down

0 comments on commit 264c89b

Please sign in to comment.