import types only
parent
ccf7cd57a7
commit
8aca9fcd37
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "tailwindcss-language-service",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.2",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"files": [
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { CodeAction, CodeActionParams } from 'vscode-languageserver'
|
||||
import type { CodeAction, CodeActionParams } from 'vscode-languageserver'
|
||||
import { State } from '../util/state'
|
||||
import { doValidate } from '../diagnostics/diagnosticsProvider'
|
||||
import { rangesEqual } from '../util/rangesEqual'
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
import { State } from '../util/state'
|
||||
import {
|
||||
import type {
|
||||
CodeActionParams,
|
||||
CodeAction,
|
||||
CodeActionKind,
|
||||
} from 'vscode-languageserver'
|
||||
import { CssConflictDiagnostic } from '../diagnostics/types'
|
||||
import { joinWithAnd } from '../util/joinWithAnd'
|
||||
|
@ -20,7 +19,7 @@ export async function provideCssConflictCodeActions(
|
|||
(otherClassName) => `'${otherClassName.className}'`
|
||||
)
|
||||
)}`,
|
||||
kind: CodeActionKind.QuickFix,
|
||||
kind: 'quickfix', // CodeActionKind.QuickFix,
|
||||
diagnostics: [diagnostic],
|
||||
edit: {
|
||||
changes: {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import {
|
||||
import type {
|
||||
CodeAction,
|
||||
CodeActionParams,
|
||||
CodeActionKind,
|
||||
TextEdit,
|
||||
Range,
|
||||
} from 'vscode-languageserver'
|
||||
|
@ -146,7 +145,7 @@ export async function provideInvalidApplyCodeActions(
|
|||
return [
|
||||
{
|
||||
title: 'Extract to new rule',
|
||||
kind: CodeActionKind.QuickFix,
|
||||
kind: 'quickfix', // CodeActionKind.QuickFix,
|
||||
diagnostics: [diagnostic],
|
||||
edit: {
|
||||
changes: {
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
import { State } from '../util/state'
|
||||
import {
|
||||
import type {
|
||||
CodeActionParams,
|
||||
CodeAction,
|
||||
CodeActionKind,
|
||||
} from 'vscode-languageserver'
|
||||
import {
|
||||
InvalidConfigPathDiagnostic,
|
||||
|
@ -22,7 +21,7 @@ export function provideSuggestionCodeActions(
|
|||
): CodeAction[] {
|
||||
return diagnostic.suggestions.map((suggestion) => ({
|
||||
title: `Replace with '${suggestion}'`,
|
||||
kind: CodeActionKind.QuickFix,
|
||||
kind: 'quickfix', // CodeActionKind.QuickFix,
|
||||
diagnostics: [diagnostic],
|
||||
edit: {
|
||||
changes: {
|
||||
|
|
Loading…
Reference in New Issue