File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed
examples/json-extension/client/src Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,18 @@ and this project adheres to [Semantic Versioning][semver].
13
13
14
14
### Fixed
15
15
16
+ ## [ 0.11.3] - 09/30/2021
17
+
18
+ ### Added
19
+
20
+ ### Changed
21
+
22
+ ### Fixed
23
+
24
+ - Fix example extension client not detecting debug mode appropriately ([ #193 ] )
25
+
26
+ [ #193 ] : https://github.com/openlawlibrary/pygls/issues/193
27
+
16
28
## [ 0.11.2] - 07/23/2021
17
29
18
30
### Added
Original file line number Diff line number Diff line change 13
13
- [ Tomoya Tanjo] ( https://github.com/tom-tan )
14
14
- [ yorodm] ( https://github.com/yorodm )
15
15
- [ bollwyvl] ( https://github.com/bollwyvl )
16
+ - [ Dillan Mills] ( https://github.com/DillanCMills )
Original file line number Diff line number Diff line change 20
20
21
21
import * as net from "net" ;
22
22
import * as path from "path" ;
23
- import { ExtensionContext , workspace } from "vscode" ;
23
+ import { ExtensionContext , ExtensionMode , workspace } from "vscode" ;
24
24
import {
25
25
LanguageClient ,
26
26
LanguageClientOptions ,
@@ -44,10 +44,6 @@ function getClientOptions(): LanguageClientOptions {
44
44
} ;
45
45
}
46
46
47
- function isStartedInDebugMode ( ) : boolean {
48
- return process . env . VSCODE_DEBUG_MODE === "true" ;
49
- }
50
-
51
47
function startLangServerTCP ( addr : number ) : LanguageClient {
52
48
const serverOptions : ServerOptions = ( ) => {
53
49
return new Promise ( ( resolve /*, reject */ ) => {
@@ -83,7 +79,7 @@ function startLangServer(
83
79
}
84
80
85
81
export function activate ( context : ExtensionContext ) : void {
86
- if ( isStartedInDebugMode ( ) ) {
82
+ if ( context . extensionMode === ExtensionMode . Development ) {
87
83
// Development - Run the server manually
88
84
client = startLangServerTCP ( 2087 ) ;
89
85
} else {
You can’t perform that action at this time.
0 commit comments