File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ export async function activate(context: ExtensionContext) {
245
245
outputChannel = window . createOutputChannel ( "Zig Language Server" ) ;
246
246
247
247
vscode . commands . registerCommand ( "zig.zls.install" , async ( ) => {
248
- if ( ! workspace . getConfiguration ( "zig" ) . get < string > ( "path" ) ) {
248
+ if ( workspace . getConfiguration ( "zig" ) . get < string > ( "path" ) === undefined ) {
249
249
window . showErrorMessage ( "This command cannot be run without setting 'zig.path'." , { modal : true } ) ;
250
250
return ;
251
251
}
@@ -282,9 +282,9 @@ export async function activate(context: ExtensionContext) {
282
282
} ) ;
283
283
284
284
const zigConfig = vscode . workspace . getConfiguration ( "zig" ) ;
285
- if ( ! zigConfig . get < string > ( "path" ) ) return ;
285
+ if ( zigConfig . get < string > ( "path" ) === undefined ) return ;
286
286
const zlsConfig = workspace . getConfiguration ( "zig.zls" ) ;
287
- if ( ! zlsConfig . get < string > ( "path" ) ) return ;
287
+ if ( zlsConfig . get < string > ( "path" ) === undefined ) return ;
288
288
if ( zlsConfig . get < boolean > ( "checkForUpdate" ) && shouldCheckUpdate ( context , "zlsUpdate" ) ) {
289
289
await checkUpdate ( context ) ;
290
290
}
You can’t perform that action at this time.
0 commit comments