Skip to content

Commit 9046820

Browse files
committed
chore: delete vue integration related code
1 parent 297826b commit 9046820

File tree

12 files changed

+1677
-2291
lines changed

12 files changed

+1677
-2291
lines changed

.vscode/launch.json

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,6 @@
3434
"${workspaceFolder}/out/**/*.js"
3535
],
3636
},
37-
{
38-
"name": "Attach to Vue Semantic Server",
39-
"type": "node",
40-
"request": "attach",
41-
"restart": true,
42-
"port": 6009,
43-
"sourceMaps": true,
44-
"outFiles": [
45-
"${workspaceFolder}/out/**/*.js"
46-
],
47-
}
4837
],
4938
"compounds": [
5039
{
@@ -54,12 +43,5 @@
5443
"Attach to TS Server"
5544
]
5645
},
57-
{
58-
"name": "Extension + Volar",
59-
"configurations": [
60-
"Launch Extension",
61-
"Attach to Vue Semantic Server"
62-
]
63-
},
6446
]
65-
}
47+
}

.vscode/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
],
1515
"tsEssentialPlugins.suggestions.ignoreAutoImports": [
1616
"typescript-full",
17-
"@volar/language-service/*"
1817
],
1918
"githubPullRequests.ignoredPullRequestBranches": [
2019
"develop"
@@ -29,4 +28,4 @@
2928
"vitest.include": [
3029
"typescript/test/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"
3130
],
32-
}
31+
}

CONTRIBUTING.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To start the VS Code plugin extension locally for developing:
2525

2626
- `src/*` - VS Code extension code, that is specific to VS Code extension API only. Most probably you don't need to change it. (For now there is a limitation from vscode-framework so folder name cannot be changed to something like `extension` or `vscode`.)
2727
- `src/configurationType.ts` - Extension configuration live here. Add / change settings here. It is used to generate `out/package.json`'s `contributes.configuration`.
28-
- `typescript/*` - TypeScript plugin code, that integrates into TypeScript language service. After you change code in it, you need run to `> TypeScript: Restart TS server` to see changes (or `> Volar: Restart Vue server` for Vue files). Thats why it is useful to bind it to a shortcut.
28+
- `typescript/*` - TypeScript plugin code, that integrates into TypeScript language service. After you change code in it, you need run to `> TypeScript: Restart TS server` to see changes. Thats why it is useful to bind it to a shortcut.
2929

3030
### Running Tests
3131

README.MD

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ We make completions more informative. Definitions, references (and sometimes eve
1515
- [Top Features](#top-features)
1616
- [Minor Useful Features](#minor-useful-features)
1717
- [Method Snippets](#method-snippets)
18-
- [Volar (Vue) Support](#vue-support)
1918
- [Auto Imports](#auto-imports)
2019
- [Type Driven Completions](#type-driven-completions)
2120
- [Special Commands List](#special-commands-list)
@@ -122,18 +121,6 @@ Removes import statements from references when symbol has usages in the same fil
122121

123122
You can quickly disable this plugin functionality by setting this setting to false. Useful for debugging a problem for example.
124123

125-
> Note: this setting doesn't disable Vue support.
126-
127-
### Vue Support
128-
129-
`.vue` SFC files support is disabled, but can be enabled with setting and when [Vue Language Features (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.volar) is installed.
130-
131-
Enable now: `"tsEssentialPlugins.enableVueSupport": true` (if you're not using local `./volar.config.js`)
132-
133-
For the first time, it will configure `volar.vueserver.configFilePath` setting.
134-
135-
This also makes plugin work in Volar's takeover mode!
136-
137124
### Web Support
138125

139126
> Note: when you open TS/JS file in the web for the first time you currently need to switch between editors to make plugin work.

buildTsPlugin.mjs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,8 @@
11
//@ts-check
22
import buildTsPlugin from '@zardoy/vscode-utils/build/buildTypescriptPlugin.js'
3-
import { build, analyzeMetafile } from 'esbuild'
43
import fs from 'fs'
54

65
const enableWatch = process.argv.includes('--watch')
7-
await build({
8-
bundle: true,
9-
external: ['typescript-essential-plugins'],
10-
// minify: !watch,
11-
watch: enableWatch,
12-
entryPoints: ['./typescript/src/volarConfig.ts'],
13-
outfile: './out/volarConfig.js',
14-
format: 'cjs',
15-
logLevel: 'info',
16-
platform: 'node',
17-
// banner: {
18-
// js: 'let ts, tsFull;',
19-
// },
20-
// treeShaking: true,
21-
})
226

237
const result = await buildTsPlugin('typescript', undefined, undefined, {
248
minify: !enableWatch,
@@ -28,7 +12,6 @@ const result = await buildTsPlugin('typescript', undefined, undefined, {
2812
},
2913
banner: {
3014
js: 'let ts, tsFull;',
31-
// js: 'const log = (...args) => console.log(...args.map(a => JSON.stringify(a)))',
3215
},
3316
external: ['perf_hooks'],
3417
plugins: [
@@ -48,6 +31,3 @@ const result = await buildTsPlugin('typescript', undefined, undefined, {
4831
},
4932
],
5033
})
51-
52-
// @ts-ignore
53-
// console.log(await analyzeMetafile(result.metafile))

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,6 @@
178178
"@types/pluralize": "^0.0.29",
179179
"@vscode/emmet-helper": "^2.8.4",
180180
"@vscode/test-electron": "^2.1.5",
181-
"@vue/language-core": "latest",
182-
"@vue/language-server": "latest",
183-
"@vue/language-service": "latest",
184181
"@zardoy/utils": "^0.0.9",
185182
"@zardoy/vscode-utils": "^0.0.52",
186183
"chai": "^4.3.6",
@@ -224,4 +221,4 @@
224221
"runTest": false
225222
}
226223
}
227-
}
224+
}

0 commit comments

Comments
 (0)