Skip to content

Commit bc65dfd

Browse files
authored
Refactor plugin code to typescript-plugin-service (#295)
1 parent 1adb9f3 commit bc65dfd

File tree

88 files changed

+70
-684
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+70
-684
lines changed

packages/typescript-plugin-vue/package.json

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@
3737
]
3838
}
3939
}
40+
],
41+
"types/3.x.d.ts": [
42+
{
43+
"format": "dts",
44+
"file": "runtime/3.x.vuedx_runtime.d.ts"
45+
}
4046
]
4147
},
4248
"external": [
@@ -66,10 +72,22 @@
6672
},
6773
"homepage": "https://github.com/znck/vue-developer-experience#readme",
6874
"dependencies": {
75+
"@vuedx/projectconfig": "workspace:*",
6976
"@vuedx/shared": "workspace:*",
70-
"@vuedx/vue-languageservice": "workspace:*"
77+
"@vuedx/template-ast-types": "workspace:*",
78+
"@vuedx/vue-virtual-textdocument": "workspace:*",
79+
"inversify": "^5.1.1",
80+
"json5": "^2.2.0",
81+
"node-ipc": "10.1.0",
82+
"reflect-metadata": "^0.1.13"
7183
},
7284
"devDependencies": {
73-
"typescript": "^4.6.3"
85+
"csstype": "^3.1.0",
86+
"@vuedx/compiler-tsx": "workspace:*",
87+
"@types/web": "^0.0.56",
88+
"@vue/runtime-core": "^3.2.39",
89+
"quick-lru": "^6.0.1",
90+
"vscode-languageserver-types": "^3.16.0",
91+
"vue": "^3.2.39"
7492
}
7593
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export const NAMESPACE = `package:@vuedx/vue-languageservice` as const
1+
export const NAMESPACE = `package:@vuedx/typescript-plugin-vue` as const
22
export const TS_LANGUAGE_SERVICE = Symbol('Undecorated Language Service')
File renamed without changes.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import type { TextDocumentContentChangeEvent } from '@vuedx/vue-virtual-textdocument';
1+
import type { TextDocumentContentChangeEvent } from '@vuedx/vue-virtual-textdocument'
22

33
export interface FilesystemProvider {
4-
exists(fileName: string): boolean;
5-
read(fileName: string): string;
4+
exists(fileName: string): boolean
5+
read(fileName: string): string
66
watch(
77
fileName: string,
88
onChange: (
99
changes: TextDocumentContentChangeEvent[],
10-
version: number
11-
) => void
12-
): () => void;
10+
version: number,
11+
) => void,
12+
): () => void
1313
}
File renamed without changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export interface OffsetRangeLike {
2+
start: number | undefined
3+
length: number | undefined
4+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)