Skip to content

Commit 595b589

Browse files
Set proper language for file templates
We were always creating 'ada' editors, instead of using the template's language. For eng/ide/ada_language_server#1515
1 parent eeb3a1d commit 595b589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

integration/vscode/ada/src/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ async function restartLanguageServers() {
524524
* @param snippetName - the name of the snippet to insert in the newly created editor.
525525
*/
526526
async function createNewFile(langId: string, snippetName: string) {
527-
const doc = await vscode.workspace.openTextDocument({ language: 'ada' });
527+
const doc = await vscode.workspace.openTextDocument({ language: langId });
528528
await vscode.window.showTextDocument(doc);
529529
await vscode.commands.executeCommand('editor.action.insertSnippet', {
530530
langId: langId,

0 commit comments

Comments
 (0)