Skip to content

Commit 8631752

Browse files
committed
chore: temporarily remove Astro support
1 parent cc0c9c2 commit 8631752

File tree

4 files changed

+1
-17
lines changed

4 files changed

+1
-17
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This extension only includes IntelliSense support; you will still need to instal
2121

2222
## Disable Built-in TypeScript Extension
2323

24-
This extension and the Built-in TypeScript Extension sometimes show duplicate results, which is not a big problem, but you still can disable the Built-in TypeScript Extension yourself if you want, please refer to https://vuejs.org/guide/typescript/overview.html#volar-takeover-mode.
24+
This extension and the Built-in TypeScript Extension sometimes show duplicate results, which is not a big problem, but you still can disable the Built-in TypeScript Extension yourself if you want.
2525

2626
## Settings
2727

Diff for: package.json

-12
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
},
2323
"activationEvents": [
2424
"onLanguage:vue",
25-
"onLanguage:astro",
2625
"onLanguage:javascript",
2726
"onLanguage:typescript",
2827
"onLanguage:javascriptreact",
@@ -36,12 +35,6 @@
3635
"extensions": [
3736
".vue"
3837
]
39-
},
40-
{
41-
"id": "astro",
42-
"extensions": [
43-
".astro"
44-
]
4538
}
4639
],
4740
"configuration": {
@@ -77,11 +70,6 @@
7770
"type": "boolean",
7871
"default": true,
7972
"description": "Support Vue SFC."
80-
},
81-
"typescript-web.supportAstro": {
82-
"type": "boolean",
83-
"default": true,
84-
"description": "Support Astro SFC."
8573
}
8674
}
8775
}

Diff for: src/client.ts

-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export async function activate(context: vscode.ExtensionContext) {
2323
'javascriptreact',
2424
];
2525
if (configs.supportVue) documentSelector.push('vue');
26-
if (configs.supportAstro) documentSelector.push('astro');
2726

2827
const clientOptions: lsp.LanguageClientOptions = {
2928
documentSelector,
@@ -34,7 +33,6 @@ export async function activate(context: vscode.ExtensionContext) {
3433
versions: configs.versions,
3534
globalModules: configs.globalModules,
3635
supportVue: configs.supportVue,
37-
supportAstro: configs.supportAstro,
3836
} satisfies TypeScriptWebServerOptions,
3937
};
4038
client = new lsp.LanguageClient(
@@ -73,6 +71,5 @@ function getConfigs() {
7371
versions: JSON.parse(JSON.stringify(configs.get<Record<string, string>>('dts.versions'))),
7472
globalModules: configs.get<string[]>('dts.globals'),
7573
supportVue: configs.get<boolean>('supportVue') ?? false,
76-
supportAstro: configs.get<boolean>('supportAstro') ?? false,
7774
};
7875
}

Diff for: src/types.ts

-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ export interface TypeScriptWebServerOptions {
55
versions?: Record<string, string>;
66
globalModules?: string[];
77
supportVue?: boolean;
8-
supportAstro?: boolean;
98
}

0 commit comments

Comments
 (0)