diff --git a/README.md b/README.md index ee030e8..61b9f14 100644 --- a/README.md +++ b/README.md @@ -26,9 +26,6 @@ The following Visual Studio Code settings are available for the RelativePath ext // Excludes the extension from the relative path url (Useful for systemjs imports). "relativePath.removeExtension": false, - // Removes the leading ./ character when the path is pointing to a parent folder. - "relativePath.removeLeadingDot": false - // An array of extensions to exclude from the relative path url (Useful for used with Webpack or when importing files of mixed types) "relativePath.excludedExtensions": [ ".js" diff --git a/package.json b/package.json index 1612017..9dee8de 100644 --- a/package.json +++ b/package.json @@ -60,11 +60,6 @@ "default": false, "description": "Excludes the extension from the relative path url (Useful for systemjs imports)." }, - "relativePath.removeLeadingDot": { - "type": "boolean", - "default": false, - "description": "Removes the leading ./ character when the path is pointing to a parent folder." - }, "relativePath.excludedExtensions": { "type": "array", "default": [ @@ -95,4 +90,4 @@ "@types/glob": "^5.0.29", "glob": "^7.0.6" } -} \ No newline at end of file +} diff --git a/src/extension.ts b/src/extension.ts index 1632212..b682a31 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -185,7 +185,8 @@ class RelativePath { } else if (this.excludeExtensionsFor(relativeUrl)) { relativeUrl = relativeUrl.substring(0, relativeUrl.lastIndexOf(".")); } - if (this._configuration.removeLeadingDot && relativeUrl.startsWith("./../")) { + + if (relativeUrl.startsWith("./../")) { relativeUrl = relativeUrl.substring(2, relativeUrl.length); } @@ -223,4 +224,4 @@ class RelativePath { dispose() { this._items = null; } -} \ No newline at end of file +}