File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
extensions/ql-vscode/src/common/vscode Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1+ import { env } from "vscode" ;
2+ import { EnvironmentContext } from "../app" ;
3+
4+ export class AppEnvironmentContext implements EnvironmentContext {
5+ public get language ( ) : string {
6+ return env . language ;
7+ }
8+ }
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { Memento } from "../memento";
88import { VSCodeAppEventEmitter } from "./events" ;
99import { AppCommandManager , QueryServerCommandManager } from "../commands" ;
1010import { createVSCodeCommandManager } from "./commands" ;
11+ import { AppEnvironmentContext } from "./environment-context" ;
1112
1213export class ExtensionApp implements App {
1314 public readonly credentials : VSCodeCredentials ;
@@ -71,8 +72,6 @@ export class ExtensionApp implements App {
7172 }
7273
7374 public get environment ( ) : EnvironmentContext {
74- return {
75- language : vscode . env . language ,
76- } ;
75+ return new AppEnvironmentContext ( ) ;
7776 }
7877}
You can’t perform that action at this time.
0 commit comments