Skip to content

Commit

Permalink
Revert "Fix loading language bundles and add missing dependencies (#736
Browse files Browse the repository at this point in the history
…)"

This reverts commit 7e5175f.
  • Loading branch information
shanalikhan authored Dec 13, 2018
1 parent 7e5175f commit d0c1817
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,10 @@
"clean-webpack-plugin": "^1.0.0",
"mocha": "^5.2.0",
"prettier": "^1.15.3",
"ts-loader": "^5.3.0",
"tslint": "^5.11.0",
"tslint-plugin-prettier": "^2.0.1",
"typescript": "^3.2.2",
"vscode": "^1.1.26",
"webpack": "^4.26.1",
"webpack-cli": "^3.1.2"
"vscode": "^1.1.26"
},
"dependencies": {
"@octokit/rest": "^16.2.0",
Expand Down
4 changes: 1 addition & 3 deletions src/localize.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as fs from "fs-extra";
import * as path from "path";
import { extensions } from "vscode";

interface IConfig {
locale?: string;
Expand Down Expand Up @@ -50,8 +49,7 @@ export class Localize {
const defaultResvoleLanguage = ".nls.json";
let resolvedLanguage: string = "";
// TODO: it should read the extension root path from context
const rootPath = extensions.getExtension("Shan.code-settings-sync")
.extensionPath;
const rootPath = path.join(__dirname, "..", "..");
const file = path.join(rootPath, "package");
const options = this.options;

Expand Down

0 comments on commit d0c1817

Please sign in to comment.