Skip to content

Commit bef7e15

Browse files
committed
fix small lsp rename bug
1 parent 74e1b1a commit bef7e15

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

src/lsp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,15 +1917,15 @@ mod server {
19171917
let mut binding: Option<(&BindingInfo, usize)> = None;
19181918
// Check for span in bindings
19191919
for (i, gb) in doc.asm.bindings.iter().enumerate() {
1920-
if gb.span.contains_line_col(line, col) && gb.span.src == path {
1920+
if gb.span.contains_line_col_end(line, col) && gb.span.src == path {
19211921
binding = Some((gb, i));
19221922
break;
19231923
}
19241924
}
19251925
// Check for span in binding references
19261926
if binding.is_none() {
19271927
for (name_span, index) in &doc.code_meta.global_references {
1928-
if name_span.contains_line_col(line, col) && name_span.src == path {
1928+
if name_span.contains_line_col_end(line, col) && name_span.src == path {
19291929
binding = Some((&doc.asm.bindings[*index], *index));
19301930
break;
19311931
}

todo.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
# Uiua Todo
22

33
# 0.17
4+
- `recur` modifier
45
- LSP optimizations
56
- Fix rename
67
- Fix goto references
7-
- `first group/partition` optimization
88
- Sided `join`
99
- `table` subscripts for rank selection
1010
- Mixed subscripts
1111
- `bracket`
1212
- Reserved modifier glyphs?
13-
- `un`/`anti` `stencil`
14-
- Compile-time code string evaluation?
1513
- Streaming gif and audio encoding
1614

15+
# 0.18
16+
- Compile-time code string evaluation?
17+
- `un`/`anti` `stencil`
18+
- `first group/partition` optimization
19+
1720
## Planned Features
1821
Features that are planned to be implemented in the future.
1922

@@ -29,12 +32,6 @@ Features that are planned to be implemented in the future.
2932
- Enabled things from simple config files to game mods
3033
- System APIs
3134
- UDP Sockets
32-
- `&udpb` to bind a socket
33-
- `&udpc` to connect a socket?
34-
- `&udpr` to receive data from a socket
35-
- Returns both data and source address
36-
- `&udps` to send data to a socket
37-
- Takes both data and destination address
3835
- Change `&tcpsnb`, `&tcpsrt`, `&tcpswt` to work for UDP sockets as well
3936
- Rename them
4037
- File metadata

0 commit comments

Comments
 (0)