Skip to content

Commit

Permalink
chore: remove unneeded configs
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Dec 26, 2023
1 parent 0683f5d commit 3303eea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 20 deletions.
18 changes: 1 addition & 17 deletions extensions/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,23 +344,7 @@
}
}
},
"volar.takeOverMode.extension": {
"type": "string",
"default": "Vue.volar",
"description": "The extension that take over language support for *.ts."
},
"vue-semantic-server.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
},
"vue-syntactic-server.trace.server": {
"vue.trace.server": {
"scope": "window",
"type": "string",
"enum": [
Expand Down
2 changes: 1 addition & 1 deletion packages/language-core/src/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function getDefaultVueLanguagePlugins(pluginContext: Parameters<VueLangua
useVueTsx,
...pluginContext.vueCompilerOptions.plugins,
];
;

const pluginInstances = plugins
.map(plugin => plugin(pluginContext))
.sort((a, b) => {
Expand Down
4 changes: 2 additions & 2 deletions packages/language-core/src/virtualFile/computedFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function computedFiles(
}
return blocks;
});
const pluginsResult = plugins.map(plugin => compiledPluginFiles(plugins, plugin, fileName, sfc, nameToBlock, codegenStack));
const pluginsResult = plugins.map(plugin => computedPluginFiles(plugins, plugin, fileName, sfc, nameToBlock, codegenStack));
const flatResult = computed(() => pluginsResult.map(r => r()).flat());
const structuredResult = computed(() => {

Expand Down Expand Up @@ -112,7 +112,7 @@ export function computedFiles(
return structuredResult;
}

function compiledPluginFiles(
function computedPluginFiles(
plugins: ReturnType<VueLanguagePlugin>[],
plugin: ReturnType<VueLanguagePlugin>,
fileName: string,
Expand Down

0 comments on commit 3303eea

Please sign in to comment.