Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dap/implement #52

Closed
wants to merge 104 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
bd1f510
grrr
X39 Feb 18, 2021
0584556
submodules
X39 Feb 27, 2021
a522e78
Shelved everything and started from scratch
X39 Feb 27, 2021
a4c1d3d
stuff
X39 Feb 27, 2021
c6dc2ae
Fixed warnings
X39 Feb 27, 2021
4ed2418
Merge branch 'dap/implement' of https://github.com/SQFvm/vscode into …
X39 Feb 27, 2021
9d9af67
Implemented further changes
X39 Feb 28, 2021
5dcc03f
further code structuring
X39 Feb 28, 2021
c290a18
Implemented variables_visitor
X39 Mar 3, 2021
01cb318
added drop file
X39 Mar 3, 2021
bf093a6
cleanup
X39 Nov 14, 2022
da8a75b
adding reference db
X39 Nov 14, 2022
158045b
state
X39 Nov 15, 2022
660222b
removing build files
X39 Dec 9, 2022
b5bc83c
adding build files to gitignore
X39 Dec 9, 2022
45c5b42
garbage
X39 Dec 26, 2022
d20c1b9
tiny steps to success
X39 Jun 6, 2023
0e2fcd0
rewrite progress
X39 Jun 6, 2023
454357c
fixing orm macro
X39 Jun 7, 2023
8f7a301
state
X39 Jun 9, 2023
284f8af
state
X39 Jul 31, 2023
6a14738
more progress on reimplementation (yes ... still no real commit message)
X39 Aug 5, 2023
9198b17
progress
X39 Aug 9, 2023
ea3b4b0
progress
X39 Aug 9, 2023
33e3176
progress
X39 Aug 10, 2023
e26d4e7
progress and #19
X39 Aug 11, 2023
8cbe929
catch and findIf magic variable recognition
X39 Aug 11, 2023
1b29dcf
fixing .gitignore
X39 Aug 11, 2023
2d4210c
fixing sample data warning
X39 Aug 11, 2023
b2ed6ef
removing obsolete options (#18)
X39 Aug 11, 2023
d2131b7
fixed #21
X39 Aug 11, 2023
5559e72
fixed #25
X39 Aug 11, 2023
644bf65
fixed #24
X39 Aug 11, 2023
beabc7b
remove garbage
X39 Aug 11, 2023
e2a8fd0
adding private _xyz = nil being declaration
X39 Aug 11, 2023
5ad83cd
Create cmake-multi-platform.yml
X39 Aug 11, 2023
3a663c0
Update cmake-multi-platform.yml
X39 Aug 11, 2023
1c1164b
Update cmake-multi-platform.yml
X39 Aug 11, 2023
36328bf
Update cmake-multi-platform.yml
X39 Aug 11, 2023
9d51f78
Update cmake-multi-platform.yml
X39 Aug 11, 2023
ac542be
Update cmake-multi-platform.yml
X39 Aug 11, 2023
d7ae6e7
Update cmake-multi-platform.yml
X39 Aug 11, 2023
80d3b2c
Update cmake-multi-platform.yml
X39 Aug 11, 2023
16d3e81
Update cmake-multi-platform.yml
X39 Aug 11, 2023
eb1b304
Update cmake-multi-platform.yml
X39 Aug 11, 2023
d17dd67
Update cmake-multi-platform.yml
X39 Aug 11, 2023
df7f0a0
Update cmake-multi-platform.yml
X39 Aug 11, 2023
028c7ac
Update cmake-multi-platform.yml
X39 Aug 11, 2023
8d7b5a7
Update cmake-multi-platform.yml
X39 Aug 11, 2023
4cccb07
Update cmake-multi-platform.yml
X39 Aug 11, 2023
f2df2b1
Update language_server.cpp
X39 Aug 11, 2023
97a622b
adding &&, and, ||, or to the list of non-detach code blocks
X39 Aug 13, 2023
ee92e52
now watching every directory instead of only top-level one
X39 Aug 14, 2023
3e50c53
Update cmake-multi-platform.yml
X39 Aug 14, 2023
d4da9e1
Update cmake-multi-platform.yml
X39 Aug 14, 2023
fcc7e69
Update cmake-multi-platform.yml
X39 Aug 16, 2023
a439fbe
Update cmake-multi-platform.yml
X39 Aug 16, 2023
a2aba9f
Update cmake-multi-platform.yml
X39 Aug 16, 2023
d58486f
Update cmake-multi-platform.yml
X39 Aug 16, 2023
e1c67c4
Update cmake-multi-platform.yml
X39 Aug 16, 2023
1348943
Update cmake-multi-platform.yml
X39 Aug 16, 2023
58f115f
Update cmake-multi-platform.yml
X39 Aug 16, 2023
9191ca5
Update cmake-multi-platform.yml
X39 Aug 16, 2023
6fb81b8
Update cmake-multi-platform.yml
X39 Aug 16, 2023
78df16f
Update cmake-multi-platform.yml
X39 Aug 16, 2023
13bc049
Update cmake-multi-platform.yml
X39 Aug 16, 2023
127638b
Update cmake-multi-platform.yml
X39 Aug 16, 2023
b26ad7e
adding dynamic exlanguage server executable resolution
X39 Aug 16, 2023
2024d1b
Update cmake-multi-platform.yml
X39 Aug 16, 2023
78b7895
Update cmake-multi-platform.yml
X39 Aug 16, 2023
0b29233
implementing additional features
X39 Aug 17, 2023
316e27d
Update cmake-multi-platform.yml
X39 Aug 17, 2023
1c4badd
merge
X39 Aug 17, 2023
5fddd70
Update cmake-multi-platform.yml
X39 Aug 17, 2023
a30f410
.................
X39 Aug 17, 2023
2a61ffa
Update cmake-multi-platform.yml
X39 Aug 17, 2023
37d64ec
Update cmake-multi-platform.yml
X39 Aug 17, 2023
d263ef0
sqfvm fix
X39 Aug 17, 2023
688deaf
Merge branch 'dap/cd' of https://github.com/SQFvm/language-server int…
X39 Aug 17, 2023
c3e3b27
fixed #42
X39 Aug 17, 2023
8447243
data
X39 Aug 17, 2023
a42a738
adding sqf based visitor
X39 Aug 18, 2023
726b200
Update cmake-multi-platform.yml
X39 Aug 19, 2023
c02ae07
Update cmake-multi-platform.yml
X39 Aug 19, 2023
f0902a3
Update cmake-multi-platform.yml
X39 Aug 19, 2023
28736c7
documented scripted_visitor.cpp
X39 Aug 20, 2023
87224ed
Merge remote-tracking branch 'origin/dap/cd' into dap/cd
X39 Aug 20, 2023
22838b4
Update cmake-multi-platform.yml
X39 Aug 20, 2023
cbc03b5
adding exitWith to non-detach scopes
X39 Aug 20, 2023
2fb3983
moving implementation to source file
X39 Aug 20, 2023
6c6c7f0
[LSP] Implement code action support #40
X39 Aug 20, 2023
0b501fd
Update cmake-multi-platform.yml
X39 Aug 20, 2023
faf2303
Update cmake-multi-platform.yml
X39 Aug 20, 2023
0d3cf4c
Merge pull request #27 from SQFvm/dap/cd
X39 Aug 20, 2023
1905e87
[LSP] Implement code action support #40 & better $PBOPREFIX$ support
X39 Aug 28, 2023
745f9ff
updating submodule
X39 Aug 28, 2023
c37bf7d
begining of code action support
X39 Aug 28, 2023
e6882f5
code action support
X39 Aug 29, 2023
d5664f6
adding configuration to extension to configure additional path mappings
X39 Aug 29, 2023
52c1f46
Merge branch 'dap/cd' into dap/implement
X39 Aug 29, 2023
5b71c9f
adding macro hover resolve
X39 Aug 29, 2023
2ff2f1a
Update cmake-multi-platform.yml
X39 Aug 29, 2023
666a4b1
fixing PBOPREFIX
X39 Aug 29, 2023
1897cce
adding shadowing check
X39 Sep 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
grrr
X39 committed Feb 18, 2021

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit bd1f510621f2fb1a0df79ee3c3324ba42f1e1797
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -4,3 +4,6 @@
[submodule "vm"]
path = server/extern/vm
url = https://github.com/SQFvm/vm.git
[submodule "server/extern/sqlite"]
path = server/extern/sqlite
url = https://github.com/sqlite/sqlite.git
9 changes: 9 additions & 0 deletions clients/vscode/sample/example.sqc
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
for (it : arr)
{
diag_log(it);
for (it2 : it)
{
diag_log(it, it2);
}
}

// Assign local values
/* test */
$"test {{{ 1 + 1 }}}";
2 changes: 1 addition & 1 deletion clients/vscode/sample/example.sqf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
private _a = 1; private _b = 2; private _c = 3; private _d = 4; private _f = { scopename "___sqc_func"; params ["_arga", "_argb"]; diag_log format ["%1 - %2", _arga, _argb] }; global = { scopename "___sqc_func"; params ["_val"]; if (_val > 10) then { true breakout "___sqc_func" } else { if (_val > 12) then { if (_val < 50) then { false } else { true } breakout "___sqc_func" } } }; ["sqc", "hello world"] call _f; diag_log "test"; player getvariable "TAG_SomeVar"; private _arr = [1, 2, 3]; _arr select { scopename "___sqc_func"; (_x > 2) breakout "___sqc_func" }; for "_i" from 0 to 100 do { diag_log "test" }
{ diag_log _it; { diag_log [_it, _it2] } foreach _it } foreach arr; private _a = 1; private _b = 2; private _c = 3; private _d = 4; private _f = { scopename "___sqc_func"; params ["_arga", "_argb"]; diag_log format ["%1 - %2", _arga, _argb] }; global = { scopename "___sqc_func"; params ["_val"]; if (_val > 10) then { true breakout "___sqc_func" } else { if (_val > 12) then { if (_val < 50) then { false } else { true } breakout "___sqc_func" } } }; ["sqc", "hello world"] call _f; diag_log "test"; player getvariable "TAG_SomeVar"; private _arr = [1, 2, 3]; _arr select { scopename "___sqc_func"; (_x > 2) breakout "___sqc_func" }; for "_i" from 0 to 100 do { diag_log "test" }
8 changes: 7 additions & 1 deletion server/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -50,14 +50,20 @@ list(APPEND sqfvm_language_server_src "${CMAKE_CURRENT_BINARY_DIR}/git_sha1.cpp"


find_package(Threads)
find_package (SQLite3)


option(SQFVM_LANGUAGE_SERVER_BUILD_EXECUTABLE "BUILD EXECUTABLE" ON)


if (SQFVM_LANGUAGE_SERVER_BUILD_EXECUTABLE)
add_executable(sqfvm_language_server ${sqfvm_language_server_src})
include_directories(sqfvm_language_server ${SQLite3_INCLUDE_DIRS})
include_directories(sqfvm_language_server PUBLIC ${PROJECT_SOURCE_DIR}/src)

target_link_libraries(sqfvm_language_server PRIVATE slibsqfvm_sqc)
target_link_libraries(sqfvm_language_server ${CMAKE_DL_LIBS} ${CMAKE_THREAD_LIBS_INIT} ${ST_CXXFS_LIBS})
target_include_directories(sqfvm_language_server PUBLIC ${PROJECT_SOURCE_DIR}/src)
target_link_libraries (sqfvm_language_server ${OUT_TARGET} ${SQLite3_LIBRARIES})

target_compile_options(sqfvm_language_server PRIVATE
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:
1 change: 1 addition & 0 deletions server/extern/sqlite
Submodule sqlite added at 40803c
281 changes: 281 additions & 0 deletions server/extern/sqlite3.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,281 @@
EXPORTS
sqlite3_aggregate_context
sqlite3_aggregate_count
sqlite3_auto_extension
sqlite3_backup_finish
sqlite3_backup_init
sqlite3_backup_pagecount
sqlite3_backup_remaining
sqlite3_backup_step
sqlite3_bind_blob
sqlite3_bind_blob64
sqlite3_bind_double
sqlite3_bind_int
sqlite3_bind_int64
sqlite3_bind_null
sqlite3_bind_parameter_count
sqlite3_bind_parameter_index
sqlite3_bind_parameter_name
sqlite3_bind_pointer
sqlite3_bind_text
sqlite3_bind_text16
sqlite3_bind_text64
sqlite3_bind_value
sqlite3_bind_zeroblob
sqlite3_bind_zeroblob64
sqlite3_blob_bytes
sqlite3_blob_close
sqlite3_blob_open
sqlite3_blob_read
sqlite3_blob_reopen
sqlite3_blob_write
sqlite3_busy_handler
sqlite3_busy_timeout
sqlite3_cancel_auto_extension
sqlite3_changes
sqlite3_clear_bindings
sqlite3_close
sqlite3_close_v2
sqlite3_collation_needed
sqlite3_collation_needed16
sqlite3_column_blob
sqlite3_column_bytes
sqlite3_column_bytes16
sqlite3_column_count
sqlite3_column_database_name
sqlite3_column_database_name16
sqlite3_column_decltype
sqlite3_column_decltype16
sqlite3_column_double
sqlite3_column_int
sqlite3_column_int64
sqlite3_column_name
sqlite3_column_name16
sqlite3_column_origin_name
sqlite3_column_origin_name16
sqlite3_column_table_name
sqlite3_column_table_name16
sqlite3_column_text
sqlite3_column_text16
sqlite3_column_type
sqlite3_column_value
sqlite3_commit_hook
sqlite3_compileoption_get
sqlite3_compileoption_used
sqlite3_complete
sqlite3_complete16
sqlite3_config
sqlite3_context_db_handle
sqlite3_create_collation
sqlite3_create_collation_v2
sqlite3_create_collation16
sqlite3_create_filename
sqlite3_create_function
sqlite3_create_function_v2
sqlite3_create_function16
sqlite3_create_module
sqlite3_create_module_v2
sqlite3_create_window_function
sqlite3_data_count
sqlite3_data_directory
sqlite3_database_file_object
sqlite3_db_cacheflush
sqlite3_db_config
sqlite3_db_filename
sqlite3_db_handle
sqlite3_db_mutex
sqlite3_db_readonly
sqlite3_db_release_memory
sqlite3_db_status
sqlite3_declare_vtab
sqlite3_deserialize
sqlite3_drop_modules
sqlite3_enable_load_extension
sqlite3_enable_shared_cache
sqlite3_errcode
sqlite3_errmsg
sqlite3_errmsg16
sqlite3_errstr
sqlite3_exec
sqlite3_expanded_sql
sqlite3_expired
sqlite3_extended_errcode
sqlite3_extended_result_codes
sqlite3_file_control
sqlite3_filename_database
sqlite3_filename_journal
sqlite3_filename_wal
sqlite3_finalize
sqlite3_free
sqlite3_free_filename
sqlite3_free_table
sqlite3_fts3_may_be_corrupt
sqlite3_fts5_may_be_corrupt
sqlite3_get_autocommit
sqlite3_get_auxdata
sqlite3_get_table
sqlite3_global_recover
sqlite3_hard_heap_limit64
sqlite3_initialize
sqlite3_interrupt
sqlite3_keyword_check
sqlite3_keyword_count
sqlite3_keyword_name
sqlite3_last_insert_rowid
sqlite3_libversion
sqlite3_libversion_number
sqlite3_limit
sqlite3_load_extension
sqlite3_log
sqlite3_malloc
sqlite3_malloc64
sqlite3_memory_alarm
sqlite3_memory_highwater
sqlite3_memory_used
sqlite3_mprintf
sqlite3_msize
sqlite3_mutex_alloc
sqlite3_mutex_enter
sqlite3_mutex_free
sqlite3_mutex_leave
sqlite3_mutex_try
sqlite3_next_stmt
sqlite3_open
sqlite3_open_v2
sqlite3_open16
sqlite3_os_end
sqlite3_os_init
sqlite3_overload_function
sqlite3_prepare
sqlite3_prepare_v2
sqlite3_prepare_v3
sqlite3_prepare16
sqlite3_prepare16_v2
sqlite3_prepare16_v3
sqlite3_profile
sqlite3_progress_handler
sqlite3_randomness
sqlite3_realloc
sqlite3_realloc64
sqlite3_release_memory
sqlite3_reset
sqlite3_reset_auto_extension
sqlite3_result_blob
sqlite3_result_blob64
sqlite3_result_double
sqlite3_result_error
sqlite3_result_error_code
sqlite3_result_error_nomem
sqlite3_result_error_toobig
sqlite3_result_error16
sqlite3_result_int
sqlite3_result_int64
sqlite3_result_null
sqlite3_result_pointer
sqlite3_result_subtype
sqlite3_result_text
sqlite3_result_text16
sqlite3_result_text16be
sqlite3_result_text16le
sqlite3_result_text64
sqlite3_result_value
sqlite3_result_zeroblob
sqlite3_result_zeroblob64
sqlite3_rollback_hook
sqlite3_rtree_geometry_callback
sqlite3_rtree_query_callback
sqlite3_serialize
sqlite3_set_authorizer
sqlite3_set_auxdata
sqlite3_set_last_insert_rowid
sqlite3_shutdown
sqlite3_sleep
sqlite3_snprintf
sqlite3_soft_heap_limit
sqlite3_soft_heap_limit64
sqlite3_sourceid
sqlite3_sql
sqlite3_status
sqlite3_status64
sqlite3_step
sqlite3_stmt_busy
sqlite3_stmt_isexplain
sqlite3_stmt_readonly
sqlite3_stmt_status
sqlite3_str_append
sqlite3_str_appendall
sqlite3_str_appendchar
sqlite3_str_appendf
sqlite3_str_errcode
sqlite3_str_finish
sqlite3_str_length
sqlite3_str_new
sqlite3_str_reset
sqlite3_str_value
sqlite3_str_vappendf
sqlite3_strglob
sqlite3_stricmp
sqlite3_strlike
sqlite3_strnicmp
sqlite3_system_errno
sqlite3_table_column_metadata
sqlite3_temp_directory
sqlite3_test_control
sqlite3_thread_cleanup
sqlite3_threadsafe
sqlite3_total_changes
sqlite3_trace
sqlite3_trace_v2
sqlite3_transfer_bindings
sqlite3_txn_state
sqlite3_unsupported_selecttrace
sqlite3_update_hook
sqlite3_uri_boolean
sqlite3_uri_int64
sqlite3_uri_key
sqlite3_uri_parameter
sqlite3_user_data
sqlite3_value_blob
sqlite3_value_bytes
sqlite3_value_bytes16
sqlite3_value_double
sqlite3_value_dup
sqlite3_value_free
sqlite3_value_frombind
sqlite3_value_int
sqlite3_value_int64
sqlite3_value_nochange
sqlite3_value_numeric_type
sqlite3_value_pointer
sqlite3_value_subtype
sqlite3_value_text
sqlite3_value_text16
sqlite3_value_text16be
sqlite3_value_text16le
sqlite3_value_type
sqlite3_version
sqlite3_vfs_find
sqlite3_vfs_register
sqlite3_vfs_unregister
sqlite3_vmprintf
sqlite3_vsnprintf
sqlite3_vtab_collation
sqlite3_vtab_config
sqlite3_vtab_nochange
sqlite3_vtab_on_conflict
sqlite3_wal_autocheckpoint
sqlite3_wal_checkpoint
sqlite3_wal_checkpoint_v2
sqlite3_wal_hook
sqlite3_win32_is_nt
sqlite3_win32_mbcs_to_utf8
sqlite3_win32_mbcs_to_utf8_v2
sqlite3_win32_set_directory
sqlite3_win32_set_directory16
sqlite3_win32_set_directory8
sqlite3_win32_sleep
sqlite3_win32_unicode_to_utf8
sqlite3_win32_utf8_to_mbcs
sqlite3_win32_utf8_to_mbcs_v2
sqlite3_win32_utf8_to_unicode
sqlite3_win32_write_debug
Binary file added server/extern/sqlite3.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion server/extern/vm
Submodule vm updated from 233ea1 to 66a58d
Loading