diff --git a/client/src/extension.ts b/client/src/extension.ts index 393b950..17ba7ad 100644 --- a/client/src/extension.ts +++ b/client/src/extension.ts @@ -625,6 +625,15 @@ Executable ${this.denoInfo.executablePath}`; return; } + if (text.indexOf(".") !== 0 || text.indexOf("/") !== 0) { + this.output.appendLine( + `Cannot create module \`${text + }\`. Module is not relative or absolute` + ); + this.output.show(); + return; + } + let defaultTextContent = ""; switch (extName) {