This repository was archived by the owner on Jul 31, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
2
import * as path from "path" ;
3
- import { workspace , ExtensionContext , window , commands } from "vscode" ;
3
+ import {
4
+ workspace ,
5
+ ExtensionContext ,
6
+ window ,
7
+ commands ,
8
+ OutputChannel
9
+ } from "vscode" ;
4
10
import {
5
11
LanguageClient ,
6
12
LanguageClientOptions ,
@@ -18,6 +24,9 @@ function getConfig() {
18
24
}
19
25
20
26
export function activate ( context : ExtensionContext ) {
27
+ let outputChannel : OutputChannel = window . createOutputChannel (
28
+ "GraphQL Language Server"
29
+ ) ;
21
30
const config = getConfig ( ) ;
22
31
const { debug } = config ;
23
32
if ( debug ) {
@@ -46,6 +55,7 @@ export function activate(context: ExtensionContext) {
46
55
synchronize : {
47
56
fileEvents : workspace . createFileSystemWatcher ( "**/*.{graphql,gql}" )
48
57
} ,
58
+ outputChannel : outputChannel ,
49
59
outputChannelName : "GraphQL Language Server"
50
60
} ;
51
61
@@ -63,7 +73,7 @@ export function activate(context: ExtensionContext) {
63
73
const disposableCommandDebug = commands . registerCommand (
64
74
"extension.isDebugging" ,
65
75
( ) => {
66
- window . showInformationMessage ( `is in debug mode: ${ ! ! debug } ` ) ;
76
+ outputChannel . appendLine ( `is in debug mode: ${ ! ! debug } ` ) ;
67
77
}
68
78
) ;
69
79
context . subscriptions . push ( disposableCommandDebug ) ;
You can’t perform that action at this time.
0 commit comments