Skip to content

Commit

Permalink
fix: add extensions to relative path imports
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlday committed Oct 5, 2024
1 parent e7b28a4 commit a5e1016
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 34 deletions.
2 changes: 1 addition & 1 deletion src/ConfigurationManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
workspace,
WorkspaceConfiguration,
} from "vscode";
import * as Constants from "./Constants";
import * as Constants from "./Constants.js";

export class ConfigurationManager implements Disposable {
// Private Members
Expand Down
5 changes: 3 additions & 2 deletions src/FormattingProviderDashes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
*/

import * as vscode from "vscode";
import { ConfigurationManager } from "./ConfigurationManager";
import { ConfigurationManager } from "./ConfigurationManager.js";

export class FormattingProviderDashes
implements vscode.OnTypeFormattingEditProvider {
implements vscode.OnTypeFormattingEditProvider
{
public static readonly emDash: string = "—";
public static readonly enDash: string = "–";
public static readonly hyphen: string = "-";
Expand Down
5 changes: 3 additions & 2 deletions src/FormattingProviderEllipses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
*/

import * as vscode from "vscode";
import { ConfigurationManager } from "./ConfigurationManager";
import { ConfigurationManager } from "./ConfigurationManager.js";

export class FormattingProviderEllipses
implements vscode.OnTypeFormattingEditProvider {
implements vscode.OnTypeFormattingEditProvider
{
public static readonly ellipses: string = "…";
public static readonly period: string = ".";
public static readonly triggers: string[] = ["."];
Expand Down
5 changes: 3 additions & 2 deletions src/FormattingProviderQuotes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
*/

import * as vscode from "vscode";
import { ConfigurationManager } from "./ConfigurationManager";
import { ConfigurationManager } from "./ConfigurationManager.js";

export class FormattingProviderQuotes
implements vscode.OnTypeFormattingEditProvider {
implements vscode.OnTypeFormattingEditProvider
{
public static readonly startDoubleQuote: string = "“";
public static readonly endDoubleQuote: string = "”";
public static readonly startSingleQuote: string = "‘";
Expand Down
14 changes: 7 additions & 7 deletions src/Linter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ import {
workspace,
WorkspaceEdit,
} from "vscode";
import { ConfigurationManager } from "./ConfigurationManager";
import * as Constants from "./Constants";
import { FormattingProviderDashes } from "./FormattingProviderDashes";
import { FormattingProviderEllipses } from "./FormattingProviderEllipses";
import { FormattingProviderQuotes } from "./FormattingProviderQuotes";
import { ConfigurationManager } from "./ConfigurationManager.js";
import * as Constants from "./Constants.js";
import { FormattingProviderDashes } from "./FormattingProviderDashes.js";
import { FormattingProviderEllipses } from "./FormattingProviderEllipses.js";
import { FormattingProviderQuotes } from "./FormattingProviderQuotes.js";
import {
IIgnoreItem,
ILanguageToolMatch,
ILanguageToolReplacement,
ILanguageToolResponse,
} from "./Interfaces";
import { StatusBarManager } from "./StatusBarManager";
} from "./Interfaces.js";
import { StatusBarManager } from "./StatusBarManager.js";

class LTDiagnostic extends Diagnostic {
match?: ILanguageToolMatch;
Expand Down
4 changes: 2 additions & 2 deletions src/StatusBarManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as vscode from "vscode";
import { ConfigurationManager } from "./ConfigurationManager";
import { ILanguageToolResponse } from "./Interfaces";
import { ConfigurationManager } from "./ConfigurationManager.js";
import { ILanguageToolResponse } from "./Interfaces.js";

export class StatusBarManager implements vscode.Disposable {
private statusBarItem: vscode.StatusBarItem;
Expand Down
14 changes: 7 additions & 7 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

import { IAnnotatedtext } from "annotatedtext";
import * as vscode from "vscode";
import { ConfigurationManager } from "./ConfigurationManager";
import * as Constants from "./Constants";
import { FormattingProviderDashes } from "./FormattingProviderDashes";
import { FormattingProviderEllipses } from "./FormattingProviderEllipses";
import { FormattingProviderQuotes } from "./FormattingProviderQuotes";
import { Linter } from "./Linter";
import { OnTypeFormattingDispatcher } from "./OnTypeFormattingDispatcher";
import { ConfigurationManager } from "./ConfigurationManager.js";
import * as Constants from "./Constants.js";
import { FormattingProviderDashes } from "./FormattingProviderDashes.js";
import { FormattingProviderEllipses } from "./FormattingProviderEllipses.js";
import { FormattingProviderQuotes } from "./FormattingProviderQuotes.js";
import { Linter } from "./Linter.js";
import { OnTypeFormattingDispatcher } from "./OnTypeFormattingDispatcher.js";

// Wonder Twin Powers, Activate!
export function activate(context: vscode.ExtensionContext): void {
Expand Down
4 changes: 2 additions & 2 deletions test/suite/configuration.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as assert from "assert";
import * as vscode from "vscode";
import * as Constants from "../../src/Constants";
import { ConfigurationManager } from "../../src/ConfigurationManager";
import * as Constants from "../../src/Constants.js";
import { ConfigurationManager } from "../../src/ConfigurationManager.js";

suite("ConfigurationManager Test Suite", () => {
test("ConfigurationManager should load configuration", () => {
Expand Down
2 changes: 1 addition & 1 deletion test/suite/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as assert from "assert";
// tslint:disable-next-line: no-implicit-dependencies
import { before } from "mocha";
import * as vscode from "vscode";
import * as Constants from "../../src/Constants";
import * as Constants from "../../src/Constants.js";

suite("Extension Test Suite", () => {
before(() => {
Expand Down
4 changes: 2 additions & 2 deletions test/suite/linter.html.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as assert from "assert";
import * as fs from "fs";
import * as path from "path";
import { ConfigurationManager } from "../../src/ConfigurationManager";
import { ConfigurationManager } from "../../src/ConfigurationManager.js";
import { IAnnotatedtext } from "annotatedtext";
import { Linter } from "../../src/Linter";
import { Linter } from "../../src/Linter.js";

suite("Linter HTML Test Suite", () => {
const configManager: ConfigurationManager = new ConfigurationManager();
Expand Down
4 changes: 2 additions & 2 deletions test/suite/linter.markdown.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as assert from "assert";
import * as fs from "fs";
import * as path from "path";
import { ConfigurationManager } from "../../src/ConfigurationManager";
import { Linter } from "../../src/Linter";
import { ConfigurationManager } from "../../src/ConfigurationManager.js";
import { Linter } from "../../src/Linter.js";

suite("Linter Markdown Test Suite", () => {
const configManager: ConfigurationManager = new ConfigurationManager();
Expand Down
4 changes: 2 additions & 2 deletions test/suite/linter.mdx.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as assert from "assert";
import * as fs from "fs";
import * as path from "path";
import { ConfigurationManager } from "../../src/ConfigurationManager";
import { Linter } from "../../src/Linter";
import { ConfigurationManager } from "../../src/ConfigurationManager.js";
import { Linter } from "../../src/Linter.js";

suite("Linter MDX Test Suite", () => {
const configManager: ConfigurationManager = new ConfigurationManager();
Expand Down
4 changes: 2 additions & 2 deletions test/suite/linter.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as assert from "assert";
import * as fs from "fs";
import * as path from "path";
import { ConfigurationManager } from "../../src/ConfigurationManager";
import { ConfigurationManager } from "../../src/ConfigurationManager.js";
import { IAnnotatedtext } from "annotatedtext";
import { Linter } from "../../src/Linter";
import { Linter } from "../../src/Linter.js";

suite("Linter Test Suite", () => {
const configManager: ConfigurationManager = new ConfigurationManager();
Expand Down

0 comments on commit a5e1016

Please sign in to comment.