@@ -197,10 +197,10 @@ func (ls *INOLanguageServer) InitializeReqFromIDE(ctx context.Context, logger js
197
197
clangInitializeParams .RootPath = ls .buildSketchRoot .String ()
198
198
clangInitializeParams .RootURI = lsp .NewDocumentURIFromPath (ls .buildSketchRoot )
199
199
if clangInitializeResult , clangErr , err := ls .Clangd .conn .Initialize (ctx , & clangInitializeParams ); err != nil {
200
- logger .Logf ("error initilizing clangd: %v" , err )
200
+ logger .Logf ("error initializing clangd: %v" , err )
201
201
return
202
202
} else if clangErr != nil {
203
- logger .Logf ("error initilizing clangd: %v" , clangErr .AsError ())
203
+ logger .Logf ("error initializing clangd: %v" , clangErr .AsError ())
204
204
return
205
205
} else {
206
206
logger .Logf ("clangd successfully started: %s" , string (lsp .EncodeMessage (clangInitializeResult )))
@@ -335,7 +335,7 @@ func (ls *INOLanguageServer) InitializeReqFromIDE(ctx context.Context, logger js
335
335
// TokenModifiers: []string{},
336
336
// },
337
337
// Range: false,
338
- // Full: &lsp.SemantiTokenFullOptions {
338
+ // Full: &lsp.SemanticTokenFullOptions {
339
339
// Delta: true,
340
340
// },
341
341
// },
@@ -425,7 +425,7 @@ func (ls *INOLanguageServer) TextDocumentCompletionReqFromIDE(ctx context.Contex
425
425
if clangItem .Command != nil {
426
426
c := ls .clang2IdeCommand (logger , * clangItem .Command )
427
427
if c == nil {
428
- continue // Skit item with unsupported command convertion
428
+ continue // Skit item with unsupported command conversion
429
429
}
430
430
ideCommand = c
431
431
}
@@ -583,7 +583,7 @@ func (ls *INOLanguageServer) TextDocumentDefinitionReqFromIDE(ctx context.Contex
583
583
584
584
func (ls * INOLanguageServer ) TextDocumentTypeDefinitionReqFromIDE (ctx context.Context , logger jsonrpc.FunctionLogger , ideParams * lsp.TypeDefinitionParams ) ([]lsp.Location , []lsp.LocationLink , * jsonrpc.ResponseError ) {
585
585
// XXX: This capability is not advertised in the initialization message (clangd
586
- // does not advetise it either, so maybe we should just not implement it)
586
+ // does not advertise it either, so maybe we should just not implement it)
587
587
ls .readLock (logger , true )
588
588
defer ls .readUnlock (logger )
589
589
@@ -1184,7 +1184,7 @@ func (ls *INOLanguageServer) PublishDiagnosticsNotifFromClangd(logger jsonrpc.Fu
1184
1184
ls .ideInoDocsWithDiagnostics [ideInoURI ] = true
1185
1185
}
1186
1186
1187
- // .. and cleanup all previouse diagnostics that are no longer valid...
1187
+ // .. and cleanup all previous diagnostics that are no longer valid...
1188
1188
for ideInoURI := range ls .ideInoDocsWithDiagnostics {
1189
1189
if _ , ok := allIdeParams [ideInoURI ]; ok {
1190
1190
continue
@@ -1206,7 +1206,7 @@ func (ls *INOLanguageServer) PublishDiagnosticsNotifFromClangd(logger jsonrpc.Fu
1206
1206
_ = json .Unmarshal (ideDiag .Code , & code )
1207
1207
switch code {
1208
1208
case "" :
1209
- // Filter unkown non-string codes
1209
+ // Filter unknown non-string codes
1210
1210
case "drv_unknown_argument_with_suggestion" :
1211
1211
// Skip errors like: "Unknown argument '-mlongcalls'; did you mean '-mlong-calls'?"
1212
1212
case "drv_unknown_argument" :
@@ -1284,7 +1284,7 @@ func (ls *INOLanguageServer) ideURIIsPartOfTheSketch(ideURI lsp.DocumentURI) boo
1284
1284
func (ls * INOLanguageServer ) ProgressNotifFromClangd (logger jsonrpc.FunctionLogger , progress * lsp.ProgressParams ) {
1285
1285
var token string
1286
1286
if err := json .Unmarshal (progress .Token , & token ); err != nil {
1287
- logger .Logf ("error decoding progess token: %s" , err )
1287
+ logger .Logf ("error decoding progress token: %s" , err )
1288
1288
return
1289
1289
}
1290
1290
switch value := progress .TryToDecodeWellKnownValues ().(type ) {
@@ -1455,7 +1455,7 @@ func (ls *INOLanguageServer) clang2IdeCommand(logger jsonrpc.FunctionLogger, cla
1455
1455
1456
1456
converted , err := json .Marshal (v )
1457
1457
if err != nil {
1458
- panic ("Internal Error: json conversion of codeAcion command arguments" )
1458
+ panic ("Internal Error: json conversion of codeAction command arguments" )
1459
1459
}
1460
1460
ideCommand .Arguments [i ] = converted
1461
1461
}
@@ -1481,7 +1481,7 @@ func (ls *INOLanguageServer) cpp2inoWorkspaceEdit(logger jsonrpc.FunctionLogger,
1481
1481
continue
1482
1482
}
1483
1483
1484
- // ...otherwise convert edits to the sketch.ino.cpp into multilpe .ino edits
1484
+ // ...otherwise convert edits to the sketch.ino.cpp into multiple .ino edits
1485
1485
for _ , edit := range edits {
1486
1486
inoURI , inoRange , inPreprocessed , err := ls .clang2IdeRangeAndDocumentURI (logger , editURI , edit .Range )
1487
1487
if err != nil {
0 commit comments