Skip to content

Commit d6e24dc

Browse files
awilkinsAdrian Wilkins
andauthored
Fix spelling of SUBRPGORAM because it made my brain itch (#58)
Co-authored-by: Adrian Wilkins <[email protected]>
1 parent c99f506 commit d6e24dc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function registerInsertConstantCommand(context: vscode.ExtensionContext, client:
142142

143143
function registerNewFileCommands(context: vscode.ExtensionContext) {
144144
context.subscriptions.push(vscode.commands.registerCommand("natural.file.new.subprogram", async (args) => {
145-
await createNewFileByTemplate(args, "SUBRPGORAM");
145+
await createNewFileByTemplate(args, "SUBPROGRAM");
146146
}));
147147
context.subscriptions.push(vscode.commands.registerCommand("natural.file.new.program", async (args) => {
148148
await createNewFileByTemplate(args, "PROGRAM");

src/new-file-controller.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { promises as fsPromises } from "fs";
44
import * as vscode from "vscode";
55
import { DidChangeTextDocumentNotification, DidCreateFilesNotification, DidSaveTextDocumentNotification, LanguageClient } from "vscode-languageclient/node";
66

7-
export type FileType = "SUBRPGORAM" | "PROGRAM" | "SUBROUTINE" | "FUNCTION" | "COPYCODE" | "GDA" | "LDA" | "PDA" | "TESTCASE";
7+
export type FileType = "SUBPROGRAM" | "PROGRAM" | "SUBROUTINE" | "FUNCTION" | "COPYCODE" | "GDA" | "LDA" | "PDA" | "TESTCASE";
88

99
let fileExtensions = new Map<FileType, string>([
10-
["SUBRPGORAM", "NSN"],
10+
["SUBPROGRAM", "NSN"],
1111
["PROGRAM", "NSP"],
1212
["SUBROUTINE", "NSS"],
1313
["FUNCTION", "NS7"],
@@ -121,7 +121,7 @@ function moduleDocumentationHeader() {
121121

122122
function fileTemplate(fileName: string, type: FileType, subroutineName: string) : string {
123123
switch (type) {
124-
case "SUBRPGORAM": {
124+
case "SUBPROGRAM": {
125125
return `* >Natural Source Header 000000
126126
* :Mode S
127127
* :CP

0 commit comments

Comments
 (0)