We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0672cbb commit 7172d06Copy full SHA for 7172d06
src/langs/vala/vala.js
@@ -9,15 +9,9 @@ export function setup({ document }) {
9
10
const { file, buffer, code_view } = document;
11
12
- const api_file = Gio.File.new_for_path(pkg.pkgdatadir).get_child(
13
- "workbench.vala",
14
- );
15
- api_file.copy(
16
- file.get_parent().get_child("workbench.vala"),
17
- Gio.FileCopyFlags.OVERWRITE,
18
- null,
19
20
+ // VLS needs the project to be already setup once it starts,
+ // otherwise it won't pick it up later.
+ setupValaProject(file.get_parent()).catch(console.error);
21
22
const lspc = createLSPClient({
23
lang: getLanguage("vala"),
0 commit comments