about summary refs log tree commit diff
path: root/editors/code
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2020-02-01 13:39:04 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2020-02-01 13:39:04 +0100
commit5c39311f9639543fe1dd2a67ec5aff757bb830eb (patch)
tree08568d061daf9a100631374743fdb747a16bd02b /editors/code
parentf4431d2acc8e5dd25ed41c0c8af97050a7a230d1 (diff)
downloadrust-5c39311f9639543fe1dd2a67ec5aff757bb830eb.tar.gz
rust-5c39311f9639543fe1dd2a67ec5aff757bb830eb.zip
Fix seedrandom in packaged extension
Fixes #2971
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/src/highlighting.ts3
-rw-r--r--editors/code/tsconfig.json3
2 files changed, 3 insertions, 3 deletions
diff --git a/editors/code/src/highlighting.ts b/editors/code/src/highlighting.ts
index 014e96f7534..fc7cd5a1cb8 100644
--- a/editors/code/src/highlighting.ts
+++ b/editors/code/src/highlighting.ts
@@ -1,7 +1,6 @@
 import * as vscode from 'vscode';
 import * as lc from 'vscode-languageclient';
-import * as seedrandom_ from 'seedrandom';
-const seedrandom = seedrandom_; // https://github.com/jvandemo/generator-angular2-library/issues/221#issuecomment-355945207
+import seedrandom from 'seedrandom';
 
 import { ColorTheme, TextMateRuleSettings } from './color_theme';
 
diff --git a/editors/code/tsconfig.json b/editors/code/tsconfig.json
index e60eb8e5e5b..1ea433961f1 100644
--- a/editors/code/tsconfig.json
+++ b/editors/code/tsconfig.json
@@ -13,7 +13,8 @@
         "noUnusedParameters": true,
         "noImplicitReturns": true,
         "noFallthroughCasesInSwitch": true,
-        "newLine": "LF"
+        "newLine": "LF",
+        "esModuleInterop": true,
     },
     "exclude": [
         "node_modules"